query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
3c7256ce46d51d1abec20b2d5692600e
Find all question by id list
[ { "docid": "c8263dff58038707223603a6a637abb4", "score": "0.0", "text": "@GET\n @Path(\"/byIdLst\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response findAllByQuestionIdLst(@QueryParam(\"questionIdLst\") String questionIdLst, \n @QueryParam(\"careerId\") Long careerId, @QueryParam(\"type\") Integer type) throws Exception {\n return this.authorize(\"standard\", () -> {\n try (QuestionManager manager = new QuestionManager()) {\n ResponseDataPaging res = manager.findAllByQuestionIdLst(questionIdLst, careerId, type);\n if (res.getStatus() == Status.OK.getStatusCode()) {\n return ok(res);\n } else {\n return noContent(res);\n }\n }\n });\n }", "title": "" } ]
[ { "docid": "61e685d884de0d97b138f3fa1e7a8f58", "score": "0.7157016", "text": "public List<Answer> getAnswerByQuestionId(int quesId) throws Exception;", "title": "" }, { "docid": "04388d232dac2949f76de48575e7a68b", "score": "0.6778407", "text": "public List<Choice> getQuestionChoices(int id);", "title": "" }, { "docid": "103a7dc12cb342945a79344d4f4b5fd8", "score": "0.6353077", "text": "public List<SurveyQuestion> getAll();", "title": "" }, { "docid": "9d9166526c81d30e708990125d15ac3a", "score": "0.6299255", "text": "List<ForumeintragDTO> getAnswers(Integer id);", "title": "" }, { "docid": "883b1546566334e9612b890720a12b5c", "score": "0.62756616", "text": "@Override\n public ArrayList GetAll(int id) {\n ArrayList<SingleSelection> questions = new ArrayList<>();\n try{\n SQLiteDatabase db = connect.getWritableDatabase();\n if(db!=null){\n String[] args = new String[]{String.valueOf(id)};\n Cursor c = db.query(\"SingleSelection\",new String[]{\"id\",\"question\",\"option1\",\"option2\",\"option3\",\"option4\",\"answer\",\"id_section\"},\n \"id_section=?\",args,null,null,\"id asc\",null);\n if(c.moveToFirst()){\n do{\n int idx = c.getInt(0);\n String question = c.getString(1);\n String opc1 = c.getString(2);\n String opc2 = c.getString(3);\n String opc3 = c.getString(4);\n String opc4 = c.getString(5);\n String answer = c.getString(6);\n int indxSection = c.getInt(7);\n //THIRD ELEMENT IS THE ID OF THE EXAM\n SingleSelection s = new SingleSelection(idx,question,opc1,opc2,opc3,opc4,answer,indxSection);\n questions.add(s);\n }while(c.moveToNext());\n }\n connect.close();\n return questions;\n }\n }catch (Exception e){\n Log.d(\"ERROR\",e.getMessage());\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "fbf74a684e1f940e0dffafa53b7912a9", "score": "0.61992705", "text": "public Map<Integer, Question> getQuestionSet() {\n\t\t// Select All Query\n\t\tdbase = this.getReadableDatabase();\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_QUESTION + \" ORDER BY RANDOM() LIMIT 10\";\n\t\t\n\t\tCursor cursor = dbase.rawQuery(selectQuery, null);\n\t\t// looping through all rows and adding to list\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\t\n\t\t\t\tQuestion quest = new Question();\n\t\t\t\tint id = cursor.getInt(cursor.getColumnIndex(DBHelper.KEY_ID));\n\t\t\t\tquest.setId(id);\n\t\t\t\tquest.setQuestion(cursor.getString(1));\n\t\t\t\tQsSet.put(id, quest);\n\t\t\t\t\n\t\t\t\tString correct = \"\";\n\t\t\t\tcorrect = cursor.getString(2);\n\t\t\t\t\n\t\t\t\t//set answers\n\t\t\t\tAnswer[] answer_set = new Answer[4];\n\n\t\t\t\tint cursor_pos = 3;\n\t\t\t\tfor(int i = 0; i < 4; i++){\n\t\t\t\t\tAnswer answer = new Answer();\n\t\t\t\t\tanswer.setId(i);\t\n\t\t\t\t\tanswer.setQid(id);\t\n\t\t\t\t\t\n\t\t\t\t\t//option A\n\t\t\t\t\tif(cursor_pos == 3){\n\t\t\t\t\t\tanswer.setAnswer(cursor.getString(3));\n\t\t\t\t\t\tif(cursor.getString(3).equals(correct)){\n\t\t\t\t\t\t\tanswer.setCorrect(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//option B\n\t\t\t\t\telse if(cursor_pos == 4){\n\t\t\t\t\t\tanswer.setAnswer(cursor.getString(4));\n\t\t\t\t\t\tif(cursor.getString(4).equals(correct)){\n\t\t\t\t\t\t\tanswer.setCorrect(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//option C\n\t\t\t\t\telse if(cursor_pos == 5){\n\t\t\t\t\t\tanswer.setAnswer(cursor.getString(5));\n\t\t\t\t\t\tif(cursor.getString(5).equals(correct)){\n\t\t\t\t\t\t\tanswer.setCorrect(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//option D\n\t\t\t\t\telse if(cursor_pos == 6){\n\t\t\t\t\t\tanswer.setAnswer(cursor.getString(6));\n\t\t\t\t\t\tif(cursor.getString(6).equals(correct)){\n\t\t\t\t\t\t\tanswer.setCorrect(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tanswer_set[i] = answer;\n\t\t\t\t\tcursor_pos++;\n\t\t\t\t}\n\t\t\t\tAnsSet.put(id, answer_set);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tcursor.close();\n\t\t// return question list\n\t\treturn QsSet;\n\t}", "title": "" }, { "docid": "cb9936c0343474643582ba94954ebc07", "score": "0.61496115", "text": "public interface WritingQuestionRepository extends JpaRepository<WritingQuestion, Long>, JpaSpecificationExecutor<WritingQuestion> {\n\n @Query(\"select w from WritingQuestion w where w.id in :ids\")\n List<WritingQuestion> findAll(@Param(\"ids\") List<Long> ids);\n\n}", "title": "" }, { "docid": "abfa880aec87cdc110fd416521386ec8", "score": "0.6049671", "text": "List<Question> selectByExample(QuestionExample example);", "title": "" }, { "docid": "13a89ffef279254f7bb4046461386e0a", "score": "0.5903915", "text": "ArrayList<Question> getAllQuestions(String forum_group) throws SQLException;", "title": "" }, { "docid": "a4a901b0f1bf3e5c6c0a0a21348afd63", "score": "0.58892184", "text": "@Role(User.Role.TEACHER)\n @GetMapping(ANSWER_LIST)\n public ResponseEntity<List<Answer>> getAllAnswersByQuestionId(@PathVariable Integer qId) {\n return ResponseEntity.ok(answerService.getAllAnswersByQuestion(qId));\n }", "title": "" }, { "docid": "dffb64a681e6514ba89ec9a61b405655", "score": "0.58752686", "text": "public List<Questions> listAllQuestions() {\n return repoQuestions.findAll();\n }", "title": "" }, { "docid": "4d259e3cd394a61219db272a3be6808c", "score": "0.5854672", "text": "List<PulseQuestionSet> findPulseQuestionSetsFor(String companyId);", "title": "" }, { "docid": "4eb83b7095ce8cee5d61be975bf679e7", "score": "0.5846963", "text": "List<Post> getAnswersByPostId(long postId);", "title": "" }, { "docid": "7497af71607aa605a7ad6bda924a6df8", "score": "0.58262956", "text": "public static List<Question> findBySubmissionForm(Long id) {\n\t\treturn Question.find.where().eq(\"assignment.id\", id).findList();\r\n\t}", "title": "" }, { "docid": "bbbbeadd0d60ff32e0b48e94b97e2b25", "score": "0.5800522", "text": "private void encontrarporIDs()\n\t{\n\t\tList<Integer> ids = new LinkedList<Integer>();\n\t\tids.add(1);\n\t\tids.add(4);\n\t\tids.add(6);\n\t\tIterable<CATEGORIAS> categorias = repocategorias.findAllById(ids);\n\t\tfor (CATEGORIAS cat : categorias)\n\t\t\t{\n\t\t\t\tSystem.out.println(cat);\n\t\t\t}\n\t}", "title": "" }, { "docid": "354b3ad1e92f0fbda8a19b34b8c7b05a", "score": "0.5776223", "text": "public Cursor ListAllQuestions(){\n\t\tSQLiteDatabase db = getReadableDatabase();\n\t\tSQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\t\t\n\t\tString[] sqlSelect = { KEY_ROWID, KEY_QUESTION,KEY_RANSWER};\n\t\tString sqlTables = QUESTIONS_TABLE;\n\t\t\n\t\tqb.setTables(sqlTables);\n\t\tCursor c = qb.query(db, sqlSelect, null, null, null, null, null);\n\t\t\n\t\tc.moveToFirst();\n\t\treturn c;\n\t\t\n\t}", "title": "" }, { "docid": "2e5445f7a3de68a9664cf86fcaeb4c8b", "score": "0.5768985", "text": "public List<Question> findQuestion(String domainNodePath, boolean includeSelf, boolean includeChild, String type, int start, int size);", "title": "" }, { "docid": "f2120c2f92744067ad8811f5675455b1", "score": "0.5749877", "text": "List<Question> selectByExample(QuestionExtample example);", "title": "" }, { "docid": "00c532d1a76e222982437af2ce82326a", "score": "0.57322705", "text": "List<Question05> selectByExample(Question05Example example);", "title": "" }, { "docid": "93fafa9e3f3f7eef4baa1792d1198d65", "score": "0.57236063", "text": "public List query(String id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cbcaba13d94e9cb2e1952aa7ee53d251", "score": "0.57070285", "text": "@Override\n\tpublic List<T> findByIds(Serializable ids) {\n\t\tMap<String, Object> map = new HashMap<>();\n\t\tmap.put(\"ids\", ids);\n\t\treturn getSqlSession().selectList(ns+\".findByIds\", map);\n\t}", "title": "" }, { "docid": "e70cbb9013b2d9485fa2b70235c8580a", "score": "0.57055074", "text": "public abstract List<String> findReferences(String pId);", "title": "" }, { "docid": "abbe05d8f46ccf909888d6a180c6d0fe", "score": "0.56934625", "text": "public RecordSet findQuestionnaireRecordsById(long course_id) {\r\n String sql = \"select * from \" + questionnaire_record_table + \" where course_id=\" + course_id;\r\n SQLExecutor se = getSqlExecutor();\r\n RecordSet rs = se.executeRecordSet(sql, null);\r\n return rs;\r\n }", "title": "" }, { "docid": "fc46e3e9051ca1dc1bd0f333af150214", "score": "0.569092", "text": "List<T> findById(int id);", "title": "" }, { "docid": "1e6fd7b31959e10bde5aef95fed1c5f4", "score": "0.5673346", "text": "public Question loadQuestion(int id);", "title": "" }, { "docid": "461c27a792079afb7e9920ce6a32c5c5", "score": "0.566954", "text": "Iterable<Submission> findAllByExercise_Id(Integer id);", "title": "" }, { "docid": "0df48a281f535d10c071bf6904802751", "score": "0.56480867", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic List<CloudSvrSecQuesMaster> findSecurityQuestionsByIdsDao(String ids) throws CloudDAException {\n\t\t\n String METHOD_NAME=\"findSecurityQuestionsByIdsDao\";\n\t\t\n\t\tlog.info(Log4jConstants.LOG_ENTRY,CLASS_NAME, METHOD_NAME);\n\t\t\n\t\tList<CloudSvrSecQuesMaster> quesMasterList = null;\n\t\t\n\t\tString listid = ids.substring(0, ids.length()-1);\n\t\t\n\t\ttry{\n\t\t\t quesMasterList = (List<CloudSvrSecQuesMaster>)super.getHibernateTemplate().find(\"from CloudSvrSecQuesMaster c where c.id in(\"+listid+\")\");\n\t\t\t\n\t\t\t\t\t\t\n\t\t}\n\t\t catch (DataAccessException accessException) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t findSecurityQuestionsByIdsDaoDAException(accessException);\n\t\t\t\t\n\t\t\t} catch (Exception ex) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfindSecurityQuestionsByIdsDaoException(ex);\n\t\t\t\t\n\t\t\t}\n\t\treturn quesMasterList;\n\t}", "title": "" }, { "docid": "1fa8aeeccce05d1d397a90c6dcf82daa", "score": "0.56432694", "text": "public List<Integer> getEqualQ(int tID);", "title": "" }, { "docid": "7594a0ba6817440fa5d1948c17554d46", "score": "0.5634798", "text": "@RequestMapping(method = RequestMethod.GET, path = \"answer/all/{questionId}\", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<List<AnswerDetailsResponse>> getAllAnswersToQuestion(@RequestHeader(\"authorization\") final String accessToken, @PathVariable(\"questionId\") final String questionId) throws AuthorizationFailedException, InvalidQuestionException {\n\n List<AnswerDetailsResponse> listAnswerDetailsResponse = new ArrayList<AnswerDetailsResponse>();\n List<AnswerEntity> answerEntityList = answerService.getAllAnswersToQuestion(accessToken, questionId);\n if (answerEntityList != null && !answerEntityList.isEmpty()) {\n for (AnswerEntity answerEntity : answerEntityList) {\n listAnswerDetailsResponse.add(new AnswerDetailsResponse().id(answerEntity.getUuid())\n .answerContent(answerEntity.getAnswer()).questionContent(answerEntity.getQuestionId().getContent()));\n }\n }\n return new ResponseEntity<List<AnswerDetailsResponse>>(listAnswerDetailsResponse, HttpStatus.OK);\n\n }", "title": "" }, { "docid": "dd2650c011bd779729f352dd252311e0", "score": "0.5633536", "text": "@Override\r\n\tpublic List<Question> getAll() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "99a682a762e453e850eadf132597ec39", "score": "0.56131727", "text": "private void getQuestionList(Element el, Dialog d){\t\n\t\t//get a nodelist of <question> elements\n\t\tNodeList nl = el.getElementsByTagName(\"question\");\n\t\tif(nl != null && nl.getLength() > 0) {\n\t\t\tfor(int i = 0 ; i < nl.getLength();i++) {\n\t\t\t\t//get the question element\n\t\t\t\tElement elq = (Element)nl.item(i);\n\t\t\t\t//String question = getTextValue(elq,\"question\");\t\t\t\n\t\t\t\t//String question = getString(elq,\"question\");\n\t\t\t\tString question = elq.getFirstChild().getNodeValue();\n\t\t\t\t//add it to dialog\n\t\t\t\td.addQuestion(question);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2426056e103dd3131074b3d90119c3b5", "score": "0.561299", "text": "@Override\n\tpublic List<AnswerVO> getListAnswerByQuestionID(Integer qno) throws Exception {\n\t\treturn sqlSession.selectList(namespace+\".getListAnswerByQuestionID\",qno);\n\t}", "title": "" }, { "docid": "f9db9d7d958eb84c4572d4adc8756e66", "score": "0.56120706", "text": "public Degustacion[] findWhereIdConceptoEquals(int idConcepto) throws DegustacionDaoException;", "title": "" }, { "docid": "646060e14491ded05420646edbf8b65a", "score": "0.5556706", "text": "public List<Question> getQuestionsForCourse(Integer courseId) throws SQLException {\n try (val connection = getDb().getConnection();\n val stmt = connection.prepareStatement(\"SELECT * FROM \" + getTableName() + \" WHERE course_id=?\")) {\n stmt.setInt(1, courseId);\n val res = stmt.executeQuery();\n val results = new ArrayList<Question>();\n\n while (res.next()) {\n results.add(newData(res));\n }\n\n return results;\n }\n }", "title": "" }, { "docid": "aa4a588ac7ce0f6ef5934e811e0d3da6", "score": "0.55554456", "text": "List<PulseQuestionSet> getAllPulseQuestionSets();", "title": "" }, { "docid": "6defde7838c2cb9b74379eaaf12dcf30", "score": "0.5539783", "text": "public ArrayList<Question> getAllQuestions() {\n ArrayList<Question> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.TABLE_NAME, null);\n\n if (c.moveToFirst()) {\n do {\n Question question = new Question();\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_QUESTION)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.COLUMN_OPTION4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.COLUMN_ANSWER_NR)));\n question.setQuizKDID(c.getInt(c.getColumnIndex(QuestionsTable.COLUMN_KD_QUIZ)));\n questionList.add(question);\n\n }\n while (c.moveToNext());\n\n }\n c.close();\n return questionList;\n }", "title": "" }, { "docid": "7d4368703fc59d89c6e4cf256ead8fe1", "score": "0.5530194", "text": "@Override\n\tpublic List<Article> querylist(String id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9850b340c810a44fbd827cfeca74bd12", "score": "0.5525242", "text": "List<Post> getAnswersByUserId(long userId);", "title": "" }, { "docid": "0ac34971cb8898cb94cf8307f777acf1", "score": "0.5522975", "text": "public ArrayList<Question> getQuestions(){\n\t\tArrayList<Question> returnQuestions=new ArrayList<Question>();\n\t\t\n\t\tSQLiteDatabase db = getReadableDatabase();\n\t\tSQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\t\t\n\t\tString[] sqlSelect = { KEY_QUESTION,KEY_RANSWER,KEY_WANSWER1, KEY_WANSWER2};\n\t\tString sqlTables = QUESTIONS_TABLE;\n\t\tqb.setTables(sqlTables);\n\t\tCursor cursor = qb.query(db, sqlSelect, null,null, null, null, \"RANDOM() LIMIT 10\");\n\t\t\n\t\twhile(cursor.moveToNext()){\n\t\tString question=cursor.getString(cursor\n\t\t\t\t.getColumnIndexOrThrow(KEY_QUESTION));\n\t\tString rightAnswer=cursor.getString(cursor\n\t\t\t\t.getColumnIndexOrThrow(KEY_RANSWER));\n\t\tString wrongAnswerOne=cursor.getString(cursor\n\t\t\t\t.getColumnIndexOrThrow(KEY_WANSWER1));\n\t\tString wrongAnswerTwo=cursor.getString(cursor\n\t\t\t\t.getColumnIndexOrThrow(KEY_WANSWER2));\n\t\t\n\t\tQuestion resultQuestion=new Question(question, wrongAnswerOne, wrongAnswerTwo, rightAnswer);\n\t\treturnQuestions.add(resultQuestion);\n\t\t}\n\t\treturn returnQuestions;\n\n\t}", "title": "" }, { "docid": "ef0ced8aadbb4bb356195bd56438e9a6", "score": "0.55001223", "text": "List<Item> findByIdIn(long[] ls);", "title": "" }, { "docid": "df747c413e4ab7acc3534aaefd1b6837", "score": "0.54985934", "text": "List<String> getResponse(int questionId);", "title": "" }, { "docid": "866a2dc42cfd4bd24235065ae342d122", "score": "0.5495667", "text": "java.util.List<java.lang.Integer> getFromIdList();", "title": "" }, { "docid": "0d5010d35279006545e34950c64799f2", "score": "0.548937", "text": "List<Book> findOrderBookList(long id);", "title": "" }, { "docid": "e28d660c5f7cbed180699ee0d6ba69a8", "score": "0.5488403", "text": "Question selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "3e50f05ffc0766de24228ce8c11d630c", "score": "0.5481639", "text": "@Transactional(readOnly = true, propagation = Propagation.REQUIRED)\n @Override\n public List<SurveyQuestionDTO> getSurveyQuestions(Long surveyId) {\n JpaSurvey survey = jpaSurveyDao.getSurvey(surveyId);\n if (survey == null) {\n return null;\n }\n\n SurveyDTO surveyDTO = surveyMapper.toSurvey(survey);\n\n return Lists.newArrayList(surveyDTO.getSurveyQuestions());\n }", "title": "" }, { "docid": "8c11838d890a4e804b911d2c0fbf2774", "score": "0.547183", "text": "public List<Question> getQuestionsForTopic(Integer topicId) throws SQLException {\n try (val connection = getDb().getConnection();\n val stmt = connection.prepareStatement(\"SELECT * FROM \" + getTableName() + \" WHERE topic_id=?\")) {\n stmt.setInt(1, topicId);\n val res = stmt.executeQuery();\n val results = new ArrayList<Question>();\n\n while (res.next()) {\n results.add(newData(res));\n }\n\n return results;\n }\n }", "title": "" }, { "docid": "efc8de124de738ea83830f0caef57ff7", "score": "0.54647684", "text": "public List<Ans> findByAskId(Integer askId){\n List<Ans> anss = ansMapper.findByAskId(askId);\n for (Ans ans : anss) {\n addUserNameIntoAns(ans);\n addUserFace(ans);\n }\n return anss;\n }", "title": "" }, { "docid": "2f42009f2c34fb1c1e9ddcfde70aa068", "score": "0.5461539", "text": "@Override\n public Idiom findWithAllWord(Long id){\n return getDao().findWithAllWord(id);\n }", "title": "" }, { "docid": "925394c823f8b31317902eab4a8067da", "score": "0.5454066", "text": "public void getMatchedQuestions(String userId, QuestionListAdapter questionListAdapter) {\n List<Question> matchedQuestions = new ArrayList<>();\n Map<String, Question> existQuestions = new HashMap<>();\n new SingleUserReadHelper(\"Users/\" + userId).readData(new SingleUserReadHelper.DataStatus() {\n @Override\n public void dataIsLoaded(User user) {\n if (user == null)\n return;\n List<String> activeQuestions = user.getMasterQuestions();\n if (activeQuestions == null)\n return;\n checkValidQuestions(activeQuestions, matchedQuestions, questionListAdapter, existQuestions);\n }\n }, true);\n }", "title": "" }, { "docid": "ea34f55c79d34395a8752feb6960dea3", "score": "0.54502034", "text": "public ArrayList<String> getStudentAnswers(int quizID) \n {\n Connection con;\n Statement statement = null;\n ResultSet completedQuizSet = null;\n ArrayList<String> studentAnswers= new ArrayList<>();\n ArrayList<String> result= new ArrayList<>();\n ArrayList<Integer> questionNum= new ArrayList<>();\n try \n {\n con = DBConnection.createConnection();\n statement = con.createStatement();\n completedQuizSet = statement.executeQuery(\"SELECT answers, questionNum FROM given_answer WHERE completed_quizID= \" + quizID);\n while (completedQuizSet.next())\n {\n\n result.add(completedQuizSet.getString(\"answers\"));\n questionNum.add(completedQuizSet.getInt(\"questionNum\"));\n\n }\n for(int i=0;i<questionNum.size();i++)\n {\n for(int j=0;j<questionNum.size();j++)\n {\n if(i+1==questionNum.get(j))studentAnswers.add(result.get(j));\n }\n }\n con.close();\n return studentAnswers;\n } catch (SQLException e) {\n e.printStackTrace();\n \n }\n \n return null;\n }", "title": "" }, { "docid": "8ad494008035bd8d3dd3e5ad7f67d9fe", "score": "0.5415343", "text": "private List<Question> parseQuestionsList(){\n \treturn SysData.getQuestions();\n }", "title": "" }, { "docid": "b762740685e2b277bbd78e9e41d30fad", "score": "0.5414454", "text": "@Override\n\tpublic List<Question> search(Object cod) throws SQLException, Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6cfd6b2b1e716a8de839edaf404d663f", "score": "0.5408754", "text": "public static Collection<QuizQuestion> findQuestionsWithAnswer( int nIdQuiz, Plugin plugin )\r\n {\r\n return _dao.selectQuestionsListWithAnswer( nIdQuiz, plugin );\r\n }", "title": "" }, { "docid": "920f223693fb54b3b5db4c616588957f", "score": "0.5404619", "text": "public List<QuestionDTO> getAllQuestion(){\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tList<QuestionDTO> questionDTOs = new ArrayList<QuestionDTO>();\n\t\tQuestionDTO[] result= restTemplate.getForObject(URL_STRING +\"all\", QuestionDTO[].class);\n\t\tfor(QuestionDTO q:result) {\n\t\t\tquestionDTOs.add(q);\n\t\t}\n\t\t return questionDTOs;\n\t}", "title": "" }, { "docid": "bc24bd7592ad6a644b0c3ffed8b74e59", "score": "0.540161", "text": "@RequestMapping(method = RequestMethod.GET, path = \"/answer/all/{questionId}\",\n produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<List<AnswerDetailsResponse>> getAllAnswersToQuestion(\n @PathVariable(\"questionId\") String questionId,\n @RequestHeader(\"authorization\") String authorization)\n throws AuthorizationFailedException, InvalidQuestionException {\n String accessToken = AuthTokenParser.parseAuthToken(authorization);\n List<AnswerEntity> aList = answerService\n .getAllAnswersToQuestion(accessToken, questionId);\n List<AnswerDetailsResponse> answerDetailsResponseList = new ArrayList<>();\n aList.forEach((a) -> {\n AnswerDetailsResponse answerDetailsResponse = new AnswerDetailsResponse();\n answerDetailsResponse.setId(a.getUuid());\n answerDetailsResponse.setQuestionContent(a.getQuestion().getContent());\n answerDetailsResponse.setAnswerContent(a.getAns());\n answerDetailsResponseList.add(answerDetailsResponse);\n });\n return new ResponseEntity<>(answerDetailsResponseList, HttpStatus.OK);\n }", "title": "" }, { "docid": "a450ef8005fe463b7c79de347c450051", "score": "0.53989434", "text": "List<String> matchParagraphQuestionsAndAnswers();", "title": "" }, { "docid": "8e6d9cc408438d8aff10e8e117a15483", "score": "0.5394607", "text": "@Test\n\tpublic void testGetAnswersByQuestionLong() {\n \tassertNotNullOrEmpty(String.format(RESOURCE_MISSING_MESSAGE, \"Test Question Id.\"), TestConstants.STACK_OVERFLOW_TEST_QUESTION_IDS);\n\t\tList<Answer> answers = queryFactory.newAnswerApiQuery().withQuestionIds(getIds(TestConstants.STACK_OVERFLOW_TEST_QUESTION_IDS)).listByQuestions();\n\t\tassertNotNullOrEmpty(\"Answers should never be null.\", answers);\n\t}", "title": "" }, { "docid": "dd2084d260c0228e58d1110c76e348f9", "score": "0.5369004", "text": "@Override\n public List<ProductoPresentacion> findByIdsIn(List<Integer> ids) {\n return null;\n }", "title": "" }, { "docid": "83333cbcf0844d53b1ed45578065a20e", "score": "0.5343871", "text": "public QuestionDTO getQuestionByID(int id_ques) {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tQuestionDTO questionDTO = restTemplate.getForObject(URL_STRING + id_ques , QuestionDTO.class);\n\t\treturn questionDTO;\n\t}", "title": "" }, { "docid": "efacc369f2c06d788095e42fb33d67a0", "score": "0.5337175", "text": "List<Long> getExampleIds();", "title": "" }, { "docid": "8e8cf8f3df01f41767bb38e4ddb0bafe", "score": "0.53292716", "text": "public static List<Integer> getIdAreasList( )\n {\n return _dao.selectIdAreasList( _plugin );\n }", "title": "" }, { "docid": "31e753cb9b088f02b89447697880a9af", "score": "0.5328144", "text": "public List<Teacher> findBudgetbyProjectId(List<String> ids)\n {\n if(ids == null || ids.size() == 0)\n {\n return new ArrayList<Teacher>();\n }\n //String sql = \"select project_id, sum(budget) as budget from repr_proj_budget_data where project_id in(?) group by project_id\";\n StringBuffer sql = new StringBuffer();\n sql.append(\"select project_id, sum(budget) as budget from repr_proj_budget_data where project_id in( \");\n appendSqlForIn(ids, sql);\n sql.append(\") group by project_id\");\n List<Teacher> list = jdbcTemplate.query(sql.toString(), new PreparedStatementSetter(){\n\n @Override\n public void setValues(PreparedStatement ps) throws SQLException {\n for (int i = 0; i < ids.size(); i++) {\n ps.setString(i+1, ids.get(i));\n }\n }\n\n },new RowMapper<Teacher>(){\n\n @Override\n public Teacher mapRow(ResultSet rs, int rowNum)\n throws SQLException {\n Teacher pb = new Teacher();\n pb.setId(rs.getString(\"id\"));\n pb.setScore(rs.getFloat(\"score\"));\n return pb;\n }\n\n });\n\n return list;\n }", "title": "" }, { "docid": "fb55f4b14cd0f7ca3ac0f6ae3066b428", "score": "0.5318805", "text": "public List<Object[]> findPostAndAuthor(Long id);", "title": "" }, { "docid": "30ccf5898d9d759f4f78854629d52d21", "score": "0.5315941", "text": "@Override\r\n\tpublic List<QQ> findQQAll() throws Exception {\n\t\tList<QQ> list=qqMapper.findQQAll();\r\n\t\tif(!list.isEmpty()) {\r\n\t\t\treturn list;\r\n\t\t}else\r\n\t\t{\r\n\t\t\tthrow new Exception(\"poll_qq为空\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "736bc7fa076b9c3893663e193cfc5495", "score": "0.52841645", "text": "@Query(\"SELECT * FROM Module WHERE id IN (:Ids) ORDER BY name\")\n List<Module> loadAllByIds(int[] Ids);", "title": "" }, { "docid": "42b2d273c4abeec00a710aa1d6a5603c", "score": "0.528344", "text": "@Override\n\tpublic List<Question> listWaitQARecommend(Cond cond) {\n\t\tList<Long> list = null;\n\t\tList<Question> waitRecommendList = new ArrayList<Question>();\n\t\t// if (list == null || list.size() == 0) {\n\t\tlist = questionDao.listWaitQARecommendIDs(cond);\n\t\t// }else{\n\t\t//\n\t\t// }\n\t\tfor (Long qidLong : list) {\n\t\t\tlong qid = qidLong.longValue();\n\t\t\tif (recommendCache.isKeyInCache(qid)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tQuestion question = getQuestion(qid);\n\t\t\tif (\"1\".equals(question.getSatisfied())\n\t\t\t\t\t&& question.getBestAnswer() != null\n\t\t\t\t\t&& \"1\".equals(question.getVisible())) {\n\n\t\t\t\t// waitRecommendCache.put(new Element(qid, question));\n\t\t\t\twaitRecommendList.add(question);\n\t\t\t}\n\n\t\t\tif (waitRecommendList.size() == cond.getCount()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn waitRecommendList;\n\t}", "title": "" }, { "docid": "2a9f29dc1939cbacf79c05b94f1ec394", "score": "0.5281794", "text": "@Override\n\tpublic List<T> findById(Serializable id) {\n\t\treturn getSqlSession().selectList(ns+\".findById\", id);\n\t}", "title": "" }, { "docid": "7e08342e490f8c204ba972f381faf2ba", "score": "0.52779865", "text": "public interface QuestionResponsitory extends JpaCustomResponsitory<QuestionEntity,Integer>{\n\n @Query(\"select qe from QuestionEntity qe where qe.id in ?1\")\n Page<QuestionEntity> findRecommendByIdIn(Integer[] recommendId,Pageable pageable);\n\n @Query(\"select qe from QuestionEntity qe where qe.id in ?1 and qe.title like ?2\")\n Page<QuestionEntity> findRecommendByStrKeyIdIn(Integer[] recommendId,String q,Pageable pageable);\n\n @Query(\"select count(qe.id) from QuestionEntity qe where qe.portalTopicEntity.id = ?1\")\n int selectQueNumByTopicid(Integer id);\n\n @Query(\"select distinct qe from QuestionEntity qe where qe.id in ?1 and qe.title like ?2\")\n Page<QuestionEntity> findMyCollectionsListByStrKey(List<Integer> focusQuestionIds,String q,Pageable pageable);\n\n @Query(\"select qe from QuestionEntity qe where qe.topicId = ?1\")\n Page<QuestionEntity> findQuestionByTopicId(Integer id, Pageable pageable);\n\n //@Query(\"select q.id,q.title from QuestionEntity q where q.id in(select a.id from (select questionid as id, sum(qr.likeCount) from QuestionreplyEntity qr group by questionid order by 2 desc limit 0,2)a)\")\n\n //@Query(\"select q.id,q.Title from QuestionEntity q where q.id in(select a.id from (select count(1) ,questionid as id from QuestionreplyEntity group by questionid order by 1 desc limit 0,2)a)\")\n @Query(\"select ques from QuestionEntity ques where ques.userId =?1\")\n List<QuestionEntity> findQuestionByUserId(Integer userId);\n\n @Modifying\n @Query(\"update QuestionEntity q set q.topicId = ?1 where q.id in ?2\")\n void updateTopicidByIds(Integer topicId, List<Integer> questionIds);\n\n @Query(\"select q from QuestionEntity q where q.id in ?1\")\n List<QuestionEntity> findByIds(List<Integer> questionIds);\n\n @Query(\"select q from QuestionEntity q where q.id in ?1\")\n Page<QuestionEntity> findInviteQuestionByIds(List<Integer> questionIds,Pageable pageable);\n\n @Query(value = \"select * from (select userId as createBy, null as title, applyType as type, reviewTime as time FROM lg_portal_real_name_info where reviewStatus = 1 UNION \\n\" +\n \"SELECT createBy, title, 4 as type, publishTime as time from lg_portal_common_page_detail where status = 1 UNION \\n\" +\n \"select UserId as createBy, title, 5 as type, createTime as time from question) as t1 order by time DESC LIMIT 0,12\", nativeQuery = true)\n Object[] getOddJobNews();\n\n @Modifying\n @Query(\"delete from QuestionEntity q where q.id in ?1\")\n void customDelete(Integer id);\n\n @Query(value = \"SELECT * FROM question WHERE userId = ?1 AND CreateTime >= ?2\",nativeQuery = true)\n List<QuestionEntity> findQuestionByUserIdAndTime(Integer userId, Date createTime );\n}", "title": "" }, { "docid": "d9231c6cd5687e1b3aee18269049522b", "score": "0.5268692", "text": "List<Survey> selectByExample(SurveyExample example);", "title": "" }, { "docid": "89c22e51eca9495e834da22a9f469ffa", "score": "0.5261349", "text": "List<Integer> findCheckgroupIdsBySetmealId(int id);", "title": "" }, { "docid": "cf5e9311393f835ff8751ae0fb0ce7c8", "score": "0.5261209", "text": "public TrainingProgram[] findWhereIdCodeEquals(String idCode) throws TrainingProgramDaoException;", "title": "" }, { "docid": "251ddd9b970ca7b4408ad99b49542da9", "score": "0.5248088", "text": "List<Chapter> findChapters(int syllabusId);", "title": "" }, { "docid": "c22d19a3ccb740a3c91a083dba8e0cc4", "score": "0.523262", "text": "public List<Answers> listAllAnswers() {\n return repoAnswers.findAll();\n }", "title": "" }, { "docid": "2e5d68d161ef4aed7b7fb9fea88ff2df", "score": "0.5231873", "text": "public Quiz getQuestionByID(int id) throws Exception {\n DBContext db = null;\n Connection con = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT * FROM question WHERE id=?\";\n try {\n db = new DBContext();\n con = db.getConnection();\n ps = con.prepareStatement(sql);\n ps.setInt(1, id);\n rs = ps.executeQuery();\n while (rs.next()) {\n Quiz quiz = new Quiz();\n quiz.setId(rs.getInt(\"id\"));\n quiz.setQuestion(rs.getString(\"question\"));\n List<String> options = new ArrayList<>();\n options.add(rs.getString(\"option1\"));\n options.add(rs.getString(\"option2\"));\n options.add(rs.getString(\"option3\"));\n options.add(rs.getString(\"option4\"));\n quiz.setOption(options);\n String[] answers = rs.getString(\"answers\").split(\"\");\n quiz.setAnswers(answers);\n quiz.setUserID(rs.getInt(\"userID\"));\n quiz.setCreatedDate(rs.getDate(\"createdDate\"));\n return quiz;\n }\n } catch (Exception e) {\n throw e;\n } finally {\n db.closeConnection(con, ps, rs);\n }\n return null;\n }", "title": "" }, { "docid": "ddaf28772545a70918749f6a1c5724c1", "score": "0.5230178", "text": "public int[][] getIDs(Graph query, List<IGraphResult> input,\n\t\t\tint[] orderedTrueAnswer);", "title": "" }, { "docid": "463e4db00c8859a553abff5ebdad3b02", "score": "0.5230119", "text": "public void removeQuestions(int id){\n\t\t this.sysData.removeQuestion(id);\n\t}", "title": "" }, { "docid": "4b9e7a3a8d284e897b176011da2a061b", "score": "0.5213721", "text": "List<ConceptMap> findAllBytopic(List<Topic> temp);", "title": "" }, { "docid": "f767ce5dc142399542d46cde6e24c0da", "score": "0.5207772", "text": "public abstract ArrayList<String> getStatementList(String id) throws NotFoundException;", "title": "" }, { "docid": "8d74c0070d51c6afc90a73a846f6a320", "score": "0.52024627", "text": "List<T> find();", "title": "" }, { "docid": "d8481bf07766794b3fe0d37ed0419fac", "score": "0.519935", "text": "Iterable<DParticipant> queryByRaceClassId(java.lang.Long id);", "title": "" }, { "docid": "d4c3bbad7745c5b25f16b8a8672b7537", "score": "0.51986694", "text": "public void initAllQuesitons(){\n\t\tallQuestions.add(new Question(\"Gdzie chciałbyś pojechać?\", new String[]{\"Polska\",\"Za granice\"}, Question.SINGLE));\t//0 -\n\t\tallQuestions.add(new Question(\"Na jak długo chciałbyś pojechać?\", new String[]{\"Weekend\", \"Tydzień\", \"Dwa tygodnie\"}, Question.SINGLE)); //1 -\n\t\tallQuestions.add(new Question(\"W jakiej cenie chciałbyś otrzymać ofertę?\", new String[]{\"ponizej 2500\",\"powyzej 2500\"}, Question.SINGLE)); //2 -\n\t\tallQuestions.add(new Question(\"Co chciałbyś robic?\", new String[]{\"Zwiedzac\", \"Odpoczywac\", \"Uprawiac sport\"}, Question.MULTIPLE));//3 -\n\t\tallQuestions.add(new Question(\"Chcesz zwiedzać z przewodnikiem czy bez?\", new String[]{\"Z przewodnikiem\",\"Bez przewodnika\"}, Question.SINGLE)); //4\n\t\tallQuestions.add(new Question(\"Gdzie chciałbyś odpocząć?\", new String[]{\"Nad morzem\",\"W gorach\"}, Question.SINGLE));//5 -\n\t\tallQuestions.add(new Question(\"Jaka pora roku Cie interesuje?\", new String[]{\"Latem\",\"Zimą\"}, Question.SINGLE));//6 \n\t\tallQuestions.add(new Question(\"Co dokładnie chciałbyś zobaczyć?\", new String[]{\"Parki karjobrazowe\",\"Architekture sakralna\",\"Muzea\"}, Question.MULTIPLE));//7 -\n\t\tallQuestions.add(new Question(\"Wybierz kontynent, gdzie chciałbyś pojechać?\", new String[]{\"Afryka\",\"Ameryka\", \"Europa\"}, Question.SINGLE));//8 -\n\t\tallQuestions.add(new Question(\"Jaki sport chciałbyś uprawiać?\", new String[]{\"Jazda na nartach\", \"Plywanie\", \"Wspinaczka\"}, Question.SINGLE));//9 \n\t\tallQuestions.add(new Question(\"Jaką plażę wolisz?\", new String[]{\"Piaszczystą\",\"Kamienistą\"}, Question.SINGLE));//10 -\n\t\tallQuestions.add(new Question(\"W jakie góry chcesz pojechać?\", new String[]{\"Karpaty\",\"Gory Swietokrzyskie\",\"Sudety\"}, Question.SINGLE));//11 -\n\t\tallQuestions.add(new Question(\"Do jakiego Państwa w Ameryce chcesz pojechać?\", new String[]{\"Brazylia\",\"Argentyna\", \"Stany Zjednoczone\"}, Question.SINGLE));//12 -\n\t\tallQuestions.add(new Question(\"W jakie góry chcesz pojechać?\", new String[]{\"Kaukaz\",\"Alpy\"}, Question.SINGLE));//13\n\t\tallQuestions.add(new Question(\"Gdzie chcesz mieszkać w trakcie pobytu?\", new String[]{\"W hotelu\",\"Gospodarsto agroturystyczne\", \"Pod namiotem\"}, Question.SINGLE));//14 -\n\t\tallQuestions.add(new Question(\"Nad jakim morzem chcesz odpocząć?\", new String[]{\"Nad morzem Śródziemnym\",\"Nad morzem Adriatyckim\"}, Question.SINGLE));//15\n\t\tallQuestions.add(new Question(\"Jakie szlaki górskie Cię interesują?\", new String[]{\"Trudne\",\"Łatwe\"}, Question.SINGLE));//16 -\n\t\tallQuestions.add(new Question(\"Jakie miasto w Stanach Zjednoczonych chcesz najbardziej zobaczyć?\", new String[]{\"Nowy York\",\"Los Angeles\", \"Waszyngton\"}, Question.SINGLE));//17 -\n\t\tallQuestions.add(new Question(\"Jakie państwo Afryki wolisz?\", new String[]{\"Tunezja\",\"Egipt\"}, Question.SINGLE));//18 -\n\t\tallQuestions.add(new Question(\"Jakie pansto chcialbys najbardziej zobaczyc?\", new String[]{\"Grecja\",\"Norwegia\", \"Hiszpania\", \"Irlandia\"}, Question.SINGLE));//19 -\n\t}", "title": "" }, { "docid": "39629d334e8f230b0e775d0166814c3f", "score": "0.5194351", "text": "public Question(int id, List<ModelsAndAnswer> answerModels) {\r\n\t\tthis.id = id;\r\n\t\tthis.answerModels = new ArrayList<ModelsAndAnswer>(answerModels.size());\r\n\t\tfor (ModelsAndAnswer ma : answerModels)\r\n\t\t\taddAnswerModels(ma);\r\n\t}", "title": "" }, { "docid": "273731a5d556f170fa22a0048dfd4f0a", "score": "0.51930684", "text": "public void getQuestionsAnswers() {\n qm = QandADatabase.getQuestionsArrayList();\n am = QandADatabase.getAnswersArrayList();\n }", "title": "" }, { "docid": "f4210f43626e88d415375f595c101592", "score": "0.5180525", "text": "java.util.List<java.lang.Integer> getTalentIdList();", "title": "" }, { "docid": "99da088af8d2d18f4468b746b9ccc525", "score": "0.51802254", "text": "public void getQuestionById(int questionId) {\n\n Retrofit retrofit = ApiRetrofitClass.getNewRetrofit(CONSTANTS.CONTEST_RESPONSE_URL);\n ContestService contestService = retrofit.create(ContestService.class);\n contestService.getQuestionById(questionId)\n .enqueue(new Callback<QuestionDefinition>() {\n @Override\n public void onResponse(Call<QuestionDefinition> call, Response<QuestionDefinition> response) {\n\n }\n\n @Override\n public void onFailure(Call<QuestionDefinition> call, Throwable t) {\n\n }\n });\n }", "title": "" }, { "docid": "53c0aa22390a07c0e62717952651fb19", "score": "0.5175936", "text": "List<QueryTerm> getAnswerTerms();", "title": "" }, { "docid": "4902f01177d8b90d580b246af486b3c9", "score": "0.51575774", "text": "@GET\n\t@Path(\"/user-{id:[0-9][0-9]*}\")\n\t@Produces(\"text/xml\")\n\tpublic List<SurveyItem> lookupSurveyByUserId(@PathParam(\"id\") long id) {\n\t\tfinal List<Survey> results = sm.getAvailableSurveys(um.getUser(id));\n\t\tList<SurveyItem> items = new ArrayList<SurveyItem>();\n\t\tfor (Survey s : results) {\n\t\t\titems.add(new SurveyItem(s));\n\t\t}\n\t\treturn items;\n\t}", "title": "" }, { "docid": "e1dd307d3d1a857336fe0a9740991e86", "score": "0.5157294", "text": "public List<FAQ> getFAQs();", "title": "" }, { "docid": "6d7fe118363c14136a9eccc913ec7bbf", "score": "0.51555413", "text": "public synchronized List<Config> findAllById(String idToFind) {\n List<Config> returnedList = new ArrayList<Config>();\n if (idToFind != null) {\n for (Config config: this) {\n if (config.getId().compareTo(idToFind)==0) {\n returnedList.add(config);\n }\n }\n }\n return returnedList;\n }", "title": "" }, { "docid": "ac72a22d4e0cae4fe5f12ed2caf3c014", "score": "0.5147799", "text": "List<Paper> findAllByPaperIdIn(List<Long> paperIdList);", "title": "" }, { "docid": "175efd5961edfef6c8e1c358d241d4bd", "score": "0.5144946", "text": "@RequestMapping(value = \"/{id}/questions\", method = RequestMethod.GET)\n\tvoid getAllQuestionsToTest(){\n\t}", "title": "" }, { "docid": "1520d4a0d7832d4f1f8f7edb6b69bb6d", "score": "0.5143217", "text": "List<Quest38> selectByExample(Quest38Example example);", "title": "" }, { "docid": "128bb40ce737e1487ee71d7ca479d9bf", "score": "0.51366895", "text": "@Override\n\tpublic List<OneSentence> findTestRandom(int id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9dc841b0686a0fe922cbb8f5938d51f7", "score": "0.513339", "text": "List<Object[]> findPersonAddressAndPersonPhone(int idPerson);", "title": "" }, { "docid": "3e07615fe72f8b1d8567946e468cfc76", "score": "0.51298696", "text": "List<EvaluationQuestion> getEvaluationQuestionByTemplateId(int evaluationTemplateId);", "title": "" }, { "docid": "b15d61bb881937a8839761ff6cbf572c", "score": "0.51293355", "text": "@Override\n public List<Questionnaires> readAll() {\n return this.questionnairesRepository.findAll();\n }", "title": "" }, { "docid": "fd8947804c3dea219f0e72fb0c091e20", "score": "0.51260316", "text": "Question selectByPrimaryKey(String mach);", "title": "" }, { "docid": "4e6516dbb3f930017d0edb3b11442baf", "score": "0.51181465", "text": "public ListQuestions findByCode(Long code) {\n\t\tListQuestions saveList = listQuestionsRepository.findOne(code);\n\t\tif (saveList == null) {\n\t\t\tthrow new EmptyResultDataAccessException(1);\n\t\t}\n\t\treturn saveList;\n\t}", "title": "" }, { "docid": "121311864d3cb0d74a00c4ec39f4a878", "score": "0.5114708", "text": "@Override\r\n\tpublic CommonResult<ArrayList<GameQuestion>> queryListObj(String... args) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "82004c6ca3cb32392080e5acccc9f269", "score": "0.51142687", "text": "public ObservableList<Question> getMcqQuestions() {\n ObservableList<Question> mcqQuestions = FXCollections.observableArrayList();\n for (Question q : questions) {\n if (q instanceof McqQuestion) {\n mcqQuestions.add(q);\n }\n }\n return mcqQuestions;\n }", "title": "" }, { "docid": "256baf46aae110b45872bfae4d682d84", "score": "0.511279", "text": "java.util.List<java.lang.Long> getIdList();", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "e7f89224a27ce7c426b7fded6e304d84", "score": "0.0", "text": "@Override\n\t\t\t\t\tpublic void onError(Call call, Exception e) {\n\t\t\t\t\t\tdismissDialog();\n\t\t\t\t\t\tToastMaker.showShortToast(\"请检查网络\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6491197", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.64641994", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "5697bde38a38a77f3a0bd238fb737c11", "score": "0.6364729", "text": "@Override\n public int getDochody() {\n return 0;\n }", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "85b25c664df01fd0b02e103c9bbc8372", "score": "0.62679124", "text": "@Override\r\n\tpublic void arreter() {\n\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "a56ce606ea5cc945279ea9725eed5272", "score": "0.6159551", "text": "@Override\n\tpublic void alearga() {\n\t\t\n\t}", "title": "" }, { "docid": "07779d53803dc6875c03bdee2e1afeb5", "score": "0.6132161", "text": "@Override\n public void ordenar() {\n }", "title": "" }, { "docid": "b9936bc3db0ac97ae50d7643a27379b4", "score": "0.61193323", "text": "@Override\n\tpublic void intercourse() {\n\n\t}", "title": "" }, { "docid": "35e5940d13f06d1f0d6a21cf2739c70a", "score": "0.61117256", "text": "public function() {}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.603307", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "829bb71476cb87bb452950e0e97007e6", "score": "0.6019835", "text": "@Override\n\tprotected void dataAcquisition() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "8d2080edd6605bcfb742d32fd1a0091e", "score": "0.59731764", "text": "@Override\n\tpublic void ilerle() {\n\n\t}", "title": "" }, { "docid": "ee0f5f270c3e0eea9f37c3d1e42b1161", "score": "0.5962932", "text": "public void mo12736g() {\n }", "title": "" }, { "docid": "2aee513697daff4bfe2636e5d0fa9a30", "score": "0.5960253", "text": "@Override\n\tpublic void bewegeNachUnten() {\n\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "cb1c09afbbe0ad234f211aa36d586f4e", "score": "0.59103566", "text": "@Override\r\n\t\tprotected void update() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5900665", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "15c9cae08ae101b3a04f9ff3b519ae04", "score": "0.5882791", "text": "public void mo8316a() {\n }", "title": "" }, { "docid": "b7288a7694313b8a4d39355a49521e40", "score": "0.5882", "text": "@Override\r\n\tpublic void atras() {\n\t\tsuper.atras();\r\n\t}", "title": "" }, { "docid": "4077955e82cce22d988577ca0a7978fc", "score": "0.5878152", "text": "@Override\n\tpublic void dormir() {\n\n\t}", "title": "" }, { "docid": "833ba2f1d8822ebbb0dddd05020c0c08", "score": "0.58703625", "text": "@Override\n\tpublic void attaque() {\n\t}", "title": "" }, { "docid": "3e9c4de332bfb94422f785054fa63ada", "score": "0.58645976", "text": "@Override\r\n\tpublic void limpiar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.58598334", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "8e75ffe6faa994ed57c6ffb8b56296fe", "score": "0.5852322", "text": "public void xiuproof() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "39da14b1f6e1adac9c0b748811e78b68", "score": "0.58369607", "text": "public void mo12645zl() {\n }", "title": "" }, { "docid": "d87000313f7b5075ec45a2b0ee7df323", "score": "0.58221865", "text": "@Override\r\n\tprotected void location() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "4e86f604c407a96c75671f663064c24b", "score": "0.580598", "text": "public void mo8319b() {\n }", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5799415", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.57941025", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "b429c7e890f65a814ea31e6014003667", "score": "0.5782731", "text": "@Override\n public int describeContents(){\n return 0;\n }", "title": "" }, { "docid": "680a0d25967a28e3b7a6643d55703105", "score": "0.57812274", "text": "public void contaaordem() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b901583faeb614d4d67271470c31d36c", "score": "0.5750588", "text": "@Override\n\tpublic void sare() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.574232", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fa729e301b181004ac22fa6a16b19c1b", "score": "0.57202786", "text": "@Override\n public void init()\n {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0b812af084ac0cb033ab904c49294fed", "score": "0.5685316", "text": "public void mo25703a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5684768", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "dc4ad5d6a5fcdc294379036f367a401b", "score": "0.5684058", "text": "@Override\n public void frenar() {\n\n }", "title": "" }, { "docid": "c0f925eed1b58e6d19fd99e8a3e26d34", "score": "0.5677166", "text": "@Override\r\n public boolean sallittu() {\r\n return false;\r\n }", "title": "" }, { "docid": "322e19fcfb5cfbd6ffce194d7e04df05", "score": "0.5665703", "text": "@Override\n\t\t\tprotected void reInitial() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fdeab6ca2d3dd91b347a8cc2f5c862c2", "score": "0.56656164", "text": "private static void generateNew() {\n\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "d6d75432f50fcf22c3834bdfb660cd26", "score": "0.5641307", "text": "@Override\n public void use(){\n \n }", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.563811", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "91e98bbf9cac4e38e126d6b5c2a2ecac", "score": "0.5624502", "text": "@Override\n\tprotected void setupData() {\n\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.5618833", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "290b69adc6f043c0f6d04c952f144b7d", "score": "0.56084245", "text": "@Override\n\tpublic void ImplementRule()\n\t{\n\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "9fa93751aa3acc716354baf4c9c4b1ff", "score": "0.5604908", "text": "@Override\n\tpublic void NoOftems() {\n\n\t}", "title": "" }, { "docid": "dce285146917b7d4be86c4f1ade0646e", "score": "0.5600153", "text": "@Override\r\n protected void onLoad() {}", "title": "" }, { "docid": "2698e2df29a24b9998ee11e61625c8a0", "score": "0.5599527", "text": "private void method() {\n\t\t\t}", "title": "" }, { "docid": "3767348a298bdbc42a516908dfac0022", "score": "0.5598486", "text": "public final void mo34050B() {\n }", "title": "" }, { "docid": "8436022dbd33301a64633011031cfa7b", "score": "0.55980015", "text": "protected void filtrarHoyDDPF() {\n\t\t\r\n\t}", "title": "" } ]
65c4338f331dbb84315d737e48b7fec3
repeated .ReplicaInfo replicas = 4;
[ { "docid": "debdce94da1010db474f2a55150b1498", "score": "0.0", "text": "public Builder setReplicas(\n int index, com.alibaba.maxgraph.proto.ReplicaInfo.Builder builderForValue) {\n if (replicasBuilder_ == null) {\n ensureReplicasIsMutable();\n replicas_.set(index, builderForValue.build());\n onChanged();\n } else {\n replicasBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" } ]
[ { "docid": "cdbc40f33cf4b4bf13308d2fdf39514f", "score": "0.6815174", "text": "public int getReplicas() {\n return replicas;\n }", "title": "" }, { "docid": "5bbef3b8ff7d9966254ee2c368106b79", "score": "0.66252726", "text": "@FameProperty(name = \"replicas\", derived = true)\n public Replica getReplicas() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "title": "" }, { "docid": "2c48bfc31ffd4b23e51004e2d37bb9d0", "score": "0.6271293", "text": "public java.util.List<? extends com.alibaba.maxgraph.proto.ReplicaInfoOrBuilder> \n getReplicasOrBuilderList() {\n return replicas_;\n }", "title": "" }, { "docid": "aeef1198c1b0cab063d46a9bf99eb83e", "score": "0.6264434", "text": "@java.lang.Override\n public int getMaxReplicaCount() {\n return maxReplicaCount_;\n }", "title": "" }, { "docid": "cae1ebc63060a4e59727b38bcf1e8271", "score": "0.6244029", "text": "public int getReplicasCount() {\n return replicas_.size();\n }", "title": "" }, { "docid": "58fc4a119641a5a29c99af2499ef2061", "score": "0.6233173", "text": "public java.util.List<com.alibaba.maxgraph.proto.ReplicaInfo> getReplicasList() {\n return replicas_;\n }", "title": "" }, { "docid": "47cad1aec2d4c5660c739814220541cd", "score": "0.62203443", "text": "public void setReplicas(String replicas)\r\n\t{\r\n\t\tString lst[] = replicas.trim().split(\"\\\\s*\\\\,\\\\s*\");\r\n\t\t\r\n\t\tfor(String item : lst)\r\n\t\t{\r\n\t\t\tMatcher matcher = HOST_PORT.matcher(item);\r\n\t\t\t\r\n\t\t\tif(!matcher.matches())\r\n\t\t\t{\r\n\t\t\t\tthrow new InvalidArgumentException(\"Invalid mongo host-port combination specified. It should be of format host:port. Specified Replicas: {}\", replicas);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.serverAddresses.add(new ServerAddress(matcher.group(1), Integer.parseInt(matcher.group(2))));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9aa4e1365e4329af329f8ca7e2be0711", "score": "0.62165713", "text": "public com.alibaba.maxgraph.proto.ReplicaInfo.Builder addReplicasBuilder() {\n return getReplicasFieldBuilder().addBuilder(\n com.alibaba.maxgraph.proto.ReplicaInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "027839b911aefbef39a358a33f54abda", "score": "0.61976635", "text": "public interface ReplicaService {\n\n\t/**\n\t * Try to connect to other servers by one connection per server, to sync data between each other.\n\t *\n\t * @param addresses the server addresses list\n\t */\n\tpublic void connectToOtherServers(InetSocketAddress[] addresses);\n\n}", "title": "" }, { "docid": "79950d8de8e256990eb625571897e7a9", "score": "0.6191123", "text": "int getMaxNumReplicas();", "title": "" }, { "docid": "242d3949591a4c7d2ad211b7a6dd71e1", "score": "0.6162399", "text": "public com.alibaba.maxgraph.proto.ReplicaInfoOrBuilder getReplicasOrBuilder(\n int index) {\n return replicas_.get(index);\n }", "title": "" }, { "docid": "ad802e2e5707c74e9f92e08726147624", "score": "0.61255413", "text": "public com.alibaba.maxgraph.proto.ReplicaInfo getReplicas(int index) {\n return replicas_.get(index);\n }", "title": "" }, { "docid": "7b379007bde961a972988ec9ec8fa985", "score": "0.60962784", "text": "@java.lang.Override\n public int getMaxReplicaCount() {\n return maxReplicaCount_;\n }", "title": "" }, { "docid": "7085705c3993b94d15342d71b474846e", "score": "0.6082064", "text": "@java.lang.Override\n public int getStartingReplicaCount() {\n return startingReplicaCount_;\n }", "title": "" }, { "docid": "f8fa8efc46605f4b6446e4b86e5a79bf", "score": "0.6077433", "text": "int getMinNumReplicas();", "title": "" }, { "docid": "bb1645911d6a1ea82b8fe672f68fe885", "score": "0.60718733", "text": "java.lang.String getNewReplicaId();", "title": "" }, { "docid": "600dd6bc4d58a97c88d96a019edc0379", "score": "0.60584724", "text": "public Builder addReplicas(com.alibaba.maxgraph.proto.ReplicaInfo value) {\n if (replicasBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureReplicasIsMutable();\n replicas_.add(value);\n onChanged();\n } else {\n replicasBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "115eb2fa0e5bf6ed21ed5593792b6281", "score": "0.6042217", "text": "public Builder replicas(int replicas) {\n this.replicas = validateNumberOfReplicas(replicas);\n return this;\n }", "title": "" }, { "docid": "27d65aeb454f41963e27924cd4de1dac", "score": "0.60373986", "text": "@Override\n protected int getReplicationFactor() {\n return 3;\n }", "title": "" }, { "docid": "3a2c050cc628f3c4e458484bfc7655ce", "score": "0.5894079", "text": "@java.lang.Override\n public int getStartingReplicaCount() {\n return startingReplicaCount_;\n }", "title": "" }, { "docid": "2a3ec25cde6ceac1d890346f7eaeac31", "score": "0.58916754", "text": "public java.util.List<? extends com.alibaba.maxgraph.proto.ReplicaInfoOrBuilder> \n getReplicasOrBuilderList() {\n if (replicasBuilder_ != null) {\n return replicasBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(replicas_);\n }\n }", "title": "" }, { "docid": "9b0bf4b9fd889683e27953f7681acad1", "score": "0.5876451", "text": "public Builder setMaxReplicaCount(int value) {\n\n maxReplicaCount_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9b53ca87baa22c458156fae96036f8c7", "score": "0.58557284", "text": "int getReplicaTypeValue();", "title": "" }, { "docid": "b73dc39a72ddba90c0d88513efac6c7c", "score": "0.5807278", "text": "public Builder setStartingReplicaCount(int value) {\n\n startingReplicaCount_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a96ecc7ed8f590cec89c95e6768d854c", "score": "0.58037394", "text": "public Builder addAllReplicas(\n java.lang.Iterable<? extends com.alibaba.maxgraph.proto.ReplicaInfo> values) {\n if (replicasBuilder_ == null) {\n ensureReplicasIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, replicas_);\n onChanged();\n } else {\n replicasBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "3e7150f7d609a6c390f573420175c10a", "score": "0.5742709", "text": "public com.alibaba.maxgraph.proto.ReplicaInfoOrBuilder getReplicasOrBuilder(\n int index) {\n if (replicasBuilder_ == null) {\n return replicas_.get(index); } else {\n return replicasBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "c8eaed2a35faa80883451f6d61f3e233", "score": "0.5697082", "text": "public com.alibaba.maxgraph.proto.ReplicaInfo.Builder addReplicasBuilder(\n int index) {\n return getReplicasFieldBuilder().addBuilder(\n index, com.alibaba.maxgraph.proto.ReplicaInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "ed11cfa98c7e897eefa59a4032a8e978", "score": "0.5691839", "text": "public Builder setReplicas(\n int index, com.alibaba.maxgraph.proto.ReplicaInfo value) {\n if (replicasBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureReplicasIsMutable();\n replicas_.set(index, value);\n onChanged();\n } else {\n replicasBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "bb80bc149f66c03dcf3927ce1d74a9e6", "score": "0.5679075", "text": "public Builder addReplicas(\n int index, com.alibaba.maxgraph.proto.ReplicaInfo value) {\n if (replicasBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureReplicasIsMutable();\n replicas_.add(index, value);\n onChanged();\n } else {\n replicasBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "10ef27239acb3ce20d19c1f03119232f", "score": "0.5642332", "text": "yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType getReplicaType();", "title": "" }, { "docid": "2aeb832d997521cd7df162d155b86f8a", "score": "0.5639636", "text": "com.google.protobuf.ByteString\n getNewReplicaIdBytes();", "title": "" }, { "docid": "9c47351c978ff206e5142cfb11f046d7", "score": "0.56301165", "text": "public KetchReplica getReplica() {\n\t\treturn replica;\n\t}", "title": "" }, { "docid": "80411c0568445486b3275306f33c43a2", "score": "0.5615467", "text": "private Collection<Replica> getReplicas(ClusterState cs, String coll, String slice) {\n DocCollection c = cs.getCollectionOrNull(coll);\n if (c == null) return emptyList();\n Slice s = c.getSlice(slice);\n if (s == null) return emptyList();\n return s.getReplicas();\n }", "title": "" }, { "docid": "8e3d35200ae7c29fa34636cce45bb8d4", "score": "0.56048167", "text": "protected void countReplicas() throws IOException {\n\t\tString baseTprName = RemdProperties.get(RemdProperties.REMD_TPR_NAME);\n\t\treplicaCount = 0;\n\t\tboolean oneMorePlease = true;\n\t\tDirectoryEntry[] files = portlet.getXfsBridge().listEntries(absoluteResultPath);\n\t\twhile (oneMorePlease) {\n\t\t\toneMorePlease = false;\n\t\t\tfor (DirectoryEntry file : files) {\n\t\t\t\tif (!file.getName().startsWith(\".\")) {\n\t\t\t\t\tif ((filesAlreadyRenamed && file.getName().equals(cut(baseTprName) + \".tpr_\" + replicaCount))\n\t\t\t\t\t\t\t|| (file.getName().equals(baseTprName + replicaCount + \".tpr\"))) {\n\t\t\t\t\t\treplicaCount++;\n\t\t\t\t\t\toneMorePlease = true;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "dd358f17c2916dbd95e65e1d7bdb146c", "score": "0.5563588", "text": "public com.alibaba.maxgraph.proto.ReplicaInfo.Builder getReplicasBuilder(\n int index) {\n return getReplicasFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "fbdd0f7a870ddea992fb889c682d4a54", "score": "0.5531909", "text": "public com.alibaba.maxgraph.proto.ReplicaInfo getReplicas(int index) {\n if (replicasBuilder_ == null) {\n return replicas_.get(index);\n } else {\n return replicasBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "dc65e554c93adf9218c1d86f51a303c4", "score": "0.55039907", "text": "public int getQuorum();", "title": "" }, { "docid": "0d97d2335673c1f036e0819315aadfd7", "score": "0.5501704", "text": "@Test\n public void testRepeatableRuns() throws UnknownHostException {\n PartitionedRegionLoadModel model = new PartitionedRegionLoadModel(bucketOperator, 0, 113,\n getAddressComparor(false), Collections.emptySet(), partitionedRegion);\n InternalDistributedMember member1 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 22893);\n InternalDistributedMember member2 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 25655);\n InternalDistributedMember member3 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 22959);\n InternalDistributedMember member4 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 22984);\n InternalDistributedMember member5 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 28609);\n InternalDistributedMember member6 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 22911);\n InternalDistributedMember member7 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 29562);\n PartitionMemberInfoImpl details1 = buildDetails(member1, 50 * 1024 * 1024, 50 * 1024 * 1024,\n new long[] {23706, 0, 23347, 23344, 0, 0, 0, 11386, 0, 0, 0, 0, 0, 10338, 0, 9078, 6413,\n 10411, 5297, 1226, 0, 2594, 2523, 0, 1297, 0, 3891, 2523, 0, 0, 2594, 0, 1297, 0, 1297,\n 2594, 1, 0, 10375, 5188, 9078, 0, 1297, 0, 0, 1226, 1, 1, 0, 0, 1297, 11672, 0, 0, 0, 0,\n 7782, 0, 11673, 0, 2594, 1, 0, 2593, 3891, 1, 0, 7711, 7710, 2594, 0, 6485, 0, 1, 7711,\n 6485, 7711, 3891, 1297, 0, 10303, 2594, 3820, 0, 2523, 3999, 0, 1, 0, 2522, 1, 5188,\n 5188, 0, 2594, 3891, 2523, 2594, 0, 1297, 1, 1, 1226, 0, 1297, 0, 3891, 1226, 2522,\n 11601, 10376, 0, 2594},\n new long[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0});\n PartitionMemberInfoImpl details2 = buildDetails(member2, 50 * 1024 * 1024, 50 * 1024 * 1024,\n new long[] {0, 24674, 0, 23344, 0, 19312, 19421, 11386, 7889, 0, 0, 6413, 12933, 10338,\n 18088, 9078, 0, 0, 0, 1226, 0, 2594, 0, 0, 0, 2594, 0, 2523, 0, 1, 0, 0, 1297, 0, 0, 0,\n 0, 2594, 0, 5188, 9078, 0, 0, 0, 1, 1226, 1, 0, 1297, 5187, 0, 0, 0, 0, 0, 1, 0, 11602,\n 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7710, 0, 10304, 6485, 0, 0, 0, 0, 0, 3891, 0, 0, 10303, 0,\n 0, 1, 2523, 3999, 0, 0, 1, 0, 0, 5188, 0, 5116, 2594, 3891, 2523, 0, 2522, 1297, 1, 0,\n 0, 1297, 0, 1297, 3891, 1226, 2522, 0, 10376, 0, 0},\n new long[] {0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0});\n PartitionMemberInfoImpl details3 = buildDetails(member3, 50 * 1024 * 1024, 50 * 1024 * 1024,\n new long[] {23706, 24674, 0, 0, 20901, 0, 19421, 0, 7889, 11708, 0, 0, 12933, 10338, 18088,\n 0, 6413, 10411, 5297, 0, 7782, 2594, 0, 1297, 0, 2594, 3891, 0, 2523, 1, 0, 2523, 1297,\n 1297, 1297, 0, 1, 2594, 0, 0, 0, 1297, 0, 1297, 1, 0, 0, 1, 1297, 5187, 0, 0, 13007, 0,\n 11672, 0, 7782, 11602, 0, 0, 0, 0, 2594, 2593, 3891, 1, 7782, 7711, 0, 0, 10304, 0,\n 7711, 0, 7711, 6485, 7711, 0, 1297, 1297, 10303, 2594, 3820, 1, 2523, 0, 1, 0, 1, 2522,\n 1, 5188, 5188, 5116, 2594, 3891, 2523, 2594, 0, 0, 0, 1, 1226, 1297, 1297, 1297, 0, 0,\n 2522, 0, 0, 2523, 0},\n new long[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0,\n 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0});\n PartitionMemberInfoImpl details4 = buildDetails(member4, 50 * 1024 * 1024, 50 * 1024 * 1024,\n new long[] {23706, 24674, 23347, 0, 20901, 19312, 0, 0, 7889, 11708, 12933, 6413, 0, 0, 0,\n 9078, 6413, 10411, 5297, 1226, 7782, 0, 2523, 1297, 0, 0, 0, 2523, 0, 0, 2594, 2523, 0,\n 1297, 0, 2594, 1, 0, 10375, 0, 0, 1297, 1297, 1297, 1, 1226, 1, 0, 1297, 0, 1297, 0,\n 13007, 7781, 11672, 1, 7782, 11602, 11673, 5225, 2594, 1, 2594, 2593, 3891, 0, 7782, 0,\n 7710, 0, 10304, 0, 0, 1, 7711, 6485, 7711, 0, 0, 0, 0, 0, 3820, 1, 0, 3999, 1, 1, 1, 0,\n 1, 0, 5188, 0, 0, 3891, 0, 0, 2522, 1297, 1, 0, 0, 0, 1297, 1297, 0, 0, 2522, 11601,\n 10376, 2523, 2594},\n new long[] {1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,\n 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0,\n 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0});\n PartitionMemberInfoImpl details5 = buildDetails(member5, 50 * 1024 * 1024, 50 * 1024 * 1024,\n new long[] {23706, 24674, 0, 23344, 0, 0, 19421, 0, 0, 11708, 12933, 6413, 12933, 10338,\n 18088, 0, 0, 10411, 0, 1226, 7782, 2594, 2523, 1297, 1297, 2594, 3891, 0, 2523, 1, 2594,\n 2523, 0, 1297, 1297, 2594, 0, 2594, 10375, 0, 0, 1297, 0, 1297, 0, 1226, 1, 1, 0, 5187,\n 1297, 11672, 13007, 7781, 11672, 1, 0, 11602, 11673, 5225, 2594, 1, 0, 2593, 3891, 1,\n 7782, 0, 0, 2594, 0, 6485, 7711, 1, 7711, 0, 7711, 3891, 0, 1297, 0, 2594, 3820, 0,\n 2523, 0, 1, 1, 0, 2522, 0, 0, 0, 5116, 0, 0, 0, 0, 2522, 0, 0, 1, 0, 1297, 1297, 1297,\n 3891, 0, 0, 0, 0, 0, 2594},\n new long[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1,\n 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0,\n 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0});\n PartitionMemberInfoImpl details6 = buildDetails(member6, 50 * 1024 * 1024, 50 * 1024 * 1024,\n new long[] {0, 0, 23347, 0, 20901, 19312, 0, 11386, 7889, 0, 12933, 6413, 0, 0, 18088, 0,\n 6413, 0, 5297, 0, 7782, 0, 2523, 0, 1297, 2594, 0, 0, 2523, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 5188, 9078, 0, 1297, 0, 1, 0, 0, 1, 0, 0, 1297, 11672, 13007, 7781, 0, 0, 0, 0, 0,\n 5225, 0, 0, 2594, 0, 0, 0, 7782, 7711, 0, 2594, 0, 0, 7711, 0, 0, 0, 0, 0, 1297, 1297,\n 0, 0, 0, 1, 0, 3999, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 2523, 2594, 0, 0, 0, 0, 1226, 1297,\n 0, 0, 3891, 1226, 0, 11601, 10376, 2523, 0},\n new long[] {0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0,\n 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0});\n PartitionMemberInfoImpl details7 = buildDetails(member7, 50 * 1024 * 1024, 50 * 1024 * 1024,\n new long[] {0, 0, 23347, 23344, 20901, 19312, 19421, 11386, 0, 11708, 12933, 0, 12933, 0, 0,\n 9078, 0, 0, 0, 0, 0, 0, 0, 1297, 1297, 0, 3891, 2523, 2523, 1, 2594, 2523, 1297, 1297,\n 1297, 2594, 1, 2594, 10375, 5188, 9078, 1297, 1297, 1297, 0, 0, 0, 0, 1297, 5187, 0,\n 11672, 0, 7781, 11672, 1, 7782, 0, 11673, 5225, 2594, 0, 2594, 0, 0, 1, 0, 7711, 7710,\n 2594, 10304, 6485, 7711, 1, 0, 6485, 0, 3891, 1297, 1297, 10303, 2594, 0, 0, 0, 0, 0, 1,\n 0, 2522, 0, 5188, 5188, 5116, 2594, 0, 0, 2594, 2522, 1297, 1, 1, 1226, 0, 0, 0, 0,\n 1226, 0, 11601, 0, 2523, 2594},\n new long[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1});\n\n model.addRegion(\"a\",\n Arrays.asList(details1, details2, details3, details4, details5, details6, details7),\n new FakeOfflineDetails(), true);\n\n doMoves(new CompositeDirector(false, false, true, true), model);\n List<Move> bucketMoves1 = new ArrayList<>(bucketOperator.bucketMoves);\n List<Create> bucketCreates1 = new ArrayList<>(bucketOperator.creates);\n List<Move> primaryMoves1 = new ArrayList<>(bucketOperator.primaryMoves);\n bucketOperator.bucketMoves.clear();\n bucketOperator.creates.clear();\n bucketOperator.primaryMoves.clear();\n\n\n model = new PartitionedRegionLoadModel(bucketOperator, 0, 113, getAddressComparor(false),\n Collections.emptySet(), null);\n model.addRegion(\"a\",\n Arrays.asList(details1, details2, details4, details3, details5, details6, details7),\n new FakeOfflineDetails(), true);\n\n doMoves(new CompositeDirector(false, false, true, true), model);\n assertThat(bucketOperator.creates).isEqualTo(bucketCreates1);\n assertThat(bucketOperator.bucketMoves).isEqualTo(bucketMoves1);\n assertThat(bucketOperator.primaryMoves).isEqualTo(primaryMoves1);\n }", "title": "" }, { "docid": "3eb963f7628429357334a62f58908688", "score": "0.54994035", "text": "private int getNewReplicaCount(String[] allNames, String currentName, int replicaSum) {\n int index = Arrays.asList(allNames).indexOf(currentName);\n int remaining = replicaSum % allNames.length;\n return (replicaSum / allNames.length) + Math.min(1, Math.max(0, remaining - index));\n }", "title": "" }, { "docid": "92be25111190796d4dd62b31812c4574", "score": "0.54837817", "text": "@Test\n public void testTableLevelAndMirroringReplicaGroupSegmentAssignmentStrategy() throws Exception {\n int numInstancesPerPartition = 5;\n ReplicaGroupStrategyConfig replicaGroupStrategyConfig = new ReplicaGroupStrategyConfig();\n replicaGroupStrategyConfig.setNumInstancesPerPartition(numInstancesPerPartition);\n replicaGroupStrategyConfig.setMirrorAssignmentAcrossReplicaGroups(true);\n\n // Create table config\n TableConfig tableConfig = new TableConfig.Builder(CommonConstants.Helix.TableType.OFFLINE)\n .setTableName(TABLE_NAME_TABLE_LEVEL_REPLICA_GROUP)\n .setNumReplicas(NUM_REPLICA)\n .setSegmentAssignmentStrategy(\"ReplicaGroupSegmentAssignmentStrategy\")\n .build();\n\n tableConfig.getValidationConfig().setReplicaGroupStrategyConfig(replicaGroupStrategyConfig);\n\n // Create the table and upload segments\n _pinotHelixResourceManager.addTable(tableConfig);\n\n // Wait for table addition\n while (!_pinotHelixResourceManager.hasOfflineTable(TABLE_NAME_TABLE_LEVEL_REPLICA_GROUP)) {\n Thread.sleep(100);\n }\n\n int numSegments = 20;\n Set<String> segments = new HashSet<>();\n for (int i = 0; i < numSegments; ++i) {\n String segmentName = \"segment\" + i;\n addOneSegmentWithPartitionInfo(TABLE_NAME_TABLE_LEVEL_REPLICA_GROUP, segmentName, null, 0);\n segments.add(segmentName);\n }\n\n // Wait for all segments appear in the external view\n while (!allSegmentsPushedToIdealState(TABLE_NAME_TABLE_LEVEL_REPLICA_GROUP, numSegments)) {\n Thread.sleep(100);\n }\n\n // Create a table of a list of segments that are assigned to a server.\n Map<String, Set<String>> serverToSegments = getServersToSegmentsMapping(TABLE_NAME_TABLE_LEVEL_REPLICA_GROUP);\n\n // Fetch the replica group mapping table\n ZkHelixPropertyStore<ZNRecord> propertyStore = _helixZkManager.getHelixPropertyStore();\n PartitionToReplicaGroupMappingZKMetadata partitionToReplicaGroupMaping =\n ZKMetadataProvider.getPartitionToReplicaGroupMappingZKMedata(propertyStore,\n TABLE_NAME_TABLE_LEVEL_REPLICA_GROUP);\n\n // Check that each replica group for contains all segments of the table.\n for (int group = 0; group < NUM_REPLICA; group++) {\n List<String> serversInReplicaGroup = partitionToReplicaGroupMaping.getInstancesfromReplicaGroup(0, group);\n Set<String> segmentsInReplicaGroup = new HashSet<>();\n for (String server : serversInReplicaGroup) {\n segmentsInReplicaGroup.addAll(serverToSegments.get(server));\n }\n Assert.assertTrue(segmentsInReplicaGroup.containsAll(segments));\n }\n\n // Create the expected mirroring servers.\n for (int instanceIndex = 0; instanceIndex < numInstancesPerPartition; instanceIndex++) {\n Set<Set<String>> mirroringServerSegments = new HashSet<>();\n for (int group = 0; group < NUM_REPLICA; group++) {\n List<String> serversInReplicaGroup = partitionToReplicaGroupMaping.getInstancesfromReplicaGroup(0, group);\n String server = serversInReplicaGroup.get(instanceIndex);\n mirroringServerSegments.add(serverToSegments.get(server));\n }\n Assert.assertEquals(mirroringServerSegments.size(), 1);\n }\n }", "title": "" }, { "docid": "056060fc54a753960d8c010954d284df", "score": "0.5464651", "text": "public int getReplicasCount() {\n if (replicasBuilder_ == null) {\n return replicas_.size();\n } else {\n return replicasBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "535ec232a17e5b43e0fe0b78c1867080", "score": "0.54447794", "text": "private CreateNewReplica(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "1a2625ce65de6685a8c8ad7ccbf36d87", "score": "0.54269665", "text": "public void setQuorum(int quorum);", "title": "" }, { "docid": "238be4fc45d6dfaa322d1e16e06b648a", "score": "0.53724366", "text": "NodeHandleSet replicaSet(Id id, int maxRank);", "title": "" }, { "docid": "84cf774a21ea75c44648f55c7c75589e", "score": "0.5358324", "text": "NodeHandleSet replicaSet(Id id, int maxRank, NodeHandle root, NodeHandleSet set);", "title": "" }, { "docid": "45bb2bb0d41fa17e348feefd6c54dd92", "score": "0.5336333", "text": "public Builder clearStartingReplicaCount() {\n bitField0_ = (bitField0_ & ~0x00000002);\n startingReplicaCount_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bd93d9570b374ceed797a4ef88645fe4", "score": "0.5329199", "text": "public java.util.List<com.alibaba.maxgraph.proto.ReplicaInfo> getReplicasList() {\n if (replicasBuilder_ == null) {\n return java.util.Collections.unmodifiableList(replicas_);\n } else {\n return replicasBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "e3685c7c0cf4a4f1ad050ceae458bdd3", "score": "0.5308317", "text": "private static void test2To3()\n {\n HashMap<Long, InetSocketAddress> peerIDtoAddress = new HashMap<>(3);\n peerIDtoAddress.put(1L, new InetSocketAddress(\"localhost\", ZooKeeperPeerServerImpl.generateNewInetAddress()));\n peerIDtoAddress.put(2L, new InetSocketAddress(\"localhost\", ZooKeeperPeerServerImpl.generateNewInetAddress()));\n peerIDtoAddress.put(3L, new InetSocketAddress(\"localhost\", ZooKeeperPeerServerImpl.generateNewInetAddress()));\n peerIDtoAddress.put(4L, new InetSocketAddress(\"localhost\", ZooKeeperPeerServerImpl.generateNewInetAddress()));\n peerIDtoAddress.put(5L, new InetSocketAddress(\"localhost\", ZooKeeperPeerServerImpl.generateNewInetAddress()));\n peerIDtoAddress.put(6L, new InetSocketAddress(\"localhost\", ZooKeeperPeerServerImpl.generateNewInetAddress()));\n peerIDtoAddress.put(7L, new InetSocketAddress(\"localhost\", ZooKeeperPeerServerImpl.generateNewInetAddress()));\n peerIDtoAddress.put(8L, new InetSocketAddress(\"localhost\", ZooKeeperPeerServerImpl.generateNewInetAddress()));\n\n //create servers\n ArrayList<ZooKeeperPeerServer> servers = new ArrayList<>(3);\n for(Map.Entry<Long, InetSocketAddress> entry : peerIDtoAddress.entrySet())\n {\n HashMap<Long, InetSocketAddress> map = (HashMap<Long, InetSocketAddress>) peerIDtoAddress.clone();\n map.remove(entry.getKey());\n ZooKeeperPeerServer server = new ZooKeeperPeerServerImpl(entry.getValue().getPort(), 0, entry.getKey(), map);\n servers.add(server);\n new Thread(server, \"Server on port \" + server.getMyAddress().getPort()).start();\n }\n //wait for threads to start.\n try\n {\n boolean moveOn = false;\n while (!moveOn) {\n Thread.sleep(500);\n int count = 0;\n for (ZooKeeperPeerServer server : servers) if(server.getCurrentLeader() != null) count++;\n //if(count >= (servers.size()/2+1)) moveOn = true;\n if(count >= (servers.size())) moveOn = true; //wait for all servers\n }\n }\n catch (Exception e)\n {\n }\n System.out.println(\"Numbers of servers = \" + servers.size() + \", quorum size = \" + servers.get(0).getQuorumSize());\n long lead = -1;\n //print out the leaders and shutdown\n for (ZooKeeperPeerServer server : servers)\n {\n Vote leader = server.getCurrentLeader();\n if (leader != null)\n {\n System.out.println(\"Server on port \" + server.getMyAddress().getPort() + \" whose ID is \" + server.getId() +\n \" has the following ID as its leader: \" + leader.getCandidateID() + \" and its state is \" + server.getPeerState().name());\n //server.shutdown();\n lead = server.getCurrentLeader().getCandidateID();\n }\n }\n\n while (true) Thread.yield();\n }", "title": "" }, { "docid": "15cb6a83cef9421dd7ba6f4ef0aeb36e", "score": "0.53055906", "text": "com.google.cloud.netapp.v1.Replication.State getState();", "title": "" }, { "docid": "2dc186eb5cf5f6da58ac2b36fe28c168", "score": "0.5282155", "text": "String getAllReplicasByRid(int primaryRid)\n\t{\t\t\t\n\t\tString res = \"\";\n\t\tArrayList<Integer> aList = new ArrayList<Integer>();\n\t\taList.add(primaryRid);\n\t\tint index = primaryRid;\n\t\t\n\t\tfor(int i=0;i<replicationFactor-1;++i)\n\t\t{\n\t\t\tDHTRingNode r1 = nodesMap.get(index);\n\t\t\taList.add(r1.getSucc());\n\t\t\tindex = r1.getSucc();\n\t\t}\n\t\t\t\n\t\tint count = 0;\n\t\t\n\t\tfor(Integer s : aList)\n\t\t{\n\t\t\tif(count < aList.size()-1)\n\t\t\t\tres += String.valueOf(s) + \"#\";\n\t\t\telse\n\t\t\t\tres += String.valueOf(s);\n\t\t\tcount++;\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "0e54fa9fdebb256c73e52ae056ad1e51", "score": "0.5265054", "text": "edu.usfca.cs.dfs.StorageMessages.CreateNewReplica getCreateNewReplicaMsg();", "title": "" }, { "docid": "191ef3c2ee7b2501acd49e1d5185585e", "score": "0.52647144", "text": "boolean hasMaxNumReplicas();", "title": "" }, { "docid": "b2a94a22788f915a0827cecf7e6d5e5e", "score": "0.5260588", "text": "@Test\n public void testRecentPrimaryInformation() throws Exception {\n String indexName = \"test\";\n String nodeWithPrimary = cluster().startNode();\n\n execute(\"\"\"\n create table doc.test (x int)\n clustered into 1 shards with (\n number_of_replicas = 1,\n \"recovery.file_based_threshold\" = 1.0,\n \"global_checkpoint_sync.interval\" = '100ms',\n \"soft_deletes.retention_lease.sync_interval\" = '100ms',\n \"unassigned.node_left.delayed_timeout\" = '1ms'\n )\n \"\"\");\n String nodeWithReplica = cluster().startDataOnlyNode();\n DiscoveryNode discoNodeWithReplica = cluster().getInstance(ClusterService.class, nodeWithReplica).localNode();\n Settings nodeWithReplicaSettings = cluster().dataPathSettings(nodeWithReplica);\n ensureGreen(indexName);\n execute(\"insert into doc.test (x) values (?)\", new Object[][] {\n new Object[] { randomIntBetween(10, 100) },\n new Object[] { randomIntBetween(10, 100) },\n });\n assertBusy(() -> {\n SyncedFlushResponse syncedFlushResponse = client()\n .execute(SyncedFlushAction.INSTANCE, new SyncedFlushRequest(indexName))\n .get(5, TimeUnit.SECONDS);\n assertThat(syncedFlushResponse.successfulShards(), equalTo(2));\n });\n cluster().stopRandomNode(TestCluster.nameFilter(nodeWithReplica));\n if (randomBoolean()) {\n execute(\"insert into doc.test (x) values (?)\", new Object[][] {\n new Object[] { randomIntBetween(10, 100) },\n new Object[] { randomIntBetween(10, 100) },\n });\n }\n CountDownLatch blockRecovery = new CountDownLatch(1);\n CountDownLatch recoveryStarted = new CountDownLatch(1);\n MockTransportService transportServiceOnPrimary\n = (MockTransportService) cluster().getInstance(TransportService.class, nodeWithPrimary);\n transportServiceOnPrimary.addSendBehavior((connection, requestId, action, request, options) -> {\n if (PeerRecoveryTargetService.Actions.FILES_INFO.equals(action)) {\n recoveryStarted.countDown();\n try {\n blockRecovery.await(5, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n }\n connection.sendRequest(requestId, action, request, options);\n });\n try {\n String newNode = cluster().startDataOnlyNode();\n recoveryStarted.await(5, TimeUnit.SECONDS);\n // Index more documents and flush to destroy sync_id and remove the retention lease (as file_based_recovery_threshold reached).\n execute(\"insert into doc.test (x) values (?)\", new Object[][] {\n new Object[] { randomIntBetween(10, 100) },\n new Object[] { randomIntBetween(10, 100) },\n });\n execute(\"optimize table doc.test with (flush = true, max_num_segments = 1)\");\n assertBusy(() -> {\n execute(\"select unnest(retention_leases['leases']['id']) from sys.shards where table_name = 'test'\");\n for (var row : response.rows()) {\n assertThat(row[0], not(equalTo((ReplicationTracker.getPeerRecoveryRetentionLeaseId(discoNodeWithReplica.getId())))));\n }\n });\n // AllocationService only calls GatewayAllocator if there are unassigned shards\n execute(\"\"\"\n create table doc.dummy (x int)\n with (\"number_of_replicas\" = 1, \"write.wait_for_active_shards\" = 0)\n \"\"\");\n cluster().startDataOnlyNode(nodeWithReplicaSettings);\n // need to wait for events to ensure the reroute has happened since we perform it async when a new node joins.\n FutureUtils.get(\n client().admin().cluster().health(\n new ClusterHealthRequest(indexName)\n .waitForYellowStatus()\n .waitForEvents(Priority.LANGUID)\n ),\n 5,\n TimeUnit.SECONDS\n );\n blockRecovery.countDown();\n ensureGreen(indexName);\n assertThat(cluster().nodesInclude(indexName), hasItem(newNode));\n\n execute(\"select recovery['files'] from sys.shards where table_name = 'test'\");\n for (var row : response.rows()) {\n assertThat((Map<String, Object>) row[0], not(Matchers.anEmptyMap()));\n }\n } finally {\n transportServiceOnPrimary.clearAllRules();\n }\n }", "title": "" }, { "docid": "c1912c0333b45277fc998ea65e417707", "score": "0.5248139", "text": "public Builder clearReplicas() {\n if (replicasBuilder_ == null) {\n replicas_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n replicasBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "b98081febd1f1c283055b94be9de14ac", "score": "0.52053094", "text": "public ArrayList<String> getReplicas(String server) {\n if (!replicationActive()) {\n return null;\n }\n ArrayList<String> m = new ArrayList<String>();\n m.add(getSuccessor(server));\n m.add(getSuccessor(m.get(0)));\n return m;\n }", "title": "" }, { "docid": "431e7c2e1969720e67aadf2ab6074a96", "score": "0.52025", "text": "private void checkReplication() {\n System.out.println(\"[DEBUG][MASTER]: Checking Replication\");\n Random rn = new Random();\n for (Iterator<Map.Entry<String, MutablePair<Set<String>, Long>>> it = filemap.entrySet().iterator(); it.hasNext(); ) {\n Map.Entry<String, MutablePair<Set<String>, Long>> entry = it.next();\n String filename = entry.getKey();\n System.out.println(\"[DEBUG][MASTER] Checking replication for \" + filename);\n if ((System.currentTimeMillis() - filemap.get(filename).getRight().longValue()) > REPLICATION_TIMEOUT) {\n System.out.println(\"[DEBUG][MASTER] Replication timedout for \" + filename);\n Set<String> replicaServers = filemap.get(filename).getLeft();\n for (String serverid : new HashSet<String>(replicaServers)) {\n if (!FD.isAlive(serverid)) {\n replicaServers.remove(serverid);\n }\n }\n if (replicaServers.size() == 0) {\n it.remove();\n } else {\n List<String> memlist = FD.getMemlistSkipIntroducerWithSelf();\n Collections.shuffle(memlist);\n List<String> replicaServersList = new ArrayList<String>(replicaServers);\n if (replicaServers.size() < REPLICATION_UNIT && (memlist.size() > replicaServers.size())) {\n System.out.println(\"[DEBUG][MASTER] Replication True for file \" + filename);\n int count = replicaServers.size();\n for (String serverid : memlist) {\n if (count < REPLICATION_UNIT) {\n if (!replicaServers.contains(serverid)) {\n try {\n Pid source = Pid.getPid(replicaServersList.get(rn.nextInt(replicaServers.size())));\n String msg = FSMessage.createReplicateMessage\n (filename, source.hostname, source.port + ServerMain.FSPortDelta).toString();\n Socket clientSocket = new Socket(Pid.getPid(serverid).hostname, Pid.getPid(serverid).port + ServerMain.FSPortDelta);\n sendMessage(clientSocket, msg);\n clientSocket.close();\n count++;\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"[ERROR] [MASTER]: Error sending replicate message to \" + serverid);\n }\n }\n }\n }\n filemap.get(filename).setRight(new Long(System.currentTimeMillis()));\n }\n }\n }\n }\n }", "title": "" }, { "docid": "7177a525aafe1083959ddccbba7e5264", "score": "0.5197383", "text": "@java.lang.Override public int getReplicaTypeValue() {\n return replicaType_;\n }", "title": "" }, { "docid": "b053d02d4a7445f106cfe3aecc380b81", "score": "0.5189795", "text": "long getInstances();", "title": "" }, { "docid": "b66e3de5c80d67381905300d2b19d5af", "score": "0.51817507", "text": "public int getNumberOfReplicas() {\n return settings.getAsInt(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, null);\n }", "title": "" }, { "docid": "5dde55696fd2f88ff72145690c287175", "score": "0.5179083", "text": "private Map<String,Long> getIndexVersionOfAllReplicas() throws IOException, SolrServerException {\n Map<String,Long> results = new HashMap<String,Long>();\n\n for (List<CloudJettyRunner> listOfReplicas : shardToJetty.values()) {\n for (CloudJettyRunner replicaRunner : listOfReplicas) {\n ModifiableSolrParams params = new ModifiableSolrParams();\n params.set(\"command\",\"indexversion\");\n params.set(\"_trace\",\"getIndexVersion\");\n params.set(\"qt\",\"/replication\");\n QueryRequest req = new QueryRequest(params);\n \n NamedList<Object> res = replicaRunner.client.solrClient.request(req);\n assertNotNull(\"null response from server: \" + replicaRunner.coreNodeName, res);\n\n Object version = res.get(\"indexversion\");\n assertNotNull(\"null version from server: \" + replicaRunner.coreNodeName, version);\n assertTrue(\"version isn't a long: \"+replicaRunner.coreNodeName, \n version instanceof Long);\n results.put(replicaRunner.coreNodeName, (Long)version);\n\n long numDocs = replicaRunner.client.solrClient.query\n (params(\"q\",\"*:*\",\"distrib\",\"false\",\"rows\",\"0\",\"_trace\",\"counting_docs\"))\n .getResults().getNumFound();\n log.info(\"core=\" + replicaRunner.coreNodeName + \"; ver=\" + version + \n \"; numDocs=\" + numDocs); \n\n }\n }\n\n return results;\n }", "title": "" }, { "docid": "aa558ba9b5171b1ebfe2967b8a76f6d8", "score": "0.51727253", "text": "public java.lang.String getNewReplicaId() {\n java.lang.Object ref = newReplicaId_;\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 newReplicaId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "aa002efcc40f855f8979771eb1d60cdc", "score": "0.51460415", "text": "public java.util.List<com.alibaba.maxgraph.proto.ReplicaInfo.Builder> \n getReplicasBuilderList() {\n return getReplicasFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "71d51ce08a9a097f17faa7c15bea9035", "score": "0.5116059", "text": "public com.google.protobuf.ByteString\n getNewReplicaIdBytes() {\n java.lang.Object ref = newReplicaId_;\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 newReplicaId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "726c3eda7c387312e17b165eb88fcf21", "score": "0.51012033", "text": "public ReplicaSet replicaSet() {\n return replicaSet;\n }", "title": "" }, { "docid": "bed0ed64946c2000878fbdc6c0e8ab92", "score": "0.5096292", "text": "boolean hasMinNumReplicas();", "title": "" }, { "docid": "0575e6d600e54e15b2940c056e388c66", "score": "0.50959367", "text": "public java.lang.String getNewReplicaId() {\n java.lang.Object ref = newReplicaId_;\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 newReplicaId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "9d4d4a4ddd17f8f0516b0bd0a9e1c89c", "score": "0.5082048", "text": "public Builder clearMaxReplicaCount() {\n bitField0_ = (bitField0_ & ~0x00000004);\n maxReplicaCount_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7f8d8f1e3b02b81cd509623c80af2284", "score": "0.5080122", "text": "public com.google.protobuf.ByteString\n getNewReplicaIdBytes() {\n java.lang.Object ref = newReplicaId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n newReplicaId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "b28fca7447b82cd1a925828e035be047", "score": "0.50684625", "text": "@java.lang.Override public int getReplicaTypeValue() {\n return replicaType_;\n }", "title": "" }, { "docid": "182ca5b32532d9c23a88e873ea9d47e0", "score": "0.50658596", "text": "edu.usfca.cs.dfs.StorageMessages.CreateNewReplicaOrBuilder getCreateNewReplicaMsgOrBuilder();", "title": "" }, { "docid": "b6f9294c5165b3ceed2036a90813547c", "score": "0.5056563", "text": "public void testCreateBucketTooFewReplicas() {\n try {\n manager.createNamedBucket(BucketType.COUCHBASE, \"bucket1\", 100, -1,\n \"password\", false);\n fail(\"Replica number too small, but bucket was still created\");\n } catch (RuntimeException e) {\n assertEquals(e.getMessage(), \"Http Error: 400 Reason: Bad Request \"\n + \"Details: {\\\"replicaNumber\\\":\\\"The replica number cannot be\"\n + \" negative.\\\"}\");\n }\n }", "title": "" }, { "docid": "15de3f0021448be6c899865cba04d016", "score": "0.5050773", "text": "public void testCreateBucketTooManyReplicas() {\n try {\n manager.createNamedBucket(BucketType.COUCHBASE, \"bucket1\", 100, 4,\n \"password\", false);\n fail(\"Replica number too large, but bucket was still created\");\n } catch (RuntimeException e) {\n assertEquals(e.getMessage(), \"Http Error: 400 Reason: Bad Request \"\n + \"Details: {\\\"replicaNumber\\\":\\\"Replica number larger than 3 is not \"\n + \"supported.\\\"}\");\n }\n }", "title": "" }, { "docid": "4e176356e09aa01dc902030f116cf01c", "score": "0.5043638", "text": "public Collection<ReplicaInfo> members() {\n return members;\n }", "title": "" }, { "docid": "8a245a05c81e4f014d3c8e1c3cd8450e", "score": "0.5019476", "text": "replication_modepb.ReplicationModepb.ReplicationMode getMode();", "title": "" }, { "docid": "53fede580e376687748c09fcdf798658", "score": "0.50133926", "text": "public abstract void generatePlan(int partitionCount, int numBrokers) throws ReplicaAssignmentException;", "title": "" }, { "docid": "67e518155b1982d899c20008ecbdb153", "score": "0.50082964", "text": "private void connectToReplica(String replicaAdress, int replicaPort)\n\t\t\tthrows RemoteException, NotBoundException {\n\t\tString serverAdd = replicaAdress;\n\t\tint serverPort = replicaPort;\n\t\tReplicaServerClientInterface rmiServer;\n\t\tRegistry registry;\n\t\t// // get the registry\n\t\tregistry = LocateRegistry.getRegistry(serverAdd, (new Integer(\n\t\t\t\tserverPort)).intValue());\n\t\t// look up the remote object\n\t\trmiServer = (ReplicaServerClientInterface) registry.lookup(\"rmiserver\");\n\t\tcurrentReplica = rmiServer;\n\t\t// System.out.println(\"connected\");\n\t}", "title": "" }, { "docid": "188ae894214a2b76bc9eed00b83db0b1", "score": "0.5005642", "text": "public String replicaSetName() {\n return replicaSetName;\n }", "title": "" }, { "docid": "efb0f88f3e4c39e4bb394fff09f1069f", "score": "0.5001664", "text": "@Override\n public int size() {\n return 3;\n }", "title": "" }, { "docid": "017199d876da36f0f176b1cc91eba009", "score": "0.4999481", "text": "@Override\n protected int getNumRepetitions() {\n return 1;\n }", "title": "" }, { "docid": "a9d0403076761cd26a34b65c5ada29b5", "score": "0.49975857", "text": "public int getReps() {return reps;}", "title": "" }, { "docid": "4e973982922b892867f0ec1c1dd33a40", "score": "0.49955344", "text": "private synchronized void migrateNewReplicas(String path) throws Exception {\n\t\tList<String> children = zk.getChildren(path,clusterWatcher);\n\t\tif (!children.isEmpty()) {\n\t\t\tfor (String name : children) {\n\t\t\t\tString subPath=path + \"/\" + name;\n\t\t\t\tKVServerConfig config = getServerConfigFromPath(subPath);\n\t\t\t\tserverInstance.handleChangeInCluster(getClusterPathFromPath(path),new KVStorageNode(config));\n\t\t\t\tzk.delete(subPath, -1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1f191477a2395286907f8e1564027395", "score": "0.49778482", "text": "replication_modepb.ReplicationModepb.RegionReplicationState getState();", "title": "" }, { "docid": "fc138a293c66957f037f5a203ecb5339", "score": "0.49771968", "text": "replication_modepb.ReplicationModepb.DRAutoSyncState getState();", "title": "" }, { "docid": "af113a133965fe90f1f3fac114002e7e", "score": "0.49752402", "text": "public boolean replicationSwitch() {\n return buf.size() == 3;\n }", "title": "" }, { "docid": "5683a1d694621af4e8cd99bd2b264f0b", "score": "0.49719548", "text": "public void addActiveReplicas(Set<NodeIDType> activeReplicas) {\n this.activeReplicas.addAll(activeReplicas);\n }", "title": "" }, { "docid": "cbecf14d044daf2b4195156a515ea236", "score": "0.49667147", "text": "replication_modepb.ReplicationModepb.DRAutoSync getDrAutoSync();", "title": "" }, { "docid": "6891b31feabc007798bac54ee7d81101", "score": "0.49561718", "text": "boolean hasCreateNewReplicaMsg();", "title": "" }, { "docid": "eb12b3f1de7a3db2b9d6bb22010facff", "score": "0.49504405", "text": "public Builder setReplicaTypeValue(int value) {\n \n replicaType_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1d9cbded60539c0ce8e89d16e6217995", "score": "0.49459043", "text": "public void setReps(int newReps) {reps = newReps;}", "title": "" }, { "docid": "43b63d0b269662a5a9ac39eb93f89fd7", "score": "0.4945571", "text": "Replies createReplies();", "title": "" }, { "docid": "e0d2a9457f81274abc9d0555066445f2", "score": "0.49452713", "text": "void setReps(int reps);", "title": "" }, { "docid": "0d83b923391ef79ac65626a0d11fd517", "score": "0.49403462", "text": "public boolean hasCreateNewReplicaMsg() {\n return msgCase_ == 14;\n }", "title": "" }, { "docid": "72e1229c580007486fcc18a8c1e64748", "score": "0.49382886", "text": "public boolean hasCreateNewReplicaMsg() {\n return msgCase_ == 14;\n }", "title": "" }, { "docid": "8e3ee3d597933f5dba0cb1125aaff81b", "score": "0.4938205", "text": "public void setCopies(int copies) {\n this.copies = copies;\n }", "title": "" }, { "docid": "9e9cd5570b489c926dd8645332c0fd38", "score": "0.49368116", "text": "public Builder setNewReplicaIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n newReplicaId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ec4d71f16501d65eb45dd41165811a6d", "score": "0.49263987", "text": "java.lang.String getLostReplicaId();", "title": "" }, { "docid": "fa457607614eb0d84962f09a35410ae8", "score": "0.49253651", "text": "@Test\n public void testMultigetCount() {\n List<ByteBuffer> keys = new ArrayList<ByteBuffer>();\n for ( int j=0; j < 10; j++ ) {\n for (int i = 0; i < 25; i++) {\n ColumnPath cp = new ColumnPath(\"Standard1\");\n cp.setColumn(StringSerializer.get().toByteBuffer(\"testMultigetCount_column_\" + i));\n keyspace.insert(\"testMultigetCount_key_\"+j, cp, StringSerializer.get().toByteBuffer(\"testMultigetCount_value_\" + i));\n }\n if (j % 2 == 0) {\n keys.add(StringSerializer.get().toByteBuffer(\"testMultigetCount_key_\"+j));\n }\n }\n\n // get value\n ColumnParent clp = new ColumnParent(\"Standard1\");\n SlicePredicate slicePredicate = new SlicePredicate();\n SliceRange sr = new SliceRange(ByteBuffer.wrap(new byte[0]), ByteBuffer.wrap(new byte[0]), false, 150);\n slicePredicate.setSlice_range(sr);\n Map<ByteBuffer,Integer> counts = keyspace.multigetCount(keys, clp, slicePredicate);\n assertEquals(5,counts.size());\n assertEquals(new Integer(25),counts.entrySet().iterator().next().getValue());\n\n slicePredicate.setSlice_range(new SliceRange(StringSerializer.get().toByteBuffer(\"\"),\n StringSerializer.get().toByteBuffer(\"\"), false, 5));\n counts = keyspace.multigetCount(keys, clp, slicePredicate);\n\n assertEquals(5,counts.size());\n assertEquals(new Integer(5),counts.entrySet().iterator().next().getValue());\n\n }", "title": "" }, { "docid": "3fdc1cc5106e947f88fb31b35339ed83", "score": "0.49218336", "text": "private UserReplica buildUserReplica(long seq, String email, int points) {\n\t\tUserReplica replica = new UserReplica();\n\t\treplica.setEmail(email);\n\t\treplica.setPoints(points);\n\t\treplica.setSeq(seq);\n\t\treturn replica;\n\t}", "title": "" }, { "docid": "c6340b2282bc0ad4699a4cd7644afd41", "score": "0.4921159", "text": "private ReplicaManager(String serverName, int port) {\r\n\t\tsuper();\r\n\t\tthis.serverName = serverName;\r\n\t\tthis.port = port;\r\n\t\trouteDB = new HashMap<>();\r\n\t\trouteDB.put(1, Arrays.asList(1, 2, 3, 4, 5));\r\n\t\trouteDB.put(96, Arrays.asList(23,24,2,34,22));\r\n\t\trouteDB.put(101, Arrays.asList(123,11,22,34,5,4,7));\r\n\t\trouteDB.put(109, Arrays.asList(88,87,85,80,9,7,2,1));\r\n\t\trouteDB.put(112, Arrays.asList(110,123,11,22,34,33,29,4));\r\n\t\ttramList = new HashMap<>();\r\n\t}", "title": "" }, { "docid": "f7aa42edc45f8e3569c5a870981f73cc", "score": "0.49161473", "text": "@Test\n public void fiveZonesWithRedundancyAndThreeFullCopiesAndEnforceUniqueZones()\n throws UnknownHostException {\n\n InternalDistributedMember member1 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 1);\n InternalDistributedMember member2 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 2);\n InternalDistributedMember member3 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 3);\n InternalDistributedMember member4 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 4);\n InternalDistributedMember member5 =\n new InternalDistributedMember(InetAddress.getByName(\"127.0.0.1\"), 5);\n\n // Create some imbalanced nodes\n PartitionMemberInfoImpl details1 =\n buildDetails(member1, new long[] {1, 1, 1}, new long[] {1, 0, 0});\n PartitionMemberInfoImpl details2 =\n buildDetails(member2, new long[] {1, 1, 1}, new long[] {0, 0, 1});\n PartitionMemberInfoImpl details3 =\n buildDetails(member3, new long[] {0, 0, 0}, new long[] {0, 0, 0});\n PartitionMemberInfoImpl details4 =\n buildDetails(member4, new long[] {1, 1, 1}, new long[] {0, 1, 0});\n PartitionMemberInfoImpl details5 =\n buildDetails(member5, new long[] {0, 0, 0}, new long[] {0, 0, 0});\n\n when(clusterDistributionManager.getRedundancyZone(member1)).thenReturn(\"zoneA\");\n when(clusterDistributionManager.getRedundancyZone(member2)).thenReturn(\"zoneB\");\n when(clusterDistributionManager.getRedundancyZone(member3)).thenReturn(\"zoneC\");\n when(clusterDistributionManager.getRedundancyZone(member4)).thenReturn(\"zoneD\");\n when(clusterDistributionManager.getRedundancyZone(member5)).thenReturn(\"zoneE\");\n\n when(clusterDistributionManager.enforceUniqueZone()).thenReturn(true);\n\n PartitionedRegionLoadModel model = new PartitionedRegionLoadModel(bucketOperator, 1, 3,\n new ZoneComparer(), Collections.emptySet(), partitionedRegion);\n model.addRegion(\"a\", Arrays.asList(details1, details2, details3, details4, details5),\n new FakeOfflineDetails(),\n true);\n assertThat(doMoves(new CompositeDirector(true, true, true, true), model)).isEqualTo(5);\n\n assertThat(bucketOperator.primaryMoves).isEqualTo(Collections.emptyList());\n assertThat(bucketOperator.creates).isEqualTo(Collections.emptyList());\n\n List<Move> expectedMoves = new ArrayList<>();\n expectedMoves.add(new Move(member1, member3));\n expectedMoves.add(new Move(member2, member5));\n assertThat(bucketOperator.bucketMoves).isEqualTo(expectedMoves);\n\n List<Remove> expectedRemoves = new ArrayList<>();\n expectedRemoves.add(new Remove(member2, 0));\n expectedRemoves.add(new Remove(member1, 1));\n expectedRemoves.add(new Remove(member4, 2));\n assertThat(bucketOperator.removes).isEqualTo(expectedRemoves);\n }", "title": "" }, { "docid": "594738af7d219ae5941f49b5ba905d22", "score": "0.49043986", "text": "public boolean replicationActive() {\n return buf.size() >= 3;\n }", "title": "" } ]
8797d560718b62f0d40ba95bf7122b03
method for save user data in database
[ { "docid": "f8a2f982c6980d2413b165809e3565cb", "score": "0.0", "text": "public int registerUser(String firstname, String surname, String username, String email, String passwd) throws Exception {\n\t\t\tint i = 0;\n\t\t\ttry {\n\t\t\t\tString query = \"INSERT INTO users VALUES (?,?,?,?,?)\";\n\t\t\t\tPreparedStatement ps = getConnection().prepareStatement(query);\n\t\t\t\tps.setString(1, firstname);\n\t\t\t\tps.setString(2, surname);\n\t\t\t\tps.setString(3, username);\n\t\t\t\tps.setString(4, email);\n\t\t\t\tps.setString(5, passwd);\n\t\t\t\ti = ps.executeUpdate();\n\t\t\t\treturn i;\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn i;\n\t\t\t} finally {\n\t\t\t\tif (getConnection() != null) {\n\t\t\t\t\tgetConnection().close();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" } ]
[ { "docid": "2eb6e4a99d0e8fb1692bbb9a88bbc52f", "score": "0.77608925", "text": "void SaveUser(User user);", "title": "" }, { "docid": "1fbafe9be41b0af403bdbf97ad82c4ba", "score": "0.7706038", "text": "void save(User user);", "title": "" }, { "docid": "1fbafe9be41b0af403bdbf97ad82c4ba", "score": "0.7706038", "text": "void save(User user);", "title": "" }, { "docid": "1fbafe9be41b0af403bdbf97ad82c4ba", "score": "0.7706038", "text": "void save(User user);", "title": "" }, { "docid": "c0aa032d904a63294d253975c081a228", "score": "0.76911265", "text": "public void save(User user) {\n\t\t\r\n\t}", "title": "" }, { "docid": "67a670ee619a40fb3aa356f653092e45", "score": "0.7652027", "text": "public void save(User user);", "title": "" }, { "docid": "7929e19d087f28740df9e8eec9f3388b", "score": "0.75954145", "text": "@Override\n \tpublic void saveUser(User user) throws Exception {\n \t\t\n \t}", "title": "" }, { "docid": "062e15107ff084947e02b710df82d2b8", "score": "0.7523469", "text": "void insert_user() {\n\t\t// first we need to create a user.\n\t\tUser a = new User();\n\t\ta.email = \"myemailid@domain.some\";\n\t\ta.first_name = \"Abhishek\";\n\t\ta.middle_name = \"Kumar\";\n\t\ta.last_name = \"Tiwari\";\n\t\ta.last_login = System.currentTimeMillis();\n\t\ta.login = \"my_user_name\";\n\t\ta.passwd = \"my_password\";\n\t\ta.gender = 'M';\n\t\ta.upd_ts = new Time(0);\n\t\ta.photo_path = \"this/is/my/pic/path\";\n\t\ta.is_external = false;\n\t\ta.failed_logins = 4;\n\t\ta.verified = true;\n\t\t// now get a key value pairs\n\t\tMap<String, Object> m = a.getMapper();\n\t\t// Create an Data-store entity\n\t\tEntity e = a.create_user_entity(m);\n\t\t// insert this entity to the local data-store.\n\t\tdal.insert_entity(e);\n\t}", "title": "" }, { "docid": "316b4976b742a6f7cebb53a8e93eb384", "score": "0.74218726", "text": "public void storeUserData(User user){\n Log.d(\"login\", \"store user data\");\n SharedPreferences.Editor spEditor = userDB.edit();\n spEditor.putString(\"id\", user.id);\n spEditor.putString(\"firstName\", user.firstName);\n spEditor.putString(\"lastName\", user.lastName);\n spEditor.putString(\"email\", user.email);\n spEditor.putString(\"password\", user.password);\n spEditor.putString(\"status\", user.status);\n spEditor.commit();\n Log.d(\"login\", \"store user data complete\");\n }", "title": "" }, { "docid": "2c04aa4ac3472895a2be2914edebaa23", "score": "0.74030226", "text": "public User saveUser(User user);", "title": "" }, { "docid": "2c04aa4ac3472895a2be2914edebaa23", "score": "0.74030226", "text": "public User saveUser(User user);", "title": "" }, { "docid": "b8265eea730b315b76f583915f219892", "score": "0.73980796", "text": "boolean saveUser(String username, String email, String phone);", "title": "" }, { "docid": "f361971506ed4573639cd26f192ceb8d", "score": "0.7343494", "text": "public void saveUser(UserModel userModel){\n }", "title": "" }, { "docid": "256297e653c3fdd2f03b180617dc9174", "score": "0.72706467", "text": "User saveUser(User user);", "title": "" }, { "docid": "7e4f52a2d0efdf674a5553f548735cf9", "score": "0.72664446", "text": "public void StoreData(User user)\n {\n SharedPreferences.Editor sp_editor = localDatabase.edit();\n sp_editor.putString(\"name\",user.name);\n sp_editor.putString(\"username\",user.username);\n sp_editor.putString(\"email\",user.email);\n sp_editor.putString(\"country\",user.country);\n sp_editor.putString(\"password\",user.password);\n sp_editor.commit();\n\n }", "title": "" }, { "docid": "ce3bcbb0a044a49463bb0690afbc46dc", "score": "0.7260329", "text": "@Override\n\tpublic boolean save() {\n\t\t// If the user_id is populated, the we want to try and update the user table\n\t\tif(user_id >= 0){\n\t\t\tString[] updateStmt = new String[1];\n\t\t\tupdateStmt[0] = \"UPDATE user SET user_name = \\\"\" + user_name+ \"\\\", \" +\n\t\t\t\t\t\"password = \\\"\" + password + \"\\\", \" + \n\t\t\t\t\t\"salt = \\\"\" + salt + \"\\\", \" + \n\t\t\t\t\t\"message_received = \" + message_received + \", \" +\n\t\t\t\t\t\"challenge_received = \" + challenge_received + \", \" +\n\t\t\t\t\t\"is_admin = \" + is_admin + \", \" +\n\t\t\t\t\t\"am_created_quizzes = \" + am_created_quizzes + \", \" +\n\t\t\t\t\t\"am_taken_quizzes = \" + am_taken_quizzes + \", \" +\n\t\t\t\t\t\"am_challenges_sent = \" + am_challenges_sent + \", \" +\n\t\t\t\t\t\"am_messages_sent = \" + am_messages_sent + \", \" +\n\t\t\t\t\t\"am_number_friends = \" + am_number_friends + \" \" +\n\t\t\t\t\t\"WHERE user_id = \" + user_id;\n\t\t\tSystem.out.println(\"user update: \" + updateStmt[0]);\n\t\t\tint result = connector.updateOrInsert(updateStmt);\n\t\t\tif(result < 0){\n\t\t\t\tSystem.err.println(\"There was an error in the UPDATE call to the USER table\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// We don't have a user_id, so we are trying to create a new user\n\t\t\t// All fields besides the ones we are inserting into will be automatically set\n\t\t\tString[] insertStmt = new String[1];\n\t\t\tinsertStmt[0] = \"INSERT INTO user(date_created, user_name, password, salt, is_admin) VALUES( NOW(), \" +\n\t\t\t\"\\\"\" + user_name + \"\\\", \\\"\" + password + \"\\\", \\\"\" + salt + \"\\\", \" + is_admin +\")\";\n\t\t\tSystem.out.println(\"user insert: \" + insertStmt[0]);\n\t\t\tint result = connector.updateOrInsert(insertStmt);\n\t\t\tif(result < 0){\n\t\t\t\tSystem.err.println(\"There was an error in the INSERT call to the USER table\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "1733a0542d7b889e289b55254ef2715a", "score": "0.7168018", "text": "public void saveUser(){\n\t if (GSON == null)\n constructGson();\n\t\ttry {\n\t\t\t//Obtain the file to write, creating it if it does not exist:\n\t\t\tFileOutputStream fos = USER_fileContext.openFileOutput(USER_FILE_NAME,\n\t\t\t\t\tContext.MODE_PRIVATE);\n\t\t\tOutputStreamWriter osw = new OutputStreamWriter(fos);\n\t\t\t\n\t\t\t//Create a GSON object and type token:\n\t\t\t//Gson gson = new Gson();\n\t\t\tType fooType = new TypeToken<UserModel>() {}.getType();\n\t\t\t\n\t\t\t//Obtain the JSON string for the object/type provided\n\t\t\t//and save it to file:\n\t\t\tGSON.toJson(userModel, fooType, osw);\n\t\t\t\n\t\t\t//Close the files:\n\t\t\tosw.close();\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8b42102ec3f15c856508a635bb2081be", "score": "0.7084801", "text": "@Override\r\n\tpublic void save(User user) {\n\t\tSession session=sessionFactory.getCurrentSession();\r\n\t\tTransaction tx = session.beginTransaction(); \r\n\t\tsession.save(user);\r\n\t tx.commit();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d631deae81952fdce2721c422281eab0", "score": "0.7065115", "text": "public void persist() {\r\n\t if (this.id == 0) {\r\n\t\tUserDB.insert(this);\r\n\t } else {\r\n\t\tUserDB.update(this);\r\n\t }\r\n\t}", "title": "" }, { "docid": "45725881c1ea5627e612666047323fd4", "score": "0.70484394", "text": "void saveUser(User newUsers);", "title": "" }, { "docid": "6553eff1277ca8821c40e13783710078", "score": "0.70237845", "text": "public void saveToDatabase()\n {\n \n }", "title": "" }, { "docid": "ce951ff5861ca4d5b403ad30b477d2d4", "score": "0.7020499", "text": "TurbineUser save(TurbineUser turbineUser) throws Exception;", "title": "" }, { "docid": "a81f2ac675f80ef23b4510cfcd72b7b1", "score": "0.70094395", "text": "void saveUser(User user, Context context) {\n final DatabaseReference database = FirebaseDatabase.getInstance().getReference();\n database.child(\"users\").child(user.getUserId()).setValue(user);\n\n SharedPreferences.Editor editor = context.getSharedPreferences(\"userInfo\",\n Context.MODE_PRIVATE).edit();\n editor.putString(\"userId\", user.getUserId());\n editor.putString(\"username\", user.getUsername());\n editor.putString(\"userEmail\", user.getEmail()).apply();\n }", "title": "" }, { "docid": "13949ea0892852b02f198b4add6a022a", "score": "0.7009171", "text": "String saveUser(UserDTO Userdata);", "title": "" }, { "docid": "b457847a06ce4970446965ae986bf2b4", "score": "0.70026827", "text": "User updateUserData(User user);", "title": "" }, { "docid": "a8c101274af4e4fb515fa0b5e6505bb4", "score": "0.6975793", "text": "@Override\n public void save(User user) throws SQLException{\n try (Connection connection = GetConnection.get()){\n PreparedStatement statement = connection.prepareStatement(\"insert into customer(user_name,password,email,money_balance)values (?,?,?,?)\");\n statement.setString(1,user.getUserName().toString());\n statement.setString(2,user.getPassword().toString());\n statement.setString(3,user.getEmail().toString());\n statement.setInt(4,user.getBalance().intValue());\n statement.executeUpdate();\n }\n }", "title": "" }, { "docid": "34b1c59133ac5d0819394256403abd94", "score": "0.6974068", "text": "public boolean store(User user);", "title": "" }, { "docid": "f163aa192111591a66c0fc7678048b60", "score": "0.69619596", "text": "public boolean save(UserDetails userDetails);", "title": "" }, { "docid": "974cd4d94e581f7a1a66ddea7a2322e4", "score": "0.6960142", "text": "private void saveUserProfile() {\n mPokalSharedPreferences.setUsername(mName.getText().toString());\n mPokalSharedPreferences.setEmail(mEmail.getText().toString());\n mPokalSharedPreferences.setGoogleCalendarSync(mGoogleCalendarSync.isChecked());\n mPokalSharedPreferences.setEncryptedPassword(mPassword.getText().toString());\n mPokalSharedPreferences.setPhone(mPhoneNumber.getText().toString());\n mPokalSharedPreferences.setDob(mDateOfBirth.getText().toString());\n if (mEmergencyContactName.length() != 0)\n mPokalSharedPreferences.setEmergencyContactName(mEmergencyContactName.getText().toString());\n if (mEmergencyContactPhoneNumber.length() != 0)\n mPokalSharedPreferences.setEmergencyContactPhone(mEmergencyContactPhoneNumber.getText().toString());\n mPokalSharedPreferences.setIsFirstLogin(false);\n }", "title": "" }, { "docid": "d1016b6c2ec4c0dbb978d9ef632e7935", "score": "0.69357884", "text": "User save(User user);", "title": "" }, { "docid": "d1016b6c2ec4c0dbb978d9ef632e7935", "score": "0.69357884", "text": "User save(User user);", "title": "" }, { "docid": "d1016b6c2ec4c0dbb978d9ef632e7935", "score": "0.69357884", "text": "User save(User user);", "title": "" }, { "docid": "d1016b6c2ec4c0dbb978d9ef632e7935", "score": "0.69357884", "text": "User save(User user);", "title": "" }, { "docid": "546be0f113c70e4d4ab3efefbecb9d9a", "score": "0.68870986", "text": "@Insert(\"insert into user\" +\n \" (user_phone,user_password,user_name,user_please,user_please_num,user_status,faceUrl,email,freeze) \" +\n \"values (#{user_phone},#{user_password},#{user_name},#{user_please},#{user_please_num},#{user_status},#{faceUrl},#{email},#{freeze})\")\n public Integer save(User user);", "title": "" }, { "docid": "f147ffb84fe982eff587bfc98567eb6d", "score": "0.688525", "text": "public void storeUserData(UserObject user) {\n SharedPreferences.Editor userLocalDatabaseEditor = userLocalDatabase.edit();\n userLocalDatabaseEditor.putString(\"name\", user.name);\n userLocalDatabaseEditor.putString(\"mail\", user.mail);\n userLocalDatabaseEditor.apply();\n }", "title": "" }, { "docid": "bc9f26de5d7cddd3493a3c100a80233f", "score": "0.6880204", "text": "@RequestMapping(method = RequestMethod.POST, value = \"/register\")\n public void saveUserData(@RequestParam(value = \"username\",\n defaultValue = \"\") String username,\n @RequestParam(value = \"password\",\n defaultValue = \"\")\n String password) {\n //TODO error handling, return responses\n if (username.isEmpty() || password.isEmpty()) {\n return;\n }\n\n //TODO verify name is unique\n /*\n if (Database.instance.findUserByName(username)) {\n return;\n }\n */\n\n int userId = Database.instance.getUserCount() + 1;\n UserEntry userEntry = new UserEntry(userId, username, password);\n Database.instance.save(userEntry);\n }", "title": "" }, { "docid": "636b359ed0ee876d58d55ca48ab5bfd4", "score": "0.6878842", "text": "@Insert(\"INSERT INTO users(name, email, gender, phone_number, user_hash)\"\n\t\t\t+ \" VALUES(#{user.name}, #{user.email},#{user.gender}, #{user.phone_number}, #{user.user_hash})\")\n\tpublic boolean save(@Param(\"user\") User user);", "title": "" }, { "docid": "da75e1529f0530c43d247d9d3fdafb29", "score": "0.6844752", "text": "private UserModel save() {\n try {\n SharedPreferences.Editor editor = AppLeyesApplication.getSharedPrefs().edit();\n editor.putLong(\"user_id\", id);\n editor.putString(\"user_name\", name);\n editor.putString(\"user_user\", usuario);\n editor.putString(\"user_token\", token);\n editor.commit();\n load();\n Log.d(TAG, \"save: \" + this.to_hash().toString());\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(TAG, \"save: \" + e.getLocalizedMessage());\n }\n return this;\n }", "title": "" }, { "docid": "2063d2ee9d9ddfad903b7275ef509eee", "score": "0.6844244", "text": "public User saveUser(User user_1);", "title": "" }, { "docid": "5188ec6dbc5122601f9a76434d77812c", "score": "0.68373466", "text": "public void saveUsers() {\n DataWriter.savePoliceOfficers();\n }", "title": "" }, { "docid": "8c1245ce145f5c57c7a962a1fef26430", "score": "0.683281", "text": "@Override\r\n public void saveUser(User t) {\r\n FileWriter writer = null;\r\n try {\r\n Gson gson = new GsonBuilder().create();\r\n HashSet<User> list = selectAll();\r\n if(list == null) list = new HashSet<User>();\r\n User currentUser = loadUser(t.getUsername(), t.getPassword(), t.getNif());\r\n if(currentUser == null){\r\n list.add(t);\r\n }\r\n writer = new FileWriter(fileName);\r\n gson.toJson(list, writer);\r\n writer.flush();\r\n writer.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(UserDAOOneJson.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "5e27ff67f089762155f4f607b832cbf4", "score": "0.6825889", "text": "@Override\r\n\tpublic void saveRegisteredUser(User user) {\n\r\n\t}", "title": "" }, { "docid": "9cb9e781cbc69dfade6399e9fb60bec6", "score": "0.68056816", "text": "@Override\n\tpublic void saveUser(User user) {\n\t\tString sql = \"insert into u values(u_id.nextval,?,?,?,?,?)\";\n\t\tPreparedStatement pre;\n\t\ttry {\n\t\t\tpre = conn.prepareStatement(sql);\n\n\t\t\tpre.setString(1, user.getName());\n\t\t\tpre.setString(2, user.getGender());\n\t\t\tpre.setString(3, user.getPwd());\n\t\t\tpre.setString(4, user.getHobby());\n\t\t\tpre.setInt(5, user.getAge());\n\t\t\tpre.executeUpdate();\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "7251fda24e343a3f8f824fecbd5174e7", "score": "0.68002784", "text": "@Override\r\n public void save(Userinfo user, LoginInfo loginInfo) {\n getHibernateTemplate().save(user);\r\n getHibernateTemplate().save(loginInfo);\r\n }", "title": "" }, { "docid": "23e625a0c04534de0a86b38236195cb7", "score": "0.6795393", "text": "public void saveUser(User u){ \n\t\ttemplate.save(u); \n\t}", "title": "" }, { "docid": "d490e4baa29f0c09543d9a4ac8209ece", "score": "0.67715037", "text": "@Override\n\tpublic void saveUser(User user) {\n\t\tthis.saveOrUpdate(user);\n\n\t}", "title": "" }, { "docid": "3d7c76f7d0f2999dae719c2b1c8d084b", "score": "0.6769588", "text": "public boolean saveUserToDatabase(User user){\n return wasSavedToDatabase(user);\n }", "title": "" }, { "docid": "8e535dc8b1f1d58291fd69355f462a0e", "score": "0.67453873", "text": "private void addUserToDatabase() {\n\n displayname = username.getText().toString().trim();\n desc = description.getText().toString().trim();\n site = website.getText().toString().trim();\n\n user.setEmail(email);\n user.setPassword(password);\n user.setDisplayname(displayname);\n user.setDescription(displayname);\n user.setWebsite(site);\n user.setUser_id(FirebaseAuth.getInstance().getCurrentUser().getUid());\n\n final String location = \"UserData\";\n final DatabaseReference databaseRef = mDatabaseRef.child(location);\n Log.i(TAG, databaseRef.toString());\n\n databaseRef.setValue(user);\n\n Toast.makeText(SetUpProfile.this, \"Profile saved\", Toast.LENGTH_SHORT).show();\n Intent i = new Intent(SetUpProfile.this, HomepageActivity.class);\n startActivity(i);\n }", "title": "" }, { "docid": "85b03d009b4fc666a3dd163d668cd0d0", "score": "0.6744195", "text": "@Override\n\tpublic User saveUser(User user) {\n\t\tjdbcTemplate.update(INSERT_USER_QUERY, user.getId(), user.getFirstName(), user.getLastName(), user.getEmail(), user.getPassword());\n return user;\n\t}", "title": "" }, { "docid": "c1bddd210a720509c781c520fc09be03", "score": "0.6726969", "text": "@Override\n\tpublic void save(User user) {\n\t\tgetHibernateTemplate().save(user);\n\t}", "title": "" }, { "docid": "08ea2a6bd83cd2ebdfecbcfdc8ecb5da", "score": "0.67074525", "text": "Usuario saveUsuario(Usuario usuario);", "title": "" }, { "docid": "372b9ac1aee8d8800f2ecaada549d2af", "score": "0.6707257", "text": "public Boolean saveUser() {\r\n\t\tDatastoreService datastore = DatastoreServiceFactory\r\n\t\t\t\t.getDatastoreService();\r\n\t\tQuery gaeQuery = new Query(\"users\");\r\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\r\n\t\tList<Entity> list = pq.asList(FetchOptions.Builder.withDefaults());\r\n\r\n\t\tEntity employee = new Entity(\"users\", list.size() + 1);\r\n\r\n\t\temployee.setProperty(\"name\", this.name);\r\n\t\temployee.setProperty(\"email\", this.email);\r\n\t\temployee.setProperty(\"password\", this.password);\r\n\t\tdatastore.put(employee);\r\n\r\n\t\treturn true;\r\n\r\n\t}", "title": "" }, { "docid": "0baeb2c93bc1e28d04c82b9d65425364", "score": "0.67018205", "text": "public static void SaveUserDetail(Context context,String firstname,String lastname,String username,String id,String email,String userProfilephoto,String userCoverphoto){\n GlobalVar.setMyStringPref(context, Constant.loginUserfirstName,firstname);\n GlobalVar.setMyStringPref(context, Constant.loginUserlastName,lastname);\n GlobalVar.setMyStringPref(context, Constant.loginUserName,username);\n GlobalVar.setMyStringPref(context, Constant.loginUserID,id);\n GlobalVar.setMyStringPref(context, Constant.loginUserEmail,email);\n GlobalVar.setMyStringPref(context, Constant.loginUserProfilePhoto,Isnull(userProfilephoto));\n GlobalVar.setMyStringPref(context, Constant.loginUserCoverPhoto,Isnull(userCoverphoto));\n\n }", "title": "" }, { "docid": "157a1fbd24a57544a3e250b94af2abcf", "score": "0.67016774", "text": "@Override\n\tpublic void saveUserInfo(UserInfo userinfo) {\n\t\tUserInfoDAO userinfoDAO = new UserInfoDAOImpl();\n\t\tuserinfoDAO.saveUserInfo(userinfo);\n\t}", "title": "" }, { "docid": "0ea70f9d01bdf75f3f9ef7447dffa748", "score": "0.669799", "text": "@Override\r\n\tpublic int saveUser(User user) {\n\t\treturn dao.addUser(user);\r\n\t}", "title": "" }, { "docid": "f0f7b33150dd1f0af9e87f5d871a0058", "score": "0.6693995", "text": "abstract public void saveToDatabase();", "title": "" }, { "docid": "141fcdb031c5b5ee29972981b57772a6", "score": "0.6689737", "text": "public void insertUser(User user) \n\t{\n\n\t}", "title": "" }, { "docid": "f2b67d507816c8aa14b81157295044a0", "score": "0.6679288", "text": "public User_info save(User_info user_info) {\n\t\treturn this.userInfoDao.save(user_info);\r\n\t}", "title": "" }, { "docid": "c98a1aa44f190c6cc4e47757348f9a88", "score": "0.66763896", "text": "public void savefitbitdata(FitbitUser fitbitUser){\n\n SharedPreferences sharedPreferences = fCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n editor.putString(\"dateOfBirth\",fitbitUser.getDateOfBirth());\n editor.putString(\"fullName\",fitbitUser.getFullName());\n editor.putString(\"gender\",fitbitUser.getGender());\n editor.putString(\"height\",fitbitUser.getHeight());\n editor.putString(\"weight\",fitbitUser.getWeight());\n editor.putString(\"age\",fitbitUser.getAge());\n editor.apply();\n }", "title": "" }, { "docid": "49a9251bc6ecd4c877f0cce81905b144", "score": "0.66662735", "text": "public void insert(User user);", "title": "" }, { "docid": "43b8de2f9962c73d40301199669afaba", "score": "0.6664178", "text": "public void save(){\n workspaceManager.saveWorkspace();\n user.save();\n }", "title": "" }, { "docid": "a737b9beed0ac432bd892861a9404a33", "score": "0.66609603", "text": "public Boolean saveUser() {\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\t\tQuery gaeQuery = new Query(\"users\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\t\tList<Entity> list = pq.asList(FetchOptions.Builder.withDefaults());\n\n\t\tEntity employee = new Entity(\"users\", list.size() + 1);\n\n\t\temployee.setProperty(\"name\", this.name);\n\t\temployee.setProperty(\"email\", this.email);\n\t\temployee.setProperty(\"password\", this.password);\n\t\tdatastore.put(employee);\n\t\t\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "da6d80adc8b8bf1cdc0dba852d3986f1", "score": "0.6654154", "text": "@Override\n\tpublic void save(User user) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tsession.save(user);\n\t}", "title": "" }, { "docid": "421c59bcae8389de4ee530fb463c8282", "score": "0.6653587", "text": "public void saveOrUpdate(User userObject) throws DaoException;", "title": "" }, { "docid": "886081cdefc0eafd5f502f196b6fab85", "score": "0.66520554", "text": "public void saveUser(String userName, String passWord){\n SharedPreferences preferences = getSharedPreferences(\"save_name\", MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"KEY_USER_NAME\", userName);\n editor.putString(\"KEY_PASSWORD\", passWord);\n editor.apply();\n }", "title": "" }, { "docid": "372b5f5cf023db7b5c3410569e6ff46b", "score": "0.6645383", "text": "private void writeToDatabase() {\n String emailEntry = emailAddressField.getText().toString();\n String passwordEntry = passwordField.getText().toString();\n\n authentication.createUserWithEmailAndPassword(emailEntry, passwordEntry).addOnCompleteListener(new OnCompleteListener<AuthResult>() { // Create user account with e-mail and password\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if (task.isSuccessful()) { // If the register task is successful\n\n Toast.makeText(RegisterActivity.this, \"Data written to DB\", Toast.LENGTH_LONG).show();\n\n } else {\n\n Toast.makeText(RegisterActivity.this, \"Could not write to DB\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }", "title": "" }, { "docid": "1ca957cf792c04ec383b9e47f21e8752", "score": "0.66440517", "text": "public void saveSchleperInfo() throws IOException {\r\n HashMap<String, String> saveUser = new HashMap();\r\n saveUser.put(\"UUID\", this.getUuid());\r\n saveUser.put(\"firstName\", this.getFirstName());\r\n saveUser.put(\"lastName\", this.getLastName());\r\n saveUser.put(\"userEmail\", this.getEmail());\r\n saveUser.put(\"userPassword\", this.getPassword());\r\n saveUser.put(\"phoneNumber\", this.getPhoneNumber());\r\n\r\n connector.createObject(saveUser, \"user\");\r\n }", "title": "" }, { "docid": "fb47f67b1739522fff2d457c43c42c29", "score": "0.6642191", "text": "@Override\n\tpublic void save(User user) {\n\t\ttry {\n\t\t\tconn = DBUtil.getConnection();\n\t\t\tString sql = \"insert into user(account,password) values(?,?)\";\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tint rs;\n\t\t\tstmt.setString(1,user.getAccount());\n\t\t\tstmt.setString(2,user.getPassword());\n\t\t\trs = stmt.executeUpdate();\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\tfinally {\n\t\t\tif(stmt!=null) {\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t\tstmt=null;\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "850939a9b5e74e672c551beb64719101", "score": "0.66246396", "text": "@Test\n\tpublic void saveTestcase()\n\t{\n\t\tuser.setStudentid(\"ram\");\n\t\tuser.setUsername(\"ram\");\n\t\tuser.setPassword(\"ram123\");\n\t\tuser.setBirthdate(\"654789123\");\n\t\tuser.setEmail(\"Ram@gmail.com\");\n\t\t\n\t\tAssert.assertEquals(\"save\", true, userDao.saveOrUpdate(user));\n\t}", "title": "" }, { "docid": "7ee7c18cf0f68c87d1a452e1e6eb0d1b", "score": "0.66242343", "text": "public boolean save(User user) \n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e51e7004c8c8fe33e7afb637b2fa6fd3", "score": "0.6618736", "text": "public void saveUsuario(Usuario usuario_1);", "title": "" }, { "docid": "1f155c1b2b6e1b49d299b17488056b65", "score": "0.66166466", "text": "private void postDataToSQLite() {\n if (!inputValidation.isInputEditTextFilled(textInputEditTextName, textInputLayoutName, getString(R.string.error_message_name))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled(textInputEditTextEmail, textInputLayoutEmail, getString(R.string.error_message_email))) {\n return;\n }\n if (!inputValidation.isInputEditTextEmail(textInputEditTextEmail, textInputLayoutEmail, getString(R.string.error_message_email))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled(textInputEditTextPassword, textInputLayoutPassword, getString(R.string.error_message_password))) {\n return;\n }\n if (!inputValidation.isInputEditTextMatches(textInputEditTextPassword, textInputEditTextConfirmPassword,\n textInputLayoutConfirmPassword, getString(R.string.error_password_match))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled( textInputEditTextMobile,textInputLayoutMobile, \"Enter Valid Mobile Number\" )){\n return;\n }\n if (!databaseHelper.checkUser(textInputEditTextEmail.getText().toString().trim())) {\n user.setName(textInputEditTextName.getText().toString().trim());\n user.setEmail(textInputEditTextEmail.getText().toString().trim());\n user.setPassword(textInputEditTextPassword.getText().toString().trim());\n user.setMobile(textInputEditTextPassword.getText().toString().trim());\n databaseHelper.addUser(user);\n // Snack Bar to show success message that record saved successfully\n Snackbar.make(nestedScrollView, getString(R.string.success_message), Snackbar.LENGTH_LONG).show();\n emptyInputEditText();\n } else {\n // Snack Bar to show error message that record already exists\n Snackbar.make(nestedScrollView, getString(R.string.error_email_exists), Snackbar.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "37d2af160b515c3522d284576c1a494c", "score": "0.6609922", "text": "public void saveUser(User u) {\n\t\tSystem.out.println(\"UserDaoForOracleImpl save user\");\n\t}", "title": "" }, { "docid": "7b8aeb50377c442ed487379fe024c9e6", "score": "0.66084164", "text": "public boolean saveUser(User user)\n {\n boolean f =false;\n \n try{\n \n String query = \"insert into Registeration(NAME,EMAIL,PASSWORD,CONFIRMPASSWORD) values(?,?,?,?)\";\n \n PreparedStatement pstmt =this.con.prepareStatement(query);\n \n pstmt.setString(1, user.getNAME());\n pstmt.setString(2, user.getEMAIL());\n pstmt.setString(3, user.getPASSWORD());\n pstmt.setString(4, user.getCONFIRMPASSWORD());\n \n pstmt.executeUpdate();\n \n f = true;\n \n \n }\n catch (Exception e){\n \n e.printStackTrace();\n \n }\n \n return f;\n \n }", "title": "" }, { "docid": "605915e283a028737d03cd1dfb57a710", "score": "0.65994763", "text": "public void save() {\n System.out.println(\"Persist the record into database\");\n }", "title": "" }, { "docid": "5c4a6812b4eee0fd2d686fa376a3da52", "score": "0.65897715", "text": "public void saveUserData(ObaUserDataItem user) {\n dynamoDbClient.saveItem(user);\n }", "title": "" }, { "docid": "138a5957c0b162af5fb421e0cb154188", "score": "0.65785366", "text": "void insertOrUpdateUser(User user);", "title": "" }, { "docid": "bb1c49f91808fa6499ab369054479d40", "score": "0.6578351", "text": "public void save()\r\n\t{\r\n\t\t//TODO\r\n\t}", "title": "" }, { "docid": "87b03c0acd0b2a99179231357b3dbf44", "score": "0.65645033", "text": "private void userSaves() {\r\n\t\tSiteManager.saveChanges();\r\n\t\tsaved = true;\r\n\t}", "title": "" }, { "docid": "11d7ec2a54aa52e02f3ca8f41599f20d", "score": "0.65504766", "text": "@Override\r\n\tpublic void updata(User user) {\n\t\tSystem.out.println(\"执行修改用户信息的操作\");\r\n\t}", "title": "" }, { "docid": "94de78a7481a081f065127533084e607", "score": "0.6529637", "text": "@Override\n public void run() {\n presenter.saveUser(new User(name, lastName, level));\n }", "title": "" }, { "docid": "7e6f8ac4760473c85f0ed13bc91f5169", "score": "0.6527843", "text": "@Override\r\n\tpublic void save(SafeUser user) {\n\t\tthis.getHibernateTemplate().save(user);\r\n\t}", "title": "" }, { "docid": "5e00fa144f9d201edd8269199d1dda07", "score": "0.6527183", "text": "public void save();", "title": "" }, { "docid": "3fbe7f8f11601fbe7aa5235c27445030", "score": "0.65205586", "text": "public void putUserInformation(DatabaseOperations dop, String email, String username, String name, String major, String password, int banned, int admin) {\n final SQLiteDatabase sQ = dop.getWritableDatabase();\n final ContentValues cv = new ContentValues();\n cv.put(UserData.TableInfo.USER_EMAIL, email);\n cv.put(UserData.TableInfo.USER_NAME, username);\n cv.put(UserData.TableInfo.NAME_USER, name);\n cv.put(UserData.TableInfo.MAJOR_USER, major);\n cv.put(UserData.TableInfo.PASSWORD_USER, password);\n cv.put(UserData.TableInfo.BANNED_STATUS, banned);\n cv.put(UserData.TableInfo.ADMIN_STATUS, admin);\n\n //insert rows\n sQ.insert(UserData.TableInfo.TABLE_USER, null, cv);\n Log.d(DATABASEOP, \"Information inserted\");\n }", "title": "" }, { "docid": "130460afc3f2f338b99f18f7c7761c33", "score": "0.65161186", "text": "@Override\n <S extends User> S saveAndFlush(S user);", "title": "" }, { "docid": "7c2c8f693c558e7d8a429355bb0e8cab", "score": "0.65150976", "text": "public abstract void save(Player player, User user);", "title": "" }, { "docid": "267dd88ab7623f18f043a73fb9a6e787", "score": "0.6507143", "text": "@Override\r\n\tpublic UserInfo saveUserInfo(UserInfo userInfo) {\n\t\treturn super.save(userInfo);\r\n\t}", "title": "" }, { "docid": "2acd6ee6c89310b491799eda69356e85", "score": "0.6493307", "text": "public void setUser() {\n try {\n\n String query = \"select userName from user\";\n rs = st.executeQuery(query);\n while (rs.next()) {\n String userName = rs.getString(1);\n Database.addUser(userName);\n }\n } catch (Exception ex) {\n e1.error(ex);\n }\n }", "title": "" }, { "docid": "4da398a8e39c5079a85190962793f423", "score": "0.6487805", "text": "@Override\n\tpublic void saveUser(User user) {\n\t\t\n\t\tStandardServiceRegistry reg = new StandardServiceRegistryBuilder().configure(\"hibernate.cfg.xml\").build();\n\t\tMetadata meta = new MetadataSources(reg).getMetadataBuilder().build();\n\t\tSessionFactory factory = meta.getSessionFactoryBuilder().build();\n\t\tSession session = factory.openSession();\n\t\tTransaction trans = session.beginTransaction();\n\t\t\n\t\t\n\t\tUser user1 = new User();\n\t\tuser1.setName(user.getName());\n\t\tuser1.setEmailId(user.getEmailId());\n\t\tuser1.setPassword(user.getPassword());\n\t\tuser1.setPhoneNumber(user.getPhoneNumber());\n\t\tsession.persist(user1);\n\t\ttrans.commit();\n\t\tsession.close();\n\t}", "title": "" }, { "docid": "3d3e57d6a84449b1a3db91226d808cd5", "score": "0.6487598", "text": "public int saveUser(String username, String email, String password,\n\t\t\tString address, String phoneno) {\n\t\tUserBean user = new UserBean();\n\t\tuser.setAddress(address);\n\t\tuser.setEmail(email);\n\t\tuser.setMobile(phoneno);\n\t\tuser.setName(username);\n\t\tuser.setPassword(password);\n\t\thtemp.save(user);\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "f73c29774d2226f4dfc214efee59cdb8", "score": "0.64848083", "text": "private void saveSettings() throws Exception {\n \t\t\n \t\tUser user = null;\n \t\tString phoneNumber = _accountNumberPref.getText().trim();\n \t\t\n \t\tif (getIntent().getBooleanExtra(Defs.INTENT_ACCOUNT_ADD, false)) {\n //\t\tif (_editUser == null) {\n \t\t\tuser = new User().setAccountName(_accountNamePref.getText())\n \t\t\t\t.setPhoneNumber(phoneNumber)\n \t\t\t\t.setAccountType(getAccountTypeFromListPrefs());\n //\t\t\tUsersManager.getInstance().addUser(user);\n \t\t\tif (UsersManager.getInstance().isUserExists(phoneNumber)) \n \t\t\t\tthrow new Exception(getResString(R.string.err_msg_user_already_exists));\n \t\t\t\n \t\t} else {\n \t\t\tuser = _editUser; // get instance of user being edited\n \t\t\tuser.setAccountName(_accountNamePref.getText());\n \t\t\tuser.setAccountType(getAccountTypeFromListPrefs());\n \t\t}\n \t\t\t\n \t\t//Log.v(Defs.LOG_TAG, \"Saved raw pass: \" + _accountPasswordPref.getText() + \" Enc pass: \" + user.getEncodedPassword());\n \t\t\n \t\tif (!TextUtils.equals(_accountPasswordPref.getText(), Defs.DUMMY_PASSWORD)) {\n \t\t\tUsersManager.getInstance().setUserPassword(user, _accountPasswordPref.getText());\n \t\t}\n \t\t\n \t\tif (getIntent().getBooleanExtra(Defs.INTENT_ACCOUNT_ADD, false)) {\n \t\t\tUsersManager.getInstance().addUser(user);\n \t\t}\n \n \t\t// save all users\n \t\tSharedPreferences prefs = this.getSharedPreferences(Defs.PREFS_USER_PREFS, 0);\n \t\tUsersManager.getInstance().save(prefs);\n \t\t\n \t\t// set default selected\n \t\tGlobalSettings.getInstance().setLastSelectedPhoneNumber(phoneNumber);\n \t}", "title": "" }, { "docid": "df2cffda7de14d657e99b6db3f12726a", "score": "0.6481973", "text": "EndUser save(EndUser persisted);", "title": "" }, { "docid": "eb291b21844c6cc7d65797d3407bf72f", "score": "0.64818966", "text": "private void addUserToDatabase() {\n FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser();\n\n\n if (currentUser != null) {\n StorageReference filePath = storageReference.child(\"users\");\n Map<String, String> user = new HashMap<>();\n String uid = currentUser.getUid();\n String heartRate = \"--\";\n String bloodPressure = \"--\";\n\n //User userClass = new User(name, email, age, password, heartRate, bloodPressure);\n user.put(\"name\", name);\n user.put(\"email\", email);\n user.put(\"age\", age);\n user.put(\"bloodPressure\", bloodPressure);\n user.put(\"heartRate\", heartRate);\n\n firebaseFirestore.collection(\"users\").document(name)\n .set(user)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(TAG, \"User Added to Firestore\");\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(TAG, \"Error!\");\n }\n });\n\n } else { }\n }", "title": "" }, { "docid": "9efb6644134a86db636eef88d07ced69", "score": "0.64790475", "text": "public void addUser() {\n try {\n user.setLogin(user.getName() + user.getLastName());\n user.setPassword(\"password\");\n userService.addUser(user);\n reset();\n } catch (DataAccessException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "68027b014edbda32011bfe17821e3704", "score": "0.64737964", "text": "public int insertUserDetails(UserDo userDo);", "title": "" }, { "docid": "c55a15064c8ec9583fd3ee70ad229967", "score": "0.6464871", "text": "public void saveUser(User user){\n DatabaseReference database = FirebaseDatabase.getInstance().getReference();\n\n if(user.getId() == null || user.getId().isEmpty()){\n String key = database.child(AppConstants.Firebase.USERS_PATH).push().getKey();\n user.setId(key);\n }\n\n Map<String, Object> postValues = user.toMap();\n\n Map<String, Object> childUpdates = new HashMap<String, Object>();\n\n childUpdates.put(AppConstants.Firebase.USERS_CHILDS_PATH + user.getId(), postValues);\n database.updateChildren(childUpdates);\n }", "title": "" }, { "docid": "fbabbe1c02ef7e1a95ec354f9e7aa986", "score": "0.6442492", "text": "boolean saveUser(User user) throws UserAlreadyExistException;", "title": "" }, { "docid": "342eb354e27f9d56a5bf8494a1a11d50", "score": "0.6440294", "text": "@Override\n public void saveUser(User user) {\n\n\n userRepository.save(user);\n assignRole(user,roleRepository.findByName(\"ROLE_USER\"));\n }", "title": "" }, { "docid": "fc9b8ce063637a205293e28a5ae38132", "score": "0.6440118", "text": "@Override\n\tpublic void save1(User user) {\n\t\tuserRepository.save(user);\n\t}", "title": "" }, { "docid": "ebbd0a2b13223660cac903631039fe9a", "score": "0.6437691", "text": "@Override\n public void onClick(View view) {\n int id = Integer.parseInt(user_id.getText().toString());\n String userName = user_name.getText().toString();\n String email = user_email.getText().toString();\n //create an object of the user entrity class\n UserEntity user = new UserEntity(id,userName,email);\n //insert the user object into the Room\n\n MainActivity.userDatabase.userDao().addUser(user);\n //creatr a toaste that inform us that user has been inserted\n // then clear all the fields\n Toast.makeText(getContext(), \"user added sucessfully\",Toast.LENGTH_LONG).show();\n user_id.setText(\"\");\n user_name.setText(\"\");\n user_email.setText(\"\");\n\n }", "title": "" }, { "docid": "fded57c11f643db2fbeaed093dfbecad", "score": "0.6432353", "text": "public String registerUserInDB(CustomerDetails userInformation);", "title": "" } ]
0077afbfad8bc7067856037552f33653
This signature and much more will change later in the project
[ { "docid": "187f4ecf7a36122d5ad242ae91ba8490", "score": "0.0", "text": "boolean update(long fps, ArrayList<GameObject> objects,\n GameState gs, SoundEngine se){\n\n // Update all the GameObjects\n for (GameObject object : objects) {\n if (object.checkActive()) {\n object.update(fps, objects.get(Level.PLAYER_INDEX)\n .getTransform());\n }\n }\n\n return detectCollisions(gs, objects, se);\n }", "title": "" } ]
[ { "docid": "092f51e9c99cd4188e1aae23e1830dfd", "score": "0.67630297", "text": "protected void func_70626_be() {}", "title": "" }, { "docid": "ddc0d0e601ee6214fcde35f82dbe39d4", "score": "0.61797327", "text": "private static void oldAPI() {\n }", "title": "" }, { "docid": "119b459aa82980ed18ed9f73e4c0c1f6", "score": "0.61360896", "text": "public void mo8248e() {\n }", "title": "" }, { "docid": "3d504a8e5fa1bc441b4eff07c38361ac", "score": "0.6058423", "text": "private String lamabermain() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "8c675938c9e35dde26173dd03e8e8b87", "score": "0.6046816", "text": "private Straight() { }", "title": "" }, { "docid": "d31d53319bb6d704cbf77a3c70bc1020", "score": "0.60445356", "text": "protected VSOP87() {}", "title": "" }, { "docid": "e0989255fd1af22841693489e1afa33b", "score": "0.6040087", "text": "public void mo24349a() {\n }", "title": "" }, { "docid": "2c17f12127c6ec5c71ee68e9dc194d45", "score": "0.6031459", "text": "protected abstract void mo4089a();", "title": "" }, { "docid": "a083516339a5d776673870983e50f3db", "score": "0.6002566", "text": "protected void mo2006i() {\n }", "title": "" }, { "docid": "19b4c0357858fabc51416ca4f3983098", "score": "0.5983775", "text": "public abstract void mo56206d();", "title": "" }, { "docid": "aa0b7d5f5d99688fabc98155f3848991", "score": "0.59604615", "text": "public abstract Object mo18693e();", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.5948703", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5d0ca133fc6668fbf90e887199552b36", "score": "0.59485155", "text": "public void mo5335a() {\n }", "title": "" }, { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.5932489", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "31e0a27cc492b5cdc0831a13dff60c1a", "score": "0.59149516", "text": "@Override\r\n\tprotected void impl() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2762ca3c2d0df2e43c2974f74b6f5794", "score": "0.59109443", "text": "public void mo23507LF() {\n }", "title": "" }, { "docid": "cfce6138e7c17675b46eff0e9722e5ab", "score": "0.590189", "text": "protected void bo() {}", "title": "" }, { "docid": "0dfa96c0c19b4e557e94ad8e4bd17cf9", "score": "0.58754647", "text": "@Override\n public void perfomeOK() {\n }", "title": "" }, { "docid": "941cb2826e3c700358fcaba402e6bb01", "score": "0.5875196", "text": "@Override\r\n\tpublic void hissetmek() {\n\r\n\t}", "title": "" }, { "docid": "edf8746b0a440449fef09bda577a6dfa", "score": "0.58728665", "text": "public abstract String mo60504b();", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.58629656", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "72b0bc70f559ddaee5f1007383efb97c", "score": "0.58536947", "text": "public abstract void mo56205c();", "title": "" }, { "docid": "e0c094d83d14ff81389cf2b976bc6f8b", "score": "0.5851547", "text": "private MeineEingabe()\n\t{\n\t}", "title": "" }, { "docid": "f7e263f0862e2c66583579023cf2f3d0", "score": "0.58445895", "text": "private JrgenUtil() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "f3c955d588be7c170155fc68e4cc1916", "score": "0.58409715", "text": "public abstract void mo56202b();", "title": "" }, { "docid": "8b70cadf2fc2651889af6cbe1da00e56", "score": "0.58281326", "text": "public void mo31640a() {\n }", "title": "" }, { "docid": "7f070b602eb37fcb8f5aac5a4f42745e", "score": "0.58206815", "text": "protected Curso() {\n\t}", "title": "" }, { "docid": "9c78dfd9e1a470b1bd008504d19d9197", "score": "0.5812919", "text": "protected void mo1958j() {\n }", "title": "" }, { "docid": "6b630fdd945a114aebb1b027d42db42d", "score": "0.58066225", "text": "public void mo23391KV() {\n }", "title": "" }, { "docid": "a55a117206823f1c09b2ed1fbc8a44d9", "score": "0.57990694", "text": "private Utilities() {}", "title": "" }, { "docid": "a8ee8a5581ce765ec4ab398c0459e014", "score": "0.5793877", "text": "@Override\r\n\tpublic void koklama() {\n\r\n\t}", "title": "" }, { "docid": "816cfd2681d68211114b121fd4e6d579", "score": "0.5787162", "text": "public abstract void mo5457c();", "title": "" }, { "docid": "24b649f4fd4e2e8f4e195b19c09f4c8b", "score": "0.57789564", "text": "@Override\n public void FUNMAYORQ() {\n\n }", "title": "" }, { "docid": "1068dc3e7725abba37b41c9a52dee06b", "score": "0.57783234", "text": "@Override\r\n\tpublic void tatmak() {\n\r\n\t}", "title": "" }, { "docid": "d82478ae830b553d61c8fecbb7b9b5c3", "score": "0.57631356", "text": "public abstract void mo56208f();", "title": "" }, { "docid": "6a98c5d2724fce37914819c5694da3c3", "score": "0.57591784", "text": "@Override\r\n\tpublic void anular() {\n\r\n\t}", "title": "" }, { "docid": "6fa58af6131f485c25385068e9be8034", "score": "0.5753827", "text": "public void mo44615a() {\n }", "title": "" }, { "docid": "3318e097f367f3d9a453ce7cbb92b836", "score": "0.57500935", "text": "public void mo29954a() {\n }", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.5743126", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "7a6162e3a0fc41c251e756736f275542", "score": "0.57349956", "text": "private CycUtils() {}", "title": "" }, { "docid": "f099266a753a2faacd6b8dfa57904378", "score": "0.573276", "text": "@Override\r\n\tpublic void courrir() {\n\t}", "title": "" }, { "docid": "5862a1a342c325b867ea49d1ed53b115", "score": "0.5731693", "text": "private Rehearsal() {}", "title": "" }, { "docid": "dfc78aba39155e932ff9d2a648fa320e", "score": "0.5724618", "text": "private Object Entrada1() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "e1942af9ae178f0ac29ad811c30836f0", "score": "0.5723233", "text": "@Override\r\n\t\t\t\t\t\tpublic void visitCode() {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "a8b3125cf5a8c121a83becbda790b8cc", "score": "0.5723072", "text": "private DataConvert() {\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5722703", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "114b319b45ee81a8caef48f977b035c9", "score": "0.5722399", "text": "private CompareCode() {\n\t\t}", "title": "" }, { "docid": "73f8594953f66e1ecf16560a2b56cfe8", "score": "0.5714701", "text": "public abstract void mo14918a();", "title": "" }, { "docid": "723488cf76b273faa9614522a3fe614c", "score": "0.5713017", "text": "public abstract void mo5458d();", "title": "" }, { "docid": "fb1a50555cbabc315279d3340e0b70c0", "score": "0.5704281", "text": "public void mo24352b() {\n }", "title": "" }, { "docid": "cfa0ada5cad719e9d04904b39fb3e94c", "score": "0.570333", "text": "public void mo17159a() {\n }", "title": "" }, { "docid": "3f2992e6b797c2700993efbec2eb8cf7", "score": "0.5702979", "text": "public void mo2110a() {\n }", "title": "" }, { "docid": "04641acb337cd05cd6b9a7081c5c073b", "score": "0.57006073", "text": "private native void OooO0o0();", "title": "" }, { "docid": "5893ea2537d284bd45ad7c9695469a5d", "score": "0.5678407", "text": "public abstract void mo24712a();", "title": "" }, { "docid": "d7f69db89747e2ea2bf230a302cc6655", "score": "0.5665186", "text": "private LegacyExtensions() {\n\n }", "title": "" }, { "docid": "8c5b7f2508d01c106c784ecca7153f46", "score": "0.5658833", "text": "@Override\n\tvoid comer() {\n\t\t\n\t}", "title": "" }, { "docid": "5069028ec0d0fb465a3704bd78739d79", "score": "0.5658418", "text": "public void mo36907a() {\n }", "title": "" }, { "docid": "0d81c067c8001661f6cbaddca50d165a", "score": "0.56510335", "text": "public void mo6081a() {\n }", "title": "" }, { "docid": "11a93a3a459568b5575f538d613ea5fa", "score": "0.56491905", "text": "@Override\r\n\tpublic void fokkAlia() {\n\r\n\t}", "title": "" }, { "docid": "818b07dccf40428b367d662e1f7fa870", "score": "0.56473285", "text": "void m20463OooO00o();", "title": "" }, { "docid": "2d27e68ca7cc383c5b94ac3d012f85fb", "score": "0.5644812", "text": "private Util() {\n\t\t// This class should not be instantiated.\n\t}", "title": "" }, { "docid": "1915242d2dcabd36c142b1fa65459546", "score": "0.5639411", "text": "public void mo88465G() {\n }", "title": "" }, { "docid": "94d4c16ca52c36475337475d59c1b7d0", "score": "0.5636898", "text": "private Blueprint() {\n \t\t// This class is not intended to create objects from it.\n \t}", "title": "" }, { "docid": "63918b2e510c9040bbddcac00095b41a", "score": "0.56312054", "text": "private void recuperation() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.56310755", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "eb46362e4ca7501c223be255a8ab67a6", "score": "0.5623072", "text": "public abstract String mo60503a();", "title": "" }, { "docid": "97b9d36e470c035a6b1b8de39ba08b03", "score": "0.56219375", "text": "public abstract String mo7207a();", "title": "" }, { "docid": "266877a88ba66e638d3674c44e8c3e2a", "score": "0.5619379", "text": "public abstract void mo56207e();", "title": "" }, { "docid": "0e69410f7365f8e3379273ee4419fb49", "score": "0.56183386", "text": "@Override\r\n\tprotected void init() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "6ff609324d52117797af7a85e31d5560", "score": "0.561495", "text": "public abstract void mo87921c();", "title": "" }, { "docid": "7176cce05b115a5d94711b9fa889dd8b", "score": "0.5609524", "text": "public void mo88451w() {\n }", "title": "" }, { "docid": "b7f027eb6ff62218a28c15c608504db7", "score": "0.56088096", "text": "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "title": "" }, { "docid": "b83f123f2f7ed2c4cf59316a7f0d1de0", "score": "0.56084627", "text": "public abstract void mo81882a();", "title": "" }, { "docid": "2d0824e923a5d66806b3bad0940abbd3", "score": "0.56002194", "text": "private Utils() {}", "title": "" }, { "docid": "08eeff115541467ce242702c09ca33da", "score": "0.5599488", "text": "private CodeCamp() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "36e400a516499204257ae497b7df4f8f", "score": "0.55957466", "text": "private Util() {}", "title": "" }, { "docid": "36e400a516499204257ae497b7df4f8f", "score": "0.55957466", "text": "private Util() {}", "title": "" }, { "docid": "36e400a516499204257ae497b7df4f8f", "score": "0.55957466", "text": "private Util() {}", "title": "" }, { "docid": "eafc3033ac0987f560ea1322481a2dae", "score": "0.55899954", "text": "private ContentSerialisationUtil() {}", "title": "" }, { "docid": "eace6563d7eb7ea12c57b9e2d24642b4", "score": "0.5587549", "text": "@Override\n public void name() {\n\n }", "title": "" }, { "docid": "c564a35d56769cbceb948f4615f0b3c7", "score": "0.5587199", "text": "protected LibFunction() {\t\t\n\t}", "title": "" }, { "docid": "c343de10f19c7964962654b7ae6ee7e0", "score": "0.558234", "text": "private StackExchangeApiMethods() {}", "title": "" }, { "docid": "dae8b602ea36995333bfb23acf8fc88d", "score": "0.55819255", "text": "@Override\n\tpublic void respire() {\n\n\t}", "title": "" }, { "docid": "6deaa59b729453b10c5868f231d168c6", "score": "0.55804557", "text": "public abstract void mo56187a();", "title": "" }, { "docid": "dfde40ff06da4b2a90a10c7ec1d5de2c", "score": "0.558025", "text": "public void mo22147a() {\n }", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5579284", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.556602", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d006934d01c2dcea5728093a420585ea", "score": "0.5560128", "text": "@Override\r\n public void use ()\r\n {\n \r\n }", "title": "" }, { "docid": "3d8bdb4004c238600454fc7a75598bdf", "score": "0.55577487", "text": "public abstract void mo12331a();", "title": "" }, { "docid": "c7ddf697f158cf02f7863888259376ed", "score": "0.5557417", "text": "public abstract void mo517d();", "title": "" } ]
371a180fa5ddeb44e2f1433c9a78405e
get a count of field of interest
[ { "docid": "60c54be705e70b13ea217f89ff8254c6", "score": "0.0", "text": "public int GetSelectProfessionalAreaCodeCount() throws Exception {\n \tWebElement wTempElement = driver.findElement(By.id(\"ProfessionalAreaCode\"));\n \tSelect myDropDown=new Select(wTempElement);\n \tList<WebElement> rowList = myDropDown.getOptions();\n \treturn rowList.size();\n }", "title": "" } ]
[ { "docid": "9e14438aa2220257f340791071edab43", "score": "0.8030018", "text": "int getFieldsCount();", "title": "" }, { "docid": "c78aeb53b2ccb48e1b6aa6d5f1646eba", "score": "0.7938956", "text": "int countByExample(CustomfieldExample example);", "title": "" }, { "docid": "07b15f882b59515f52f9dac59b5d43f4", "score": "0.78401595", "text": "int getField24610Count();", "title": "" }, { "docid": "14f44187c87a2c714b8aea44dcc7d2b8", "score": "0.77988994", "text": "int getField24466Count();", "title": "" }, { "docid": "e9f65b0d15e4c80cdb135cfd9b37da10", "score": "0.77852297", "text": "int getField24461Count();", "title": "" }, { "docid": "69d6b53c01aa2baf956210d494432f26", "score": "0.7781935", "text": "int getField24473Count();", "title": "" }, { "docid": "dde2b10ab5e6f74eb84d15497a7630db", "score": "0.7774652", "text": "int getField24620Count();", "title": "" }, { "docid": "5dff6a7ac1663c2ffb3d0fe2682b08de", "score": "0.7766401", "text": "int getField24465Count();", "title": "" }, { "docid": "43878e2da6cc112807e7e04337eca490", "score": "0.77643675", "text": "int getField24611Count();", "title": "" }, { "docid": "48cf0ccb9fe7d2aaa1c9bf2c8082d600", "score": "0.7762806", "text": "int getField24469Count();", "title": "" }, { "docid": "998b6dd25e134b8e0ab77e476de00431", "score": "0.7758532", "text": "int getField6697Count();", "title": "" }, { "docid": "ed8677b05db412e087a004c2f360c67f", "score": "0.7742496", "text": "int getField24463Count();", "title": "" }, { "docid": "72c85e311f7f372adaab36e138188578", "score": "0.7738717", "text": "int getField6673Count();", "title": "" }, { "docid": "925015e3c2b9b4054210b009bc34b11f", "score": "0.7738401", "text": "int getField24470Count();", "title": "" }, { "docid": "da022de0b9578bbe37f498c119078022", "score": "0.7726792", "text": "int getField6163Count();", "title": "" }, { "docid": "374ff69688631460541b520b00fc0bd6", "score": "0.7705964", "text": "int getField18885Count();", "title": "" }, { "docid": "c86016076ef9b076c810d008cb9eeb0a", "score": "0.77038836", "text": "int getField24451Count();", "title": "" }, { "docid": "15fe6666b90713a16ad916999a0b2295", "score": "0.76969856", "text": "int getField24455Count();", "title": "" }, { "docid": "27c2f7644f7f0b1c2cddf28d03f987a5", "score": "0.76681644", "text": "int getField24449Count();", "title": "" }, { "docid": "7e7a33c5853e1a3b2b2550d3636a326c", "score": "0.7663982", "text": "int getField24456Count();", "title": "" }, { "docid": "6f1a8ddde7d71c2ea116fb8783b166f0", "score": "0.76615435", "text": "int getField6153Count();", "title": "" }, { "docid": "9d44d7bf8a4b53081497588ede47055d", "score": "0.76482373", "text": "int getField24612Count();", "title": "" }, { "docid": "ade9f14b18ed3915dfde31981c480f9e", "score": "0.7645447", "text": "int getField24619Count();", "title": "" }, { "docid": "190ac3d2cf587681f80f1143430d236b", "score": "0.76366365", "text": "int countByExample(FieldItemExample example);", "title": "" }, { "docid": "9e613c10d60ce352e2d05af856713e40", "score": "0.7629846", "text": "int getField24614Count();", "title": "" }, { "docid": "c59bee158224366c4bf0d27436f752af", "score": "0.7622355", "text": "int getField13208Count();", "title": "" }, { "docid": "8e49cedbaa8eddb2b26ead10f4880994", "score": "0.76162136", "text": "int getField24468Count();", "title": "" }, { "docid": "65ab43f394e94bc678b069d55c7bea59", "score": "0.7611344", "text": "int getField8471Count();", "title": "" }, { "docid": "6a9703f4f3f0a341fde2aa5fb797fadd", "score": "0.7604548", "text": "int getField24454Count();", "title": "" }, { "docid": "5ee39b6dcb4eee83a29300d55fb9a165", "score": "0.76008976", "text": "int getField6753Count();", "title": "" }, { "docid": "f9b49d21f9c4579fb098a8e880017503", "score": "0.75848097", "text": "int getField6161Count();", "title": "" }, { "docid": "53300959b3c86968d39234716803f74a", "score": "0.7584574", "text": "int getField24467Count();", "title": "" }, { "docid": "ba879b6e8419d73934699ba5b15b2e46", "score": "0.7578775", "text": "int getField6165Count();", "title": "" }, { "docid": "8c518fd1d04818492cccaa492da83766", "score": "0.7569715", "text": "int getField6169Count();", "title": "" }, { "docid": "30015958ee2996ddd5b210d520bad858", "score": "0.75399995", "text": "int getField6162Count();", "title": "" }, { "docid": "05cb586161e95ba9c1df7dacd8f2e518", "score": "0.7537995", "text": "int getField24618Count();", "title": "" }, { "docid": "4552d159d1e6563bceb737ba1e554632", "score": "0.7533448", "text": "int getField24453Count();", "title": "" }, { "docid": "333b21518cca6fd1b5ff16c665b75d38", "score": "0.75328946", "text": "int getField6671Count();", "title": "" }, { "docid": "e222a8d59dfd8f3f9db08eb5132d7ec8", "score": "0.7521048", "text": "abstract public int getFieldNameCount();", "title": "" }, { "docid": "475b905cb650a17145021ac3b53cba77", "score": "0.7512408", "text": "int getField13158Count();", "title": "" }, { "docid": "7c248a6cd4f2373548773cf02c036112", "score": "0.75075936", "text": "int getField24613Count();", "title": "" }, { "docid": "50f0e59378be1a80edef11e4d7864d46", "score": "0.7495971", "text": "int getField35527Count();", "title": "" }, { "docid": "2008e80b8dee6d84f45e8266a1dc1aa0", "score": "0.7492317", "text": "int getField16694Count();", "title": "" }, { "docid": "032f4016df352e3b059f5cc84d6a9aa9", "score": "0.7484465", "text": "int getField6749Count();", "title": "" }, { "docid": "9c7159e5ed62bab81eed7bc89cd85dc4", "score": "0.74759436", "text": "int getField8230Count();", "title": "" }, { "docid": "b01e4cd4d53c23effee8bb3171bf7b30", "score": "0.74665296", "text": "int getField906Count();", "title": "" }, { "docid": "dae00bf718f0c3f40d5e513dc23d87fb", "score": "0.7453907", "text": "int getField917Count();", "title": "" }, { "docid": "3c9807d6c89fc2c52f2c5a9d9c61e47e", "score": "0.7442911", "text": "int getField24464Count();", "title": "" }, { "docid": "15defffb0b3c6fe6484bf93e5c13ed01", "score": "0.7421781", "text": "int getField898Count();", "title": "" }, { "docid": "8f665d0792e7923310aab6e89a1f6fe7", "score": "0.7420729", "text": "int getField13110Count();", "title": "" }, { "docid": "e899cf255cf44c6c4a7cd7ba03e493ef", "score": "0.7378123", "text": "int getField914Count();", "title": "" }, { "docid": "d6ad27b3b38d4bc3e624b76b65537e99", "score": "0.73726445", "text": "int getField24450Count();", "title": "" }, { "docid": "201adb324714d5d8eb532f32c2424f25", "score": "0.73573714", "text": "int getField907Count();", "title": "" }, { "docid": "89d253b0d7acaab52d12fd6cb54cb3ee", "score": "0.7315491", "text": "int getField905Count();", "title": "" }, { "docid": "1e470005c1a8153b6f4fd58cf046c2d0", "score": "0.73024106", "text": "int getField918Count();", "title": "" }, { "docid": "b1d21ba3c138a57497f8b724e70669d4", "score": "0.72913253", "text": "int getField913Count();", "title": "" }, { "docid": "6cad270b4f1be7cf9afd64d6722c1a35", "score": "0.72792625", "text": "int getField909Count();", "title": "" }, { "docid": "baf87b966589091996e914ce97195aaa", "score": "0.7261265", "text": "Count getValueCount();", "title": "" }, { "docid": "6215ea0ab4a9bf2b56ff4b0ad18ef19b", "score": "0.72562474", "text": "int getField900Count();", "title": "" }, { "docid": "f5a6f31568fd0a819476742c593fb391", "score": "0.72246325", "text": "int getField920Count();", "title": "" }, { "docid": "eb2c582dcbb98457acbb457a9e0ba656", "score": "0.7208536", "text": "int getField916Count();", "title": "" }, { "docid": "22532f1b22c46452b1fc4286b819dc68", "score": "0.72039187", "text": "int getField904Count();", "title": "" }, { "docid": "90ce101501e9fb7038a60eaa8754edf7", "score": "0.7186392", "text": "int getField908Count();", "title": "" }, { "docid": "029b7c331b285a4e0c73c403a819b826", "score": "0.71801436", "text": "int getField6160Count();", "title": "" }, { "docid": "218c2b0dd211b04f66901eb658769643", "score": "0.7177723", "text": "int getField24448Count();", "title": "" }, { "docid": "0be38d084e7700021c5a7d07685670cf", "score": "0.71734387", "text": "int getField922Count();", "title": "" }, { "docid": "8eea10a2b03bc1d617ee320111162c1f", "score": "0.71703726", "text": "int getField902Count();", "title": "" }, { "docid": "a4cfecbe3593819dfad55229f8d3bc29", "score": "0.7126803", "text": "int getField903Count();", "title": "" }, { "docid": "0643ce46efc85294f89a4bc192816225", "score": "0.7106238", "text": "public int countByField2(boolean field2);", "title": "" }, { "docid": "60dd016de2dc718057eb975051902859", "score": "0.7105985", "text": "int getField6757Count();", "title": "" }, { "docid": "86f30f462078954b2d1c209e3b123edf", "score": "0.6992656", "text": "long getValueCount();", "title": "" }, { "docid": "ceaee4187aed4669f7c0ec832ad56d19", "score": "0.69553035", "text": "int getField899Count();", "title": "" }, { "docid": "5c29f156bd0bbe5f9ee3b173047a2a39", "score": "0.69396824", "text": "int getField923Count();", "title": "" }, { "docid": "38a6ab70a9766596dc2724b242e3403b", "score": "0.69341564", "text": "int getRecordCount();", "title": "" }, { "docid": "cc2509f2a23a64c6207456e373ee9906", "score": "0.68352985", "text": "int getField928Count();", "title": "" }, { "docid": "394ab9ac1d67b08249140433d12e5bf7", "score": "0.6824343", "text": "int getRecordsCount();", "title": "" }, { "docid": "80f610a8b8f6bd06caba29bda1986dde", "score": "0.6784718", "text": "String getCount();", "title": "" }, { "docid": "79fd8a71adf03d5f0a63e9cb1fc8cee1", "score": "0.6759187", "text": "int getField915Count();", "title": "" }, { "docid": "1c188eeda52b23c644cb29c817f71be0", "score": "0.67382514", "text": "public int count();", "title": "" }, { "docid": "ea04203572ec1ad15e58e9471adc9ed4", "score": "0.6703834", "text": "int getSearchResultCount();", "title": "" }, { "docid": "acb2f5c0de6d6d578030662c3b6dfd21", "score": "0.6702711", "text": "public long count();", "title": "" }, { "docid": "a05e33fc638384b95d3f542947bfb1c8", "score": "0.6697168", "text": "private int getGetterCounter(String fieldName) {\n Integer count = gettersCounter.get(fieldName);\n return (count == null) ? 0 : count;\n }", "title": "" }, { "docid": "0792c7a5abeb49151e8fab2037b8477d", "score": "0.66962475", "text": "Count getCount();", "title": "" }, { "docid": "175db9e7302991fdd1091746dd09d32d", "score": "0.66956836", "text": "Long count();", "title": "" }, { "docid": "44676a4999d1a891c57aa79f3353dcf5", "score": "0.6688739", "text": "Long findAllCount();", "title": "" }, { "docid": "66bda43f7ed3d9ccf2f71f422c9cf578", "score": "0.6687212", "text": "Long getCount(TrainiaDB.runtime.query.LExp where);", "title": "" }, { "docid": "ef77cebc0c3a900b1eaa7f25c749cefb", "score": "0.66844594", "text": "int getDocCount();", "title": "" }, { "docid": "11176170ad03044745a0f8d5fd57b1e9", "score": "0.6674337", "text": "int getNftsCount();", "title": "" }, { "docid": "8317284a9f1a28d41d9d020984a5f16e", "score": "0.6673674", "text": "public ProjectionBuilder count(String fieldName) {\r\n\t\tprojection.add(new CountOperator(QualifiedName.qualify(entityName, fieldName)));\r\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "e766e815bdc1a62aecf8d05584ddd42a", "score": "0.6636607", "text": "com.google.protobuf.Int64Value getCount();", "title": "" }, { "docid": "e766e815bdc1a62aecf8d05584ddd42a", "score": "0.6636607", "text": "com.google.protobuf.Int64Value getCount();", "title": "" }, { "docid": "8d0f5b06c0fc2e36724b5df05a5f5acc", "score": "0.6635759", "text": "public int countByP_S_F(long groupId, int statusDraft, long fieldId);", "title": "" }, { "docid": "bde228f69cdd02b328bedc89b8a4b846", "score": "0.66224563", "text": "public int getArtifactCount(ArtifactType artType, String field, String value);", "title": "" }, { "docid": "294cea053b8511eec67a0c8fd8be7433", "score": "0.6617823", "text": "int getDocsCount();", "title": "" }, { "docid": "294cea053b8511eec67a0c8fd8be7433", "score": "0.6617823", "text": "int getDocsCount();", "title": "" }, { "docid": "294cea053b8511eec67a0c8fd8be7433", "score": "0.6617823", "text": "int getDocsCount();", "title": "" }, { "docid": "294cea053b8511eec67a0c8fd8be7433", "score": "0.6617823", "text": "int getDocsCount();", "title": "" }, { "docid": "294cea053b8511eec67a0c8fd8be7433", "score": "0.6617823", "text": "int getDocsCount();", "title": "" }, { "docid": "3a70f14fb59c71ceeabe2cfb7d4e1f66", "score": "0.66113716", "text": "int getPersonasCount();", "title": "" }, { "docid": "aef344bf3a10cc44f3013802f8f76a30", "score": "0.66044927", "text": "int getDataCount();", "title": "" }, { "docid": "aef344bf3a10cc44f3013802f8f76a30", "score": "0.66044927", "text": "int getDataCount();", "title": "" } ]
98290af6606eaf833f23870d39cd5fb0
Prompt the user once explanation has been shown
[ { "docid": "7073cee0dc8130aa7abf6f248298b5e8", "score": "0.0", "text": "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(AddTask.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION );\n }", "title": "" } ]
[ { "docid": "7f4be5b298c888640fb9b0da9debd510", "score": "0.7301172", "text": "public void askQuestionConsole()\n {\n // getAnswer return true if question is correct\n updateCounters ( getAnswerConsole() );\n }", "title": "" }, { "docid": "f3b551dab20d175948e9f8cbba74de27", "score": "0.7185161", "text": "public void promptUser()\n {\n textArea.append(\"Please think of a number from 1-100\\nPress yes when you are ready.\\n\");\n }", "title": "" }, { "docid": "7b0578643097ec144b373a0c9d054114", "score": "0.7035911", "text": "private static void prompt() {\n System.out.print(PROMPT_SYMBOL);\n Scanner standardInput = new Scanner(System.in);\n switch(standardInput.next()) {\n case \"exit\":\n System.out.println(\"Bye, bye!\");\n System.exit(0);\n break;\n case \"query\":\n try {\n StudentDatabase.QueryFilter queryFilter = new StudentDatabase.QueryFilter(standardInput.nextLine());\n printListOfEntries(filter(queryFilter));\n } catch (Exception e) {\n System.out.println(\"Illegal query. \" + e.getMessage());\n System.out.println(\"Please repeat entry.\");\n }\n prompt();\n break;\n default:\n System.out.println(\"Unsupported instruction. Repeat entry or type exit.\");\n prompt();\n break;\n }\n }", "title": "" }, { "docid": "ffc6e430b9566d9f29788bdd7a0fd1ca", "score": "0.67484087", "text": "private static void displayIntroMessage() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"1. Take a 10 Question Test\");\n\t\tSystem.out.println(\"2. Exit Program\");\n\t}", "title": "" }, { "docid": "5d9145dc2c2b8685cce3b691504eb851", "score": "0.67401063", "text": "public void hint() {\n if (hintcount > 0) {\n if (secretword.equals(new String(display))) {\n } else {\n System.out.println(\"press yes for hint, else press no\");\n h = sd.nextLine();\n }\n }\n h = h.toLowerCase();\n if ((h.equals(\"yes\")) && hintcount > 0) {\n for (int i = 0; i < w.words.length; i++) {\n if (secretword.equals(w.words[i].getWord().toLowerCase())) {\n if (hintcount == 2) {\n System.out.println(w.words[i].getHint1());\n hintcount--;\n } else if (hintcount == 1) {\n System.out.println(w.words[i].getHint2());\n hintcount--;\n }\n }\n }\n } else if (h.equals(\"no\")) {\n }\n }", "title": "" }, { "docid": "53ac8222d85d497d480b623e731c95db", "score": "0.6729162", "text": "public void askQuestion() {\n\t\tthis.createProblem();\n\t\tSystem.out.println(\"How much is \" + randInt_1 + \" times \" + randInt_2 + \"?\");\n\t}", "title": "" }, { "docid": "245c23357dcc85d2cc0baccdbb7ca0aa", "score": "0.6711925", "text": "private void interact()\n\t{\n\t\tview.displayMessage(\"Hello, and welcome to the Constellations Center\");\n\t\t\n//\t\tSystem.out.println(\"We need to address systemic racism, sexism, and gender in CS\");\n\t\tview.displayMessage(\"We need to address systemic racism, sexism, and gender in CS\");\n\t\t\n//\t\tSystem.out.println(\"What is your first suggestion?\");\n\t\tString response = view.askQuestion(\"What is your first suggestion?\");\n\t\t\n//\t\tString answer = textScanner.nextLine();\n\t\t\n//\t\tSystem.out.println(\"I read that you said: \" + answer + \". Thank you\");\n\t\tview.displayMessage(\"I read that you said: \" + response + \". Thank you\");\n\t\t\n\t\tresponse = view.askQuestion(\"How silly should we be: Type in a number\");\n\t\t\n\t\twhile (!validateInt(response))\n\t\t{\n\t\t\tview.displayMessage(\"Keep trying to use a number\");\n\t\t}\n\t\t\n\t\tint loop = Integer.parseInt(response);\n\t\t\n\t\tfor (int index = 0; index < loop; index++)\n\t\t{\n\t\t\tview.displayMessage(\"This is the \" + index + \"st/nd/rd/th iteration\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "deadcdc4fb1709383a78cb3f154e15dc", "score": "0.665821", "text": "public void PromptA() {\n\t\t\n\t\tString choose = input.nextLine();\n\t\tboolean quit = false;\n\t\twhile(!quit) {\n\t\t\tSystem.out.println(\"type 'help' if you need help navigating\");\n\t\t\t\n\t\t\t\n\t\t\tif(choose.equals(\"help\")) {\t\n\t\t\t\tSystem.out.println(divider);\n\t\t\t\tSystem.out.println(\"type 'find' to search database\");\n\t\t\t\tSystem.out.println(\"type 'update' to update items in database\"); \n\t\t\t\tSystem.out.println(divider);\n\t\t\t}\n\t\t\telse if(choose.equals(\"find\")) {\n\t\t\t\tSystem.out.println(\"type either one of these commands\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t\tSystem.out.println(\"find me\");\n\t\t\t\tSystem.out.println(\"find my pay info\");\n\t\t\t\tSystem.out.println(\"find benefits\");\n\t\t\t\tSystem.out.println(\"training info\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t}\n\t\t\telse if(choose.equals(\"update\")) {\n\t\t\t\tSystem.out.println(\"type either one of these commands\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t\tSystem.out.println(\"update my info\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "5e619be2de497385363e10557e59a848", "score": "0.65825886", "text": "public void displayQuestions() {\r\n\t\tSystem.out.println(\"Choose which security question you had given while registration\");\r\n\t\tSystem.out.println(\"1.what is your nickname?\");\r\n\t\tSystem.out.println(\"2.what is place of birth?\");\r\n\t\tSystem.out.println(\"3.What is your fathers name?\");\r\n\t}", "title": "" }, { "docid": "4a317b37e59266189b9d63dd41bc6a79", "score": "0.65394145", "text": "public String inputQuestion( String message ) {\n return JOptionPane.showInputDialog( message );\n }", "title": "" }, { "docid": "e04038811f16626e515ee2e62ec3a162", "score": "0.65263075", "text": "public static void interactive() {\r\n\t\tSystem.out.println(\"Eliza: \"+Config.INITIAL_MESSAGE);\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\twhile(true) \r\n\t\t{\r\n\t\t\tString input = in.nextLine();\r\n\t\t\tif (Eliza.processInput(input) == null)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Eliza: \"+Config.FINAL_MESSAGE);\r\n\t\t\t\tin.close();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Eliza: \"+Eliza.processInput(input));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9e588783b0a6a14a1935c994152e0d3f", "score": "0.65148604", "text": "@Override\n public void excute() {\n String answerExit = InteractCalc.this.ask(\"Are you sure? Y/N: \");\n if (answerExit.equalsIgnoreCase(\"Y\")) {\n InteractCalc.this.exit = true;\n }\n }", "title": "" }, { "docid": "03ce5aca3f59720bbffee7b3f0319d40", "score": "0.65124875", "text": "public void askUser(int guess)\n {\n textArea.append(\"\\nIs \" + guess + \" the number that you're thinking of?\\n\");\n }", "title": "" }, { "docid": "ef3d7df6254f5cef8daf130e4616b4cc", "score": "0.6509324", "text": "private void promptMakeSuggestion()\r\n\t{\r\n\t\tSuspectCard murderer = (SuspectCard) promptCard(\"I suggest the crime was committed in the \" + game.getCurrentRoom().getName() + \" by ...\", game.getSuspectCards());\r\n\t\tWeaponCard murderWeapon = (WeaponCard) promptCard(\"with the ...\", game.getWeaponCards());\r\n\r\n\t\tString verificationQuestion = String.format(\"You're suggesting %s committed the crime in the %s with the %s?\", murderer.getName(), game.getCurrentRoom().getName(), murderWeapon.getName());\r\n\r\n\t\tif (!promptMenuBoolean(verificationQuestion, \"That's correct\", \"Actually, I'll take another look at the evidence\"))\r\n\t\t{\r\n\t\t\treturn; // The user decided not to go through with the suggestion.\r\n\t\t}\r\n\r\n\t\tMap<Player, Set<Card>> disproved = game.makeSuggestion(murderWeapon, murderer);\r\n\r\n\t\tif (!disproved.isEmpty())\r\n\t\t{\r\n\t\t\tMap<Player, Card> disprover = new HashMap<Player, Card>();\r\n\t\t\t// Given that disproved is not empty, these two variables will be initialised.\r\n\t\t\tPlayer disprovingPlayer = null;\r\n\t\t\tSet<Card> disprovingHandSet = null;\r\n\r\n\t\t\tList<Card> disprovingHandList = new ArrayList<Card>();\r\n\r\n\t\t\tfor (Player p : disproved.keySet())\r\n\t\t\t{\r\n\t\t\t\tdisprovingPlayer = p;\r\n\t\t\t\tdisprovingHandSet = disproved.get(p);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tassert disprovingHandSet != null;\r\n\t\t\tassert disprovingPlayer != null;\r\n\r\n\t\t\tfor (Card c : disprovingHandSet)\r\n\t\t\t{\r\n\t\t\t\tdisprovingHandList.add(c);\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\tprintln(String.format(\"%s, you can disprove the suggestion...\", disprovingPlayer.getName()));\r\n\t\t\tcontinuePromptMenu();\r\n\r\n\t\t\tString question = String.format(\"%s choose a card to reveal to %s:\", disprovingPlayer.getName(), game.getCurrentPlayer().getName());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tdisprover.put(disprovingPlayer, promptCard(question, disprovingHandList));\r\n\t\t\tgame.removeCard(disprover);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tprintln(\"No one could disprove your suggestion... Maybe you're onto something here.\");\r\n\t\t}\r\n\t\tcontinuePromptMenu(); // So the viewing player doesn't see the rest of the hand.\r\n\t}", "title": "" }, { "docid": "0e40046379a558528340a969934c6ff9", "score": "0.6503645", "text": "void promptMessage(String message);", "title": "" }, { "docid": "8494598aefd5fc5c3b6c95d342c80afc", "score": "0.64957654", "text": "public void mainPrompt() {\n\n\n boolean user;\n String userInput;\n\n do{\n System.out.println(\"1 - View Contacts.\");\n System.out.println(\"2 - Add a new Contact.\");\n System.out.println(\"3 - Search by contact name.\");\n System.out.println(\"4 - Delete an existing contact.\");\n System.out.println(\"5 - Exit.\");\n\n userInput = String.valueOf(getNumber());\n\n\n switch (userInput) {\n case \"1\" -> displayContacts();\n case \"2\" -> addContact();\n case \"3\" -> searchContact();\n case \"4\" -> deleteContact();\n case \"5\" -> System.exit(5);\n default -> System.out.println(\"Input invalid, please try again: \");\n }\n user = yesNo();\n\n }while(user);\n\n\n }", "title": "" }, { "docid": "78d086190b3e05f96de47c3d2080134c", "score": "0.6485812", "text": "public void Edit() {\n\t\tboolean response = false;\n\t\tString tmpResp = \"\";\n\t\tfor(int i = 0 ; i < questions.size() ; i++){\n\t\t\tquestions.get(i).Display();\n\t\t\tio.Output(\"Do you wish to modify this question?\");\n\t\t\ttmpResp = io.getInputString();\n\t\t\tresponse = io.interpretResponse(tmpResp);\n\t\t\t\n\t\t\tif( response ){\n\t\t\t\tio.Output(\"Do you wish to modify the prompt?\");\n\t\t\t\ttmpResp = io.getInputString();\n\t\t\t\tresponse = io.interpretResponse(tmpResp);\n\t\t\t\tif( response ){\n\t\t\t\t\tio.Output(i+1 + \") \");\n\t\t\t\t\tquestions.get(i).Display();\n\t\t\t\t\tquestions.get(i).Edit(1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(questions.get(i).response.lengthChoices() > 0 || questions.get(i).numberOfChoices > 0){\n\t\t\t\t\tquestions.get(i).response.displayChoices();\n\t\t\t\t\tio.Output(\"Do you wish to modify the choices?\");\n\t\t\t\t\ttmpResp = io.getInputString();\n\t\t\t\t\tresponse = io.interpretResponse(tmpResp);\n\t\t\t\t\tif( response ){\n\t\t\t\t\t\tquestions.get(i).response.displayChoices();\n\t\t\t\t\t\tquestions.get(i).Edit(2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1dfed1581d275c335bfe4be9789a627c", "score": "0.64765346", "text": "private void prompt(){\n\t\tsynchronized(myState){\n\t\t\tswitch (myState){\n\t\t\tcase CS_NOT_SPECIFIED_USER:\n\t\t\t\tSystem.out.print(\"\\nPlease specify your user name\\n>\");\n\t\t\t\tbreak;\n\t\t\tcase CS_NOT_SPECIFIED_MODULUS:\n\t\t\t\tSystem.out.print(\"\\nPlease enter the modulus section of your private key\\n>\");\n\t\t\t\tbreak;\n\t\t\tcase CS_NOT_SPECIFIED_EXPONENT:\n\t\t\t\tSystem.out.print(\"\\nPlease enter the exponent section of your private key\\n>\");\n\t\t\t\tbreak;\n\t\t\tcase CS_SERVER_NOT_AUTHENTICATED:\n\t\t\t\tSystem.out.print(\"\\nWaiting for serverside authentication\\n\");\n\t\t\t\tbreak;\n\t\t\tcase CS_SERVER_AUTHENTICATED:\n\t\t\t\tSystem.out.print(\"\\nWaiting for handshake acknowledgement\\n\");\n\t\t\t\tbreak;\n\t\t\tcase CS_HANDSHAKE_ACHIEVED:\n\t\t\t\tSystem.out.print(\"\\nType 'SEND ' and your message to send.\\nType 'X' to exit\\n>\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0f1ee72bded03f14a74dfb1d548e73f2", "score": "0.647603", "text": "private void promptForWord(){\n \t/*println(\"the word is \"+ word);*/\n \tcurrentGuessString = readLine(\"Please type a guess letter or a guess word: \").toUpperCase();\n \t\n \t\n }", "title": "" }, { "docid": "6993793a04fa7a2992b582155129abca", "score": "0.6415998", "text": "public void displayInorrectResponse() {\n\t\t//The program shall display a random negative message if the student \n\t\t//provides an incorrect response\n\t\tint response = rand.nextInt(4)+1;\n\t\tswitch(response) {\n\t\t\tcase 1: System.out.println(\"No. Please try again.\");\n\t\t\tbreak;\n\t\t\tcase 2: System.out.println(\"Wrong. Try once more.\");\n\t\t\tbreak;\n\t\t\tcase 3: System.out.println(\"Don't give up!\");\n\t\t\tbreak;\n\t\t\tcase 4: System.out.println(\"No. Keep trying.\");\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "efa0106fd283d9a446182c9ad31821ab", "score": "0.64141446", "text": "public static void printTryAgain() {\n System.out.println(\"Please enter a valid option:\");\n }", "title": "" }, { "docid": "7211d5bdc7be524e6c6807f03eedd2bc", "score": "0.64058834", "text": "private void checkForPrompt()\n\t{\n\t\t// Text has been entered, remove the prompt\n\n\t\tif (document.getLength() > 0)\n\t\t{\n\t\t\tsetVisible( false );\n\t\t\treturn;\n\t\t}\n\n\t\t// Prompt has already been shown once, remove it\n\n\t\tif (showPromptOnce && focusLost > 0)\n\t\t{\n\t\t\tsetVisible(false);\n\t\t\treturn;\n\t\t}\n\n\t\t// Check the Show property and component focus to determine if the\n\t\t// prompt should be displayed.\n\n if (component.hasFocus())\n {\n \tif (show == Show.ALWAYS\n \t|| show ==\tShow.FOCUS_GAINED)\n \t\tsetVisible( true );\n \telse\n \t\tsetVisible( false );\n }\n else\n {\n \tif (show == Show.ALWAYS\n \t|| show ==\tShow.FOCUS_LOST)\n \t\tsetVisible( true );\n \telse\n \t\tsetVisible( false );\n }\n\t}", "title": "" }, { "docid": "42f24b71bc24c0b80594ac7c04871521", "score": "0.6388494", "text": "public void askQuestion()\n\t{\n\t\tSystem.out.printf(\"How much is %d times %d?\\n\", randInt1, randInt2);\n\t}", "title": "" }, { "docid": "e71316441a5c818d4d9a8c39c5178fca", "score": "0.6376373", "text": "public String askUser(String question, String labeltext) throws Exception;", "title": "" }, { "docid": "1d65d809b95f39deb4bd8129425cb47c", "score": "0.63745815", "text": "void skill5() {\n\nString school = JOptionPane.showInputDialog(\"What school do you go to?\");\n\n\t\t// In another pop-up, tell the user, that their school is a fantastic school.// You must include the name of the school in the message. \n\nJOptionPane.showMessageDialog(null, school + \" is a fantastic school =D\");\n\n\t\t }", "title": "" }, { "docid": "ca67b03660349e59a86b7ece2bacc3be", "score": "0.63715833", "text": "private void prompt() {\n\t\tSystem.out.print(\"\\n#: \");\n\t\tSystem.out.flush();\n\t}", "title": "" }, { "docid": "9ef45f20bd798990da54fe2fe241e43e", "score": "0.6364181", "text": "public String getPrompt();", "title": "" }, { "docid": "fc67035e812f268b443957159ab724fb", "score": "0.6355916", "text": "@Override\n public void showQuestion() {\n // Display the question to prompt a response from the user\n\n // Correlate the values with a joke question from the array\n int l_joke_index = (l_value1 * l_value2) % c_joke_answer_number.length;\n System.out.printf(c_joke_format, c_joke_question_text[l_joke_index]);\n }", "title": "" }, { "docid": "d215da0ef72d6cf84ec49e7f83d34a91", "score": "0.6346022", "text": "public String prompt(String message) {\r\n \treturn JOptionPane.showInputDialog(Frame.getFrame(),message,\"Prompt\",JOptionPane.QUESTION_MESSAGE);\r\n }", "title": "" }, { "docid": "5015d4554bdbb899e943f6870b4f59e3", "score": "0.6277172", "text": "private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getActivity().getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "6e296f64bee5778c779aba4283f22901", "score": "0.62748563", "text": "private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "d5109b5ae5b2b1cb09c08940e3263173", "score": "0.6266521", "text": "private void promptSpeechInput() {\r\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\r\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\r\n\t\t\t\tRecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\r\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\r\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT,\r\n\t\t\t\tgetString(R.string.speech_prompt));\r\n\t\ttry {\r\n\t\t\tstartActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\r\n\t\t} catch (ActivityNotFoundException a) {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\tgetString(R.string.speech_not_supported),\r\n\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fa4e078d2518786de83ac681b84cacfe", "score": "0.6254365", "text": "public void promptM() {\n\t\t\n\t\tboolean quit = false;\n\t\twhile(!quit) {\n\t\t\t\n\t\t\tSystem.out.println(\"type 'help' for instructions\");\n\t\t\tString choose = input.nextLine();\n\t\t\t\n\t\t\t\n\t\t\tif(choose.equals(\"help\")) {\t\n\t\t\t\tSystem.out.println(divider);\n\t\t\t\tSystem.out.println(\"type 'add' to add users and other info\");\n\t\t\t\tSystem.out.println(\"type 'find' to search\");\n\t\t\t\tSystem.out.println(\"type 'update' to update employees and other info\"); \n\t\t\t\tSystem.out.println(\"type 'delete' to delete info\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t}\n\n\t\t\t\n\t\t\telse if(choose.equals(\"add\")) {\n\t\t\t\tSystem.out.println(\"Type either one of these commands\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t\tSystem.out.println(\"'add employee'\");\n\t\t\t\tSystem.out.println(\"'add payroll'\");\n\t\t\t\tSystem.out.println(\"'add benefits'\");\n\t\t\t\tSystem.out.println(\"'add performance'\");\n\t\t\t\tSystem.out.println(\"'add training'\");\n\t\t\t\tSystem.out.println(\"'add position'\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t}\n\t\t\telse if(choose.equals(\"find\")) {\n\t\t\t\tSystem.out.println(\"type either one of these commands\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t\tSystem.out.println(\"find employee\");\n\t\t\t\tSystem.out.println(\"find Pay info\");\n\t\t\t\tSystem.out.println(\"find benefits\");\n\t\t\t\tSystem.out.println(\"employees in training\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t}\n\t\t\telse if(choose.equals(\"delete\")) {\n\t\t\t\tSystem.out.println(\"type either one of these commands\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t\tSystem.out.println(\"delete employee\");\n\t\t\t\tSystem.out.println(\"delete pay info\");\n\t\t\t\tSystem.out.println(\"delete benefits\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t}\n\t\t\telse if(choose.equals(\"update\")) {\n\t\t\t\tSystem.out.println(\"type either one of these commands\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t\tSystem.out.println(\"update employee\");\n\t\t\t\tSystem.out.println(\"update Pay info\");\n\t\t\t\tSystem.out.println(\"update benefits\");\n\t\t\t\tSystem.out.println(\"update performance\");\n\t\t\t\tSystem.out.println(\"update position\");\n\t\t\t\tSystem.out.println(\"update training\");\n\t\t\t\tSystem.out.println(divider);\n\t\t\t}\n\t\n\t\t\telse if(choose.equals(\"add employee\")) {\t\n\t\t\t\temp.addEmployee();\t\n\t\t\t}\n\t\t\telse if(choose.equals(\"add benefits\")) {\t\t\t\t\n\t\t\t\tben.addBenefits();\n\t\t\t}\n\t\t\telse if(choose.equals(\"add pay\")) {\n\t\t\t\tpay.setPayrate();\t\t\t\t\n\t\t\t}\n\t\t\telse if(choose.equals(\"add position\")) {\n\t\t\t\tfin.addPosition();;\t\t\t\t\n\t\t\t}\n\t\t\telse if(choose.equals(\"add training\")) {\n\t\t\t\tfin.addTraining();\t\t\t\t\n\t\t\t}\n\t\t\telse if(choose.equals(\"add direct deposit\")) {\n\t\t\t\tpay.deposit();\t\t\t\t\n\t\t\t}\n\t\t\telse if(choose.equals(\"find employee\")) {\n\t\t\t\temp.findEmployee();\t\n\t\t\t}\n\t\t\telse if(choose.equals(\"find pay info\")) {\n\t\t\t\tpay.findPayAll();\n\t\t\t}\n\t\t\telse if(choose.equals(\"find pay\")) {\n\t\t\t\tpay.findPayrate();\t\t\t\t\n\t\t\t}\n\t\t\telse if(choose.equals(\"employees in training\")) {\n\t\t\t\tfin.findEmpInTrain();\n\t\t\t}\n\t\t\telse if(choose.equals(\"find benefits\")) {\t\t\t\t\n\t\t\t\tben.findBenefits();\n\t\t\t}\n\t\t\telse if(choose.equals(\"find performance\")) {\n\t\t\t\tfin.performanceTable();\n\t\t\t}\n\t\t\telse if(choose.equals(\"find employee performance\")) {\n\t\t\t\tfin.speciEmpPerformance();\n\t\t\t}\n\t\t\telse if(choose.equals(\"update employee\")) {\n\t\t\t\temp.updateEmployee();\n\t\t\t}\n\t\t\telse if(choose.equals(\"update Pay info\")) {\n\t\t\t\tpay.updatePay();\t\t\t\t\n\t\t\t}\n\t\t\telse if(choose.equals(\"update position\")) {\n\t\t\t\tfin.updatePosition();\t\t\t\t\n\t\t\t}\n\t\t\telse if(choose.equals(\"update training\")) {\n\t\t\t\tfin.updateTraining();\t\t\t\t\n\t\t\t}\n\t\t\telse if(choose.equals(\"update benefits\")) {\t\t\t\t\n\t\t\t\tben.updateBenefits();\n\t\t\t}\n\t\t\telse if(choose.equals(\"update performance\")) {\n\t\t\t\tfin.updatePerformance();\n\t\t\t}\n\t\t\telse if(choose.equals(\"delete pay\")) {\n\t\t\t\tpay.deletePay();\n\t\t\t}\n\t\t\telse if(choose.equals(\"delete employee\")) {\t\n\t\t\t\temp.deleteEmployee();\n\t\t\t}\n\t\t\telse if(choose.equals(\"delete benefits\")) {\t\t\t\t\n\t\t\t\tben.deleteBenefits();\n\t\t\t}\n\t\t\telse if(choose.equals(\"clock out\")) {\n\t\t\t\temp.employeeOut();\n\t\t\t\tSystem.out.println(\"Youre out\");\n\t\t\t\tquit = true;\n\t\t\t}\n\t\t\telse if (choose.equals(\"quit\")) {\n\t\t\t\tquit = true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6214c7551b7885f603608684133ddfb2", "score": "0.6250578", "text": "private void promptCard(Card card, String title) {\n JOptionPane.showMessageDialog(this, card.getQuestion(), title, JOptionPane.QUESTION_MESSAGE);\n JOptionPane.showMessageDialog(this, card.getAnswer(), title, JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "917adfe7d1fe5c487917ad9864fbdc21", "score": "0.62484473", "text": "public static void runPrompt() throws IOException {\n\t\tInputStreamReader input = new InputStreamReader(System.in);\n\t\tBufferedReader reader = new BufferedReader(input);\n\t\twhile (true) {\n\t\t\tSystem.out.print(\">> \");\n\t\t\trunLuria(reader.readLine());\n\t\t\terror = false;\n\t\t}\n\t}", "title": "" }, { "docid": "68839652525bb7145a9bc2dbc0817309", "score": "0.6243985", "text": "void setPrompt(String prompt);", "title": "" }, { "docid": "b63c5a63ab9bbb9507f961e66f1dfbfa", "score": "0.6237233", "text": "public void quiz() {\n\t\tboolean repeat = true;\n\t\twhile(repeat) {\n\t\tnum_Correct = 0;\n\t\tscore=0;\n\t\t\t//The program shall ask the student to solve 10 different multiplication problems\n\t\t\tfor(int i = 0; i<10; i++) {\n\t\t\t\t\n\t\t\t\tthis.askQuestion();\n\t\t\t\tthis.readResponce();\n\t\t\t\tif(this.isAsnwerCorrect()) {\n\t\t\t\t\tnum_Correct++;\n\t\t\t\t\tthis.displayCorrectResponse();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tthis.displayInorrectResponse();\n\t\t\t}\n\t\t\t//The program shall display the student's score after the student \n\t\t\t//has attempted to solve 10 problems\n\t\t\t//The student's score shall be the percentage of problems correctly solved\n\t\t\tscore = (10*num_Correct);\n\t\t\tSystem.out.println(\"your score is \" +score + \"%\");\n\t\t\t//The program shall display the message \"Please ask your teacher for extra help.\" \n\t\t\t//if the student's score is less than 75%\n\t\t\t//The program shall display the message \"Congratulations, you are ready to go to \n\t\t\t//the next level!\" if the student's score is greater than or equal to 75%\n\t\t\tif(score>=75) {\n\t\t\t\tSystem.out.println(\"Congratulations, you are ready to go to the next level!\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Please ask your teacher for extra help.\");\n\t\t\t}\n\t\t\tSystem.out.println(\"would you like to solve a new set of problems (Y/N)\");\n\t\t\tif(scan.next().charAt(0)=='N'){\n\t\t\t\trepeat = false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1b2af18bbe9893d47135b662336eecf6", "score": "0.6228151", "text": "private void promptReviewEvidence()\r\n\t{\r\n\t\tprintln(\"You haven't found evidence that removes the following from suspicion...\\n\");\r\n\r\n\t\tList<String> caseFile = new ArrayList<String>();\r\n\r\n\t\tfor (Card suspect : game.getSuspectCards())\r\n\t\t{\r\n\t\t\tif (game.getPlayerSuspectCards().contains(suspect))\r\n\t\t\t{\r\n\t\t\t\tcaseFile.add(suspect.getName());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (Card room : game.getRoomCards())\r\n\t\t{\r\n\t\t\tif (game.getPlayerRoomCards().contains(room))\r\n\t\t\t{\r\n\t\t\t\tcaseFile.add(room.getName());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (Card weapon : game.getWeaponCards())\r\n\t\t{\r\n\t\t\tif (game.getPlayerWeaponCards().contains(weapon))\r\n\t\t\t{\r\n\t\t\t\tcaseFile.add(weapon.getName());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tprintMenu(caseFile);\r\n\t\tprintBlankLines(2); // Give a bit of room before the turn menu prompt.\r\n\t}", "title": "" }, { "docid": "bc897fd072c262935cb5493042aa9cd4", "score": "0.62096727", "text": "private void checkQuestionMessage(FrameFixture frame, String expected)\n {\n JOptionPaneFixture question = frame.optionPane(timeout(2000)).requireQuestionMessage();\n question.requireMessage(expected);\n question.yesButton().click();\n }", "title": "" }, { "docid": "61046f721f0c1e094a11054c070c12fd", "score": "0.6202884", "text": "@Override\n\tpublic void promptForAction() {\n\t\tSystem.out.println(\"Input 'h' to hit or 's' to stand (not case-sensetive)\");\n\t}", "title": "" }, { "docid": "b812800cbdf71735b37ff5ce2c3e353c", "score": "0.617784", "text": "public String popupLineInputDialog(String prompt, boolean allowCancel);", "title": "" }, { "docid": "347258223018afb52eecdff3795fb20f", "score": "0.61761916", "text": "String getPrompt();", "title": "" }, { "docid": "347258223018afb52eecdff3795fb20f", "score": "0.61761916", "text": "String getPrompt();", "title": "" }, { "docid": "347258223018afb52eecdff3795fb20f", "score": "0.61761916", "text": "String getPrompt();", "title": "" }, { "docid": "cd16fa14317203d19fde1fee63853eca", "score": "0.6162616", "text": "public String displayEnterEventNamePrompt(){\n System.out.print(\"Please enter the name of the first event or type 'q' to go back: \");\n return scan.nextLine();\n }", "title": "" }, { "docid": "42c9b4a8fee2496f283c51ec30a688e9", "score": "0.6158589", "text": "public boolean askUser(String question) throws Exception;", "title": "" }, { "docid": "fc1e58483219e43a243d9bd6ac6bad96", "score": "0.6154295", "text": "public String askUser() {\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "cd06aa44053c8bebc4deb529ab59de26", "score": "0.61461127", "text": "public static void displayPrompt(String prompt){\n\t\tSystem.out.println(prompt);\n\t}", "title": "" }, { "docid": "d112ccb6faf3458a4070ddc9e552e8a1", "score": "0.6144586", "text": "private boolean ask(String title, String text) {\n int opt = JOptionPane.showConfirmDialog(null, text, title, JOptionPane.YES_NO_OPTION);\n return opt == JOptionPane.YES_OPTION;\n }", "title": "" }, { "docid": "a95567a02a5dd9dbf35e58c38ce18f67", "score": "0.6132576", "text": "private void prompt() {\n Stage stage = new Stage();\n Scene scene = new Scene(new Group());\n FlowPane flow = createPopup();\n scene.setRoot(flow);\n stage.setScene(scene);\n stage.show();\n }", "title": "" }, { "docid": "66d2d1abb2497a9dd86573e747308507", "score": "0.61313003", "text": "String getInstructionPrompt();", "title": "" }, { "docid": "45431fb10b26cd9b5300c79d92d94234", "score": "0.6130697", "text": "private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n\n Constants.showToastInMiddle(getApplicationContext(), getString(R.string.speech_not_supported));\n\n /*Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();*/\n }\n }", "title": "" }, { "docid": "01b1ebec805fa602548a118511aea1d1", "score": "0.6128582", "text": "public void examChoices()\r\n\t{\r\n\t\tSystem.out.println(\"\\r\\nWhich exam do you want to take?\");\r\n\t\tSystem.out.println(\"A. Java Exam B. English Exam\");\r\n\t\tchooseTest = console.next();\r\n\t\t// Load the exam they choose.\r\n\t\tif(chooseTest.equalsIgnoreCase(\"A\"))\r\n\t\t{\r\n\t\t\tj.loadQuestion();\r\n\t\t\tj.giveExam();\r\n\t\t}\r\n\t\telse if(chooseTest.equalsIgnoreCase(\"B\"))\r\n\t\t{\r\n\t\t\te.loadQuestion();\r\n\t\t\te.giveExam();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Please enter either A or B.\");\r\n\t\t\ta.examChoices();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "df729bafcb4865299850ba1e36fa558a", "score": "0.6125122", "text": "private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n \"You can speak now :)\");\n //check the speech support function of the device\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n //\n Toast.makeText(getApplicationContext(),\n \"Sorry! Your device doesn\\\\'t support speech input\",\n Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "289e6f94cd2b83ba61c53edb89f37449", "score": "0.6098855", "text": "public static void GreetingUser() {\r\n JOptionPane.showMessageDialog(null,\"Welcome to Paper, Scissor and Rock\\n\\nHere are the rules:\\n1)Scissors cuts Paper\\n2)Paper covers Rock\\n3)Rock breaks Scissors\");\r\n }", "title": "" }, { "docid": "654b088038280ba634040a8a26b9ffb6", "score": "0.60866076", "text": "public void conclusion ()\r\n {\r\n\tSystem.out.println (\" You have figured out who the shooter is.\");\r\n\tSystem.out.println (\" You are safe now.\");\r\n\tSystem.out.println (\" Thanks to your intelligence, the town of RIVERDALE has been saved.\");\r\n\tSystem.out.println (\" You can go back to living the happy life eith your friends and fsmily in RIVERDALE.\");\r\n\tinit ();\r\n\tSystem.out.println (\" \");\r\n\tchar again = IO.inputChar (\"Do you want to play again? (y/n) \");\r\n\tif (again == 'y')\r\n\t introduction ();\r\n\telse\r\n\t System.exit (0);\r\n }", "title": "" }, { "docid": "a18c157701750f692e8732a3d19c24a4", "score": "0.6080113", "text": "private void continuePromptMenu()\r\n\t{\r\n\t\tList<String> menu = new ArrayList<String>();\r\n\t\tList<String> regex = new ArrayList<String>();\r\n\r\n\t\tmenu.add(\"Press enter to continue\");\r\n\t\tregex.add(\"\");\r\n\t\texecuteMenu(\"\", menu, regex);\r\n\t\tprintBlankLines(15); // So the previous text isn't available\r\n\t}", "title": "" }, { "docid": "de07ab86bffa6fc257eaae5abf6d301a", "score": "0.6072869", "text": "public void showGameMessage()\n {\n textArea.append(\"Was my guess too high or too low?\\n\");\n }", "title": "" }, { "docid": "df3ef3a2b93b31395f31c9c315b85b3e", "score": "0.6065116", "text": "public String displayEventSelectorPrompt(){\n System.out.println(\"Type the name of the event who's attendee you want to message\");\n return scan.nextLine();\n }", "title": "" }, { "docid": "695a9e6fee027a976c26328d712bfd93", "score": "0.60602313", "text": "String prepareAnswer();", "title": "" }, { "docid": "23e50029a503e9f14866934db8cfc438", "score": "0.6050066", "text": "public void askForCatering(Quotation quotation)\n {\n UserInterface boundary = new UserInterface();\n Scanner scan = new Scanner(System.in);\n boolean bool = true;\n while(bool)\n {\n boundary.askForCaterPrefer();\n String caterpref = scan.nextLine();\n bool = false;\n switch(caterpref)\n {\n case\"y\":\n quotation.setIscateringPreferred(true);\n break;\n case\"n\":\n quotation.setIscateringPreferred(false);\n break;\n default:\n boundary.displayInvalidInput();\n bool = true;\n }\n quotation.setEstimatedPrice(calculatePrice(quotation));\n }\n boundary.displayEstimatedPrice(quotation.getEstimatedPrice());\n }", "title": "" }, { "docid": "bbc6d77eeff1cc75088405741e7574d5", "score": "0.6048818", "text": "private static void printManualMenu() {\n\t\tSystem.out.println(\"\\nPlease enter the business card text line by line and done to finish entering lines: \");\n\t}", "title": "" }, { "docid": "d29843834aff5b9546c5275b40a7d281", "score": "0.604353", "text": "private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_PREFER_OFFLINE, true);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Talk!\");\n\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n \"Speech to Text is not supported on your device!\",\n Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "f0f0518988cf7b499d3fe78157a898c6", "score": "0.6038564", "text": "public void wrongUserInput() {\n\t\tprint(\"please enter 'higher' or 'lower' or 'end' or 'yes'\");\n\t}", "title": "" }, { "docid": "522d74230aba9097fa4dc7c353618966", "score": "0.6025415", "text": "public static void main(String[] args) {\nspeak(\"spell mandlebrot\");\n\t\t// 2. Catch the user's answer in a String\nString answer=JOptionPane.showInputDialog(null,\"spell mandlebrot\");\n\t\t// 3. If the user spelled the word correctly, speak \"correct\"\nif(answer.equals( \"mandlebrot\")) {\n\tspeak(\"correct\");\n}\n\t\t// 4. Otherwise say \"wrong\"\nelse {\n\tspeak(\"wrong\");\n}\n\t}", "title": "" }, { "docid": "497e9998e1d02753ece20853ed359e02", "score": "0.6020473", "text": "private static char rerunPrompt()\n {\n\tScanner stdin = new Scanner(System.in);\n\tboolean input;\n\tchar character;\n\tboolean realinput;\n\tdo\n\t\t{\n\t\t\tSystem.out.print(\"\\n\\t\\tWould you like to try another file? (Y or N): \");\n\t\t\tString input_ = stdin.nextLine().toUpperCase();\n\t\t\tcharacter = input_.charAt(0);\n\t\t\trealinput = input = character == 'Y' || character == 'N';\n\t\t\tif (realinput) continue;\n\t\t\tSystem.out.print(\"\\t You have entered an invalid selection, please try again\");\n\t\t}\n\twhile (!realinput);\n\treturn character;\n }", "title": "" }, { "docid": "d765231d26ff0f12ff7cea29411ee1ce", "score": "0.60196525", "text": "@Test\n public void promptTest() throws InterruptedException {\n driver.findElement(By.xpath(\"//button[contains(text(),'Prompt box')]\")).click();\n Thread.sleep(3000);\n Alert alert = driver.switchTo().alert();\n System.out.println(\"Prompt box text: \" + alert.getText());\n // --- Accept prompt ---\n alert.accept();\n Thread.sleep(3000);\n //--- press 'Prompt Box' button\n driver.findElement(By.xpath(\"//button[contains(text(),'Prompt box')]\")).click();\n Thread.sleep(3000);\n alert = driver.switchTo().alert();\n // --- press cancel button for prompt ----\n alert.dismiss();\n Thread.sleep(3000);\n //--- press 'Prompt Box' button\n driver.findElement(By.xpath(\"//button[contains(text(),'Prompt box')]\")).click();\n Thread.sleep(3000);\n alert = driver.switchTo().alert();\n // --- sent text to prompt---\n alert.sendKeys(\"Ivan Ivanov\");\n Thread.sleep(2000);\n alert.accept();\n Thread.sleep(3000);\n\n }", "title": "" }, { "docid": "f0e232e3a563eebc4bb45551ed458f2d", "score": "0.60021406", "text": "boolean continuePrompt() {\n\t\tString option;\n\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"Continue? (\" + UserInterface.YES + \"/\" + UserInterface.NO + \")\");\n\t\t\toption = this.reader.nextLine();\n\t\t\toption = option.toLowerCase();\n\n\t\t\tif (option.equals(UserInterface.YES)) {\n\t\t\t\treturn true;\n\t\t\t} else if (option.equals(UserInterface.NO)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5ff06936f71362ddd610834ebdfcd262", "score": "0.5995486", "text": "void promptAnagram() {\n\t\tList<String> words = this.promptWords();\n\n\t\tString wordOne = words.get(0);\n\t\tString wordTwo = words.get(1);\n\n\t\tif (anagram.isAnagram(wordOne, wordTwo)) {\n\t\t\tSystem.out.println(\"\\\"\" + wordOne + \"\\\" is an anagram of \\\"\" + wordTwo + \"\\\"\");\n\t\t} else {\n\t\t\tSystem.out.println(\"\\\"\" + wordOne + \"\\\" is not an anagram of \\\"\" + wordTwo + \"\\\"\");\n\t\t}\n\t}", "title": "" }, { "docid": "6280a8538ae851dd913097d0010a213a", "score": "0.59882444", "text": "public boolean ask();", "title": "" }, { "docid": "afcadc3b0ea3a079db183c3fee1e6aa8", "score": "0.59865165", "text": "String ask();", "title": "" }, { "docid": "00d2e0ac5837ffcb919daa00a1520d5a", "score": "0.5981505", "text": "private static void printExampleMenu() {\n\t\tSystem.out.print(\"\\nPlease enter an example number between \" + ExampleTester.min + \" and \" + ExampleTester.max + \" or exit: \");\n\t}", "title": "" }, { "docid": "a277b98684750cc1726ac2df610846a7", "score": "0.59765005", "text": "public void aplicarPregunta(Pregunta q)\n {\n q.Imprimete();\n System.out.print(\"Respuesta: \");\n Scanner entrada = new Scanner(System.in);\n String respuesta = entrada.nextLine();\n /*if(q.checarRespuesta(respuesta)){\n System.out.println(\"Respuesta correcta\");\n }else{\n System.out.println(\"Respuesta incorrecta\");\n }*/\n }", "title": "" }, { "docid": "e501fe13e188c962c695e102eacb5990", "score": "0.5974822", "text": "public String displayEnterEventNamePrompt2(){\n System.out.print(\"Please enter the name of the next event or type 'q' to go back: \");\n return scan.nextLine();\n }", "title": "" }, { "docid": "01d3640f0f8915ec5c6e72e769e40100", "score": "0.5965318", "text": "public void ClaraMsg() {\n if (this.q >= 85.0D) {\n JOptionPane.showMessageDialog(null, \"Clara is proud of you. Keep up the good work and maybe you'll be able to pass her class.\", \"Clara Is Happy\", -1, this.clara3);\n } else {\n JOptionPane.showMessageDialog(null, \"Clara thinks of you as a stupid monkey, you should have done better to not upset our ruler. She will now guarantee you fail her class by killing you and your family\", \"Clara Isn't Happy\", -1, this.clara2);\n }\n }", "title": "" }, { "docid": "465120aa3386f3a436249a9abb2ab9c3", "score": "0.59636843", "text": "public void informAboutUncorrectDecision(){\n System.out.println(\"You can type only 'h', 's' or 'd'\");\n takeDecisionsAndSend();\n }", "title": "" }, { "docid": "b1c42011c358fab15de6579b53024903", "score": "0.5953755", "text": "public void editExam()\n\t{\n\t\tJOptionPane.showMessageDialog(mm,\"Code not Implemented: editExam\");\n\t}", "title": "" }, { "docid": "f32e5118da30aaac23bfd6c6333dc90f", "score": "0.59497666", "text": "private void ask() {\n String[] asker = { \"Player vs. Player\", \"Player vs. AI\", \"Multiplayer\" };\n int y = _j.option(asker, \"Player vs. Player: You and a friend battle it out to see who wins the 'Categories Game'\\n----\\nPlayer vs. AI: You battle against an AI to see if you can beat the computer!\\n----\\nMultiplayer: This mode is in Beta but this is a 4 player gamemode where you vs 3 buddies (or foes)\", \"Who is your Foe? \");\n if (y == 0) {\n System.out.println(\"1v1\");\n plyvply();\n curMode = 0;\n }\n else if (y == 1) {\n System.out.println(\"AI\");\n aiPlayer();\n curMode = 1;\n }\n else if (y == 2) {\n System.out.println(\"Multiplayer\");\n plymultiplyr();\n curMode = 2;\n }\n else {\n System.exit(0);\n }\n }", "title": "" }, { "docid": "17647bdc5ece5924eb081f6dda91ef62", "score": "0.59486485", "text": "public boolean confirm(final String message) {\r\n try {\r\n while (true) {\r\n System.out.println();\r\n System.out.print(message);\r\n System.out.print(\"(y|n|?) : \");\r\n\r\n int ch = getChar();\r\n\r\n System.out.println();\r\n\r\n //-- check ch\r\n switch (ch) {\r\n case 'y':\r\n return true;\r\n case 'n':\r\n return false;\r\n case '?':\r\n System.out.println(\"y = yes, n = no\");\r\n break;\r\n default:\r\n System.out.print(\"invalid input, expecting \");\r\n System.out.println(\"'y', 'n', or '?'.\");\r\n break;\r\n }\r\n }\r\n } catch (java.io.IOException ix) {\r\n System.out.println(ix);\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "712ae7fd9a382abe5aa91c95faf1dcc3", "score": "0.5946585", "text": "public void drawPrompt(String pickedWord){\n }", "title": "" }, { "docid": "a98696a18ead7af716cb10f814d1e458", "score": "0.5940827", "text": "public static void promptAndProcessInput()\n\t{\n\t\tint userChoice = outputText.greeting();\n\t\twhile (userChoice == CONTINUE)\n\t\t{\n\t\t\tString input = outputText.getTransaction();\n\t\t\tif (input != null )\n\t\t\t{\n\t\t\t\tinput = input.toUpperCase();\t\t\n\t\t\t\tString[] transaction = (input).trim().split(\" \");\n\t\t\t\n\t\t\t\tif(checkInput(input) && accounts.get(Integer.parseInt(transaction[0])-1).doTransaction(transaction))\n\t\t\t\t{\n\t\t\t\t\toutputText.currentTransaction(accounts, transactions, transaction);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\toutputText.showError();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\toutputText.showError();\n\t\t\t}\n\t\t\tuserChoice = outputText.greeting();\n\t\t}\n\t}", "title": "" }, { "docid": "58ad369363ef62fb31a390e83bce3e77", "score": "0.5940785", "text": "public void displayNextTaskPrompt(){\n System.out.println(\"Enter the next task:\");\n }", "title": "" }, { "docid": "71fbab371ee65ffe387971b20a75c224", "score": "0.59366125", "text": "private void giveAnswer ()\n\t{\n\t\tSystem.out.println (\"[SYSTEM] Waiting to tell Client the answer...\");\n\t\ttry\n\t\t{\n\t\t\tsocketInput.readLine();\n\t\t\tsocketOutput.println (\"[COMMAND] Found! Answer is: \" + answer);\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\tSystem.out.print (\"[ERROR] IO error when maintaining a client's connection at \");\n\t\t\tSystem.out.println (\"address \\\"\" + clientSocket.getInetAddress().getHostAddress() + \"\\\".\");\n\t\t}\n\t}", "title": "" }, { "docid": "391f0a886d6afe42d0d1c7c7e2042473", "score": "0.59357846", "text": "private void entryAction_main_mainStorry_inner_region_FaceDataInterpretation_FaceDataInterpretation_YesNo_MoreInfo_inner_region_asking_repeat_YesNo() {\n\t\tsCIHBrain.operationCallback.sendTTS(\"What did you say?\");\n\t}", "title": "" }, { "docid": "dd201ab32162e99bf6efd4af8c39eaca", "score": "0.59315926", "text": "public void displayCorrectResponse() {\n\t\t//The program shall display a random positive message if the student \n\t\t//provides a correct response\n\t\tint response = rand.nextInt(4)+1;\n\t\tswitch(response) {\n\t\t\tcase 1: System.out.println(\"Very good!\");\n\t\t\tbreak;\n\t\t\tcase 2: System.out.println(\"Excellent!\");\n\t\t\tbreak;\n\t\t\tcase 3: System.out.println(\"Nice work!\");\n\t\t\tbreak;\n\t\t\tcase 4: System.out.println(\"Keep up the good work!\");\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "184043d307e96d98a010da4578e859e7", "score": "0.59278446", "text": "public static void prompt(){\r\n\t\tString operation;\r\n\t\tJFrame frame = new JFrame(\"ChocAn\");\r\n\t\tImageIcon icon = new ImageIcon(\"choclate.png\");\r\n\t\tObject[] possibilities = {\"Operator Interface\", \"Provider Interface\", \"Manager Interface\",\"Run Accounting Procedure\"};\r\n\t\toperation = (String)JOptionPane.showInputDialog(frame, \"Which interface would you like to access?\",\"ChocAn Terminal Interface\",JOptionPane.PLAIN_MESSAGE, icon, possibilities, \"Operator Interface\");\r\n\t\t//System.out.print(operation);\r\n\t\tstr=operation;\r\n\t}", "title": "" }, { "docid": "b07e16fcae4740dca16568de1805e357", "score": "0.5927406", "text": "public void mainMenu()\n {\n System.out.println(\"--------------------------------------------------------------\");\n System.out.println(\" Ocean Mining Facility \");\n System.out.println(\"--------------------------------------------------------------\");\n System.out.println(\" ------------------ \");\n System.out.println(\" ||Play||Help||Quit|| \");\n System.out.println(\" ------------------ \");\n System.out.println(\"--------------------------------------------------------------\");\n \n \n do\n {\n String validResponses[] = {\"Play\", \"Help\", \"Quit\"};\n ui.setExpectedValues(validResponses);\n ui.promptUser();\n }\n while (ui.getResponse() == Response.INVALID);\n \n // presumably, by this point in the code, a correct response has been reached\n switch (ui.getInput().toLowerCase())\n {\n case \"play\": play(); response = Response.CONTINUE;\n break;\n case \"help\":\n break;\n case \"quit\": response = Response.QUIT;\n }\n }", "title": "" }, { "docid": "db99c2b4255522190d11e6a3c5054902", "score": "0.59185535", "text": "private void entryAction_main_mainStorry_inner_region_FaceDataInterpretation_FaceDataInterpretation_Prompt_2() {\n\t\tsCIHBrain.operationCallback.sendTTS(\"[:-|]Do you want to know more about me?\");\n\t\t\n\t\tsCIBGF.setRandNum(sCIBGF.operationCallback.getRandNum(30));\n\t}", "title": "" }, { "docid": "f1db91a9c92d0e69b15e6ee042b04bd0", "score": "0.5915107", "text": "public void answer() { Game.output(answerString); }", "title": "" }, { "docid": "021299719c8019ca647aed2a85e8a436", "score": "0.59146065", "text": "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n //Declaring variables\n String name;\n String yourDay;\n String whyDay;\n\n //Prompting user and storing answers. Responding to users with answers\n\n System.out.println(\"Welcome to ElizaChats! My name is Eliza. What's your name?\");\n name = input.nextLine();\n System.out.println(\"Nice to meet you, \" + name + \". How has your day been?\");\n yourDay = input.nextLine();\n System.out.println(\"Okay, Anything in particular that makes you feel that \" + yourDay + \"?\");\n whyDay = input.nextLine();\n\n\n //Printing summary of all user inputs\n System.out.println(\"Okay. Well, it has been my pleasure to speak with you. Have a nice day!\");\n System.out.println(\"Here are your responses: \" + name + \" \" + yourDay + \" \" + whyDay );\n\n }", "title": "" }, { "docid": "6ca204b15d144686d3914e115ffbd0d9", "score": "0.5913083", "text": "private void entryAction_main_mainStorry_inner_region_FaceDataInterpretation_FaceDataInterpretation_yesNo_fun_inner_region_asking_repeat_YesNo() {\n\t\tsCIHBrain.operationCallback.sendTTS(\"What did you say?\");\n\t}", "title": "" }, { "docid": "ed4b674027b2fcbc1e9ff296e556c956", "score": "0.59060204", "text": "public void giveQuiz(){\r\n\t\twhile (numQuestions <= 0) {\r\n\t\t\tString input1 = _w.findUserInput(\"How many questions would you like to answer?\", \"Welcome. Note: type in 'exit' to exit the app (Case sensitive).\");\r\n\t\t\tif(input1.equals(\"exit\")){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tnumQuestions = Integer.parseInt(input1);\r\n\t\t\t} catch (NumberFormatException e){\r\n\t\t\t\tnumQuestions = 0;\r\n\t\t\t\t_w.msg(\"Please enter a number solution. Note: to leave the app, type in 'exit'. \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < numQuestions; i++){\r\n\t\t\tquestionList.add(new Question());\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i2 = 0; i2 < numQuestions; i2++){\r\n\t\t\tString text = questionList.get(i2).getDescription() + \" = \";\r\n\t\t\tString title = \"Problem number: \" + (i2 + 1);\r\n\t\t\tint theAnswer =-1;\r\n\t\t\t\r\n\t\t\twhile(theAnswer<0){\r\n\t\t\t\tString input = _w.findUserInput(text, title);\r\n\t\t\t\tif(input.equals(\"exit\")){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttheAnswer = Integer.parseInt(input);\r\n\t\t\t\t} catch (NumberFormatException e){\r\n\t\t\t\t\ttheAnswer = -1;\r\n\t\t\t\t\t_w.msg(\"Please enter a number solution. Note: to exit type in 'exit'.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(questionList.get(i2).checkAns(theAnswer)){\r\n\t\t\t\t_w.msg(\"Correct!\");\r\n\t\t\t\tcorrectAnswers++;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t_w.msg(\"Wrong! The correct answer is: \" + questionList.get(i2).getCorrectAnswer());\r\n\t\t\t}\r\n\t\t}\r\n\t\t_w.msg((int)((double)correctAnswers/(double)numQuestions*100.0) + \"%\" + \" We hope to see you again soon!\");\r\n\t}", "title": "" }, { "docid": "3165ffc3d1965731fb39e6cd9956ef7c", "score": "0.5895606", "text": "private void invalidChoice() {\n System.out.println(\"\\nInvalid Choice!\");\n System.out.print(\"Press enter key to continue...\");\n input.nextLine();\n }", "title": "" }, { "docid": "6fc71bd4bfab78ed23879b65622cccff", "score": "0.5895193", "text": "String askForInput();", "title": "" }, { "docid": "4242341bd38e99c7a289f0b2f59f3542", "score": "0.58881533", "text": "public static void screen4a(Question question,String StudentID)\n\t{\n\t\tUIimpl.PutLine(question.displayHeader());\n\t\tUIimpl.PutLine(question.getDescription());\n\t\t//This may seem trivial, but we want to make sure they want to submit a solution and it's not a accident.\n\t\tUIimpl.PutLine(\"Are you sure you wish to submit a solution to this question?(Y/N)\");\n\t\t//String[] possibleinput = new String[] {\"Y\",\"N\",\"yes\",\"no\"};\n\n\t\tString input = UIimpl.Readline();\n\n\t\twhile(!input.equalsIgnoreCase(\"n\") && !input.equalsIgnoreCase(\"y\") && !input.equalsIgnoreCase(\"no\") && !input.equalsIgnoreCase(\"yes\"))\n\t\t{\n\t\t\tUIimpl.PutLine(\"Wrong input!\");\n\t\t\tUIimpl.PutLine(\"Are you sure you wish to submit a solution to this question?(Y/N)\");\n\t\t\tinput = UIimpl.Readline();\n\t\t}\n\n\t\t//if you said no, ask for a new question to submit\n\t\tif (input.equalsIgnoreCase(\"n\") || input.equalsIgnoreCase(\"no\")) {\n\t\t\tscreen4a(screen3(question.getIdhomework(), StudentID),StudentID);\n\t\t}\n\t\t//otherwise enter your solutions\n\t\telse {\n\t\t\tUIimpl.PutLine(\"Please enter your solution.\");\n\t\t\tString response = UIimpl.Readline();\n\t\t\t\n\t\t\t//store their proposed solution in our response table\n\t\t\ttry {\n\n\t\t\t\tmanager.request(Connection ,\"insert into response(responsedesc) values(\"+ \"'\" +response + \"');\");\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t// Superficially, it seems this is not the way to do things, since the response could be the same from multiple users\n\t\t\t// It seems like this is fine, since if they are the same it doesn't matter. \n\t\t\tString responseid = handler.ExecuteColumn(\"select idresponse from response where responsedesc = '\" + response + \"';\", \"idresponse\").get(0);\n\t\t\tResponse res = new Response(new Integer(responseid), response);\n\n\t\t\t//If there is a syntax error, you do not lose any points and you are reasked the question. \n\t\t\t//Since we didn't enter a submission, you can revisit this question if you quit.\n\t\t\ttry {\n\t\t\t\tscreen4b(res, StudentID, question);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tUIimpl.PutLine(\"Your query contains syntaxical error\");\n\t\t\t\tscreen4a(question,StudentID);\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "6f3a1eccbc094b1f0d6c388b1d25b71d", "score": "0.58854276", "text": "@Then(\"^The teacher chooses correct answer\\\\.$\")\r\n\tpublic void the_teacher_chooses_correct_answer() throws Throwable {\n\t quizmake.correct1.click();\r\n\t}", "title": "" }, { "docid": "b164d53bb2ef8a6d3338010fe52575f1", "score": "0.58804625", "text": "public YNAnswer inputYNQuestion( String message ) { \n int result = JOptionPane.showConfirmDialog( \n null, message, \"\", JOptionPane.YES_NO_OPTION\n );\n if ( result == 1 )\n return YNAnswer.No;\n else if ( result == 0 )\n return YNAnswer.Yes;\n return null;\n }", "title": "" }, { "docid": "6e2c9b1c37d4f3c87fd37e4267d9cbf5", "score": "0.5876898", "text": "public boolean askExplorerChoiceToContinue(Explorer explorer) {\n System.out.println(Color.toBlue(explorer.getPseudonym() + \" do you want to continue ?\"));\n String response = in.next();\n System.out.println(\"\");\n String toUpperCase = response.toUpperCase(Locale.ENGLISH);\n\n while (!toUpperCase.equals(\"YES\") && !toUpperCase.equals(\"NO\")) {\n System.out.println(Color.toRed(\"Answer either \\\"YES\\\" or \\\"NO\\\" !!\"));\n System.out.println(Color.toBlue(explorer.getPseudonym() + \" do you want to continue ?\"));\n response = in.next();\n System.out.println(\"\");\n toUpperCase = response.toUpperCase(Locale.ENGLISH);\n }\n return toUpperCase.contains(\"YES\");\n }", "title": "" }, { "docid": "e7638b593ca28e31e83af962af82e56e", "score": "0.58713627", "text": "public void takeExam() {\n\t\tScanner scan = ScannerFactory.getKeyboardScanner(); //create scanner for input\n\t\t\n\t\tint i = 0;\n\t\tint size = this.questions.size();\n\t\t\n\t\t//enter test taking loop\n\t\twhile(true) {\n\t\t\tSystem.out.print(i+1 + \". \");\n\t\t\tthis.questions.get(i).print(); //print current question\n\t\t\tSystem.out.println(\"Type 'next' to go to the next question, 'prev' to go to the previous, any other input \"\n\t\t\t\t\t+ \"to reanswer current question. TYPE '1' to ANSWER!\"); //instructions\n\t\t\tSystem.out.println(\"Type 'exit' to finish and score your exam.\"); //more instructions\n\t\t\tString input = scan.nextLine(); //scan user input, just scan the whole line and parse it with if statements\n\t\t\tif(input.equals(\"next\")) { //check if the user wants to go to next question\n\t\t\t\ti++; //increment i\n\t\t\t\tif(i >= size) { //check if we go over the bounds\n\t\t\t\t\ti--;\n\t\t\t\t\tSystem.out.println(\"\\nNo more questions left, type 'exit' if you're done\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue; //go back to start\n\t\t\t}\n\t\t\telse if(input.equals(\"prev\")) { //check if user wants to go to previous question\n\t\t\t\ti--; //decrement\n\t\t\t\tif(i < 0) { //check if we go over the bounds\n\t\t\t\t\ti++;\n\t\t\t\t\tSystem.out.println(\"\\nAlready at the beginning of the exam\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(input.equals(\"exit\")) { //check if the user is done\n\t\t\t\tSystem.out.println(\"\\n\\n\\n\");\n\t\t\t\tSystem.out.println(\"**************DONE**************\\n\\n\");\n\t\t\t\tbreak; //break out of loop\n\t\t\t}\n\t\t\telse if(input.equals(\"1\")) {\n\t\t\t\tthis.questions.get(i).getAnswerFromStudent(); //get the answer for question\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Not valid input\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "a6733d4f5848a022e3b51faf6bc656ff", "score": "0.58661574", "text": "public static String impossibleAnswer(){\n Scanner input = new Scanner(System.in);\n System.out.println(\"\\nSadly, R does not own that.\");\n System.out.println(\"What will he use instead?\\n>\");\n String choice = input.nextLine();\n return choice;\n }", "title": "" }, { "docid": "d0d9f3fd669fecdbc665af99c79f7fd3", "score": "0.5863837", "text": "public static void main(String[] args) {\n\t\tString bam = JOptionPane.showInputDialog(\"¿te gusta platano?\");\n\t\t// 2. if they say no,\n\t\tif (bam.equals(\"no\")) {\n\t\t\t// tell them they are crazy\n\t\t\tJOptionPane.showMessageDialog(null, \"tu eres loco\");\n\t\t\t// and end quiz\n\t\t\tJOptionPane.showConfirmDialog(null, \"hasta manana\");\n\t\t} // 3. if they say yes\n\t\tif (bam.equals(\"si\"))\n\t\t\t;\n\t\t// ask them what is their favorite hobby\n\t\tString nac = JOptionPane.showInputDialog(null, \"¿Que es tu actividades extracurriculares favorita?\");\n\t\t// show a pop up that says \"<your hobby> is much better with bananas!\"\n\t\tint vav = JOptionPane.showConfirmDialog(null, nac + \" esta mas divertito con platanos\");\n\t\t// 4. OPTIONAL: if they say something other than “yes” or “no”\n\t\tif (vav == 1) {\n\t\t\t// show a pop up that says “You are bananas!”\n\t\t\tJOptionPane.showConfirmDialog(null, nac + \"tu eres bananas\");\n\t\t}\n\n\t}", "title": "" } ]
632abeda537b6fe555c7a39b5f621723
CustomDialog dialog = new CustomDialog(this, R.style.CustomDialog); dialog.show();
[ { "docid": "c58c9a1f1b39752f5cd74449afe5ddf2", "score": "0.0", "text": "@OnClick(R.id.login_btn)\n public void LoginIn(View view) {\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0); //强制隐藏键盘\n imm.showSoftInput(view,InputMethodManager.SHOW_FORCED); //强制显示键盘\n login();\n }", "title": "" } ]
[ { "docid": "6d949125a1362e61938874c8d75231eb", "score": "0.75908035", "text": "public CustomDialog create() {\n\t\t\tfinal CustomDialog dialog = new CustomDialog(context, R.style.customDialog);\n LayoutInflater inflater = (LayoutInflater) context\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View layout = inflater.inflate(R.layout.custom_dialog, null);\n\n dialog.setContentView(layout, new LayoutParams(\n LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));\n\n //全屏\n Window win = dialog.getWindow();\n win.setGravity(Gravity.CENTER);\n WindowManager.LayoutParams lp = win.getAttributes();\n lp.width = width;\n lp.height = height;\n win.setAttributes(lp);\n\n\n\t\t\tif (contentView != null) {\n LinearLayout root = (LinearLayout) layout.findViewById(R.id.root);\n root.removeAllViews();\n root.addView(contentView, new LayoutParams(\n LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));\n\t\t\t\treturn dialog;\n\t\t\t}\n\n\n\t\t\t// set the dialog title\n\t\t\t((TextView) layout.findViewById(R.id.title)).setText(title);\n\t\t\t((TextView) layout.findViewById(R.id.title)).getPaint()\n\t\t\t\t\t.setFakeBoldText(true);\n\t\t\t;\n\t\t\t// set the confirm button\n\t\t\tif (confirm_btnText != null) {\n\t\t\t\t((Button) layout.findViewById(R.id.confirm_btn))\n\t\t\t\t\t\t.setText(confirm_btnText);\n\t\t\t\tif (confirm_btnClickListener != null) {\n\t\t\t\t\tlayout.findViewById(R.id.confirm_btn)\n\t\t\t\t\t\t\t.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tconfirm_btnClickListener.onClick(dialog,\n\t\t\t\t\t\t\t\t\t\t\tDialogInterface.BUTTON_POSITIVE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// if no confirm button just set the visibility to GONE\n\t\t\t\tlayout.findViewById(R.id.confirm_btn).setVisibility(View.GONE);\n\t\t\t}\n\t\t\t// set the cancel button\n\t\t\tif (cancel_btnText != null) {\n\t\t\t\t((Button) layout.findViewById(R.id.cancel_btn))\n\t\t\t\t\t\t.setText(cancel_btnText);\n\t\t\t\tif (cancel_btnClickListener != null) {\n\t\t\t\t\tlayout.findViewById(R.id.cancel_btn)\n\t\t\t\t\t\t\t.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tcancel_btnClickListener.onClick(dialog,\n\t\t\t\t\t\t\t\t\t\t\tDialogInterface.BUTTON_NEGATIVE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// if no confirm button just set the visibility to GONE\n\t\t\t\tlayout.findViewById(R.id.cancel_btn).setVisibility(View.GONE);\n\t\t\t}\n\t\t\t// set the content message\n\t\t\tif (message != null) {\n\t\t\t\t((TextView) layout.findViewById(R.id.message)).setText(message);\n\t\t\t}\n\t\t\tdialog.setCanceledOnTouchOutside(true);\n\n\n\t\t\treturn dialog;\n\t\t}", "title": "" }, { "docid": "c16ceef85d314d5971f43ef307993cf8", "score": "0.7589689", "text": "public CustomDialog create() {\n LayoutInflater inflater = (LayoutInflater) context\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final CustomDialog dialog = new CustomDialog(context,\n R.style.CustomDialog);\n dialog.setCancelable(cancelable);\n dialog.setCanceledOnTouchOutside(false);\n// View layout = inflater.inflate(R.layout.custom_dialog_layout, null);\n layout = inflater.inflate(R.layout.custom_dialog_layout, null);\n dialog.addContentView(layout, new LayoutParams(\n LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));\n // set the dialog title\n ((TextView) layout.findViewById(R.id.title)).setText(title);\n // set the confirm button\n if (positiveButtonText != null) {\n layout.findViewById(R.id.positiveButton).setVisibility(\n View.VISIBLE);\n ((Button) layout.findViewById(R.id.positiveButton))\n .setText(positiveButtonText);\n if (positiveButtonClickListener != null) {\n ((Button) layout.findViewById(R.id.positiveButton))\n .setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n positiveButtonClickListener.onClick(dialog,\n DialogInterface.BUTTON_POSITIVE);\n }\n });\n }\n } else {\n // if no confirm button just set the visibility to GONE\n layout.findViewById(R.id.positiveButton).setVisibility(\n View.GONE);\n }\n // set the cancel button\n if (negativeButtonText != null) {\n layout.findViewById(R.id.negativeButton).setVisibility(\n View.VISIBLE);\n ((Button) layout.findViewById(R.id.negativeButton))\n .setText(negativeButtonText);\n if (negativeButtonClickListener != null) {\n ((Button) layout.findViewById(R.id.negativeButton))\n .setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n negativeButtonClickListener.onClick(dialog,\n DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n } else {\n // if no confirm button just set the visibility to GONE\n layout.findViewById(R.id.negativeButton).setVisibility(\n View.GONE);\n }\n\n if (extraButtonText != null) {\n\n layout.findViewById(R.id.extraButton).setVisibility(\n View.VISIBLE);\n ((Button) layout.findViewById(R.id.extraButton))\n .setText(extraButtonText);\n if (extraButtonClickListener != null) {\n ((Button) layout.findViewById(R.id.extraButton))\n .setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n extraButtonClickListener.onClick(dialog,\n DialogInterface.BUTTON_NEUTRAL);\n }\n });\n }\n } else {\n // if no confirm button just set the visibility to GONE\n layout.findViewById(R.id.extraButton).setVisibility(View.GONE);\n }\n dialog.setOnKeyListener(new OnKeyListener(){\n\n @Override\n public boolean onKey(DialogInterface dialog, int keyCode,\n KeyEvent event) {\n if(keyCode == KeyEvent.KEYCODE_BACK){\n if (onKeyBackListener != null) {\n onKeyBackListener.onClick(dialog,\n DialogInterface.BUTTON_NEGATIVE);\n return true;\n }\n }\n return false;\n }\n \n });\n\n if (iconId != -1) {\n ImageView iv_icon = (ImageView) layout.findViewById(R.id.icon);\n iv_icon.setImageResource(iconId);\n }\n // set the content message\n if (message != null) {\n TextView tv = (TextView) layout.findViewById(R.id.message);\n tv.setMovementMethod(ScrollingMovementMethod.getInstance());\n tv.setText(message);\n } else if (items != null) {\n TextView tv = (TextView) layout.findViewById(R.id.message);\n tv.setVisibility(View.GONE);\n final ListView lv = (ListView) layout\n .findViewById(R.id.select_list);\n lv.setVisibility(View.VISIBLE);\n // lv.setLayoutParams(new\n // LinearLayout.LayoutParams(lv.getWidth(), 600));\n\n if (oldSelect == SELECT_NO) {\n // ArrayAdapter<String> arrayAdapter = new\n // ArrayAdapter<String>(\n // context, R.layout.custom_dialog_list_item, items);\n lv.setAdapter(new ListAdapter(false));\n lv.setOnItemClickListener(new OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n itemsClickListener.onClick(dialog, position);\n }\n });\n } else {\n /*\n * ArrayAdapter<String> arrayAdapter = new\n * ArrayAdapter<String>( context,\n * R.layout.custom_dialog_list_item_single_choice, items);\n */\n lv.setAdapter(new ListAdapter(true));\n lv.setOnItemClickListener(new OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n lv.setItemChecked(position, true);\n itemsClickListener.onClick(dialog, position);\n }\n });\n lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE);\n lv.setItemChecked(oldSelect, true);\n lv.setSelection(oldSelect);\n }\n\n } else if (contentView != null) {\n // if no message set\n // add the contentView to the dialog body\n ((LinearLayout) layout.findViewById(R.id.content))\n .removeAllViews();\n ((LinearLayout) layout.findViewById(R.id.content)).addView(\n contentView, new LayoutParams(\n LayoutParams.MATCH_PARENT,\n LayoutParams.WRAP_CONTENT));\n }\n dialog.setContentView(layout);\n return dialog;\n }", "title": "" }, { "docid": "b632e9c8117b8976d13de30cbf5c5d26", "score": "0.7587189", "text": "public void callThanksPopUp() {\n final Dialog dialog = new Dialog(this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.setCancelable(true);\n dialog.setCanceledOnTouchOutside(true);\n\n dialog.setContentView(R.layout.thanks_pop_up);\n// dialog.getWindow().getAttributes().windowAnimations = R.style.DialogAnimation;\n\n\n dialog.setTitle(\"Custom Dialog\");\n\n\n dialog.show();\n\n\n }", "title": "" }, { "docid": "76b48ad03be83270c9ffa412dc638d49", "score": "0.7425365", "text": "public CustomDialog create() {\n\t\t\tLayoutInflater inflater = (LayoutInflater) context\n\t\t\t\t\t.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\t// instantiate the dialog with the custom Theme\n\t\t\tfinal CustomDialog dialog = new CustomDialog(context,\n\t\t\t\t\tR.style.customDialog);\n\t\t\tView layout = inflater.inflate(R.layout.view_custom_dialog, null);\n\t\t\tdialog.addContentView(layout, new LayoutParams(\n\t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));\n\t\t\t// set the dialog title\n\t\t\tView topLayout = layout\n\t\t\t\t\t.findViewById(R.id.c_top_line); \n\t\t\tTextView titleTv = ((TextView) layout.findViewById(R.id.c_title));\n\t\t\tif (title != null) {\n\t\t\t\ttitleTv.setVisibility(View.VISIBLE);\n\t\t\t\ttitleTv.setText(title);\n\t\t\t\ttopLayout.setVisibility(View.VISIBLE);\n\t\t\t} else {\n\t\t\t\ttitleTv.setVisibility(View.GONE);\n\t\t\t\ttopLayout.setVisibility(View.GONE);\n\t\t\t}\n\n\t\t\t// set the confirm button\n\t\t\tif (positiveButtonText != null) {\n\t\t\t\tTextView positiveTv=(TextView) layout.findViewById(R.id.positiveButton);\n\t\t\t\tpositiveTv.setText(positiveButtonText);\n\t\t\t\tif (positiveButtonClickListener != null) {\n\t\t\t\t\tpositiveTv.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tpositiveButtonClickListener.onClick(dialog,\n\t\t\t\t\t\t\t\t\t\t\tDialogInterface.BUTTON_POSITIVE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tif(TextUtils.isEmpty(negativeButtonText)){\n\t\t\t\t\tpositiveTv.setBackgroundResource(R.drawable.icon_single_btn);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// if no confirm button just set the visibility to GONE\n\t\t\t\tlayout.findViewById(R.id.positiveButton).setVisibility(\n\t\t\t\t\t\tView.GONE);\n\t\t\t}\n\t\t\t// set the cancel button\n\t\t\tif (negativeButtonText != null) {\n\t\t\t\tTextView negativeTv=(TextView) layout.findViewById(R.id.negativeButton);\n\t\t\t\tnegativeTv.setText(negativeButtonText);\n\t\t\t\tif (negativeButtonClickListener != null) {\n\t\t\t\t\tnegativeTv.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tnegativeButtonClickListener.onClick(dialog,\n\t\t\t\t\t\t\t\t\t\t\tDialogInterface.BUTTON_NEGATIVE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tif(TextUtils.isEmpty(positiveButtonText)){\n\t\t\t\t\tnegativeTv.setBackgroundResource(R.drawable.icon_single_btn);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// if no confirm button just set the visibility to GONE\n\t\t\t\tlayout.findViewById(R.id.negativeButton).setVisibility(\n\t\t\t\t\t\tView.GONE);\n\t\t\t}\n\t\t\tif(positiveButtonText==null && negativeButtonText==null){\n\t\t\t\tlayout.findViewById(R.id.dialog_line).setVisibility(View.GONE);\n\t\t\t}\n\t\t\tif(TextUtils.isEmpty(positiveButtonText) || TextUtils.isEmpty(negativeButtonText)){\n\t\t\t\tlayout.findViewById(R.id.verline).setVisibility(View.GONE);\n\t\t\t}\n\t\t\t// set the content message\n\t\t\tif (message != null) {\n\t\t\t\t((TextView) layout.findViewById(R.id.message)).setText(message);\n\t\t\t} else if (contentView != null) {\n\t\t\t\t((LinearLayout) layout.findViewById(R.id.content))\n\t\t\t\t\t\t.removeAllViews();\n\t\t\t\t((LinearLayout) layout.findViewById(R.id.content)).addView(\n\t\t\t\t\t\tcontentView, new LayoutParams(\n\t\t\t\t\t\t\t\tLayoutParams.MATCH_PARENT,\n\t\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT));\n\t\t\t}\n\t\t\tdialog.setContentView(layout);\n\t\t\tDisplayMetrics metrics = new DisplayMetrics();\n\t\t\t((Activity) context).getWindow().getWindowManager()\n\t\t\t\t\t.getDefaultDisplay().getMetrics(metrics);\n\t\t\tint width = metrics.widthPixels;\n\t\t\tdialog.getWindow().setLayout(4 * width / 5,\n\t\t\t\t\tLayoutParams.WRAP_CONTENT);\n\t\t\tdialog.setCancelable(isCancel);\n\t\t\treturn dialog;\n\t\t}", "title": "" }, { "docid": "b486e0054766d560f398b739666575cc", "score": "0.73894835", "text": "public void showCustomDialog() {\n anInterface.ShowCustomDialog();\n }", "title": "" }, { "docid": "ff518c73960728d9fd3b9945ea716ec7", "score": "0.734906", "text": "public void callSuccessPopUp() {\n final Dialog dialog = new Dialog(this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.setCancelable(true);\n dialog.setCanceledOnTouchOutside(true);\n\n dialog.setContentView(R.layout.succuess_pop_up);\n// dialog.getWindow().getAttributes().windowAnimations = R.style.DialogAnimation;\n\n\n dialog.setTitle(\"Custom Dialog\");\n\n\n dialog.show();\n\n\n }", "title": "" }, { "docid": "089ead97611ec0d36ab476334c70f7c3", "score": "0.729853", "text": "@Override\n\tpublic void showDialog(Context context) {\n\n\t}", "title": "" }, { "docid": "d012d95042c52e9ba62322f0b0380f93", "score": "0.7249867", "text": "@Override\n public void onClick(View view) {\n CustomDialog();\n // Popup();\n }", "title": "" }, { "docid": "22510b1d38276351ed18aece5c03a43f", "score": "0.71654946", "text": "public void callVerifyPassPopUp() {\n final Dialog dialog = new Dialog(this,\n R.style.Theme_Dialog);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.MATCH_PARENT);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.setCancelable(true);\n dialog.setCanceledOnTouchOutside(true);\n\n dialog.setContentView(R.layout.update_email_verify_pass_pop_up);\n// dialog.getWindow().getAttributes().windowAnimations = R.style.DialogAnimation;\n\n\n dialog.setTitle(\"Custom Dialog\");\n\n\n dialog.show();\n\n\n }", "title": "" }, { "docid": "9fab6f0dd15f3fae9af8d169c5a8d85e", "score": "0.7138517", "text": "@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\r\n // Get the layout inflater \r\n LayoutInflater inflater = context.getLayoutInflater();\r\n View view = inflater.inflate(R.layout.mcudialog, null); \r\n // Inflate and set the layout for the dialog \r\n // Pass null as the parent view because its going in the dialog layout \r\n builder.setView(view)\r\n // Add action buttons \r\n .setPositiveButton(\"Update\", \r\n new DialogInterface.OnClickListener() \r\n { \r\n @Override \r\n public void onClick(DialogInterface dialog, int id) \r\n { \r\n \tnew Thread(new MyTread()).start();\r\n } \r\n }).setNegativeButton(\"Cancel\", null);\r\n return builder.create();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2d655e4ac1dda9c2ee7ac9f76eb25b54", "score": "0.71311903", "text": "public void prepDialog() {\n\n\tdialog.setContentView(R.layout.custom_dialog_create);\n\tdialog.setTitle(R.string.dialog_create_title);\n\n\t// set the custom dialog components - text, image and button\n\tTextView text = (TextView) dialog.findViewById(R.id.dialog_create_text);\n\ttext.setText(R.string.dialog_create_text);\n\n\tImageView image = (ImageView) dialog.findViewById(R.id.dialog_create_image);\n\timage.setImageResource(R.drawable.warning);\n\n\tButton dialogButtonOK = (Button) dialog.findViewById(R.id.dialog_create_button_ok);\n\t// if button is clicked, close the custom dialog\n\tdialogButtonOK.setOnClickListener(new OnClickListener() {\n\t @Override\n\t public void onClick(View v) {\n\t\tsoundAndVibra.playSoundAndVibra();\n\t\tdialog.dismiss();\n\t\tfinish();\n\t }\n\t});\n\n }", "title": "" }, { "docid": "cf581f1b56855b2c45e6dfb6789fa8df", "score": "0.7116229", "text": "private void showDialog() {\n dialog = new Dialog(context, R.style.ActionSheetDialogStyle);\n View view = LayoutInflater.from(context).inflate(\n R.layout.item_dialog_mine_customer_service, null);\n\n TextView tvPlayPhone = view.findViewById(R.id.tv_play_phone);\n TextView tvLeaveMessage = view.findViewById(R.id.tv_leave_message);\n TextView tvCancel = view.findViewById(R.id.tv_cancel);\n tvPlayPhone.setOnClickListener(this);\n tvLeaveMessage.setOnClickListener(this);\n tvCancel.setOnClickListener(this);\n\n //将布局设置给Dialog\n dialog.setContentView(view);\n //获取当前Activity所在的窗体\n Window dialogWindow = dialog.getWindow();\n //设置Dialog从窗体底部弹出\n dialogWindow.setGravity(Gravity.BOTTOM);\n //获得窗体的属性\n WindowManager.LayoutParams lp = dialogWindow.getAttributes();\n lp.y = 20;//设置Dialog距离底部的距离\n dialogWindow.setAttributes(lp);\n dialog.show();//显示对话框\n }", "title": "" }, { "docid": "ea913f66e722bf0f719140087cd3aebc", "score": "0.7072213", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.customdialog);\n \n \tTextView text = (TextView) findViewById(R.id.text);\n \ttext.setText(\"Hello, this is a custom dialog!\");\n \tImageView image = (ImageView) findViewById(R.id.image);\n \timage.setImageResource(R.drawable.icon);\n\n //set up button\n Button button = (Button) findViewById(R.id.Button01);\n button.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n \n }", "title": "" }, { "docid": "1f163649c8c3fd6567c03e9e74fa6db8", "score": "0.70211005", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AppTheme_Dialog);\n builder.setMessage(R.string.info_content)\n .setNegativeButton(R.string.info_action_visit, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n Intent baseIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.moma.org\"));\n\n Intent chooserIntent = Intent.createChooser(baseIntent, \"Load http://www.moma.org with:\");\n\n if (baseIntent.resolveActivity(getActivity().getPackageManager()) != null ) {\n startActivity(chooserIntent);\n }\n }\n })\n .setPositiveButton(R.string.info_action_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n\n Dialog dialog = builder.create();\n dialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);\n return dialog;\n }", "title": "" }, { "docid": "6b823153086af0da22d5bddc9bdacd2f", "score": "0.69659466", "text": "public void dialog(){\n\t\t\n\t}", "title": "" }, { "docid": "925f38e904831b70a0ed7c9396d0e64a", "score": "0.6965164", "text": "public void onCreate(Bundle savedInstanceState) {\n \n super.onCreate(savedInstanceState);\n \n \n \n \n \n\t final Dialog dialog = new Dialog(Customdialog.this);\n // Include dialog.xml file\n dialog.setContentView(R.layout.customdialog);\n\n dialog.setTitle(Html.fromHtml(\"<font color='#FFFFFF' ><big><big>Sorry.....</big></big> </font>\"));\n // set values for custom dialog components - text, image and button\n TextView text = (TextView) dialog.findViewById(R.id.textDialog);\n text.setText(\"Please Register Your Account First\");\n dialog.setCancelable(false);\n dialog.show();\n ImageButton declineButton = (ImageButton) dialog.findViewById(R.id.okButton);\n // if decline button is clicked, close the custom dialog\n declineButton.setOnClickListener(new OnClickListener() {\n \n\n\t\t@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t // Close dialog\n\n dialog.dismiss();\n Customdialog.this.finish();\n\t\t}\n });\n }", "title": "" }, { "docid": "278b72900c4343e6e9ecc6b1719eea68", "score": "0.6956531", "text": "@Override\n\tpublic void showDialog() {\n\t\t\n\t}", "title": "" }, { "docid": "edf35bc039f60c05ac23901b859c2ea2", "score": "0.6925192", "text": "@Override\n public void onClick(View view) {\n AlertDialog.Builder powerAlertDialogBuilder = new AlertDialog.Builder(StartupActivity.this, R.style.MyDialogTheme);\n AlertDialog alertDialog = powerAlertDialogBuilder.create();\n alertDialog.show();\n dialogPowerConstructor(alertDialog);\n }", "title": "" }, { "docid": "ad385cc6a79698d80957395ec668ec52", "score": "0.6890382", "text": "@Override\n public Dialog onCreateDialog(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Pizza\");\n\n builder.setIcon(R.drawable.pizza);\n\n yesButtonDialogue yesButtonHandler = new yesDialogHandler();\n NoButtonDialogue NobButtonHandler = new NoDialogHandler();\n\n\n alertDialogBuilder.setNegativeButton(\"No\", new DialogInterface().OnClickListener());\n\n alertDialogBuilder.setPositiveButton(\"Yes\", new DialogInterface().OnClickListener());\n\n }", "title": "" }, { "docid": "e0ecf0be0046f192e00f6cd12436aa7a", "score": "0.6878282", "text": "public UploadCustomDialog create() {\n LayoutInflater inflater = (LayoutInflater) context\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final UploadCustomDialog dialog = new UploadCustomDialog(context,R.style.Dialog);\n View layout = inflater.inflate(R.layout.dialog_upload_select, null);\n dialog.addContentView(layout, new LayoutParams(\n LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));\n // set the dialog title\n // set the confirm button\n dialog.setCancelable(cancelFlag);\n dialog.setOnCancelListener(cancelListener);\n // set the content message\n uploadButton1 =(Button) layout.findViewById(R.id.uploadbutton1);\n uploadButton1.setOnClickListener(click1);\n \n uploadButton2 =(Button) layout.findViewById(R.id.uploadbutton2);\n uploadButton2.setOnClickListener(click2);\n \n uploadButton3 =(Button) layout.findViewById(R.id.uploadbutton3);\n uploadButton3.setOnClickListener(click3);\n\n \n dialog.setContentView(layout);\n return dialog;\n }", "title": "" }, { "docid": "1df3ad2ccf7cf00acf3767097b04eda4", "score": "0.6864369", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }", "title": "" }, { "docid": "1df3ad2ccf7cf00acf3767097b04eda4", "score": "0.6864369", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }", "title": "" }, { "docid": "3702c52dacb5e083d873f228ec749a08", "score": "0.6822717", "text": "private void MyDialog() {\n }", "title": "" }, { "docid": "bc00c12e9605134995ee43c3135fbed2", "score": "0.6806882", "text": "private void showDialog()\n {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n Fragment prev = getFragmentManager().findFragmentByTag(\"dialog\");\n\n if (prev != null)\n ft.remove(prev);\n\n ft.addToBackStack(null);\n\n // Create and show the dialog. 2, 4\n DialogFragment newFragment = CustomDialogBox.newInstance(4);\n newFragment.show(ft, \"dialog\");\n }", "title": "" }, { "docid": "48819576bcdb13064418f6ee9afbc8de", "score": "0.6764431", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Dialog dialog = super.onCreateDialog(savedInstanceState);\n dialog.setCanceledOnTouchOutside(false);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n registerDialogCancelListener(dialog);\n return dialog;\n }", "title": "" }, { "docid": "de392937d284415c28a549b920b9ac81", "score": "0.67635083", "text": "private void showProgressDialog() {\n dialogBuilder = new AlertDialog.Builder(this);\n LayoutInflater inflater = (LayoutInflater) getSystemService( Context.LAYOUT_INFLATER_SERVICE );\n View dialogView = inflater.inflate(R.layout.progress_dialog_layout, null);\n dialogBuilder.setView(dialogView);\n dialogBuilder.setCancelable(false);\n b = dialogBuilder.create();\n b.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n\n b.show();\n }", "title": "" }, { "docid": "dfb6b07101c6011b537f5914deb92dc5", "score": "0.67566663", "text": "private Dialog getDialog(Context context, int layout) {\n\n Dialog mCommonDialog;\n mCommonDialog = new Dialog(context);\n mCommonDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n if (mCommonDialog.getWindow() != null) {\n mCommonDialog.getWindow().setSoftInputMode(\n WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n mCommonDialog.setContentView(layout);\n mCommonDialog.getWindow().setGravity(Gravity.CENTER);\n mCommonDialog.getWindow().setBackgroundDrawable(\n new ColorDrawable(Color.TRANSPARENT));\n }\n mCommonDialog.setCancelable(false);\n mCommonDialog.setCanceledOnTouchOutside(false);\n\n return mCommonDialog;\n }", "title": "" }, { "docid": "bfd57a9a685ab5c68f00a9c524d9c10e", "score": "0.6737623", "text": "@Override\n public void onPositive(MaterialDialog dialog) {\n }", "title": "" }, { "docid": "6d23a2e5a18abf46d726c872a8a56230", "score": "0.67308104", "text": "public void showDialog();", "title": "" }, { "docid": "7572184781a7b97c31af9e2ddaa892fe", "score": "0.6677579", "text": "private void createDialogView() {\n ProgressDialog progressDialog = new ProgressDialog(getContext());\n progressDialog.show();\n }", "title": "" }, { "docid": "f293e249770c7bad3827d2add25dcfc2", "score": "0.6652702", "text": "public interface DialogInterface {\n Dialog onCreateDialog(Bundle savedInstanceState);\n}", "title": "" }, { "docid": "bd1178dbb9470b5a14befacbc7f99826", "score": "0.66464365", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n \n LayoutInflater inflater = getActivity().getLayoutInflater();\n builder.setView(inflater.inflate(com.example.avr_keyring.R.layout.dialog_login, null)); \n\n \n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n \t \n\n \t}\n });\n \n \tbuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int id) { \t\n \t System.exit(0);\n \t}\n });\n \n \t// Create the AlertDialog object and return it\n return builder.create();\n }", "title": "" }, { "docid": "8c656060e84ce676acaf108ecbb9c86f", "score": "0.6638481", "text": "@Override\n public void onClick(View view) {\n mDialog.show();\n }", "title": "" }, { "docid": "f81fdeeaa3d45ff5e3ab745902dc5f09", "score": "0.66239077", "text": "protected Dialog VibrateNumberPickerDialog(Context context){\r\n \tDialog dialog;\r\n \tdialog = new Dialog(context);\r\n \t\r\n \t// Sets the view to the standard number picker dialog window\r\n\t\tdialog.setContentView(R.layout.numberpicker_dialog);\r\n\t\t\r\n\t\t// Set the title and text to display\r\n\t\tdialog.setTitle(\"Custom Dialog 2\");\r\n\t\tTextView text2 = (TextView) dialog.findViewById(R.id.text);\r\n \ttext2.setText(\"Test2\");\r\n \t\r\n \treturn dialog;\r\n }", "title": "" }, { "docid": "bd8152adc5a17d566e4a4e6820f985ff", "score": "0.65980846", "text": "private void showDialog(String score) {\n dialogSign = new Dialog(getActivity());\n dialogSign.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialogSign.show();\n dialogSign.setContentView(R.layout.sign_dialog_toast);\n Window dialogWindow = dialogSign.getWindow();\n dialogWindow.setBackgroundDrawableResource(R.color.transparent);\n android.view.WindowManager.LayoutParams attributes = dialogWindow\n .getAttributes();\n attributes.width = ViewPager.LayoutParams.WRAP_CONTENT;\n attributes.height = ViewPager.LayoutParams.WRAP_CONTENT;\n attributes.gravity = Gravity.CENTER;\n\n dialogSign.getWindow().setAttributes(attributes);\n dialogSign.getWindow().setWindowAnimations(R.style.dialogWindowAnims); // 添加动画\n dialogSign.setCanceledOnTouchOutside(false);\n\n bt_dismiss = (TextView) dialogSign\n .findViewById(R.id.bt_dismiss);\n tv_score = (TextView) dialogSign\n .findViewById(R.id.tv_score);\n tv_score.setText(\"+\" + score);\n\n bt_dismiss.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogSign.dismiss();\n }\n });\n\n }", "title": "" }, { "docid": "7cdc648952540ac8a568e288343c667d", "score": "0.65898025", "text": "@Override\n public void onPrepareDialog(int id, Dialog dialog, Bundle bundle) {\n\n }", "title": "" }, { "docid": "9acc44232ba1b3e52b71f15a6ea71c55", "score": "0.65829057", "text": "private void m5698a(Dialog dialog) {\n Window window = dialog.getWindow();\n window.setWindowAnimations(R.style.dialog_anim);\n DisplayMetrics displayMetrics = new DisplayMetrics();\n ((WindowManager) getActivity().getSystemService(\"window\")).getDefaultDisplay().getMetrics(displayMetrics);\n WindowManager.LayoutParams attributes = window.getAttributes();\n attributes.height = displayMetrics.heightPixels;\n attributes.width = (int) (((double) displayMetrics.widthPixels) * 0.5d);\n window.setAttributes(attributes);\n window.setBackgroundDrawableResource(17170445);\n window.setGravity(17);\n }", "title": "" }, { "docid": "7a2e58de318653eec9fd2085c908121a", "score": "0.6574241", "text": "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\treturn mDialog;\n\t\t}", "title": "" }, { "docid": "7a2e58de318653eec9fd2085c908121a", "score": "0.6574241", "text": "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\treturn mDialog;\n\t\t}", "title": "" }, { "docid": "7a2e58de318653eec9fd2085c908121a", "score": "0.6574241", "text": "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\treturn mDialog;\n\t\t}", "title": "" }, { "docid": "694616812e0417cfcfa71842f88c701a", "score": "0.65599585", "text": "private void ConfirmUserAgreement() {\n\n Dialog dialog = new Dialog(this,R.style.Theme_Dialog);\n\n dialog.setTitle(R.string.SuccessRequest);\n\n dialog.setContentView(R.layout.special_confirmation_dilaog_layout);\n\n\n dialog.show();\n\n\n }", "title": "" }, { "docid": "a2ac2b261ef255f0a81fe4b9c1596fc9", "score": "0.6558261", "text": "@Override\r\n\tprotected Dialog onCreateDialog(int id, Bundle args) {\n\t\treturn super.onCreateDialog(id, args);\r\n\t}", "title": "" }, { "docid": "e4e8e006b5fe32a2598703f375a7269d", "score": "0.65533304", "text": "public void alertDialogActivity(){\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setItems(PARAMETERS, new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Switch\n switch (which){\n case 0 :\n Intent intent1 = new Intent(getApplicationContext(), NotificationsActivity.class);\n startActivity(intent1);\n break;\n case 1:\n Intent intent2 = new Intent(getApplicationContext(), HelpActivity.class);\n startActivity(intent2);\n break;\n case 2:\n Intent intent3 = new Intent(getApplicationContext(), AboutActivity.class);\n startActivity(intent3);\n break;\n default:\n break;\n }\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n dialog.getWindow();\n\n // Setting Dialog View\n Window window = dialog.getWindow();\n assert window != null;\n window.setGravity(Gravity.END | Gravity.TOP);\n dialog.show();\n\n // Convert the dps to pixels, based on density scale\n final float scale = getResources().getDisplayMetrics().density;\n int width = (int) (200 * scale + 0.5f);\n int height = (int) (200 * scale + 0.5f); // because it's a square\n\n window.setLayout(width,height);\n }", "title": "" }, { "docid": "92a0edef0e4dc84def2f299778202286", "score": "0.6544582", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n View v = getActivity().getLayoutInflater().inflate(R.layout.confirmation_dialog, null);\n\n\n // === Views ===\n tvMessage = (TextView) v.findViewById(R.id.tvMessage);\n\n btnPos = (Button) v.findViewById(R.id.btnPositive);\n btnNeg = (Button) v.findViewById(R.id.btnNegative);\n\n btnPos.setOnClickListener(new PositiveBtnClickHandler());\n btnNeg.setOnClickListener(new NegativeBtnClickHandler());\n\n builder.setView(v);\n builder.setCancelable(false);\n\n Dialog d = builder.create();\n d.setCancelable(false);\n\n\n return d;\n }", "title": "" }, { "docid": "f611df01d0059571ad33f5ef40b47cee", "score": "0.65128714", "text": "public static Dialog showCustomOkDialog(Context context, String title, String message,\n String positiveBtnTxt,\n final View.OnClickListener positivecallback) {\n Log.i(\"String\",message);\n Log.i(\"String1\",title);\n\n final Dialog dialog_ok_dialog;\n dialog_ok_dialog = new Dialog(context,R.style.custompopup_style);\n\n dialog_ok_dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n\n dialog_ok_dialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));\n dialog_ok_dialog.setContentView(R.layout.custom_ok_layout);\n dialog_ok_dialog.setCancelable(false);\n\n Window window = dialog_ok_dialog.getWindow();\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n window.setAttributes(wlp);\n dialog_ok_dialog.getWindow().setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.WRAP_CONTENT);\n\n TextView txtTitle = (TextView) dialog_ok_dialog.findViewById(R.id.tv_custompopup_title);\n TextView txtMessage = (TextView) dialog_ok_dialog.findViewById(R.id.tv_custompopup_msg);\n txtMessage.setMovementMethod(new ScrollingMovementMethod());\n TextView txtPositive = (TextView) dialog_ok_dialog.findViewById(R.id.txt_custompopup_postive);\n\n txtTitle.setText(title);\n txtMessage.setText(message);\n txtPositive.setText(positiveBtnTxt);\n\n\n txtPositive.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog_ok_dialog.dismiss();\n if (positivecallback != null) {\n positivecallback.onClick(v);\n }\n }\n });\n\n dialog_ok_dialog.show();\n\n return null;\n }", "title": "" }, { "docid": "69325112217e66f03bf064ed68d52487", "score": "0.6505307", "text": "@Override\n public Dialog onCreateDialog(int id, Bundle bundle) {\n return null;\n }", "title": "" }, { "docid": "97fe3cc33ea5a1fe2c6e807d6e34a215", "score": "0.65049124", "text": "@Override\n public void onClick(View view) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.MyAlertDialogStyle);\n\n // Get the layout inflater\n LayoutInflater inflater = this.getLayoutInflater();\n\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n builder.setView(inflater.inflate(R.layout.help_dialog_layout, null));\n\n // Chain together various setter methods to set the dialog characteristics\n builder.setMessage(R.string.dialog_message)\n .setTitle(R.string.dialog_title);\n\n // Add OK button\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK button\n }\n });\n\n // 4. Get the AlertDialog from create()\n builder.create().show();\n }", "title": "" }, { "docid": "6344036a4856dfd11d4c7ede24fae68c", "score": "0.6503818", "text": "private void showDialog() {\n FragmentTransaction ft = getActivity().getSupportFragmentManager().beginTransaction();\n Fragment prev = getActivity().getSupportFragmentManager().findFragmentByTag(\"dialog\");\n if (prev != null) {\n ft.remove(prev);\n }\n ft.addToBackStack(null);\n\n // Create and show the dialog.\n DialogFragment newFragment = PropDialogFragment.newInstance();\n newFragment.setCancelable(false);\n //newFragment.getDialog().setCanceledOnTouchOutside(false);\n newFragment.show(ft, \"dialog\");\n }", "title": "" }, { "docid": "3ad3af91f47bcdf5f237a6914c53f5ec", "score": "0.6503157", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"this is an alert dialog \").setTitle(\"Alert!\")\n .setPositiveButton(\"take a picture\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent i = new Intent(getContext() , Main8Activity.class);\n startActivity(i);\n\n }\n })\n .setNegativeButton(\"go home\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n Intent i = new Intent(getContext() , MainActivity.class);\n startActivity(i);\n\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "title": "" }, { "docid": "cab2093e3524e772ddff4bf669c069e9", "score": "0.6502466", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_start);\n builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String s = \"ok\";\n sendResult(Activity.RESULT_OK, s);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "title": "" }, { "docid": "211edba519c1d1b17dd8566142cf4c45", "score": "0.6496304", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Dialog dialog = super.onCreateDialog(savedInstanceState);\n dialog.setTitle(\"Filter\");\n return dialog;\n }", "title": "" }, { "docid": "d58006db372ccb2171d987ac160fbd44", "score": "0.64903444", "text": "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n dialog = new CustomDialog(mContext);\n dialog.show();\n }", "title": "" }, { "docid": "46d0d165f1eb0f61118750f62307f031", "score": "0.6487689", "text": "public void initDialog()\n\t{\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE); \n\t\tsetContentView(R.layout.notification_message);\n\t\tonClickOkButtonListener = null;\n\t\tgetWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);\n\t\tgetWindow().setBackgroundDrawable(new ColorDrawable(0));\n\t\ttitle = (MyTextView) findViewById(R.id.textViewNotice);\n\t\ttext = (TextView) findViewById(R.id.textViewMessage);\n\t\tokButton = (MyButton) findViewById(R.id.textViewOkBtn);\n\t\timageViewQuit = (ImageButton) findViewById(R.id.imageViewQuit);\n\t\tokButton.setOnClickListener(this);\n\t\timageViewQuit.setOnClickListener(this);\n\t}", "title": "" }, { "docid": "593a0347a2305a0d7b963b79c7bd5376", "score": "0.64826304", "text": "public Dialog progressDialog(Context context) {\n Dialog dialog = null;\n try {\n dialog = new Dialog(context);\n dialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.view_progress_dialog);\n dialog.setCancelable(false);\n dialog.show();\n } catch (Exception e) {\n Logger.getLogger(DialogUtils.class.getName()).log(Level.SEVERE, null, e);\n }\n return dialog;\n }", "title": "" }, { "docid": "026203b7b763a84817daa4c8335c280b", "score": "0.64811957", "text": "public OptionMenuWithDialog(Activity activity) {\r\n\t\tsuper(activity, android.R.style.Theme_Translucent);\r\n\t\tmActivity = activity;\r\n\r\n\t\t//Customize your dialog here\r\n\t}", "title": "" }, { "docid": "3e56dab3bb5c9394c1b265419292894b", "score": "0.64653325", "text": "private void showCongratsDialog() {\n dialog = new Dialog(VerifyOTPActivity.this);\n\n // Include dialog.xml file\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); //before\n dialog.setContentView(R.layout.custom_dialog);\n // this will remove rectangle frame around the Dialog\n dialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);\n // dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n dialog.show();\n\n TextView txtHeader = (TextView) dialog.findViewById(R.id.textViewHeader);\n TextView txtContent = (TextView) dialog.findViewById(R.id.textViewContent);\n Button btnOk = (Button) dialog.findViewById(R.id.buttonLetsBegin);\n\n txtHeader.setText(getResources().getString(R.string.congrats));\n txtContent.setText(getResources().getString(R.string.account_creation_msg));\n btnOk.setText(getResources().getString(R.string.btn_lets_begin));\n\n btnOk.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n Intent intentProfileReg = new Intent(VerifyOTPActivity.this,RegistrationActivity.class);\n startActivity(intentProfileReg);\n }\n });\n }", "title": "" }, { "docid": "9f53c0f2b57246ef7ca487c1a15542b3", "score": "0.64599615", "text": "public Dialog makeDialog(){\n final Context context = this.getActivity();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(R.string.pick_follow)\n .setItems(R.array.dialog_array, new DialogInterface.OnClickListener(){\n\n public void onClick(DialogInterface dialog, int which) {\n\n Log.d(\"Onclick - \", \"\" + which);\n //to follow\n if (which == 0){\n\n Log.d(\"Onclick - Btn 1\", \"\"+which);\n Intent i = new Intent(context, MapsActivity.class);\n startActivity(i);\n dialog.dismiss();\n }\n //to lead\n if (which == 1){\n\n Intent i = new Intent(context, MapsActivity.class);\n startActivity(i);\n dialog.dismiss();\n\n }\n //cancel\n if (which==2) dialog.dismiss();\n\n }\n });\n return builder.create();\n\n }", "title": "" }, { "docid": "e3db47a2acb3be4265354449da2b2c31", "score": "0.6458421", "text": "@Override\r\n public void onClick(DialogInterface dialog, int id) {\n\r\n }", "title": "" }, { "docid": "103457543373dd84945159f337a82e12", "score": "0.645438", "text": "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity()).setIcon(R.drawable.ic_launcher)\n\t\t\t\t.setTitle(R.string.alert_dialog_title)\n\t\t\t\t.setPositiveButton(R.string.yes_label,mOnClickListener)\n\t\t\t\t.setNegativeButton(R.string.no_label, mOnClickListener);\n\t\t\n\t\treturn builder.create();\n\t}", "title": "" }, { "docid": "d4821fedafc9b1ef041d566ea4a2aba2", "score": "0.6443811", "text": "@Override\n public Dialog createDialog(Context context) {\n View layout = inflater.inflate(R.layout.dialog_facility_bubble, null);\n initializeViews(layout);\n \n // Create the Dialog itself.\n this.dialog = new AlertDialog.Builder(context).setView(layout).create();\n this.dialog.setTitle(context.getString(R.string.dialogfacilitybubble_title));\n \n return this.dialog;\n }", "title": "" }, { "docid": "a914f82639d79504e4bf8f1903755a83", "score": "0.64378846", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(internal_message)\n .setPositiveButton(\"selected positive button\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n })\n .setNegativeButton(\"selected negative button\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n }).show();\n // Create the AlertDialog object and return it\n\n return builder.create();\n }", "title": "" }, { "docid": "40cdf4fdb5fe898d21154fdb53f4ab8e", "score": "0.64276576", "text": "@Override\n protected Dialog onCreateDialog(int id, Bundle args) {\n if (id == CONNECTION_DIALOG) {\n mConnectionDialog = new ProgressDialog(this);\n mConnectionDialog.setMessage(this.getString(R.string.connecting));\n mConnectionDialog.setCancelable(true);\n return mConnectionDialog;\n } else if (id == TIMER_DIALOG) {\n mTimerDialog = new ProgressDialog(this);\n mTimerDialog.setMessage(\"Timer is running\");\n mTimerDialog.setOnCancelListener(new Dialog.OnCancelListener() {\n public void onCancel(DialogInterface dialog) {\n Log.d(\"some one canceled me\");\n stopTimer();\n }\n });\n return mTimerDialog;\n }\n return null;\n }", "title": "" }, { "docid": "11911d0c2e761c5e99948dde1e73ec60", "score": "0.6425426", "text": "public AlertDialog mostrarPopup(int template)\r\n {\r\n\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n View view = getLayoutInflater().inflate(template, null);\r\n builder.setView(view);\r\n builder.setCancelable(true);\r\n\r\n view.findViewById(R.id.dialog_close).setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n\r\n customDialog.dismiss();\r\n }\r\n });\r\n\r\n AlertDialog dialog = builder.create();\r\n dialog.setCanceledOnTouchOutside(true);\r\n dialog.setCancelable(true);\r\n return dialog;\r\n }", "title": "" }, { "docid": "6aedecdda68bbffded7185260cd971af", "score": "0.6413095", "text": "public CustomDialog createAll(int w, int gravite) {\n\t\t\tLayoutInflater inflater = (LayoutInflater) context\n\t\t\t\t\t.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\t// instantiate the dialog with the custom Theme\n\t\t\tfinal CustomDialog dialog = new CustomDialog(context,\n\t\t\t\t\tR.style.customDialog, gravite);\n\t\t\tView layout = inflater.inflate(R.layout.view_custom_dialog, null);\n\t\t\tdialog.addContentView(layout, new LayoutParams(\n\t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));\n\t\t\t// set the dialog title\n\t\t\tView topLayout = layout.findViewById(R.id.c_top_line);\n\t\t\tTextView titleTv = ((TextView) layout.findViewById(R.id.c_title));\n\t\t\tif (title != null) {\n\t\t\t\ttitleTv.setVisibility(View.VISIBLE);\n\t\t\t\ttitleTv.setText(title);\n\t\t\t\ttopLayout.setVisibility(View.VISIBLE);\n\t\t\t} else {\n\t\t\t\ttitleTv.setVisibility(View.GONE);\n\t\t\t\ttopLayout.setVisibility(View.GONE);\n\t\t\t}\n\n\t\t\t// set the confirm button\n\t\t\tif (positiveButtonText != null) {\n\t\t\t\t((TextView) layout.findViewById(R.id.positiveButton))\n\t\t\t\t\t\t.setText(positiveButtonText);\n\t\t\t\tif (positiveButtonClickListener != null) {\n\t\t\t\t\t((TextView) layout.findViewById(R.id.positiveButton))\n\t\t\t\t\t\t\t.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tpositiveButtonClickListener.onClick(dialog,\n\t\t\t\t\t\t\t\t\t\t\tDialogInterface.BUTTON_POSITIVE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// if no confirm button just set the visibility to GONE\n\t\t\t\tlayout.findViewById(R.id.positiveButton).setVisibility(\n\t\t\t\t\t\tView.GONE);\n\t\t\t}\n\t\t\t// set the cancel button\n\t\t\tif (negativeButtonText != null) {\n\t\t\t\t((TextView) layout.findViewById(R.id.negativeButton))\n\t\t\t\t\t\t.setText(negativeButtonText);\n\t\t\t\tif (negativeButtonClickListener != null) {\n\t\t\t\t\t((TextView) layout.findViewById(R.id.negativeButton))\n\t\t\t\t\t\t\t.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tnegativeButtonClickListener.onClick(dialog,\n\t\t\t\t\t\t\t\t\t\t\tDialogInterface.BUTTON_NEGATIVE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// if no confirm button just set the visibility to GONE\n\t\t\t\tlayout.findViewById(R.id.negativeButton).setVisibility(\n\t\t\t\t\t\tView.GONE);\n\t\t\t}\n\t\t\t// set the content message\n\t\t\tif (message != null) {\n\t\t\t\t((TextView) layout.findViewById(R.id.message)).setText(message);\n\t\t\t} else if (contentView != null) {\n\t\t\t\t((LinearLayout) layout.findViewById(R.id.content))\n\t\t\t\t\t\t.removeAllViews();\n\t\t\t\t((LinearLayout) layout.findViewById(R.id.content)).addView(\n\t\t\t\t\t\tcontentView, new LayoutParams(\n\t\t\t\t\t\t\t\tLayoutParams.MATCH_PARENT,\n\t\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT));\n\t\t\t}\n\t\t\tdialog.setContentView(layout);\n\t\t\tDisplayMetrics metrics = new DisplayMetrics();\n\t\t\t((Activity) context).getWindow().getWindowManager()\n\t\t\t\t\t.getDefaultDisplay().getMetrics(metrics);\n\t\t\tint width = metrics.widthPixels;\n\t\t\tdialog.getWindow().setLayout(width, LayoutParams.WRAP_CONTENT);\n\t\t\tdialog.setCancelable(isCancel);\n\t\t\treturn dialog;\n\t\t}", "title": "" }, { "docid": "ff9e8443b44f494cefb77191b13cd2ee", "score": "0.6411457", "text": "private static void showAlertDialog(AlertDialog dialog){\n\t\tdialog.show();\n\t\t\n\t\t//Try setting colour of things\n\t\ttry{\n\t\t\t//Set text colour\n\t\t\tint textViewId = dialog.getContext().getResources().getIdentifier(\"android:id/alertTitle\", null, null);\n\t\t\tTextView tv = (TextView) dialog.findViewById(textViewId);\n\t\t\ttv.setTextColor(dialog.getContext().getResources().getColor(R.color.dialog_text_color));\n\t\t\t \n\t\t\t//Set divider colour\n\t\t\tint dividerId = dialog.getContext().getResources().getIdentifier(\"android:id/titleDivider\", null, null);\n\t\t\tView divider = dialog.findViewById(dividerId);\n\t\t\tdivider.setBackgroundColor(dialog.getContext().getResources().getColor(R.color.highlight_color));\n\t\t}\n\t\tcatch(Exception e){}\n\t}", "title": "" }, { "docid": "9fc5a3b1b21e51e63a1458bfd0ce5e05", "score": "0.6401542", "text": "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n DatePickerDialog dialog = new DatePickerDialog(this, myDateListener, selectedYear, selectedMonth, selectedDay);\n dialog.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.cancel), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (which == DialogInterface.BUTTON_NEGATIVE) {\n isDismiss = true;\n showCurDate();\n dialog.dismiss();\n }\n }\n });\n return dialog;\n }\n return null;\n }", "title": "" }, { "docid": "069acdc8551881ec0437e78d0ac6ebe2", "score": "0.63998246", "text": "@Override\r\n public void showNewDialog() {\n }", "title": "" }, { "docid": "8a012972aa96d2ed8add6fccf25f6c05", "score": "0.6397068", "text": "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n //Building the Dialog using the AlertDialog.Builder\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(requireActivity());\n\n //Inflating the Network Error Dialog Layout 'R.layout.dialog_progress_circle'\n //(Passing null as we are attaching the layout ourselves to a Dialog)\n View rootView = LayoutInflater.from(requireContext()).inflate(R.layout.dialog_progress_circle, null);\n\n //Looking up the Arguments if any\n Bundle arguments = getArguments();\n //Get the Progress status text from the Bundle arguments\n String progressStatus = PROGRESS_STATUS_EMPTY_DEFAULT;\n if (arguments != null) {\n progressStatus = arguments.getString(ARGUMENT_PROGRESS_STATUS, PROGRESS_STATUS_EMPTY_DEFAULT);\n }\n //Find the TextView for the Progress Text\n TextView textViewProgressStatus = rootView.findViewById(R.id.text_progress_status);\n if (progressStatus.equals(PROGRESS_STATUS_EMPTY_DEFAULT)) {\n //When the Progress Status Text is absent, hide the TextView\n textViewProgressStatus.setVisibility(View.GONE);\n } else {\n //When the Progress Status Text is present, show the TextView and set the Progress Text\n textViewProgressStatus.setText(progressStatus);\n }\n\n //Setting the View on the DialogBuilder\n dialogBuilder.setView(rootView);\n\n //Returning the Dialog instance built\n return dialogBuilder.create();\n }", "title": "" }, { "docid": "af7bea403955dc2d5bd477d41bced262", "score": "0.63828516", "text": "public InfoDialog create()\n\t\t{\n\t\t\tLayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\t// instantiate the dialog with the custom Theme\n\t\t\tfinal InfoDialog dialog = new InfoDialog(context, R.style.Dialog);\n\t\t\tView layout = inflater.inflate(R.layout.info_dialog, null);\n\t\t\tdialog.addContentView(layout, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));\n\t\t\tdialog.setCancelable(cancelable);\n\t\t\tTextView titleTV = ((TextView) layout.findViewById(R.id.info_dialog_title));\n\t\t\tTextView messageTV = ((TextView) layout.findViewById(R.id.info_dialog_text));\n\t\t\tImageView previewIV = (ImageView) layout.findViewById(R.id.previewIV);\n\t\t\tTextView errorTextTV = (TextView)layout.findViewById(R.id.errorTV);\n\t\t\tButton positiveButton = ((Button) layout.findViewById(R.id.info_dialog_positive_button));\n\t\t\tButton negativeButton = ((Button) layout.findViewById(R.id.info_dialog_negative_button));\n\t\t\tButton helpButton = ((Button)layout.findViewById(R.id.info_dialog_help_button));\n\t\t\t// set the dialog title\n\t\t\ttitleTV.setText(title);\n\t\t\t// set the confirm button\n\t\t\tif (positiveButtonText != null)\n\t\t\t{\n\t\t\t\tpositiveButton.setText(positiveButtonText);\n\t\t\t\tif (positiveButtonClickListener != null)\n\t\t\t\t{\n\t\t\t\t\tpositiveButton.setOnClickListener(new View.OnClickListener()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpositiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\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\telse\n\t\t\t{\n\t\t\t\t// if no confirm button just set the visibility to GONE\n\t\t\t\tpositiveButton.setVisibility(View.GONE);\n\t\t\t}\n\t\t\t// set the cancel button\n\t\t\tif (negativeButtonText != null && !negativeButtonText.equals(\"\"))\n\t\t\t{\n\t\t\t\tnegativeButton.setText(negativeButtonText);\n\t\t\t\tif (negativeButtonClickListener != null)\n\t\t\t\t{\n\t\t\t\t\tnegativeButton.setOnClickListener(new View.OnClickListener()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\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\telse\n\t\t\t{\n\t\t\t\t// if no confirm button just set the visibility to GONE\n\t\t\t\tnegativeButton.setVisibility(View.GONE);\n\t\t\t}\n\t\t\tif(helpButtonText != null && !helpButtonText.equals(\"\"))\n\t\t\t{\n\t\t\t\thelpButton.setText(helpButtonText);\n\t\t\t\thelpButton.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\thelpButtonClickListener.onClick(dialog, -5);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thelpButton.setVisibility(View.GONE);\n\t\t\t}\n\t\t\tif(preview != null)\n\t\t\t{\n\t\t\t\tpreviewIV.setImageBitmap(preview);\n\t\t\t\tpreviewIV.setScaleType(ScaleType.CENTER_INSIDE);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpreviewIV.setVisibility(View.INVISIBLE);\n\t\t\t}\n\t\t\tif(errorText != null && !errorText.equals(\"\"))\n\t\t\t{\n\t\t\t\terrorTextTV.setText(errorText);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\terrorTextTV.setVisibility(View.INVISIBLE);\n\t\t\t}\n\t\t\t\n\t\t\t// set the content message\n\t\t\tif (message != null)\n\t\t\t{\n\t\t\t\tmessageTV.setText(message);\n\t\t\t}\n\t\t\tdialog.setContentView(layout);\n\t\t\treturn dialog;\n\t\t}", "title": "" }, { "docid": "891c58c46faf74c1d6c58c86217b8c78", "score": "0.6382354", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n\n /** Getting the arguments passed to this fragment */\n Bundle bundle = getArguments();\n int position = bundle.getInt(\"position\");\n\n /** Creating a builder for the alert dialog window */\n AlertDialog.Builder b = new AlertDialog.Builder(getActivity());\n\n /** Setting a title for the window */\n b.setTitle(title);\n\n /** Setting items to the alert dialog */\n b.setSingleChoiceItems(reason, position, null);\n\n /** Setting a positive button and its listener */\n b.setPositiveButton(\"OK\",positiveListener);\n\n /** Setting a positive button and its listener */\n b.setNegativeButton(\"Cancel\", null);\n\n /** Creating the alert dialog window using the builder class */\n AlertDialog d = b.create();\n\n// d.requestWindowFeature(Window.FEATURE_NO_TITLE);\n// int dividerId = getResources().getIdentifier(\"android:id/titleDivider\", null, null);\n // View divider = d.findViewById(dividerId);\n // divider.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\n\n // colorAlertDialogTitle(d, dividerId);\n\n /** Return the alert dialog window */\n return d;\n }", "title": "" }, { "docid": "3ebcd3799c0e9d5a7cec363962cf91ce", "score": "0.63753456", "text": "private void Dialogforfacebook(){ \n\t\t firsttime = 1;\n\t\tmDialog = new DlgWindow1(getActivity(), R.style.CustomDialog, \"請至粉絲團按讚後即可有獲得獎品資格\", \"取消\", \"確認\", new OnClickListener() {\n\t\t\t//粉絲團\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t((MainActivity)getActivity()).HomePage();\n\t\t\t\tmDialog.dismiss();\n\t\t\t}\n }, new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString url = \"http://www.skywind.com.tw/sky2u/\";\n\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\t\t\ti.setData(Uri.parse(url));\n\t\t\t\tstartActivity(i);\n\t\t\t\t\n\t\t\t\tmDialog.dismiss();\n\t\t\t}\n });\n\t\tmDialog.show(); \n }", "title": "" }, { "docid": "bac102647e9f5d1b927d045d3cf2cae6", "score": "0.6368855", "text": "private void showDialog(Context context) {\n\n\t\tpDialog = ProgressDialog.show(context, null, \"\");\n\t\tpDialog.setContentView(R.layout.view_progress);\n\n\t\t// ProgressBar spinner = new android.widget.ProgressBar(context, null,\n\t\t// android.R.attr.progressBarStyle);\n\n\t\tProgressBar pb = (ProgressBar) pDialog.findViewById(R.id.pb);\n\n\t\tpb.getIndeterminateDrawable().setColorFilter(0xFF2078af,\n\t\t\t\tandroid.graphics.PorterDuff.Mode.MULTIPLY);\n\n\t\t// pDialog = new ProgressDialog(context);\n\t\t// pDialog.setMessage(\"Loading..\");\n\t\tpDialog.getWindow().clearFlags(LayoutParams.FLAG_DIM_BEHIND);\n\t\tpDialog.setCanceledOnTouchOutside(false);\n\t\tpDialog.setCancelable(false);\n\t\tpDialog.show();\n\t}", "title": "" }, { "docid": "44f202200049a75db3f4de5877851f9c", "score": "0.6358035", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n // Set the dialog title\n builder.setTitle(\"Selecione o Turno desta Viagem\")\n // Specify the list array, the items to be selected by default (null for none),\n // and the listener through which to receive callbacks when items are selected\n .setItems(R.array.turno_array, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mListener.onDialogPositiveClick(String.valueOf(which));\n }\n });\n\n return builder.create();\n }", "title": "" }, { "docid": "c17f52a344b00f88a745a5c969755ecf", "score": "0.6354808", "text": "@Override\n\tpublic void showDialog(String title, String message, boolean cancelable) {\n\t}", "title": "" }, { "docid": "dc2a1cf270ec8e1e34cb2ef46376398a", "score": "0.6354593", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "title": "" }, { "docid": "21a69eac3a3c93d6cb57d8420ed2c808", "score": "0.6353849", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.instruc);//Titulo\n builder.setMessage(R.string.Instrucciones);//Mensaje\n builder.setPositiveButton(R.string.ok, null);//Un boton que valida la accion pero no hace nada\n return builder.create();// Se crea\n }", "title": "" }, { "docid": "f739f80ea479d1dbcc416b919baa68ac", "score": "0.6343652", "text": "public void getCommanLoading() {\n loading_popup = new Dialog(activity, R.style.NewDialog);\n loading_popup.setContentView(R.layout.common_loader);\n\n\n Window window = loading_popup\n .getWindow();\n window.setLayout(\n RelativeLayout.LayoutParams.WRAP_CONTENT,\n RelativeLayout.LayoutParams.WRAP_CONTENT);\n window.setGravity(Gravity.CENTER);\n WindowManager.LayoutParams layoutParams = loading_popup\n .getWindow()\n .getAttributes();\n loading_popup.setCancelable(true);\n loading_popup.show();\n }", "title": "" }, { "docid": "1831e40fa35be1d009bbafdf666eb3c2", "score": "0.63421196", "text": "@Override\n public void onClick(View view) {\n\n createDialogBox();\n }", "title": "" }, { "docid": "b0708307868a2dac1582c3a8fd641aa8", "score": "0.6340205", "text": "public void intentDialog() {\n // TODO Auto-generated method stub\n final Dialog d = new Dialog(context, R.style.Base_Theme_AppCompat_Light_Dialog_Alert);\n d.setCancelable(false);\n d.getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n d.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);\n d.setContentView(R.layout.bus_cancel_ticket_dialog);\n d.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n\n final Button btnOK = d.findViewById(R.id.btn_ok);\n final Button btnNO = d.findViewById(R.id.btn_no);\n final Button btnClosed = d.findViewById(R.id.close_push_button);\n final TextView tvMessage = (TextView) d.findViewById(R.id.tv_confirmation_dialog);\n final TextView tvTitle = (TextView) d.findViewById(R.id.title);\n tvTitle.setText(\"Information\");\n tvMessage.setText(\"You have successfully cancelled desire seat number of ticket !!!\");\n btnOK.setText(\"Done\");\n btnClosed.setVisibility(View.GONE);\n btnNO.setVisibility(View.GONE);\n\n btnOK.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n PnrDetailsActivity.this.finish();\n d.dismiss();\n }\n });\n\n btnNO.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n d.dismiss();\n }\n });\n\n btnClosed.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n d.cancel();\n }\n });\n d.show();\n }", "title": "" }, { "docid": "a234278dea943e746801ae0c969055c2", "score": "0.6339893", "text": "public Dialog onCreateDialog(Bundle savedInstanceState) {\nfinal Calendar c = Calendar.getInstance();\nint year = c.get(Calendar.YEAR);\nint month = c.get(Calendar.MONTH);\nint day = c.get(Calendar.DAY_OF_MONTH);\n\n// Create a new instance of DatePickerDialog and return it\nreturn new DatePickerDialog(getActivity(), this, year, month, day);\n}", "title": "" }, { "docid": "fe79329da8032ed0c70d50d5ddd2edd1", "score": "0.6337073", "text": "public interface DialogOver {\n void customiseDialogView(Dialog dialog);\n}", "title": "" }, { "docid": "5c47d25be714ed1ead1ab6d995d3eb39", "score": "0.63328564", "text": "@Override\n protected Dialog onCreateDialog(int id) {\n switch (id) {\n case TIME_DIALOG_ID:\n return new TimePickerDialog(this,\n mTimeSetListener, mHour, mMinute, false);\n case DATE_DIALOG_ID:\n return new DatePickerDialog(this,\n mDateSetListener,\n mYear, mMonth, mDay);\n }\n return super.onCreateDialog(id);\n }", "title": "" }, { "docid": "e080132d1c88d1f6f032e8d756b19cd5", "score": "0.63323706", "text": "private void ShowDialogSendAndCall(){\n Dialog dialog = new Dialog(this);\n dialog.setContentView(R.layout.dialog_send_call);\n dialog.setCancelable(true);\n Button btnCall = dialog.findViewById(R.id.btn_call);\n Button btnSend = dialog.findViewById(R.id.btn_send);\n btnCall.setOnClickListener(this);\n btnSend.setOnClickListener(this);\n dialog.show();\n }", "title": "" }, { "docid": "d6746e73d7aea68daefa82e77b5d6966", "score": "0.63284904", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View view = inflater.inflate(R.layout.hb_theme, null);\n\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n builder.setView(view)\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n }).setNeutralButton(\"remove tag\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n setDialogEvents(view);\n return builder.create();\n }", "title": "" }, { "docid": "515c1d65209d06ad1210dc42ac6d4950", "score": "0.6326418", "text": "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }", "title": "" }, { "docid": "515c1d65209d06ad1210dc42ac6d4950", "score": "0.6326418", "text": "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }", "title": "" }, { "docid": "1cdd2661c76d176f94a5482c2023db85", "score": "0.63228434", "text": "private void showDialog(){\n View middle = getLayoutInflater().inflate(R.layout.activity_help_dialog, null);\n TextView authorName = (TextView)middle.findViewById(R.id.author_name);\n TextView versionNumber = (TextView)middle.findViewById(R.id.version_number);\n TextView instructions = (TextView)middle.findViewById(R.id.instructions);\n authorName.setText(MyUtil.dictionaryAuther);\n versionNumber.setText(MyUtil.versionNumber);\n instructions.setText(MyUtil.dictionaryInstruction);\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n })\n .setView(middle);\n\n builder.create().show();\n }", "title": "" }, { "docid": "db7e578addebd97781cd45a6b620b521", "score": "0.6310618", "text": "@Override\r\n protected Dialog onCreateDialog(int id) {\r\n \tDialog dialog;\r\n \t\r\n \t// Switch case to create proper dialog window\r\n switch (id) {\r\n case TIME_DIALOG_ID:\r\n \t// Creates a Time Picker dialog\r\n dialog = new TimePickerDialog(this, mTimeSetListener, mHour, mMinute, false);\r\n break;\r\n\t\tcase NOTI_DIALOG_ID:\r\n\t\t\tdialog = NotificationNumberPickerDialog(this);\r\n\t\t\tbreak;\r\n\t\tcase VIBR_DIALOG_ID:\r\n\t\t\tdialog = VibrateNumberPickerDialog(this);\r\n\t\t\tbreak;\r\n default:\r\n \tdialog = null;\r\n }\r\n return dialog;\r\n }", "title": "" }, { "docid": "9b5b4704af163f1e2d8eadc53d887b87", "score": "0.63041353", "text": "public void promptDialog(){\n new AlertDialog.Builder(getContext())\n .setTitle(\"Clip Details\")\n .setMessage(\"Length \" + associated.getDurationMS() + \" ms\" + \" The Current Color is: \" + mColor)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n //Do nothing for now\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n // Do nothing.\n }\n })\n .show();\n }", "title": "" }, { "docid": "52c7563a3e3a214cd3e82e8a5374bf21", "score": "0.62991524", "text": "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Dialog dialog = super.onCreateDialog(savedInstanceState);\n dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.fragment_receipt);\n return dialog;\n }", "title": "" }, { "docid": "1c3dc1a70032e46cfb99c07d867b8442", "score": "0.62982106", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AlertDialogStyle);\n builder.setMessage(R.string.contributionNoSend)\n .setTitle(\"Contribución\")\n .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n listener.onContributionDialogPositiveClick();\n }\n })\n .setNegativeButton(R.string.sendAgain, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n listener.onContributionDialogAgainClick();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "title": "" }, { "docid": "6cc3175234a9e8ca2a21fff45c9ed490", "score": "0.62964493", "text": "@Override\n public void onClick(View view) {\n mcqQuestionCount = 1;\n\n //Adding Custom dialog\n Dialog submitDialog = new Dialog(MCQQuestionInput_7.this);\n submitDialog.setContentView(R.layout.custom_mcq_dialog);\n submitDialog.setCancelable(false);\n submitDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n submitDialog.show();\n\n Button btnMCQCancel = submitDialog.findViewById(R.id.btn_faculty_MCQCancel);\n Button btnMCQConfirm = submitDialog.findViewById(R.id.btn_faculty_MCQConfirm);\n\n //Dialog Confirm\n btnMCQConfirm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n startActivity(new Intent(getApplicationContext(), QuestionSection_6.class));\n }\n });\n\n //Dialog Cancel\n btnMCQCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n submitDialog.cancel();\n }\n });\n }", "title": "" }, { "docid": "2bb0bd125cd6e064ff722e6544124c36", "score": "0.62799394", "text": "public int showDialog(final Activity context, final Intent intent){\n\r\n view = LayoutInflater.from(context).inflate(R.layout.layout_pin, null);\r\n dialog = new Dialog(context, R.style.my_dialog);\r\n msg_title = (TextView) view.findViewById(R.id.msg_title);\r\n msg_title.setVisibility(View.VISIBLE);\r\n msg_title.setText(\"Enter Supervisor PIN\");\r\n\r\n dialog.setOnShowListener(new DialogInterface.OnShowListener() {\r\n @Override\r\n public void onShow(DialogInterface dialog) {\r\n System.out.println();\r\n }\r\n });\r\n\r\n\r\n btnb1 = (Button) view.findViewById(R.id.button1);\r\n btnb2 = (Button) view.findViewById(R.id.button2);\r\n btnb3 = (Button) view.findViewById(R.id.button3);\r\n btnb4 = (Button) view.findViewById(R.id.button4);\r\n btnb5 = (Button) view.findViewById(R.id.button5);\r\n btnb6 = (Button) view.findViewById(R.id.button6);\r\n btnb7 = (Button) view.findViewById(R.id.button7);\r\n btnb8 = (Button) view.findViewById(R.id.button8);\r\n btnb9 = (Button) view.findViewById(R.id.button9);\r\n btnb0 = (Button) view.findViewById(R.id.button0);\r\n btncancel = (Button) view.findViewById(R.id.buttoncan);\r\n btnconfirm = (Button) view.findViewById(R.id.buttonconfirm);\r\n btnclean = (Button) view.findViewById(R.id.buttonclean);\r\n btnback = (Button) view.findViewById(R.id.buttonback);\r\n Window dialogWindow = dialog.getWindow();\r\n dialogWindow.setGravity(Gravity.CENTER);\r\n Log.v(\"button\", btnb0.getY() + \"---\" + btnb0.getX() + \"----\" + btnb0.getPivotX() + \"----\" + btnb0.getPivotX());\r\n dialogWindow.setWindowAnimations(R.style.dialogstyle); // 添加动画\r\n WindowManager.LayoutParams lp = dialogWindow.getAttributes();\r\n lp.x = 0; // 新位置X坐标\r\n lp.y = 0; // 新位置Y坐标\r\n view.measure(0, 0);\r\n lp.height = view.getMeasuredHeight();\r\n lp.alpha = 9f; // 透明度\r\n dialogWindow.setAttributes(lp);\r\n// view.setVisibility(View.INVISIBLE);\r\n dialog.setContentView(view);\r\n Log.i(\"\", \"showDialog: context.isDestroyed()\"+context.isDestroyed()+\"context.isFinishing()\"+context.isFinishing());\r\n if (!context.isFinishing() || !context.isDestroyed())\r\n dialog.show();\r\n Log.v(\"button show\", \"-----\");\r\n TextView textView = ((TextView) view.findViewById(R.id.textView));\r\n textView.setText(\"\");\r\n\r\n\r\n view.findViewById(R.id.buttonexit).setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n dialog.dismiss();\r\n }\r\n });\r\n\r\n\r\n textView.addTextChangedListener(new TextWatcher() {\r\n @Override\r\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\r\n\r\n }\r\n\r\n @Override\r\n public void onTextChanged(CharSequence s, int start, int before, int count) {\r\n\r\n }\r\n\r\n @Override\r\n public void afterTextChanged(Editable s) {\r\n if(s.toString().length()==0)\r\n btnclean.setText(context.getResources().getString(R.string.cancel));\r\n else\r\n btnclean.setText(context.getResources().getString(R.string.clear));\r\n }\r\n });\r\n\r\n\r\n btnconfirm.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n String pin = ((TextView)view).getText().toString();\r\n if(StringUtil.isEmpty(pin))\r\n context.startActivity(intent);\r\n else{\r\n msg_title.setText(\"Authentication Failed\");\r\n //msg_title.setText(\"INCORRECT PIN (\" + currentPinRetry++ + \"/\" + maxPinRetry + \")\");\r\n }\r\n }\r\n });\r\n\r\n btncancel.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n if (dialog != null && dialog.isShowing()) {\r\n dialog.dismiss();\r\n }\r\n }\r\n });\r\n\r\n btnclean.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n ((TextView)view).setText(\"\");\r\n }\r\n });\r\n\r\n btnback.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n String pin = ((TextView)view).getText().toString();\r\n ((TextView)view).setText(pin);\r\n //((TextView)view.findViewById(R.id.textView)).setText(stars);\r\n }\r\n });\r\n\r\n\r\n return 0;\r\n }", "title": "" }, { "docid": "5d207bbf04aed7df07f802425b47ec1d", "score": "0.627815", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n //Definimos el título\n builder.setTitle(R.string.titulo)\n //Definimos el mensaje\n .setMessage(R.string.mensaje1)\n //Definimos botón positivo\n .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //Mostramos un log\n Log.d(\"salir\",\"Has salido\");\n }\n })\n //Botón negativo\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //Simplemente cerramos el dialogo sin hacer nada\n dismiss();\n }\n });\n // Devolvemos el objeto\n return builder.create();\n }", "title": "" }, { "docid": "7fb01e2cf5a65e16585bd2a35f0c0142", "score": "0.6271105", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState){\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n //Create a new instance of DAtePickerDialog and return it\n return new DatePickerDialog(getActivity(), listener ,year,month,day);\n }", "title": "" }, { "docid": "2f1a09d4617f97aacd6b61ee904136d8", "score": "0.62705463", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n }", "title": "" }, { "docid": "0a5348fa35a585d57c12dfaf16b256dc", "score": "0.62681943", "text": "@Override\n public void onClick(View v) {\n\n final Dialog popup = new Dialog(context,android.R.style.Theme_Translucent);\n popup.requestWindowFeature(Window.FEATURE_NO_TITLE);\n popup.setCancelable(true);\n popup.setContentView(R.layout.program_popup);\n WindowManager.LayoutParams lp = popup.getWindow().getAttributes();\n lp.dimAmount=0f; // Dim level. 0.0 - no dim, 1.0 - completely opaque\n popup.getWindow().setAttributes(lp);\n popup.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n popup.show();\n String text=\"<font color=#000000>A partir de hoy recibirás tu estado de cuenta por correo electrónico. </font></br>\" +\n \"<font color=#000000> Además, podrás consultarlo cuando quieras desde nuestra aplicación y pagina de internet</font>\";\n // ((TextView)popup.findViewById(R.id.pop_text)).setText(Html.fromHtml(text));\n // LinearLayout llo=(LinearLayout)popup.findViewById(R.id.listo);\n ImageView cerrar=(ImageView)popup.findViewById(R.id.btn_close);\n cerrar.setClickable(true);\n cerrar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n popup.dismiss();\n }\n });\n ((TextView)popup.findViewById(R.id.pop_title)).setText(programa.getTitulo());\n try {\n //Mejor calculamos la categoria del programa por intervalo de canal\n int canal =Integer.parseInt(programm.getCanal());\n String categoria=\"\";\n if(canal<200&&canal>100)\n categoria=\"TV Abierta\";\n else if(canal<300&&canal>200)\n categoria=\"Entretenimiento\";\n else if(canal<400&&canal>300)\n categoria=\"Infantil\";\n else if(canal<600&&canal>500)\n categoria=\"Deportes\";\n else if(canal<700&&canal>600)\n categoria=\"Peliculas\";\n else if(canal<800&&canal>700)\n categoria=\"Información\";\n else if(canal<1000&&canal>900)\n categoria=\"Alta definición\";\n ((TextView) popup.findViewById(R.id.pop_cat)).setText(categoria);\n ((TextView) popup.findViewById(R.id.pop_cat)).setVisibility(TextView.VISIBLE);\n }catch(Exception e){\n ((TextView) popup.findViewById(R.id.pop_cat)).setVisibility(TextView.GONE);\n }\n ((TextView)popup.findViewById(R.id.pop_desc)).setText(programa.getDescripcion());\n SimpleDateFormat sdd=new SimpleDateFormat(\"HH:mm\");\n Calendar cal=Calendar.getInstance();\n cal.setTimeInMillis(Long.parseLong(programa.getHorario().getInicial()));\n Calendar cal2=Calendar.getInstance();\n cal2.setTimeInMillis(Long.parseLong(programa.getHorario().getEnd()));\n\n String inicio=sdd.format(cal.getTime());\n String fin=sdd.format(cal2.getTime());\n ((TextView)popup.findViewById(R.id.pop_hra)).setText(inicio + \" - \"+ fin);\n }", "title": "" }, { "docid": "5c1b4cad33f25c7b27daaa20d02b2909", "score": "0.62654984", "text": "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "title": "" }, { "docid": "5c1b4cad33f25c7b27daaa20d02b2909", "score": "0.62654984", "text": "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "title": "" }, { "docid": "c204bba59cd14c4f79b23cd0aa023870", "score": "0.62651515", "text": "public interface DialogCallback {\n void onCallback(Dialog dialog, View v, int position);\n}", "title": "" }, { "docid": "2f6e435079c73357a6323da167151f36", "score": "0.62648404", "text": "@Override\n\tpublic void onDialogPositiveClick(DialogFragment dialog) {\n\t\t\n\t}", "title": "" } ]
5c9c009f36cfb68dd8995955a53124fe
Post request (upload files)
[ { "docid": "f6019f60d0e77b57be0f4c813f1fc313", "score": "0.0", "text": "public void post(String sUrl, List<NameValuePair>nameValuePairs) {\n this.htp = new HttpPostThread(sUrl, nameValuePairs);\n this.htp.start(); // should be start()\n }", "title": "" } ]
[ { "docid": "21c26e2213b087a2c47da06f7215207d", "score": "0.7163022", "text": "SimpleHttpResponse putFile(SimpleHttpRequest request, File toUpload) throws ClientProtocolException, IOException;", "title": "" }, { "docid": "8284aeba567964aa2807e1a21744f368", "score": "0.70852923", "text": "public File upload(List<MultipartFile> files, String folder);", "title": "" }, { "docid": "26d32d47a74230bdcdcb1f1fee12d57a", "score": "0.68339646", "text": "@PostMapping(name = \"/upload-file\", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\n public ResponseEntity<String> uploadFile(@RequestPart(\"files\") MultipartFile[] files) {\n logger.debug(\"Inside uploadFile controller\");\n smeHandler.saveFile(files);\n return ResponseEntity.ok(\"File uploaded\");\n }", "title": "" }, { "docid": "e585c54c7657f24aaf5f1a300cfb3de0", "score": "0.6814323", "text": "void upload(MultipartFile file, String name, int type);", "title": "" }, { "docid": "bb536569371c1b52ae8a46a53571f8c7", "score": "0.68019706", "text": "@POST\n\t@Path(\"/uploadFile\")\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic Response uploadFile(String request) throws InstantiationException, IllegalAccessException, ClassNotFoundException, CloneNotSupportedException, IOException, JSONException{\n\n\t\tSystem.out.println(request);\n\t\tJSONObject jsonObject = new JSONObject(request);\n\n\t\tString userID = jsonObject.getString(\"userID\");\n\t\tString fileData = jsonObject.getString(\"file\");\n\t\tString dataType = jsonObject.getString(\"dataType\");\n\t\tString description = jsonObject.getString(\"description\");\n\t\t\n\t\t//google how to get auth token\n\t\tString authToken = jsonObject.getString(\"\");\n\n\t\tif(userID == null || authToken == null || fileData == null || dataType == null || description == null){\n\t\t\tSystem.out.println(\"=====userID ERROR=====\");\n\t\t\treturn Response.status(400).entity(\"{\\\"Error\\\":\\\"Provide stuff\\\"}\").build();\n\t\t}\n\t\t// match auth token\n\t\t// get bucket name from user\n\t\t// upload data using amazon client\n\t\t// store returned key, bucket name, filetype, filedescription in db\n\t\t\t\t\n\t\tSystem.out.println(\"=====SERVED JSON TO USER=====\");\n\t\treturn Response.ok().build();\n\t}", "title": "" }, { "docid": "55c6cfeeecc89d605dd1b0246ea4f342", "score": "0.6715349", "text": "public void upload() { }", "title": "" }, { "docid": "d4fa1916750b897fb1ff88dac479fe2d", "score": "0.6642754", "text": "@POST\r\n @Consumes(MediaType.MULTIPART_FORM_DATA)\r\n public void post(@Context HttpServletRequest req, @Context HttpServletResponse res) throws IOException, URISyntaxException {\r\n Map<String, BlobKey> blobs = blobstoreService.getUploadedBlobs(req);\r\n BlobKey blobKey = blobs.get(\"files[]\");\r\n res.sendRedirect(\"/rest/file/\" + blobKey.getKeyString() + \"/meta\");\r\n }", "title": "" }, { "docid": "b00a0c2b6057fa26dabe19152a57a64b", "score": "0.66217816", "text": "@Multipart\n @POST(\"Api.php?apicall=upload\")\n Call<ResponsModel> uploadImage(@Part(\"image\\\"; filename=\\\"myfile.jpg\\\" \") RequestBody file, @Part(\"desc\") RequestBody desc);", "title": "" }, { "docid": "9b890898dba88ff6178a1442a23d7e68", "score": "0.6613185", "text": "@PostMapping(consumes = {MediaType.MULTIPART_FORM_DATA_VALUE})\n Validation submitFile(@RequestPart(\"file\") File file);", "title": "" }, { "docid": "d9c966d0b76283a56d58aea089a15c97", "score": "0.6549851", "text": "public String upload(File file) throws Exception {\n HttpURLConnection conn = null;\n\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n int bytesRead, bytesAvailable, bufferSize;\n\n byte[] buffer;\n\n URL urlUrl = new URL(url);\n conn = (HttpURLConnection) urlUrl.openConnection();\n conn.setReadTimeout(300000);\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setUseCaches(false);\n conn.setRequestMethod(\"POST\");\n conn.setRequestProperty(\"Connection\", \"Keep-Alive\");\n conn.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n\n OutputStream os = conn.getOutputStream();\n\n write(os, twoHyphens + boundary + lineEnd);\n write(os, \"Content-Disposition: form-data; name=\\\"file1\\\";\" + \" filename=\\\"\" + file.getName() + \"\\\"\" + lineEnd);\n write(os, lineEnd);\n\n // create a buffer of maximum size\n FileInputStream fileInputStream = new FileInputStream(file);\n\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n buffer = new byte[bufferSize];\n\n // read file and write it into form...\n\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n while (bytesRead > 0) {\n os.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n\n // send multipart form data necesssary after file data...\n\n write(os, lineEnd);\n write(os, twoHyphens + boundary + twoHyphens + lineEnd);\n\n // close streams\n fileInputStream.close();\n \n os.flush();\n os.close();\n\n // ------------------ read the SERVER RESPONSE\n\n BufferedReader inp = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n String s, response = \"\";\n\n while ((s = inp.readLine()) != null) {\n response = response + s;\n }\n inp.close();\n\n if (response.startsWith(\"[uploaded]\")) {\n String paths[] = response.split(\"\\\\[uploaded\\\\]\");\n \n for (int j = 0; j < paths.length; j++) {\n if (!paths[j].trim().isEmpty()) {\n return paths[j].trim();\n }\n }\n } \n throw new ServerException(\"Could not read the response: \" + response);\n }", "title": "" }, { "docid": "ba8365f58069a62dae64ada78688f27e", "score": "0.65494037", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(FileUpload.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n// ServletFileUpload sf = new ServletFileUpload(new DiskFileItemFactory());\n// List<FileItem> files;\n// try {\n// files = sf.parseRequest(request);\n// for (FileItem elem : files) {\n// try {\n// elem.write(new File(\"D:\\\\javaee\\\\ejb\\\\mavenproject1\\\\fileupload\\\\\" + elem.getName()));\n// } catch (Exception ex) {\n// Logger.getLogger(FileUpload.class.getName()).log(Level.SEVERE, null, ex);\n// }\n// System.out.println(\"broj fajlova\" + files.size());\n// }\n// } catch (FileUploadException ex) {\n// Logger.getLogger(FileUpload.class.getName()).log(Level.SEVERE, null, ex);\n// }\n // System.out.println(\"broj fajlova\" + files.size());\n }", "title": "" }, { "docid": "b0869571b1562273d712516adadec2f9", "score": "0.6548265", "text": "public static String postFiles(String url, Map<String,String> vars, Map<String,File> files) {\n try {\n HttpURLConnection conn = (HttpURLConnection)(new URL(url)).openConnection();\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setUseCaches(false);\n \n conn.setRequestMethod(\"POST\");\n conn.setRequestProperty(\"Connection\", \"Keep-Alive\");\n conn.setRequestProperty(\"Content-Type\", \"multipart/form-data; boundary=\" + BOUNDARY);\n \n DataOutputStream out = new DataOutputStream(conn.getOutputStream());\n assembleMultipartFiles(out, vars, files);\n \n InputStream in = conn.getInputStream();\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n return sb.toString();\n }\n catch (UnsupportedEncodingException e) {\n return \"Encoding exception: \" + e;\n }\n catch (IOException e) {\n return \"IOException: \" + e;\n }\n catch (IllegalStateException e) {\n return \"IllegalState: \" + e;\n }\n }", "title": "" }, { "docid": "7b053f5ec08ed08ec2b7eb9c4edd9f5e", "score": "0.652074", "text": "public static void upload() { \n\t CloseableHttpClient httpclient = HttpClients.createDefault(); \n\t //CloseableHttpClient httpclient = HttpClientBuilder.create().build();\n\t try { \n\t HttpPost httppost = new HttpPost(\"http://192.168.1.112:8080/fileUpload/upload\"); \n\t \n\t RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(200000).setSocketTimeout(200000).build();\n\t httppost.setConfig(requestConfig);\n\t \n\t FileBody bin = new FileBody(new File(\"D:\\\\codepage.txt\")); \n\t StringBody comment = new StringBody(\"This is comment\", ContentType.TEXT_PLAIN); \n\t \n\t HttpEntity reqEntity = MultipartEntityBuilder.create().addPart(\"file\", bin).addPart(\"comment\", comment).build(); \n\t \n\t httppost.setEntity(reqEntity); \n\t \n\t System.out.println(\"executing request \" + httppost.getRequestLine()); \n\t CloseableHttpResponse response = httpclient.execute(httppost); \n\t try { \n\t System.out.println(response.getStatusLine()); \n\t HttpEntity resEntity = response.getEntity(); \n\t if (resEntity != null) { \n\t String responseEntityStr = EntityUtils.toString(response.getEntity());\n\t System.out.println(responseEntityStr);\n\t System.out.println(\"Response content length: \" + resEntity.getContentLength()); \n\t } \n\t EntityUtils.consume(resEntity); \n\t } finally { \n\t response.close(); \n\t } \n\t } catch (ClientProtocolException e) { \n\t e.printStackTrace(); \n\t } catch (IOException e) { \n\t e.printStackTrace(); \n\t } finally { \n\t try { \n\t httpclient.close(); \n\t } catch (IOException e) { \n\t e.printStackTrace(); \n\t } \n\t } \n\t }", "title": "" }, { "docid": "c0c67f132baed2ac7cfaddf02648bc39", "score": "0.64926976", "text": "String uploadFile(String zenodoId, File file);", "title": "" }, { "docid": "9d22aaac7f034928d3006b3a222460fa", "score": "0.6457485", "text": "void upload (String filePath, String destinationPath);", "title": "" }, { "docid": "88dc1092343f12f12542255920bc1e4c", "score": "0.6438301", "text": "@Post \n public Representation post(Representation entity) {\n Representation rep = null; \n // 1/ Create a factory for disk-based file items \n DiskFileItemFactory factory = new DiskFileItemFactory(); \n //System.out.println(\"大头\"); \n // 2/ Create a new file upload handler based on the Restlet \n // FileUpload extension that will parse Restlet requests and \n // generates FileItems. \n RestletFileUpload upload = new RestletFileUpload(factory); \n \n // 3/ Request is parsed by the handler which generates a \n // list of FileItems \n List<FileItem> items = null; \n try { \n items = upload.parseRepresentation(entity); \n } catch (FileUploadException e) { \n // TODO Auto-generated catch block \n e.printStackTrace(); \n } \n \n \n String filename = \"\"; \n \n for (FileItem fi : items) { \n filename = fi.getName(); \n System.out.println(\"Save image ... \" + filename); \n /*新建一个图片文件*/ \n String extName=filename.substring(filename.lastIndexOf(\".\")); \n String newName=new SimpleDateFormat(\"yyyyMMDDHHmmssms\").format(new Date()); \n File file=new File(newName+extName); \n if(!file.exists()){//判断文件是否存在 \n try { \n file.createNewFile(); //创建文件 \n \n } catch (IOException e) { \n // TODO Auto-generated catch block \n e.printStackTrace(); \n } \n } \n /*获取文件路径*/ \n String path_=file.getPath(); \n /*获取绝对路径名*/ \n String absPath=file.getAbsolutePath(); \n /*获取父亲文件路径*/ \n String parent=file.getParent(); \n try { \n fi.write(file); \n } catch (Exception e) { \n // TODO Auto-generated catch block \n e.printStackTrace(); \n } \n \n } \n return null; \n }", "title": "" }, { "docid": "759e2ac2584857b9d9d50eeae6570309", "score": "0.64216083", "text": "@Override\n protected void doPost(HttpServletRequest request,\n HttpServletResponse response) throws ServletException, IOException {\n // xử lý upload file khi người dùng nhấn nút thực hiện\n DiskFileItemFactory fileItemFactory = new DiskFileItemFactory();\n ServletFileUpload upload = new ServletFileUpload(fileItemFactory);\n try {\n List<FileItem> fileItems = upload.parseRequest(request);\n for (FileItem fileItem : fileItems) {\n if (!fileItem.isFormField()) {\n // xử lý file\n String nameimg = fileItem.getName();\n if (!nameimg.equals(\"\")) {\n String dirUrl = request.getServletContext()\n .getRealPath(\"\") + File.separator + \"files\";\n File dir = new File(dirUrl);\n if (!dir.exists()) {\n dir.mkdir();\n }\n String fileImg = dirUrl + File.separator + nameimg;\n File file = new File(fileImg);\n try {\n fileItem.write(file);\n System.out.println(\"UPLOAD THÀNH CÔNG...!\");\n System.out.println(\"ĐƯỜNG DẪN KIỂM TRA UPLOAD HÌNH ẢNH : \\n\" + dirUrl);\n } catch (Exception e) {\n System.out.println(\"CÓ LỖ TRONG QUÁ TRÌNH UPLOAD!\");\n e.printStackTrace();\n }\n }\n }\n }\n } catch (FileUploadException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "1e40b0bf19cfc5f875a366585aae264e", "score": "0.6403296", "text": "@PostMapping(\"/upload\")\n public String upload(@RequestParam(\"file\") MultipartFile file){\n return filePathService.Upload(file);\n }", "title": "" }, { "docid": "6bc13af5d6f1387f4878820ca7f9163c", "score": "0.64008963", "text": "private byte[] sendMultipartPost(HttpResponse resp) throws CoreException, IOException, Exception {\n DataOutputStream outputStream = null;\n String filepath = content.getUrl();\n\n // Get the connection\n HttpsURLConnection connection = null;\n HttpsURLConnection.setDefaultHostnameVerifier(new NullHostNameVerifier());\n\n\t\t//@ims-stack: Begin : added by ktu for FT in order to adapt according to the paramter \"ftHTTPCSURI\" value.\n if (logger.isActivated()) {\n logger.info(\"Upload file: sendMultipartPost; url = \" + url);\n } \n\n\t\tString protocol = url.getProtocol();\n if(protocol.equals(\"http\")){\n protocol = \"https\"; //change \"http\" to \"https\" protocol\n String host = url.getHost();\n String serviceRoot = url.getPath();\n // Build new url\n url = new URL(protocol + \"://\" + host + serviceRoot);\t\t \n\t\t if (logger.isActivated()) {\n\t\t\t logger.info(\"Upload file: sendMultipartPost; New url = \" + url);\n\t\t } \n }\n String host = null;\n \tInetAddress inetAddress = null;\n \tString localIP= null;\n \tint port= 0;\n \t\n \tif (logger.isActivated()) {\n host = url.getHost();\n \t inetAddress = InetAddress.getByName(host);\n \t localIP= getLocalIpAddress();\n \t port= url.getPort();\n \t}\n\n\t\ttry{\n\t\t//@ims-stack: End added by ktu for FT in order to adapt according to the paramter \"ftHTTPCSURI\" value.\n connection = (HttpsURLConnection) url.openConnection();\n\n try {\n connection.setSSLSocketFactory(FileTransSSLFactory.getFileTransferSSLContext().getSocketFactory());\n } catch(Exception e) {\n if (logger.isActivated()) {\n logger.error(\"Failed to initiate SSL for connection:\", e);\n }\n }\n\n connection.setDoInput(true);\n connection.setDoOutput(true);\n connection.setReadTimeout(50000);\n\n // POST construction\n connection.setRequestMethod(\"POST\");\n\t\t\n connection.setRequestProperty(\"Connection\", \"close\");\n connection.setRequestProperty(\"User-Agent\", \"IM-client/OMA1.0 \" + TerminalInfo.getProductInfo());\n connection.setRequestProperty(\"Content-Type\", \"multipart/form-data; boundary=\"\n + BOUNDARY_TAG);\n\n // Construct the Body\n String body = \"\";\n\n // Add tid\n if (tidFlag) {\n body += generateTidMultipart();\n }\n\n\n // Update authentication agent from response\n if (authenticationFlag) {\n Header[] authHeaders = resp.getHeaders(\"www-authenticate\");\n if (authHeaders.length == 0) {\n throw new IOException(\"headers malformed in 401 response\");\n }\n auth = new HttpAuthenticationAgent(getHttpServerLogin(),\n getHttpServerPwd());\n auth.readWwwAuthenticateHeader(authHeaders[0].getValue());\n\n String authValue = auth.generateAuthorizationHeaderValue(connection.getRequestMethod(), url.getPath(), body);\n if (authValue != null) {\n connection.setRequestProperty(\"Authorization\", authValue);\n }\n }\n\n\n // Trace\n if (HTTP_TRACE_ENABLED) {\n String trace = \">>> Send HTTP request:\";\n trace += \"\\n\" + connection.getRequestMethod() + \" \" + url.toString();\n if (logger.isActivated()) {\n \ttraceSend += connection.getRequestMethod() + \" \" + url.toString();\n }\n Set<String> strs = connection.getRequestProperties().keySet();\n Iterator<String> itr = strs.iterator();\n itr.next();\n while (itr.hasNext()) {\n Object element = itr.next();\n trace += \"\\n\" + element + \": \" + connection.getRequestProperty((String) element);\n if (logger.isActivated()) {\n \ttraceSend += \"\\r\\n\" + element + \": \" + connection.getRequestProperty((String) element);\n }\n }\n trace += \"\\n\" + body;\n if (logger.isActivated()) {\n \ttraceSend += \"\\r\\n\" + body;\n }\n System.out.println(trace);\n //System.out.println(traceSend);\n }\n\n // Create the DataOutputStream and start writing its body\n outputStream = new DataOutputStream(connection.getOutputStream());\n outputStream.writeBytes(body);\n\n // Add thumbnail\n if (thumbnail != null) {\n\t\t\tif (logger.isActivated()) {\n\t\t logger.info(\"Write thumbnai1\");\n\t\t }\n writeThumbnailMultipart(outputStream,filepath);\n }\n\n\t // Add File\n\t writeFileMultipart(outputStream, filepath);\n\t if(!isCancelled()) {\n\t \toutputStream.writeBytes(twoHyphens + BOUNDARY_TAG + twoHyphens); // if the upload is cancelled, we don't send the last boundary to get bad request\n\t if (logger.isActivated()) {\n\t \ttraceSend += twoHyphens + BOUNDARY_TAG + twoHyphens;\n\t \t//LogPcap.getInstance().logPcapUDP(localIP, inetAddress.toString(),0 ,port , traceSend.getBytes());\n\t }\n\t\t // Check response status code\n\t\t int responseCode = connection.getResponseCode(); \n\t\t \n\t\t if (logger.isActivated()) {\n\t\t logger.info(\"Second POST response \" + responseCode);\n\t\t }\n\t\t byte[] result = null;\n\t\t boolean success = false;\n\t\t boolean retry = false;\n\t\t String traceReceive = \"\\r\\n\";\n\t\t if (HTTP_TRACE_ENABLED) {\n\t\t String trace = \"<<< Receive HTTP response:\";\n\t\t if (logger.isActivated()) {\n\t\t \ttraceReceive += connection.getResponseCode() + \" \" + connection.getResponseMessage();\n\t\t }\n\t\t trace += connection.getResponseCode() + \" \" + connection.getResponseMessage();\n\t\t Set<String> strs = connection.getHeaderFields().keySet();\n\t\t Iterator<String> itr = strs.iterator();\n\t\t itr.next();\n\t\t while (itr.hasNext()) {\n\t\t Object element = itr.next();\n\t\t if (logger.isActivated()) {\n\t\t \ttraceReceive += \"\\r\\n\" + element + \": \" + connection.getHeaderField((String) element);\n\t\t }\n\t\t }\n\t\t trace += \"\\n\" + body;\n\t\t System.out.println(trace);\n\t\t }\n\t\t switch (responseCode) {\n\t\t case 200 :\n\t\t // 200 OK\n\t\t success = true;\n\t\t InputStream inputStream = connection.getInputStream();\n\t\t result = convertStreamToString(inputStream);\n\t\t inputStream.close();\n\t\t if (logger.isActivated()) {\n\t\t \ttraceReceive += \"\\r\\n\" + \"\\r\\n\" + new String(result);\n\t\t \t//System.out.println(traceReceive);\n\t\t \t//LogPcap.getInstance().logPcapUDP(inetAddress.toString(), localIP,port , 0, traceReceive.getBytes());\n\t\t }\n\t\t if (HTTP_TRACE_ENABLED) {\n\t\t System.out.println(\"\\n\" + new String(result));\n\t\t }\n\t\t break;\n\t\t case 503 :\n\t\t // INTERNAL ERROR\n\t\t String header = connection.getHeaderField(\"Retry-After\");\n\t\t int retryAfter = 0;\n\t\t if (header != null) {\n\t\t try {\n\t\t retryAfter = Integer.parseInt(header);\n\t\t } catch (NumberFormatException e) {\n\t\t // Nothing to do\n\t\t }\n\t\t\t if (retryAfter >= 0) {\n\t\t\t try {\n\t\t\t Thread.sleep(retryAfter * 1000);\n\t\t\t \t // Retry procedure\n\t\t\t \t if (retryCount < RETRY_MAX) {\n\t\t\t \t retryCount++;\n\t\t\t \t retry = true;\n\t\t\t \t }\n\t\t\t } catch (InterruptedException e) {\n\t\t\t // Nothing to do\n\t\t\t }\n\t\t\t }\n\t\t }\n\t\t break;\n\t\t default :\n\t\t \tbreak; // no success, no retry\n\t\t }\n\t\n\t\t // Close streams\n\t\t outputStream.flush();\n\t\t outputStream.close();\n outputStream = null;\n\t\t connection.disconnect();\n\t\t\t\tconnection = null;\t\t\t\t\n\t\n\t\t if (success) {\n\t\t return result;\n\t\t } else\n\t\t if (retry) {\n\t\t\t\t\tif (logger.isActivated()) {\n\t\t \tlogger.info(\"File transfer retry \");\n\t\t \t}\t\t\n\t\t return sendMultipartPost(resp);\n\t\t } else {\n\t\t throw new IOException(\"Received \" + responseCode + \" from server\");\n\t\t } \n\t } else {\n\t \t// Close streams\n\t \t\tif (logger.isActivated()) {\n\t \t \tLogPcap.getInstance().logPcapUDP(localIP, inetAddress.toString(),0 ,port , traceSend.getBytes());\n\t \t }\n\t outputStream.flush();\n\t outputStream.close();\n\t\t\t\toutputStream = null;\n\t connection.disconnect();\n\t\t\t\tconnection = null;\n\t if (logger.isActivated()) {\n\t\t logger.info(\"File transfer cancelled by user\");\n\t\t }\n\t return null;\n\t }\n }\n catch(Exception e)\n {\n \tif (logger.isActivated()) {\n\t logger.warn(\"File Upload aborted due to \"+e.getLocalizedMessage()+\" now in state pause, waiting for resume...\");\n\t }\n \tgetListener().httpTransferPaused();\n \tthrow e;\n }\n\t\tfinally {\n if (connection != null) {\n connection.disconnect();\n\t\t\t\t\tif (logger.isActivated()) {\n\t\t logger.info(\"HTTPUploadManager disconnect connection\");\n\t\t }\n }\n\t\t\t\tif (outputStream != null) {\n\t\t\t\t\tif (logger.isActivated()) {\n\t\t logger.info(\"HTTPUploadManager close outputStream\");\n\t\t }\n\t\t\t\t\toutputStream.flush();\n\t\t\t outputStream.close();\n\t\t\t\t}\n }\n }", "title": "" }, { "docid": "dedc78c8081680ab7d3bae97a32b5c03", "score": "0.63992006", "text": "@RequestMapping(value=\"/fileUpload\", method=RequestMethod.POST) \r\n\t@ResponseBody\r\n\tpublic Object fileUpload(MultipartHttpServletRequest mRequest) throws Exception { \r\n\t\treturn couchbaseService.uploadFile(mRequest); \r\n\t}", "title": "" }, { "docid": "3747e8ec121088d044d4aa431018b74b", "score": "0.6392464", "text": "private String[] upload(JSONObject params){\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1*1024*1024;\n String boundary = Utils.getRandomString(15);\n ArrayList<String> response = new ArrayList<>();\n try {\n String filepath = (String)params.remove(\"file\");\n String filename = filepath.substring(filepath.lastIndexOf('/') + 1);\n Log.i(\"filepath\", filepath);\n Log.i(\"url\", url.toString());\n FileInputStream fileInputStream = new FileInputStream(new File(filepath));\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\n // Allow Inputs & Outputs.\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setUseCaches(false);\n\n // Set HTTP method to POST.\n conn.setRequestMethod(\"POST\");\n\n conn.setRequestProperty(\"Connection\", \"Keep-Alive\");\n conn.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n\n DataOutputStream os = new DataOutputStream(conn.getOutputStream());\n //BufferedOutputStream os = new BufferedOutputStream(conn.getOutputStream());\n os.write((twoHyphens + boundary + lineEnd).getBytes(\"UTF-8\"));\n os.write((\"Content-Disposition: form-data; \" +\n \"name=\\\"uploadedfile\\\";filename=\\\"\" + filename + \"\\\"\" + lineEnd).getBytes(\"UTF-8\"));\n os.write(\"Content-Type: image/jpeg\\r\\n\".getBytes(\"UTF-8\"));\n os.write(lineEnd.getBytes(\"UTF-8\"));\n\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n buffer = new byte[bufferSize];\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n while (bytesRead > 0) {\n os.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n\n os.write(lineEnd.getBytes(\"UTF-8\"));\n os.write((twoHyphens + boundary).getBytes(\"UTF-8\"));\n\n // now add metadata\n Iterator<String> iterator = params.keys();\n while(iterator.hasNext()) {\n String key = iterator.next();\n String val = params.get(key).toString();\n\n os.write(lineEnd.getBytes(\"UTF-8\"));\n os.write((\"Content-Disposition: form-data; name=\\\"\" + key + \"\\\"\").getBytes(\"UTF-8\"));\n os.write(lineEnd.getBytes(\"UTF-8\"));\n os.write(lineEnd.getBytes(\"UTF-8\"));\n os.write(val.getBytes(\"UTF-8\"));\n os.write(lineEnd.getBytes(\"UTF-8\"));\n os.write(twoHyphens.getBytes(\"UTF-8\"));\n os.write(boundary.getBytes(\"UTF-8\"));\n }\n\n os.write(twoHyphens.getBytes(\"UTF-8\"));\n os.write(lineEnd.getBytes(\"UTF-8\"));\n\n response = handleResponse(conn);\n fileInputStream.close();\n\n os.flush();\n os.close();\n } catch(Exception e){\n e.printStackTrace();\n }\n\n return response.toArray(new String[response.size()]);\n }", "title": "" }, { "docid": "0a977000e84640b7c3eb1ae6d8c00f10", "score": "0.63887763", "text": "@RequestMapping(value = \"/upload/{username}\", method = RequestMethod.POST)\r\n\tpublic void handleRequest(@RequestParam(\"upload123\") MultipartFile file, HttpServletResponse res) throws IOException {\n\t\tString message;\r\n\t\tif (file != null) {\r\n\t\t\tif (file.getSize() < 5000000) {\r\n\t\t\t\tFile destFile = storageLocation.createRelative(\r\n\t\t\t\t\t\tfile.getOriginalFilename()).getFile();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfileStorage.store(destFile, file);\r\n\t\t\t\t\tres.getWriter().write(\"Stored!!!\");\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tres.getWriter().write(\"failed, \" + e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "93c2aa6a47cb8ba68156fb3f275ef8d0", "score": "0.6352931", "text": "public T photos_upload( File photo ) throws FacebookException, IOException;", "title": "" }, { "docid": "b07a436637f5007b26fe6752250c877c", "score": "0.6332548", "text": "@POST\n @Path(\"upload\")\n @Consumes(MediaType.MULTIPART_FORM_DATA)\n @Produces(MediaType.APPLICATION_XML)\n public Response upload(@RequestParam(\"file\") FormDataMultiPart form,\n @FormDataParam(\"path\") String path,@FormDataParam(\"version\") String version) {\n if(form == null || path == null || version == null){\n return Response.status(403).encoding(\"UTF-8\").type(MediaType.TEXT_HTML_TYPE).entity(\"must provide all parameter!\").build();\n }\n String location;\n createDirectory(path);\n List<FormDataBodyPart> l = form.getFields(\"file\");\n DatabaseManager dm = new DatabaseManager();\n for (FormDataBodyPart p : l) {\n InputStream ist = p.getValueAs(InputStream.class);\n FormDataContentDisposition detail = p.getFormDataContentDisposition();\n String strDecode = StringEscapeUtils.unescapeHtml(detail.getFileName());\n location = path + strDecode;\n saveFile(ist, location);\n AppInfo appInfo = new AppInfo(detail.getFileName(), path,version,getFileSize(location));\n dm.addAppInfo(appInfo);\n }\n return Response.status(200).encoding(\"UTF-8\").type(MediaType.TEXT_HTML_TYPE).entity(\"file saved in: \" + path).build();\n }", "title": "" }, { "docid": "602c021b00a24288dbedee0c8f3bd8ae", "score": "0.63226676", "text": "public interface FileUploadService {\n @Multipart\n @POST(\"getData/index.php?m=shop&c=index&a=uploadFile\")\n Call<ResponseBody> upload(@Part(\"description\") RequestBody description,\n @Part MultipartBody.Part file);\n @Multipart\n @POST(\"getData/index.php?m=shop&c=index&a=uploadCard\")\n Call<ResponseBody> uploadCard(@Part(\"description\") RequestBody description,\n @Part MultipartBody.Part file);\n\n}", "title": "" }, { "docid": "c4942bf06f134b8a63fe391f4f51b29b", "score": "0.6288259", "text": "@RequestMapping(value = \"/visitor/imageUploaddoc\", method = RequestMethod.POST)\n\t public @ResponseBody void uploadNoticeDocument(@RequestParam MultipartFile files, HttpServletRequest request,HttpServletResponse response) throws IOException, SQLException {\n\n\t String type = null;\n\t int vmId= Integer.parseInt(request.getParameter(\"vmId\"));\n\t logger.info(\"file original name is --\"+files.getOriginalFilename());\n\t String name=files.getOriginalFilename().toString();\n\t String str[] = StringUtils.split(name, \".\");\n\t \n\tfor(int i=0;i<str.length;i++){\n\t\tlogger.info(i+\"----\"+str[i]);\n\t\ttype=str[str.length-1];\n\t}\n\t Blob blob;\n\t blob = Hibernate.createBlob(files.getInputStream());\n\t logger.info(\"blob size is --\"+blob.length());\n\t visitorService.updateVisitorDocument(vmId, blob,type);\n\t }", "title": "" }, { "docid": "541a97d29c6db1858eb82524f596c1b5", "score": "0.62579805", "text": "@POST\n @Consumes(MediaType.MULTIPART_FORM_DATA)\n @Produces({ \"text/plain\", \"application/json\", \"text/json\" })\n public Response upload(@Multipart(\"file\") Attachment file){\n \n if (file == null) {\n return Response.status(400).entity(\"Missing file data\").type(MediaType.TEXT_PLAIN).build();\n }\n else \n {\n return delegate.documentsPost(file, securityContext);\n }\n }", "title": "" }, { "docid": "04f42ddfd8f2b44f053ce1cb15397eae", "score": "0.6245539", "text": "@RequestMapping(method = RequestMethod.POST, value = \"/upload\")\n public ResponseEntity<String> uploadTeste(@RequestParam(\"file\") MultipartFile file, HttpServletRequest request) throws IOException {\n if (!file.isEmpty()){\n try {\n this.storeAtachment(file, null);\n String response = \"Upload enviado com sucesso!\";\n return new ResponseEntity<String>(response, HttpStatus.OK);\n } catch (Exception e){\n String response = e.getMessage();\n return new ResponseEntity<String>(response, HttpStatus.NOT_ACCEPTABLE);\n }\n\n }\n return new ResponseEntity<String>(\"Deu certo\", HttpStatus.OK);\n }", "title": "" }, { "docid": "8b5812603479c5c4b131beeaee7064cf", "score": "0.623802", "text": "@PostMapping(value = \"/upload-img-promotion\")\n\tpublic ResponseEntity<String> UploadImgPromotion(MultipartHttpServletRequest request){\n\t\t\n\t\tIterator<String> listName= request.getFileNames();\n\t\tMultipartFile multipartFile=request.getFile(listName.next());\n\t\t\n\t\tString nameFile= multipartFile.getOriginalFilename();\n\t\tString nameFileConvert = (new SimpleDateFormat(\"yyyyMMdd_hhmmss_\").format(new Date()))+nameFile;\n\t\t\n\t\tString pathsave=context.getRealPath(\"/resources/images/banner/\");\n\t\t\n\t\tFile filesave= new File(pathsave+nameFileConvert);\n\t\ttry {\n\t\t\tmultipartFile.transferTo(filesave);\n\t\t} catch (IllegalStateException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ResponseEntity<String>(HttpStatus.NOT_FOUND);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ResponseEntity<String>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\t\n\t\tSystem.out.println(pathsave+nameFileConvert);\n\t\treturn new ResponseEntity<String>(nameFileConvert,HttpStatus.OK);\n\t}", "title": "" }, { "docid": "b717fb3a907d85bd05669879ae4f1c32", "score": "0.6233254", "text": "public void uploadFiles()\n {\n\t uploaderThread = new Thread( new Runnable()\n\t {\n\t public void run()\n\t {\n \t \n\t String url = getDocumentBase().toString();\n\t String uploadPath = ( getParameter(\"uploadPath\") != null ? getParameter(\"uploadPath\") : \"appletupload.php\" ); \n\t url = url.substring(0, url.lastIndexOf(\"/\"));\n\t \n\t //url = url.substring(0,5).compareTo(\"file:\") == 0 ? \"http://localhost\" : url.substring(0, url.lastIndexOf(\"/\"));\n\t url = url + \"/\" + uploadPath;\n\t \t \n\t /*\n\t * http connection \n\t */\n\t HttpURLConnection.setFollowRedirects(false);\n\t HttpURLConnection conn = null;\n\t \n\t /*\n\t * Authentication hash\n\t */\n\t String authHash = null;\n\t if ( username != null && password != null )\n\t {\n\t String s = username + \":\" + password; \n\t authHash = new sun.misc.BASE64Encoder().encode(s.getBytes()); \n\t }\n\t \n\t /* for each file, make an upload request\n\t * \n\t */\n\t for (int i = 0; i < fileList.size(); i++ ) \n\t {\n\t /*\n\t * check for interrupt\n\t */\n\t if ( Thread.currentThread().isInterrupted() )\n\t {\n\t continue;\n\t }\n\t \n\t File f = (File) fileList.get(i); \n\t String fileName = prefix + f.getName();\n\t \n\t try \n\t { \n\t conn = (HttpURLConnection) new URL(url).openConnection();\t \n\t if ( authHash != null )\n\t {\n\t conn.setDoInput( true );\n\t conn.setRequestProperty( \"Authorization\", \"Basic \" + authHash );\n\t conn.connect();\n\t conn.disconnect();\n\t }\t \n\t conn.setRequestMethod(\"POST\");\n\t String boundary = \"boundary220394209402349823\";\t \n\t String tail = \"\\r\\n--\" + boundary + \"--\\r\\n\"; \n\t conn.setRequestProperty(\"Content-Type\", \"multipart/form-data; boundary=\" + boundary );\n\t \n\t conn.setDoOutput(true);\n\n\t String metadataPart = \"--\" + boundary + \"\\r\\n\"\n\t + \"Content-Disposition: form-data; name=\\\"metadata\\\"\\r\\n\\r\\n\"\n\t + metadata + \"\\r\\n\"; \n\t \t \n\t String fileHeader1 = \"--\" + boundary + \"\\r\\n\"\n\t + \"Content-Disposition: form-data; name=\\\"uploadfile\\\"; filename=\\\"\" + fileName + \"\\\"\\r\\n\"\n\t + \"Content-Type: application/octet-stream\\r\\n\"\n\t + \"Content-Transfer-Encoding: binary\\r\\n\"; \n\t \n\t long fileLength = f.length() + tail.length(); \n\t String fileHeader2 = \"Content-length: \" + fileLength + \"\\r\\n\";\n\t String fileHeader = fileHeader1 + fileHeader2 + \"\\r\\n\"; \n\t \n\t String stringData = metadataPart + fileHeader;\n\t \n\t long requestLength = stringData.length() + fileLength ;\n\t conn.setRequestProperty(\"Content-length\", \"\" + requestLength );\n\n\t conn.setFixedLengthStreamingMode((int) requestLength );\n\t \n\t conn.connect(); \n\t \n\t DataOutputStream out = new DataOutputStream( conn.getOutputStream() );\n\t \n\t out.writeBytes(stringData); \n\t out.flush();\n\t \n\t int progress = 0;\n\t int bytesRead = 0;\n\t byte b[] = new byte[1024];\n\t BufferedInputStream bufin = new BufferedInputStream(new FileInputStream(f));\n\t while ((bytesRead = bufin.read(b)) != -1) \n\t {\n\t if ( Thread.currentThread().isInterrupted() )\n\t {\t \n\t }\n\t \n\t out.write(b, 0, bytesRead); \n\t out.flush();\n\t progress += bytesRead;\n\t \n\t final int p = progress;\n\t SwingUtilities.invokeLater( new Runnable(){\n\t public void run()\n\t {\n\t //progressBar.setValue(p);\n\t //progressBar.revalidate();\n\t }\n\t }); \n\n\t }\n\t \n\t out.writeBytes(tail);\n\t out.flush();\n\t out.close();\n\t \t \n\t BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n\t String line;\n\t while ((line = rd.readLine()) != null) \n\t {\n\t final String l = line;\n\t SwingUtilities.invokeLater( new Runnable(){\n\t public void run()\n\t {\n\t }\n\t });\n\t }\n\t \n\t try \n\t {\n\t /*\n\t * If we got a 401 (unauthorized), we can't get that data. We will\n\t * get an IOException. This makes no sense since a 401 does not\n\t * consitute an IOException, it just says we need to provide the\n\t * username again.\n\t */\n\t int responseCode = conn.getResponseCode();\n\t String responseMessage = conn.getResponseMessage();\n\t } \n\t catch (IOException ioe) \n\t {\n\t System.out.println(ioe.getMessage());\n\t }\t \n\t } \n\t catch (Exception e) \n\t {\t \n\t e.printStackTrace();\n\t } \n\t finally \n\t {\t \n\t if (conn != null) conn.disconnect();\n\t }\n\t \n\t /*\n\t * call JavaScript function to indicate current upload\n\t */\n\t String funcName2 = getParameter(\"funcNameHandleCurrentUpload\");\n\t if ( funcName2 != null && window != null )\n\t {\n\t \tString currentFileName = f.getName()+\"::Done\";\n\t \ttry\n\t \t{\n\t \t\twindow.call(funcName2, new Object[] { currentFileName } );\n\t \t}\n\t \tcatch( JSException e3 )\n\t \t{\n\t \t\tSystem.out.println(e3.getMessage());\n\t \t}\n\t }\t\n\t }\t \n\t fileList.clear(); \n\t String boolValue = \"Upload finished\";\n\t try\n\t\t\t\t{\n\t \t getAppletContext().showDocument(new URL(\"javascript:ConfirmationUpload(\\\"\" + boolValue+\"\\\")\"));\n\t\t\t\t}\n\t\t\t\tcatch (MalformedURLException me) { }\n\t }\n\t } );\n\t \n\t uploaderThread.start();\n }", "title": "" }, { "docid": "3ec9116aa219cffa0e9f250b9ff9340b", "score": "0.6232715", "text": "@Multipart\n @POST(\"/api/v1/memory_posts/\")\n Call<ResponseBody> uploadMultipleFiles(\n @Header(\"Authorization\") String token,\n @Part(\"title\") RequestBody title,\n @Part(\"time\") RequestBody time,\n @Part(\"location\") RequestBody location,\n @Part(\"tags\") RequestBody tags,\n @Part List<MultipartBody.Part> story);", "title": "" }, { "docid": "25a58dbb83fa6b744e1b3b13b44438c8", "score": "0.6231504", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException{\n\t \n\t\t// 1. Upload File Using Java Servlet API\n\t\t//files.addAll(MultipartRequestHandler.uploadByJavaServletAPI(request));\t\t\t\n\t\t\n\t\t// 1. Upload File Using Apache FileUpload\n\t\tfiles.addAll(MultipartRequestHandler.uploadByApacheFileUpload(request));\n\t\t\n\t\t// Remove some files\n\t\twhile(files.size() > 20)\n\t\t{\n\t\t\tfiles.remove(0);\n\t\t}\n\t\t\n\t\t// 2. Set response type to json\n\t\tresponse.setContentType(\"application/json\");\n\t\t\n\t\t// 3. Convert List<FileMeta> into JSON format\n \tObjectMapper mapper = new ObjectMapper();\n \t\n \t// 4. Send resutl to client\n \tmapper.writeValue(response.getOutputStream(), files);\n\t\n\t}", "title": "" }, { "docid": "8a8c7238db50d838c283c36163b99e75", "score": "0.6224303", "text": "private void uploadFile(String filePath){\n\t\tFile uploadFile = new File(filePath);\n\t\tif(!uploadFile.exists()){\n\t\t\treturn;\n\t\t}\n//\t\tSystem.out.println(\"gaomh: \"+uploadFile.getAbsolutePath() +uploadFile.length()); ---> find the file.\n//\t\treqeust url:\n<<<<<<< HEAD\n//\t\thttp://192.168.0.104:8080/fileUpload/upload\n=======\n//\t\thttp://192.168.4.107:8080/fileUpload/upload\n>>>>>>> 9f2768713ec448f9573270ebbabf5cf6f80772f2\n//\t\tenctype=\"multipart/form-data\"\n//\t\t<input name=\"videoFile\" type = \"file\"/>\n\t\tAsyncHttpClient client = new AsyncHttpClient();\n\t\t\n<<<<<<< HEAD\n\t\tclient.post(this, \"http://192.168.0.104:8080/fileUpload/upload\", null, , contentType, responseHandler);\n=======\n//\t\tclient.post(this, \"http://192.168.0.104:8080/fileUpload/upload\", null, , contentType, responseHandler);\n>>>>>>> 9f2768713ec448f9573270ebbabf5cf6f80772f2\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "177815de8d758ad4ef696512c0152010", "score": "0.62240535", "text": "@RequestMapping(value=\"/files\", method=RequestMethod.POST)\n\tpublic ResponseEntity<?> uploadFile(@RequestParam(\"file\") MultipartFile file ){\n\t\tFileData fileData = new FileData();\n\t\t\n\t\tfileData.setName(file.getName());\n\t\tfileData.setSize(file.getSize());\n\t\tfileData.setLocation(file.getOriginalFilename());\n\t\t\n\t\tfileData = fileDataRepository.save(fileData);\n\t\t\n\t\tstorageService.store(file);\n\t\t\n\t\treturn new ResponseEntity<>(null, HttpStatus.CREATED );\n\t}", "title": "" }, { "docid": "e7c9a717df2d7fc0ecf432b52d9acd8c", "score": "0.62223697", "text": "private void upload() {\n new uploadToServer().execute();\n }", "title": "" }, { "docid": "46df74577e8786bfb89537fc0b44031d", "score": "0.6209276", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n DiskFileItemFactory fileFactory = new DiskFileItemFactory();\n // Set file size limit to 1 MiB\n fileFactory.setSizeThreshold(1024 * 1024);\n // Set directory for store files which size is above than size limit\n fileFactory.setRepository(tmpDir);\n\n ServletFileUpload uploadHandler = new ServletFileUpload(fileFactory);\n\n try {\n // Get list of form items\n List<FileItem> items = uploadHandler.parseRequest(request);\n\n for (FileItem item : items) {\n // Skip form fields and files with different name (attribute name in tag input)\n if (item.isFormField() || !item.getFieldName().equals(\"image\"))\n continue;\n\n // Check if any file is uploading\n if (item.getName().isEmpty())\n break; // Skip loop to error redirect\n\n // Check if file is image by MIME type\n if (!item.getContentType().startsWith(\"image/\"))\n {\n errorRedirect(request, response, \"type\");\n return;\n }\n\n // Get filename of uploading file\n String filename = item.getName();\n\n // Create destination file\n File file = new File(destDir, filename);\n\n // Check if destination file already exists\n if (file.exists())\n {\n errorRedirect(request, response, \"exists\");\n return;\n }\n\n // Write file to destination directory\n item.write(file);\n\n // Redirect to uploaded image\n successRedirect(request, response, filename);\n return;\n }\n\n // File not found\n errorRedirect(request, response, \"missing\");\n }\n catch (Exception e) {\n errorRedirect(request, response, \"failed\");\n }\n }", "title": "" }, { "docid": "3a3694ddbd9ec0e298233ac190921179", "score": "0.6200749", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tboolean isMultipart = ServletFileUpload.isMultipartContent(req);\n\t\tif (isMultipart) {\n\t\t\ttry {\n\t\t\t\t// Create a factory for disk-based file items\n\t\t\t\tDiskFileItemFactory factory = new DiskFileItemFactory();\n\t\n\t\t\t\t// Configure a repository (to ensure a secure temp location is used)\n\t\t\t\tServletContext servletContext = this.getServletConfig().getServletContext();\n\t\t\t\tFile repository = (File) servletContext.getAttribute(\"javax.servlet.context.tempdir\");\n\t\t\t\tfactory.setRepository(repository);\n\t\n\t\t\t\t// Create a new file upload handler\n\t\t\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\n\t\t\t\t// Parse the request\n\t\t\t\tList<FileItem> items = upload.parseRequest(req);\n\t\t\t\t\n\t\t\t\t// Process the uploaded items\n\t\t\t\tIterator<FileItem> iter = items.iterator();\n\t\t\t\twhile (iter.hasNext()) {\n\t\t\t\t FileItem item = iter.next();\n\t\t\t\t if (item.isFormField()) {\n\t\t\t\t } else {\n\t\t\t\t String fileName = dateFormat.format(new Date())+\"_\"+item.getName();\n\t\t\t\t File uploadedFile = new File(UPLOAD_DIRECTORY + File.separator + fileName);\n\t\t\t\t item.write(uploadedFile);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treq.setAttribute(\"message\", \"File upload exception occured!\");\n\t\t\t}\n\t\t}\n\t\n\t\t\n\t}", "title": "" }, { "docid": "0cc60ef13010bde63a3579e5b8ecce1e", "score": "0.6197467", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n Long userId = (Long) SessionListener.getSessionAttribute(request.getSession(), \"userId\");\n User u = um.getUserById(userId);\n System.out.println(\"userId = \" + userId);\n// User u = (User)SessionListener.getSessionAttribute(request.getSession(), \"user\");\n if(u == null) {\n response.sendError(HttpServletResponse.SC_FORBIDDEN);\n System.out.println(\"doPost(): unauthorized attempt to upload file(s).\");\n// log.debug(\"doPost(): unauthorized attempt to upload file(s).\");\n return;\n }\n Object o = request.getAttribute(FILES_PARAM);\n System.out.println(\"map = \" + request.getParameterMap());\n// System.out.println(\"files[] = \" + o.toString());\n \n if((o == null) || !(o instanceof FileItem) && !(o instanceof List)) {\n response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n System.out.println(\"doPost(): failed to upload files or no files selected.\");\n// log.debug(\"doPost(): failed to upload files or no files selected.\");\n return;\n }\n List<FileItem> fileItems = new ArrayList<FileItem>();\n if(o instanceof FileItem) {\n fileItems.add((FileItem)o);\n } else {\n for(Object element : (List)o) {\n if(element instanceof FileItem)\n fileItems.add((FileItem)element);\n }\n }\n System.out.println(\"fileItems = \" + fileItems);\n \n if(fileItems.isEmpty()) {\n response.sendError(HttpServletResponse.SC_BAD_REQUEST);\n System.out.println(\"doPost(): error occured whule uploading files.\");\n// log.debug(\"doPost(): error occured whule uploading files.\");\n return;\n }\n \n boolean compress = StringUtils.isTrue(getValidParameter(request, COMPRESS_PARAM, (fileItems.size() > 1)+\"\"));\n \n ServletOutputStream out = response.getOutputStream();\n try {\n response.setContentType(\"application/xml\");\n processFiles(u.getId(), fileItems, compress, out);\n } catch (Exception ex) {\n response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n System.out.println(\"\");\n// log.error(\"doPost(): unable to process uploaded files.\", ex);\n } finally {\n out.close();\n }\n }", "title": "" }, { "docid": "04875e214838fd60011720ec5e26e354", "score": "0.6196934", "text": "@Override\n @Test\n public void testFileUpload() throws IOException, FileUploadException {\n final var baos = new ByteArrayOutputStream();\n var add = 16;\n var num = 0;\n for (var i = 0; i < 16384; i += add) {\n if (++add == 32) {\n add = 16;\n }\n final var header = \"-----1234\\r\\n\" + \"Content-Disposition: form-data; name=\\\"field\" + num++ + \"\\\"\\r\\n\" + \"\\r\\n\";\n baos.write(header.getBytes(StandardCharsets.US_ASCII));\n for (var j = 0; j < i; j++) {\n baos.write((byte) j);\n }\n baos.write(\"\\r\\n\".getBytes(StandardCharsets.US_ASCII));\n }\n baos.write(\"-----1234--\\r\\n\".getBytes(StandardCharsets.US_ASCII));\n\n final var fileItems = parseUpload(new JavaxServletDiskFileUpload(), baos.toByteArray());\n final var fileIter = fileItems.iterator();\n add = 16;\n num = 0;\n for (var i = 0; i < 16384; i += add) {\n if (++add == 32) {\n add = 16;\n }\n final var item = fileIter.next();\n assertEquals(\"field\" + num++, item.getFieldName());\n final var bytes = item.get();\n assertEquals(i, bytes.length);\n for (var j = 0; j < i; j++) {\n assertEquals((byte) j, bytes[j]);\n }\n }\n assertTrue(!fileIter.hasNext());\n }", "title": "" }, { "docid": "828f623fc541dc9613c8a914c06261ad", "score": "0.61964655", "text": "public T photos_upload( Long userId, File photo ) throws FacebookException, IOException;", "title": "" }, { "docid": "17f64da2cd7f8cf6fe11b0962f841bd5", "score": "0.6187814", "text": "private void upload(String filename){\r\n DataDirectory dir = client.dir(\"data://salali/test\");\r\n try {\r\n String local_file = filename;\r\n try{\r\n dir.putFile(new File(local_file));\r\n } catch (com.algorithmia.APIException re){\r\n System.out.println(\"api excception\");\r\n }\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "20ee8b3560f6cca0aa72ac00bebe36a6", "score": "0.61568075", "text": "public interface UpLoadService {\n @Multipart\n @POST(\"MemberLogin_getUserPic\")\n Call<BaseResponse> uploadAvatar(\n @Part(\"file\\\"; filename=\\\"pp.png\\\" \") RequestBody file,\n @Part(\"appkey\") RequestBody appkey,\n @Part(\"userId\") RequestBody userId,\n @Part(\"userPW\") RequestBody userPW,\n @Part(\"channel\") RequestBody channel);\n\n\n}", "title": "" }, { "docid": "81865be6c927aadb5278b8b9215bfac2", "score": "0.6142999", "text": "String uploadModelFile(String filepath);", "title": "" }, { "docid": "253937bbe3bf3ca4a91d4de72671c096", "score": "0.6121", "text": "@PostMapping(\"/files\")\n @Timed\n public ResponseEntity<Files> createfiles(@RequestBody Files files) throws URISyntaxException {\n log.debug(\"REST request to save files : {}\", files);\n if (files.getId() != null) {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new files cannot already have an ID\"))\n .body(null);\n }\n Files result = filesService.save(files);\n return ResponseEntity.created(new URI(\"/api/filess/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "title": "" }, { "docid": "77cb9afb3c360c96c897165b08528212", "score": "0.612008", "text": "@Override\n public void onClick(View v) {\n RequestParams params = new RequestParams();\n\n mEdit = (EditText)findViewById(R.id.editText);\n\n params.put(\"name\", mEdit.getText().toString());\n try {\n params.put(\"image\", new File(filePath));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n AsyncHttpClient client = new AsyncHttpClient();\n client.addHeader(\"Authorization\",\"Token 7a6749b6725072b41050b004e0ca6d126ac025e8\");\n client.post(\"http://172.27.133.4:8000/food/\", params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n Toast.makeText(getApplicationContext(),\n \"uploaded successfully\", Toast.LENGTH_LONG)\n .show();\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n try {\n String message = \"failure at upload\" + Integer.toString(statusCode) + new String(responseBody, \"UTF-8\");\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG)\n .show();\n Log.w(TAG, message);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }\n });\n }", "title": "" }, { "docid": "d65771a424fd1bdcb72059fc24605b6a", "score": "0.6112386", "text": "@CrossOrigin(exposedHeaders = \"http://localhost:8888\")\n @RequestMapping(value = \"/images/add\", method = RequestMethod.POST)\n public String addImages(@RequestParam long productId, @RequestParam(\"files\") MultipartFile[] files){\n Arrays.asList(files).stream()\n .forEach(file -> imageServiceImpl.createImage(productId, file));\n\n return \"Creation Successful\";\n }", "title": "" }, { "docid": "88ef7c7d424d688e6b96f0316beff503", "score": "0.61045176", "text": "private String processUpload(final IHTTPSession session) {\r\n\t\tInteger id=-1;\r\n\t\ttry {\r\n\t\t\tfinal Map<String,String> files=new HashMap<>();\r\n\t\t\tsession.parseBody(files);\r\n\t\t\tString origFileName=null;\r\n\t\t\tif (idOfFileNameField!=null) {\r\n\t\t\t\tfinal List<String> names=session.getParameters().get(idOfFileNameField);\r\n\t\t\t\tif (names!=null && !names.isEmpty()) origFileName=names.get(0);\r\n\t\t\t}\r\n\t\t\tif (files.size()==0) {\r\n\t\t\t\treturn buildResponse(Language.tr(\"WebServer.Upload.ErrorNoData\"),-1);\r\n\t\t\t} else {\r\n\t\t\t\tfinal String fileName=files.get(files.keySet().toArray(new String[0])[0]);\r\n\t\t\t\tid=fileLoaderNewModel.apply(new UploadInfo(new File(fileName),session.getRemoteIpAddress(),origFileName));\r\n\t\t\t}\r\n\t\t} catch (IOException | ResponseException e) {\r\n\t\t\treturn buildResponse(Language.tr(\"WebServer.Upload.ErrorInvalidData\"),-1);\r\n\t\t}\r\n\r\n\t\treturn buildResponse(Language.tr(\"WebServer.Upload.Success\"),id);\r\n\t}", "title": "" }, { "docid": "513254cccbc2c54b1369111074d203d3", "score": "0.6087697", "text": "public static void postFile(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {\n client.addHeader(\"appid\", \"cb_7jcelkr9yr82b\");\n client.setConnectTimeout(600000);\n client.setMaxConnections(3);\n client.setResponseTimeout(600000);\n client.setTimeout(600000);\n// client.post(getAbsoluteUrl(url), params, responseHandler);\n }", "title": "" }, { "docid": "f473fd404ffc1b52c9a281e034e89941", "score": "0.60528135", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tpost(uid, fileBodyParamMap.getAbsolutePath(),listener);\n\t\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}", "title": "" }, { "docid": "1384ee655651bcf34dcdf320141da48f", "score": "0.60379416", "text": "@RequestMapping(\"/fileUpload/post\")\n\tpublic ModelAndView upload(MultipartHttpServletRequest multi)\n\t{\n\t\tModelAndView view = new ModelAndView();\n\t\ttry {\n\t\t\tview.addObject(\"result\",svc.upload(multi));\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"익셉션 성공!!!!!\");\n\t\t}\n\n\t\treturn view;\n\t}", "title": "" }, { "docid": "8418ee8fff1d1afe494b74bf9ef99492", "score": "0.6034852", "text": "@PostMapping(\"/uploadListImage\")\r\n public ResponseEntity<List<String>> uploadFiles(@RequestParam(\"files\")List<MultipartFile> multipartFiles) throws IOException {\r\n List<String> filenames = new ArrayList<>();\r\n for(MultipartFile file : multipartFiles) {\r\n String filename = StringUtils.cleanPath(file.getOriginalFilename());\r\n Path fileStorage = get(DIRECTORY, filename).toAbsolutePath().normalize();\r\n copy(file.getInputStream(), fileStorage, REPLACE_EXISTING);\r\n filenames.add(filename);\r\n }\r\n return ResponseEntity.ok().body(filenames);\r\n }", "title": "" }, { "docid": "5bb0b52cb5a8e900b193bef09ee651d1", "score": "0.6031344", "text": "protected void postUploadTask(CallingContext cc) throws ODKExternalServiceException {\n if (!fsc.getExternalServicePublicationOption().equals(\r\n ExternalServicePublicationOption.STREAM_ONLY)) {\r\n \r\n UploadSubmissions uploadTask = (UploadSubmissions) cc.getBean(BeanDefs.UPLOAD_TASK_BEAN);\r\n CallingContext ccDaemon = ContextFactory.duplicateContext(cc);\r\n ccDaemon.setAsDaemon(true);\r\n uploadTask.createFormUploadTask(fsc, true, ccDaemon);\r\n }\r\n }", "title": "" }, { "docid": "d04dd6966d14a8235941d4f069094528", "score": "0.60279036", "text": "public String doPost() throws IOException {\n\t\tSystem.out.println(this.uploadfileFileName);\n\t \n\t FileInputStream uploadedStream = new FileInputStream(this.uploadfile);\n\t HDFSOperation hdfsOperation = new HDFSOperation();\n\t\tSystem.out.println(this.uploadfileFileName);\n\n\t String hdfsPath = HDFSConfig.getHDFSPath() + this.uploadfileFileName;\n\t boolean flag = hdfsOperation.upLoad(uploadedStream, hdfsPath);\t\n\t\tSystem.out.println(flag);\n\n\t if(flag){\n\t \treturn \"success\";\n\t }else{\n\t \treturn \"error\";\n\t }\n\t}", "title": "" }, { "docid": "80d23d04242700dcac7059971df6564f", "score": "0.60228544", "text": "@Multipart\n @POST(\"image\")\n Call<ImageResponse> postImage(\n @Header(\"Authorization\") String auth,\n @Query(\"title\") String title,\n @Query(\"description\") String description,\n @Query(\"album\") String albumId,\n @Query(\"account_url\") String username,\n @Part MultipartBody.Part file\n\n );", "title": "" }, { "docid": "a40867e8f72166268249bd47498ce37a", "score": "0.6019479", "text": "public void awaitUpload();", "title": "" }, { "docid": "b5d162484377f4ee5d04ae90a737e1c9", "score": "0.60020405", "text": "@RequestMapping(value = \"/visitor/visitorImageUploaddoc\", method = RequestMethod.POST)\n\tpublic void upload(MultipartHttpServletRequest multirequest,\n\t\t\tHttpServletResponse response,HttpServletRequest request) throws IOException {\n\t\tIterator<String> itr = multirequest.getFileNames();\n\t\tMultipartFile mpf = multirequest.getFile(itr.next());\n\t\tbyte[] imsgeBytes = mpf.getBytes();\n\n\t\t int vmId= Integer.parseInt(request.getParameter(\"vmId\"));\n\t\t//int vmId=Integer.parseInt(multirequest.getParameter(\"ravi\"));\n\t\tlogger.info(\"visitor id is-\"+vmId);\n\t\tHttpSession session = multirequest.getSession(true);\n\t\tString username = (String) session.getAttribute(\"userId\");\n\t\tBlob blob;\n\t\tblob = Hibernate.createBlob(mpf.getInputStream());\n\t\tvisitorService.updateVisitorImage(vmId, blob);\n\t\t\n\t\t//return \"visitor/visitordetails\";\n\t}", "title": "" }, { "docid": "178fc825b18a10750dd53447fae627bb", "score": "0.599398", "text": "private HttpResponse uploadFile(String endpointUrl, File fileName, Map<String, String> headers) throws IOException {\n //open import API url connection and deploy the exported API\n URL url = new URL(endpointUrl);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoOutput(true);\n connection.setRequestMethod(\"POST\");\n\n FileBody fileBody = new FileBody(fileName);\n MultipartEntity multipartEntity = new MultipartEntity(HttpMultipartMode.STRICT);\n multipartEntity.addPart(\"file\", fileBody);\n\n connection.setRequestProperty(\"Content-Type\", multipartEntity.getContentType().getValue());\n //setting headers\n if (headers != null && headers.size() > 0) {\n Iterator<String> itr = headers.keySet().iterator();\n while (itr.hasNext()) {\n String key = itr.next();\n if (key != null) {\n connection.setRequestProperty(key, headers.get(key));\n }\n }\n for (String key : headers.keySet()) {\n connection.setRequestProperty(key, headers.get(key));\n }\n }\n\n OutputStream out = connection.getOutputStream();\n try {\n multipartEntity.writeTo(out);\n } finally {\n out.close();\n }\n int status = connection.getResponseCode();\n BufferedReader read = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n String temp;\n StringBuilder responseMsg = new StringBuilder();\n while ((temp = read.readLine()) != null) {\n responseMsg.append(temp);\n }\n HttpResponse response = new HttpResponse(responseMsg.toString(), status);\n return response;\n }", "title": "" }, { "docid": "ea539492650a5e8f9d486cfa086b329b", "score": "0.59905684", "text": "public String submitFile(File file) throws IOException;", "title": "" }, { "docid": "d1576b7a96eb997c6a2ec346bbf1f31a", "score": "0.5982317", "text": "public T photos_upload( Long userId, File photo, Long albumId ) throws FacebookException, IOException;", "title": "" }, { "docid": "6c43836e8ef667f81646268e547d8e52", "score": "0.5979876", "text": "private void handlePostMethod(HttpPostRequestDecoder decoder){\n Map<String,String[]> params = this.paramsHolder.get();\n Map<String,List<FileUpload>> files = this.files.get();\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n if (data.getHttpDataType() == InterfaceHttpData.HttpDataType.Attribute) {//handle the form parameter\n Attribute attribute = (Attribute) data;\n try {\n String name = attribute.getName();\n if (params.containsKey(name)) {//如果已经存在该参数,则叠加到以前的参数值里\n String[] oldValue = params.get(name);\n String[] newValue = new String[oldValue.length + 1];\n System.arraycopy(oldValue, 0, newValue, 0, oldValue.length);\n newValue[newValue.length - 1] = attribute.getValue();\n params.put(attribute.getName(), newValue);\n } else {\n params.put(attribute.getName(), new String[]{attribute.getValue()});\n }\n\n } catch (IOException e1) {\n e1.printStackTrace();\n return;\n } finally {\n data.release();\n }\n } else {//handle file\n if (data.getHttpDataType() == InterfaceHttpData.HttpDataType.FileUpload) {\n FileUpload fileUpload = (FileUpload) data;\n if (fileUpload.isCompleted()) {\n List<FileUpload> fileList = files.get(fileUpload.getName());\n if (fileList == null) {\n fileList = new ArrayList<>();\n files.put(fileUpload.getName(), fileList);\n }\n fileList.add(fileUpload);\n }\n }\n }\n }\n }\n }catch (HttpPostRequestDecoder.EndOfDataDecoderException e){\n logger.log(Level.INFO, \"END OF CONTENT CHUNK BY CHUNK\");\n }\n }", "title": "" }, { "docid": "281035eff02404124e77e8f4d2a65a9e", "score": "0.5975957", "text": "public interface APICalls {\n\n @GET(\"Events/GetEventsLst\")\n Call<EventsJson> getEvents(@Query(\"Lang\") String Lang);\n\n //add-item.php\n @Multipart\n @POST(\"add-item.php\")\n Call<uploadImageResponse> uploadImage (\n\n @Part MultipartBody.Part image ,\n @Part(\"name_en\") RequestBody name_en,\n @Part(\"name_ar\") RequestBody name_ar,\n @Part(\"desc_en\") RequestBody desc_en,\n @Part(\"desc_ar\") RequestBody desc_ar,\n @Part(\"price\") RequestBody price,\n @Part(\"cat_id\") RequestBody cat_id,\n @Part(\"tab_id\") RequestBody tab_id,\n @Part(\"user_id\") RequestBody user_id\n );\n}", "title": "" }, { "docid": "b64211332aa742c32ca5655836ac9688", "score": "0.59678745", "text": "public void doNewUpload(String filePath){\n \tSharedPreferences pref = getActivity().getSharedPreferences(\"MyPref\", 0); // 0 - for private mode\n\t String username=pref.getString(\"username\",null);\n\t\tString key=pref.getString(\"key\",null);\n\t\tString task=Integer.toString(id_task);\n\t\tString pom = \"https://projectmng.herokuapp.com/tasks/%1$s/uploads.json\";\n\t\tString url = String.format(pom,task);\n\n try\n {\n HttpClient httpClient = new DefaultHttpClient();\n HttpPost httpPost = new HttpPost(url);\n FileBody filebodyImage = new FileBody(new File(filePath),\"image/jpeg\");\n Long length=filebodyImage.getContentLength();\n System.out.println(length);\n StringBody title = new StringBody(task);\n System.out.println(title);\n\n StringBody key2 = new StringBody(\n key);\n StringBody username2 = new StringBody(\n username);\n MultipartEntity multipart=new MultipartEntity();\n multipart.addPart(\"file_data\",filebodyImage);\n multipart.addPart(\"task_id\",title);\n multipart.addPart(\"key\", key2);\n multipart.addPart(\"username\", username2);\n httpPost.setEntity(multipart);\n httpPost.setEntity(multipart);\n httpPost.setEntity(multipart);\n System.out.println(\"Executing Request \"+httpPost.getRequestLine());\n HttpResponse httpResponse=httpClient.execute(httpPost);\n HttpEntity httpEntity=httpResponse.getEntity();\n System.out.println( httpResponse.getStatusLine( ) );\n if (httpEntity != null) \n {\n System.out.println( EntityUtils.toString( httpEntity ) );\n } \n // end if\n if (httpEntity != null) {\n httpEntity.consumeContent( );\n } // end if\n\n httpClient.getConnectionManager( ).shutdown( );\n Toast.makeText(getActivity(),\"Image uploaded\",Toast.LENGTH_SHORT).show();\n System.out.println(\"Uplaod file Executed\");\n }\n catch(ParseException e)\n {\n e.printStackTrace();\n }\n catch (UnsupportedEncodingException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n \n }", "title": "" }, { "docid": "b065dc1f90129474ddfc32ceece84878", "score": "0.59617025", "text": "public void registroVolley(){\n String URL = \"https://swatapi.herokuapp.com/area\";\n SimpleMultiPartRequest smr = new SimpleMultiPartRequest(Request.Method.POST, URL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Response\", response);\n Toast.makeText(getApplicationContext(), response, Toast.LENGTH_LONG).show();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n smr.addStringParam(\"param string\", \" data text\");\n File file = new File(imageUri.getPath());\n smr.addFile(\"param file\", file.getAbsolutePath());\n RequestQueue mRequestQueue = Volley.newRequestQueue(getApplicationContext());\n mRequestQueue.add(smr);\n }", "title": "" }, { "docid": "526efb1eecb4a6a4fe27ffeea4a4a66e", "score": "0.59465516", "text": "public interface UploadImpl {\n\n @Multipart\n @POST(\"uploadBundle\")\n Call<BaseResponse> uploadImage(@Part(\"file\\\"; fileName=\\\"myFile.png\\\" \")RequestBody requestBodyFile, @Part(\"image\") RequestBody requestBodyJson);\n\n @POST(\"postBundle\")\n Call<BaseResponse> postBundle(@Body UploadRequest uploadRequest);\n\n}", "title": "" }, { "docid": "ad4c018d0056ef95f52f43a45dfc1f56", "score": "0.5944098", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String ProjectID = \"\";\n\n for (Part p : request.getParts()) {\n \n System.out.println(\" ******>The parts are :\" + p.toString());\n \n if (\"ProjectID\".equals(p.getName())) {\n System.out.println(\"ProjectID\" + p.getInputStream().toString());\n }\n\n }\n\n if (ServletFileUpload.isMultipartContent(request)) {\n try {\n List<FileItem> multiparts = new ServletFileUpload(\n new DiskFileItemFactory()).parseRequest(request);\n\n String fileName = \"\";\n\n for (FileItem item : multiparts) {\n System.out.println(\"Item is :\" + item.getName());\n if (!item.isFormField()) {\n String name = new File(item.getName()).getName();\n fileName = name;\n item.write(new File(UPLOAD_DIRECTORY + File.separator + name));\n\n }\n }\n\n //File uploaded successfully\n request.setAttribute(\"message\", \"File Uploaded Successfully\");\n\n System.out.println(\" The file Name is : \" + fileName);\n\n request.setAttribute(\"fileName\", fileName);\n\n } catch (Exception ex) {\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n }\n\n } else {\n request.setAttribute(\"message\",\n \"Sorry this Servlet only handles file upload request\");\n }\n\n request.getRequestDispatcher(\"/result.jsp\").forward(request, response);\n\n }", "title": "" }, { "docid": "f8d5b4c87d87703c4dd0e4cd5cbabcc9", "score": "0.59371877", "text": "public String thirdTry()\n {\n String exsistingFileName = \"\";\n\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n String Tag = \"3rd\";\n try {\n\n HttpURLConnection conn = (HttpURLConnection) connectURL.openConnection();\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setUseCaches(false);\n conn.setRequestMethod(\"POST\");\n conn.setRequestProperty(\"Connection\", \"Keep-Alive\");\n conn.setRequestProperty(\"Content-Type\",\"multipart/form-data;boundary=\" + boundary);\n //conn.setRequestProperty (\"Authorization\", \"application/x-www-form-urlencoded\");\n //conn.setRequestProperty(\"Accept\", \"application/json\");\n\n DataOutputStream dos = new DataOutputStream(conn.getOutputStream());\n dos.writeBytes(twoHyphens + boundary + lineEnd);\n\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"user_id\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Type: text/plain;charset=UTF-8\" + lineEnd);\n dos.writeBytes(lineEnd);\n dos.writeBytes(user_id + lineEnd);\n dos.writeBytes(twoHyphens + boundary + lineEnd);\n\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"to_user_id\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Type: text/plain;charset=UTF-8\" + lineEnd);\n dos.writeBytes(lineEnd);\n dos.writeBytes(to_user_id + lineEnd);\n dos.writeBytes(twoHyphens + boundary + lineEnd);\n\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"post_content\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Type: text/plain;charset=UTF-8\" + lineEnd);\n dos.writeBytes(lineEnd);\n dos.writeBytes(post_content + lineEnd);\n dos.writeBytes(twoHyphens + boundary + lineEnd);\n\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"post_type\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Type: text/plain;charset=UTF-8\" + lineEnd);\n dos.writeBytes(lineEnd);\n dos.writeBytes(postType + lineEnd);\n dos.writeBytes(twoHyphens + boundary + lineEnd);\n\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"file_align\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Type: text/plain;charset=UTF-8\" + lineEnd);\n dos.writeBytes(lineEnd);\n dos.writeBytes(\"center\" + lineEnd);\n dos.writeBytes(twoHyphens + boundary + lineEnd);\n\n\n //---------image\n\n /* if(mediaType.equalsIgnoreCase(\"image\")) {\n\n }\n else if(mediaType.equalsIgnoreCase(\"video\")){\n\n }\n else if(mediaType.equalsIgnoreCase(\"audio\")){\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"audio\\\";filename=\\\"\" + filename + \"\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"video\\\";filename=\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"image\\\";filename=\\\"\" + lineEnd);\n }\n else{\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"image\\\";filename=\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"video\\\";filename=\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"audio\\\";filename=\\\"\" + lineEnd);\n }*/\nif(mediaType.equalsIgnoreCase(\"image\")) {\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"image\\\";filename=\\\"\" + filename + \"\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"video\\\";filename=\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"audio\\\";filename=\\\"\" + lineEnd);\n if (imagetype.equalsIgnoreCase(\"jpg\")) {\n Log.i(\"imagetype\", \"1\");\n dos.writeBytes(\"Content-type: image/jpg;\" + lineEnd);\n }\n if (imagetype.equalsIgnoreCase(\"png\")) {\n Log.i(\"imagetype\", \"2\");\n dos.writeBytes(\"Content-type: image/png;\" + lineEnd);\n }\n if (imagetype.equalsIgnoreCase(\"gif\")) {\n Log.i(\"imagetype\", \"3\");\n dos.writeBytes(\"Content-type: image/gif;\" + lineEnd);\n }\n if (imagetype.equalsIgnoreCase(\"jpeg\")) {\n Log.i(\"imagetype\", \"4\");\n dos.writeBytes(\"Content-type: image/jpeg;\" + lineEnd);\n }\n if (imagetype.endsWith(\".mp4\")) {\n Log.i(\"videotype\", \"1\");\n dos.writeBytes(\"Content-type: video/mp4;\" + lineEnd);\n }\n if (imagetype.endsWith(\".avi\")) {\n Log.i(\"videotype\", \"2\");\n dos.writeBytes(\"Content-type: video/avi;\" + lineEnd);\n }\n if (imagetype.endsWith(\".ogg\")) {\n Log.i(\"videotype\", \"3\");\n dos.writeBytes(\"Content-type: video/ogg;\" + lineEnd);\n }\n if (imagetype.endsWith(\".3gp\")) {\n Log.i(\"videotype\", \"4\");\n dos.writeBytes(\"Content-type: video/3gp;\" + lineEnd);\n }\n dos.writeBytes(lineEnd);\n\n}\nif(mediaType.equalsIgnoreCase(\"audio\")) {\n Log.e(\"type\", mediaType);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"audio\\\";filename=\\\"\" + filename + \"\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"image\\\";filename=\\\"\" + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"video\\\";filename=\\\"\" + lineEnd);\n if (imagetype.equalsIgnoreCase(\"mp3\")) {\n Log.i(\"imagetype\", \"1\");\n dos.writeBytes(\"Content-type: audio/mp3;\" + lineEnd);\n }\n if (imagetype.equalsIgnoreCase(\"3gp\")) {\n Log.i(\"imagetype\", \"2\");\n dos.writeBytes(\"Content-type: audio/3gp;\" + lineEnd);\n }\n}\n int bytesAvailable = fileInputStream.available();\n int maxBufferSize = 1024;\n int bufferSize = Math.min(bytesAvailable, maxBufferSize);\n byte[] buffer = new byte[bufferSize];\n\n int bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n while (bytesRead > 0)\n {\n dos.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n\n dos.writeBytes(lineEnd);\n dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n Log.e(Tag, \"File is written\");\n fileInputStream.close();\n dos.flush();\n\n InputStream is = conn.getInputStream();\n\n int i = conn.getResponseCode();\n\n Log.e(\"Response of SignUp\",\"fetched code\"+i);\n int ch;\n\n StringBuffer b = new StringBuffer();\n while ((ch = is.read()) != -1)\n {\n b.append((char) ch);\n }\n String s = b.toString();\n Log.e(\"Response of SignUp\",\"fetched\"+s);\n JSONObject job = new JSONObject(s);\n status = job.getString(\"status\");\n msg = job.getString(\"message\");\n\n if(status.equalsIgnoreCase(\"true\"))\n {\n //String img = job.getString(\"avt\");\n // SharedPrefManager.getInstance(ctx).setUserImage(img);\n\n }\n else{\n\n }\n //response = \"true\";\n\n dos.close();\n\n }\n catch (MalformedURLException ex)\n {\n Log.e(Tag, \"error: \" + ex.getMessage(), ex);\n }\n\n catch (IOException ioe)\n {\n Log.e(Tag, \"error: \" + ioe.getMessage(), ioe);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n Log.e(\"msg\",status+\",\"+msg);\n return status+\",\"+msg;\n\n\n\n\n }", "title": "" }, { "docid": "0a1b07993d3fd4d2d7ad00b12cec65e5", "score": "0.5931936", "text": "private void uploadImage()\n {\n // gets file path\n File file = new File(filePath);\n // get retrofit instance\n Retrofit retrofit = NetworkClient.getRetrofit();\n // form the request body for image\n RequestBody requestBody = RequestBody.create(MediaType.parse(\"image/*\"), file);\n MultipartBody.Part parts = MultipartBody.Part.createFormData(\"newimage\", file.getName(), requestBody);\n // get currently logged in users details from firebase\n UserDetails = Objects.requireNonNull(mAuth.getCurrentUser()).getDisplayName();\n // forrm user requestbody of type plain text\n RequestBody username = RequestBody.create(MediaType.parse(\"text/plain\"), UserDetails);\n\n UploadApis uploadApis = retrofit.create(UploadApis.class);\n // make the network API call PARAM : image and username\n Call call = uploadApis.Verify(parts, username);\n call.enqueue(new Callback() {\n @Override\n public void onResponse(Call call, Response response) {\n Toast.makeText(getApplicationContext(),\"\"+response.message(),Toast.LENGTH_LONG).show();\n\n }\n\n @Override\n public void onFailure(Call call, Throwable t) {\n Toast.makeText(getApplicationContext(),\"\"+ t.getMessage(),Toast.LENGTH_LONG).show();\n }\n });\n }", "title": "" }, { "docid": "f37332a7679f51c1bfeccfbf20a81532", "score": "0.59285164", "text": "String startMultiPartUpload(String key) throws IOException;", "title": "" }, { "docid": "1c0ab19f4e72dd46fb3ee704f0454bf0", "score": "0.59246033", "text": "public static void uploadImage(File imagePath) {\r\n\t\tHttpURLConnection conn = null;\r\n\t\tDataOutputStream dos = null;\r\n\t\tDataInputStream inStream = null;\r\n\t\tString lineEnd = \"\\r\\n\";\r\n\t\tString twoHyphens = \"--\";\r\n\t\tString boundary = \"*****\";\r\n\t\tint bytesRead, bytesAvailable, bufferSize;\r\n\t\tbyte[] buffer;\r\n\t\tint maxBufferSize = 1 * 1024 * 1024;\r\n\t\ttry {\r\n\t\t\t// ------------------ CLIENT REQUEST\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(imagePath);\r\n\t\t\t// open a URL connection\r\n\t\t\tURL url = new URL(IMAGE_URL);\r\n\t\t\t// Open a HTTP connection to the URL\r\n\t\t\tconn = (HttpURLConnection) url.openConnection();\r\n\t\t\t// allows Inputs\r\n\t\t\tconn.setDoInput(true);\r\n\t\t\t// allows Outputs\r\n\t\t\tconn.setDoOutput(true);\r\n\t\t\t// disables caching\r\n\t\t\tconn.setUseCaches(false);\r\n\t\t\t// Use a post method.\r\n\t\t\tconn.setRequestMethod(\"POST\");\r\n\t\t\t// conn.setRequestProperty(\"Connection\", \"Keep-Alive\");\r\n\t\t\tconn.setRequestProperty(\"Content-Type\",\r\n\t\t\t\t\t\"multipart/form-data;boundary=\" + boundary);\r\n\t\t\tdos = new DataOutputStream(conn.getOutputStream());\r\n\t\t\tdos.writeBytes(twoHyphens + boundary + lineEnd);\r\n\t\t\tdos.writeBytes(\"Content-Disposition: form-data; name=\\\"uploadedfile\\\";filename=\\\"\"\r\n\t\t\t\t\t+ imagePath.toString() + \"\\\"\" + lineEnd);\r\n\t\t\tdos.writeBytes(lineEnd);\r\n\t\t\t// create a buffer of maximum size\r\n\t\t\tbytesAvailable = fileInputStream.available();\r\n\t\t\tbufferSize = Math.min(bytesAvailable, maxBufferSize);\r\n\t\t\tbuffer = new byte[bufferSize];\r\n\t\t\t// read file and write it into form...\r\n\t\t\tbytesRead = fileInputStream.read(buffer, 0, bufferSize);\r\n\t\t\twhile (bytesRead > 0) {\r\n\t\t\t\tdos.write(buffer, 0, bufferSize);\r\n\t\t\t\tbytesAvailable = fileInputStream.available();\r\n\t\t\t\tbufferSize = Math.min(bytesAvailable, maxBufferSize);\r\n\t\t\t\tbytesRead = fileInputStream.read(buffer, 0, bufferSize);\r\n\t\t\t}\r\n\t\t\t// send multi-part form data necessary after file data...\r\n\t\t\tdos.writeBytes(lineEnd);\r\n\t\t\tdos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\r\n\t\t\t// close streams\r\n\t\t\tLog.e(\"Debug\", \"File is written\");\r\n\t\t\tfileInputStream.close();\r\n\t\t\tdos.flush();\r\n\t\t\tdos.close();\r\n\t\t} catch (MalformedURLException ex) {\r\n\t\t\tLog.e(\"Debug\", \"error: \" + ex.getMessage(), ex);\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tLog.e(\"Debug\", \"error: \" + ioe.getMessage(), ioe);\r\n\t\t}\r\n\t\t// ------------------ read the SERVER RESPONSE\r\n\t\ttry {\r\n\t\t\tinStream = new DataInputStream(conn.getInputStream());\r\n\t\t\tString str;\r\n\r\n\t\t\twhile ((str = inStream.readLine()) != null) {\r\n\t\t\t\tLog.e(\"Debug\", \"Server Response \" + str);\r\n\t\t\t}\r\n\t\t\tinStream.close();\r\n\r\n\t\t} catch (IOException ioex) {\r\n\t\t\tLog.e(\"Debug\", \"error: \" + ioex.getMessage(), ioex);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c5190d0ea28c23f42e3c3d34acb46da7", "score": "0.592393", "text": "public void uploadFiles(FileModel files) {\n\t\tfileRepository.save(files);\n\t}", "title": "" }, { "docid": "a238846fcb7ecf1f9d8616ecb52c3ace", "score": "0.59203374", "text": "public void uploadImage(File file){\n RequestBody requestFile =\n RequestBody.create(MediaType.parse(\"multipart/form-data\"), file);\n\n // MultipartBody.Part is used to send also the actual file name\n MultipartBody.Part fileBody =\n MultipartBody.Part.createFormData(\"fileupload\", file.getName(), requestFile);\n RequestBody formatBody = RequestBody.create(MediaType.parse(\"text/plain\"), \"json\");\n\n Call<ResponseBody> call = getApi().uploadImage(\"12DJKPSU5fc3afbd01b1630cc718cae3043220f3\",\n formatBody, fileBody);\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n Log.v(\"Upload\", \"success\");\n try {\n String responseString = new String(response.body().bytes());\n listener.onImageUploaded(getImageUrl(responseString));\n } catch (IOException e) {\n e.printStackTrace();\n listener.onError(e.getMessage());\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.e(\"Upload error:\", t.getMessage());\n listener.onError(t.getMessage());\n }\n });\n }", "title": "" }, { "docid": "ce96d3aa4ae14b500f36343b3d0d2681", "score": "0.590913", "text": "public static void upload(String anon_id) throws Exception {\r\n\t\tCloseableHttpClient httpclient = null;\r\n\t\ttry{\r\n\t\t\tString uniqueString = StaticMethods.generateString(10);\r\n\t\t\t\r\n\t\t\tint date = Days.daysBetween(Constants.STUDY_START_DATE, new DateTime()).getDays();\r\n\t\t\t/*File[] files = new File[] { \r\n\t\t\t\t\tnew File(StaticMethods.getSettingsDir() + \"features.txt\"),\r\n\t\t\t\t\tnew File(StaticMethods.getSettingsDir() + \"clusters.txt\")\r\n\t\t\t};*/\r\n\t\t\t\r\n\t\t\tList<File> files = new ArrayList<File>();\r\n\t\t\tfor(int i=0; i<Constants.UPLOAD_FILE_LIST.length; ++i){\r\n\t\t\t\tFile afile = new File(Constants.UPLOAD_FILE_LIST[i]);\r\n\t\t\t\tif(afile.exists())\r\n\t\t\t\t\tfiles.add(afile);\r\n\t\t\t}\r\n\t\t\r\n\t\t\t// String[] descriptors = new String[] { \"Features file\", \"Clusters file\" };\r\n\t\t\r\n\t\t\thttpclient = HttpClients.createDefault();\r\n\t\t\t\r\n\t\t\tHttpPost httppost = new HttpPost(Constants.UPLOAD_URL);\r\n\t\r\n\t\t\tMultipartEntityBuilder reqEntity = MultipartEntityBuilder.create();\r\n\t\r\n\t\t\tfor (int i = 0; i < files.size(); ++i) {\r\n\t\t\t\tFileBody f = new FileBody(files.get(i));\r\n\t\t\t\tStringBody comment = new StringBody(/*\"User data: \" + */anon_id + \" \" + date + \" \" + uniqueString/* + \" $$ \" + descriptors[i]*/, ContentType.TEXT_PLAIN);\r\n\t\t\t\treqEntity.addPart(\"file_\"+i, f);\r\n\t\t\t\treqEntity.addPart(\"text_\"+i, comment);\r\n\t\t\t}\r\n\t\r\n\t\t\thttppost.setEntity(reqEntity.build());\r\n\t\r\n\t\t\tSystem.out.println(\"executing request \" + httppost.getRequestLine());\r\n\t\t\tCloseableHttpResponse response = httpclient.execute(httppost);\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\t\t\tSystem.out.println(response.getStatusLine());\r\n\t\t\t\tHttpEntity resEntity = response.getEntity();\r\n\t\t\t\tif (resEntity != null) {\r\n\t\t\t\t\tSystem.out.println(\"Response content length: \" + resEntity.getContentLength());\r\n\t\t\t\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\r\n\t\t\t\t\tresEntity.writeTo(output);\r\n\t\t\t\t\tString result = output.toString();\r\n\t\t\t\t\tif (result.startsWith(\"success\")) {\r\n\t\t\t\t\t\t// it worked\r\n\t\t\t\t\t\tSystem.out.println(\"Success\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// error\r\n\t\t\t\t\t\tSystem.out.println(\"Error\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//System.out.println(result);\r\n\t\t\t\t}\r\n\t\t\t\tEntityUtils.consume(resEntity);\r\n\t\t\t} finally {\r\n\t\t\t\tresponse.close();\r\n\t\t\t}\r\n\t\t} finally{\r\n\t\t\ttry {\r\n\t\t\t\thttpclient.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLogger.log(e, LogType.ERROR_LOG);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e46475d332b3ac6b8711cf432f8aa258", "score": "0.5907088", "text": "public static int post(String url, Map<String,String> vars, String fileKey, String fileName,\n InputStream istream, String username, String password) throws IOException {\n HttpURLConnection conn = createConnection(url, username, password);\n\n try {\n conn.setRequestMethod(\"POST\");\n conn.setRequestProperty(\"Connection\", \"Keep-Alive\");\n conn.setRequestProperty(\"Content-Type\", \"multipart/form-data; boundary=\" + BOUNDARY);\n\n Log.d(\"HttpPost\", vars.toString());\n\n DataOutputStream out = new DataOutputStream(conn.getOutputStream());\n assembleMultipart(out, vars, fileKey, fileName, istream);\n istream.close();\n out.flush();\n \n InputStream in = conn.getInputStream();\n BufferedReader reader = new BufferedReader(new InputStreamReader(in), 2048);\n \n // Set postedSuccess to true if there is a line in the HTTP response in\n // the form \"GEOCAM_SHARE_POSTED <file>\" where <file> equals fileName.\n // Our old success condition was just checking for HTTP return code 200; turns\n // out that sometimes gives false positives.\n Boolean postedSuccess = false;\n for (String line = reader.readLine(); line != null; line = reader.readLine()) {\n \t//Log.d(\"HttpPost\", line);\n if (!postedSuccess && line.contains(\"GEOCAM_SHARE_POSTED\")) {\n String[] vals = line.trim().split(\"\\\\s+\");\n for (int i = 0; i < vals.length; ++i) {\n \t//String filePosted = vals[1];\n \tif (vals[i].equals(fileName)) {\n \t\tLog.d(GeoCamMobile.DEBUG_ID, line);\n \t\tpostedSuccess = true;\n \t\tbreak;\n \t}\n }\n }\n }\n out.close();\n \n int responseCode = 0;\n responseCode = conn.getResponseCode();\n if (responseCode == 200 && !postedSuccess) {\n // our code for when we got value 200 but no confirmation\n responseCode = -3;\n }\n return responseCode;\n }\n catch (UnsupportedEncodingException e) {\n throw new IOException(\"HttpPost - Encoding exception: \" + e);\n }\n \n // ??? when would this ever be thrown?\n catch (IllegalStateException e) {\n throw new IOException(\"HttpPost - IllegalState: \" + e);\n } \n \n catch (IOException e) {\n try {\n return conn.getResponseCode();\n } catch(IOException f) {\n throw new IOException(\"HttpPost - IOException: \" + e);\n }\n }\n }", "title": "" }, { "docid": "f235a5888a1d26c7ad5e43d2258ea69f", "score": "0.59027493", "text": "Serializable upload(InputStream in);", "title": "" }, { "docid": "df589b8b24ba4bbe98729997f3fcfc6d", "score": "0.5892003", "text": "public interface FileUploadService {\n\n ExecutorService EXECUTOR_SERVICE = Executors.newFixedThreadPool(10);\n\n\n boolean uploadFiles(List<FormDataBodyPart> formDataBodyPart, Long postId, EnumAttachmentType enumAttachmentType);\n\n String getAbsolutePath(Long postId, EnumAttachmentType enumAttachmentType);\n\n String getRelativePath(Long postId, EnumAttachmentType enumAttachmentType);\n\n String getUploadPath();\n}", "title": "" }, { "docid": "47f94df65a8e9573f0a72364893da725", "score": "0.588705", "text": "@Path(\"/upload\")\n @POST\n\tpublic void upload(List<Attachment> attachments) throws FileNotFoundException, IOException {\n\n\t\tSystem.out.println(\"Inside upload method\");\n\t for (Attachment attachment: attachments) {\n\n\t // Get the input stream and pass it to the copyFile method.\n\t copyFile(attachment.getDataHandler().getInputStream());\n }\n }", "title": "" }, { "docid": "c26a3ab4573c39a3619c523314b78b3c", "score": "0.5876549", "text": "public FileUploadRequest(HttpServletRequest req) throws IOException\n {\n super(req);\n \n original = req;\n \n tempDir = ConfigurationManager.getProperty(\"upload.temp.dir\");\n int maxSize = ConfigurationManager.getIntProperty(\"upload.max\");\n \n // Create a factory for disk-based file items\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setRepository(new File(tempDir));\n \n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(factory);\n \n try\n {\n upload.setSizeMax(maxSize);\n items = upload.parseRequest(req);\n for (Iterator i = items.iterator(); i.hasNext();)\n {\n FileItem item = (FileItem) i.next();\n if (item.isFormField())\n {\n parameters\n .put(item.getFieldName(), item.getString(\"UTF-8\"));\n }\n else\n {\n parameters.put(item.getFieldName(), item.getName());\n fileitems.put(item.getFieldName(), item);\n filenames.add(item.getName());\n \n String filename = getFilename(item.getName());\n if (filename != null && !\"\".equals(filename))\n {\n item.write(new File(tempDir + File.separator\n + filename));\n }\n }\n }\n }\n catch (Exception e)\n {\n IOException t = new IOException(e.getMessage());\n t.initCause(e);\n throw t;\n }\n }", "title": "" }, { "docid": "1be7d24b957c114b7ffd218219cf4c4c", "score": "0.5876547", "text": "@RequestMapping(value = \"/postFile\", method = RequestMethod.POST, consumes = { \"multipart/form-data\" })\n\tpublic void importFile(@RequestPart(\"fichier\") MultipartFile file) {\n\t\tclientservice.importFile(file);\n\t}", "title": "" }, { "docid": "e503dc2b487fc52b0dee3325cf85e10f", "score": "0.5871071", "text": "@RequestMapping(value = \"/uploadSingleFile\", method = RequestMethod.POST)\n\tpublic void uploadSingleFileHandler(@RequestParam(required=false,name=\"name\") String filename,\n\t\t\t@RequestParam(\"file\") MultipartFile file , HttpServletRequest request, HttpServletResponse response) {\n\n\t\t// file handling to upload it in the server path\n\n\t\tif (!file.isEmpty()) {\n\t\t\ttry {\n\t\t\t\tString content = new String(file.getBytes());\n\n\t\t\t\tcontent = Utility.getFormattedString(content);\n\t\t\t\tdoDownload(request, response,content);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"You failed to upload => \");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"You failed to upload because the file was empty.\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "76322749ebcd1bd23dfcad21debfa5e7", "score": "0.58685875", "text": "@POST\n @Path(\"upload\")\n @ApiOperation(\n value = \"Post data file\",\n notes = DocumentationAnnotation.USER_ONLY_NOTES + \" Not working from this documentation. Implement a client or use Postman application.\")\n @ApiResponses(value = {\n @ApiResponse(code = 201, message = \"Document file and document metadata saved\", response = ResponseFormPOST.class),\n @ApiResponse(code = 400, message = DocumentationAnnotation.BAD_USER_INFORMATION),\n @ApiResponse(code = 401, message = DocumentationAnnotation.USER_NOT_AUTHORIZED),\n @ApiResponse(code = 500, message = DocumentationAnnotation.ERROR_SEND_DATA)})\n @ApiProtected\n @Consumes(MediaType.APPLICATION_OCTET_STREAM)\n @Produces(MediaType.APPLICATION_JSON)\n public Response postDocumentFile(\n @ApiParam(value = \"File to upload\") File file,\n @ApiParam(value = \"URI given from \\\"/documents\\\" path for upload\") @QueryParam(\"uri\") @URL String docUri,\n @Context HttpHeaders headers,\n @Context HttpServletRequest request) throws Exception {\n ResponseFormPOST postResponse;\n List<Status> statusList = new ArrayList();\n\n // Existing annotation\n if (!WAITING_ANNOT_FILE_CHECK.containsKey(docUri)) {\n statusList.add(new Status(\"No waiting file\", \"Error\", \"No waiting file for the following uri : \" + docUri));\n postResponse = new ResponseFormPOST(statusList);\n return Response.status(Response.Status.BAD_REQUEST).entity(postResponse).build();\n }\n\n if (headers != null && headers.getLength() <= 0) {\n statusList.add(new Status(\"File error\", \"Error\", \"File Size : \" + headers.getLength() + \" octets\"));\n postResponse = new ResponseFormPOST(statusList);\n return Response.status(Response.Status.BAD_REQUEST).entity(postResponse).build();\n }\n\n // Check md5 checksum \n String hash = getHash(file);\n if (hash != null && !WAITING_ANNOT_INFORMATION.get(docUri).getChecksum().equals(hash)) {\n statusList.add(new Status(\"MD5 error\", \"Error\", \"Checksum MD5 doesn't match. Corrupted File.\"));\n postResponse = new ResponseFormPOST(statusList);\n return Response.status(Response.Status.BAD_REQUEST).entity(postResponse).build();\n }\n\n String media = WAITING_ANNOT_INFORMATION.get(docUri).getDocumentType();\n media = media.substring(media.lastIndexOf(\"#\") + 1, media.length());\n\n DocumentRdf4jDAO documentsDao = new DocumentRdf4jDAO(sparql);\n if (request.getRemoteAddr() != null) {\n documentsDao.remoteUserAdress = request.getRemoteAddr();\n }\n documentsDao.user = userSession.getUser();\n final POSTResultsReturn insertAnnotationJSON\n = documentsDao.insert(Arrays.asList(WAITING_ANNOT_INFORMATION.get(docUri)), file);\n\n postResponse = new ResponseFormPOST(insertAnnotationJSON.statusList);\n\n if (insertAnnotationJSON.getDataState()) { // JSON file state\n WAITING_ANNOT_FILE_CHECK.remove(docUri);\n WAITING_ANNOT_INFORMATION.remove(docUri);\n if (insertAnnotationJSON.getHttpStatus() == Response.Status.CREATED) {\n postResponse.getMetadata().setDatafiles((ArrayList) insertAnnotationJSON.createdResources);\n final URI newUri = new URI(uri.getPath());\n\n return Response\n .status(insertAnnotationJSON.getHttpStatus())\n .location(newUri)\n .entity(postResponse)\n .build();\n } else {\n return Response.status(insertAnnotationJSON.getHttpStatus()).entity(postResponse).build();\n }\n }\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(new ResponseFormPOST()).build();\n }", "title": "" }, { "docid": "246bfadb3866c234087d12d489484272", "score": "0.58618873", "text": "@RequestMapping(value = \"/uploadFile\", method = RequestMethod.POST)\n @ResponseBody\n public FileMetadata uploadFile(@RequestParam(value = \"file\", required = true) MultipartFile inputFile) throws IOException {\n final String methodName = \"uploadFile() : Entry\";\n LOG.info(methodName);\n\n byte[] fileBytes = inputFile.getBytes();\n FileData file = new FileData(fileBytes, inputFile.getOriginalFilename());\n file.setCreationTime(new Date().getTime());\n fileService.save(file, context);\n\n FileMetadata output = new FileMetadata();\n output.setFileName(file.getFileName());\n output.setFileId(file.getFileId());\n output.setCreationTime(file.getCreationTime());\n\n return output;\n }", "title": "" }, { "docid": "58490ba837f5c0f21f073b2d89317165", "score": "0.5860389", "text": "@Override\r\n\t\tprotected String doInBackground(String... params) {\n\t\t\tString username = StaticVarUtil.student.getAccount();\r\n\t\t\tString result = HttpAssist\r\n\t\t\t\t\t.uploadFile(new File(params[0]), username);\r\n\r\n\t\t\treturn result;\r\n\t\t}", "title": "" }, { "docid": "e4712b94ebd6d2901fd0d7cfe3498216", "score": "0.5857354", "text": "public T photos_upload( File photo, Long albumId ) throws FacebookException, IOException;", "title": "" }, { "docid": "38432656c670a4d5d663eec2c36e6e76", "score": "0.5854081", "text": "@PostMapping(consumes = {MediaType.MULTIPART_FORM_DATA_VALUE})\n @Override\n Validation validateFile(\n @RequestPart(\"file\") File file, @SpringQueryMap ValidationRequest validationRequest);", "title": "" }, { "docid": "7f3d893eb5cfa34db6b5a2c698225e6b", "score": "0.5849921", "text": "@Test\n public void postHtmlFile() throws IOException {\n Document index = Jsoup.connect(FileServlet.urlTo(\"/htmltests/upload-form.html\")).get();\n List<FormElement> forms = index.select(\"[name=tidy]\").forms();\n assertEquals(1, forms.size());\n FormElement form = forms.get(0);\n Connection post = form.submit();\n\n File uploadFile = ParseTest.getFile(\"/htmltests/google-ipod.html.gz\");\n FileInputStream stream = new FileInputStream(uploadFile);\n\n Connection.KeyVal fileData = post.data(\"_file\");\n assertNotNull(fileData);\n fileData.value(\"check.html\");\n fileData.inputStream(stream);\n\n Connection.Response res;\n try {\n res = post.execute();\n } finally {\n stream.close();\n }\n\n Document doc = res.parse();\n assertEquals(ihVal(\"Method\", doc), \"POST\"); // from form action\n assertEquals(ihVal(\"Part _file Filename\", doc), \"check.html\");\n assertEquals(ihVal(\"Part _file Name\", doc), \"_file\");\n assertEquals(ihVal(\"_function\", doc), \"tidy\");\n }", "title": "" }, { "docid": "b7be9e11292b32eeb9bafff293577faf", "score": "0.5844232", "text": "@Override\n\t protected void doPost(HttpServletRequest request, HttpServletResponse response)throws IOException {\n\t \t Map<String,Object> map= new HashMap<String,Object>();\n\t if (!ServletFileUpload.isMultipartContent(request)) {\n\t PrintWriter writer = response.getWriter();\n\t writer.println(\"Request does not contain upload data\");\n\t writer.flush();\n\t return;\n\t }\n\t \n\t // configures upload settings\n\t DiskFileItemFactory factory = new DiskFileItemFactory();\n\t factory.setSizeThreshold(THRESHOLD_SIZE);\n\t factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\t \n\t ServletFileUpload upload = new ServletFileUpload(factory);\n\t upload.setFileSizeMax(MAX_FILE_SIZE);\n\t upload.setSizeMax(MAX_REQUEST_SIZE);\n\t \n\t // constructs the directory path to store upload file\n\t String uploadPath = getServletContext().getRealPath(\"\")\n\t + File.separator + UPLOAD_DIRECTORY;\n\t // creates the directory if it does not exist\n\t File uploadDir = new File(uploadPath);\n\t if (!uploadDir.exists()) {\n\t uploadDir.mkdir();\n\t }\n\t \n\t try {\n\t // parses the request's content to extract file data\n\t List formItems = upload.parseRequest(request);\n\t Iterator iter = formItems.iterator();\n\t \n\t // iterates over form's fields\n\t while (iter.hasNext()) {\n\t FileItem item = (FileItem) iter.next();\n\t // processes only fields that are not form fields\n\t if (!item.isFormField()) {\n\t String fileName2 = new File(item.getName()).getName();\n\t String fileName= item.getName();\n\t String filePath = uploadPath + File.separator + fileName;\n\t File storeFile = new File(filePath);\n\t map.put(\"path\", \"upload/\"+fileName);\n\t // saves the file on disk\n\t item.write(storeFile);\n\t }\n\t }\n\t request.setAttribute(\"message\", \"Upload has been done successfully!\");\n\t } catch (Exception ex) {\n\t request.setAttribute(\"message\", \"There was an error: \" + ex.getMessage());\n\t }\n\t \n\t map.put(\"id_pub\", data.get(\"id\"));\n\t map.put(\"indice\", data.get(\"index\"));\n\n\t map.put(\"revisionato\", 0);\n\t try {\n\t\t\t\tDatabase.connect();\n\t\t\t\tDatabase.insertRecord(\"immagini\", map);\n\t\t Database.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t \n\t data.put(\"messaggio\", \"Upload effettuato correttamente!\");\n\t\t\t FreeMarker.process(\"uploadform.html\", data, response, getServletContext());\n\n\n\t\t}", "title": "" }, { "docid": "ad93c329beafa82c0d31a53f31fd37d8", "score": "0.58389777", "text": "Future<RpcResult<java.lang.Void>> multipartRequest(MultipartRequestInput input, SwitchConnectionDistinguisher cookie);", "title": "" }, { "docid": "1b7b795f3d3e71fb43aa2103d22e3c57", "score": "0.5836754", "text": "private void upload() {\n\t\tif (Utils.isNetWorkConnected(PersonActivity.this)) {\r\n\t\t\tshowProgressDialog(PersonActivity.this, \"上传中\");\r\n\t\t\tString url = UrlConfig.updateHeadImg();\r\n\t\t\tRequestParams params = new RequestParams();\r\n\t\t\tparams.put(\"uid\", myself.getId());\r\n\t\t\ttry {\r\n\t\t\t\tparams.put(\"photo\", new File(protraitPath));\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tHttpUtil.post(url, params, new jsonHttpResponseHandler() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onSuccess(JSONObject arg0) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\tif (Utils.requestOk(arg0)) {\r\n\t\t\t\t\t\tUtils.ToastMessage(PersonActivity.this, \"上传成功\");\r\n\t\t\t\t\t\t// PreferenceUtils.getInstance(PersonActivity.this)\r\n\t\t\t\t\t\t// .setUserImg(\"file:/\" + protraitPath);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsuper.onSuccess(arg0);\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tUtils.showSuperCardToast(PersonActivity.this, getResources()\r\n\t\t\t\t\t.getString(R.string.network_not_connected));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb91eb54bfb89e24d94ca3952e8c7247", "score": "0.5829511", "text": "@Multipart\r\n\r\n @POST(\"api/alert/upLoad.php\")\r\n Call<String> uploadImage(\r\n @Part MultipartBody.Part file,\r\n @Part(\"alert_name\") String alert_name,\r\n @Part(\"fullname\") String fullname,\r\n @Part(\"alert_type\") String alert_trype,\r\n @Part(\"rg\") String rg,\r\n @Part(\"rl\") String rl,\r\n @Part(\"mssdn\") String mssdn,\r\n @Part(\"userid\") String userid,\r\n @Part(\"location\") String location,\r\n @Part(\"notes\") String notes,\r\n @Part(\"filename\") RequestBody name\r\n\r\n );", "title": "" }, { "docid": "f83fa1d571d11938b7a0d8c5e0e1149a", "score": "0.58240026", "text": "@Multipart\n @POST(\"restaurant/new-item\")\n Call<FoodItems> addNewFoodItem(@Part(\"name\") RequestBody name\n , @Part(\"description\") RequestBody description\n , @Part(\"price\") RequestBody price\n , @Part MultipartBody.Part photo\n , @Part(\"offer_price\") RequestBody offerPrice\n , @Part(\"preparing_time\") RequestBody preparingTime\n , @Part(\"api_token\") RequestBody apiToken\n , @Part(\"category_id\") RequestBody categoryId);", "title": "" }, { "docid": "f3a8bce2e19912085d3d578ccf369883", "score": "0.5817898", "text": "@POST\n\t@Path(\"/getFile\")\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic Response getFile(String request) throws InstantiationException, IllegalAccessException, ClassNotFoundException, CloneNotSupportedException, IOException, JSONException{\n\n\t\tSystem.out.println(request);\n\t\tJSONObject jsonObject = new JSONObject(request);\n\n\t\tString userID = jsonObject.getString(\"userID\");\n\t\tString fileKey = jsonObject.getString(\"key\");\n\t\t\n\t\t//google how to get auth token\n\t\tString authToken = jsonObject.getString(\"\");\n\n\t\tif(userID == null || authToken == null || fileKey == null){\n\t\t\tSystem.out.println(\"=====userID ERROR=====\");\n\t\t\treturn Response.status(400).entity(\"{\\\"Error\\\":\\\"Provide stuff\\\"}\").build();\n\t\t}\n\t\t// match auth token to see it's a logged in user\n\t\t// get bucket name from user\n\t\t// download data using amazon client with bucketname and key\n\t\t// get file type using bucket key\n\t\t// create a new object of {file type, file} and return\n\t\t\t\t\n\t\tSystem.out.println(\"=====SERVED JSON TO USER=====\");\n\t\treturn Response.ok().build();\n\t}", "title": "" }, { "docid": "7ed4b9fc1a5340fa78bba3ccab6920dd", "score": "0.5804795", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(UploadServlet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "9c020abf26d4139b58e081722ae08996", "score": "0.5799041", "text": "@Override\n public void run() {\n try {\n if (uploadFiles(url,params,files)) {\n handler.sendEmptyMessage(UPLOAD_SUCCESS);//通知主线程数据发送成功\n }else {\n //将数据发送给服务器失败\n }\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "6cd40b0448e75898924fe2a52d7044ec", "score": "0.57966524", "text": "@Test\r\n @NeedsServer\r\n public void testIfUploadFileWorks() throws URISyntaxException {\r\n\r\n ondertekenenClient.uploadFile(\r\n Transaction.builder().id(\"123321\").build(),\r\n new File(this.getClass().getResource(\"sample.txt\").toURI()));\r\n\r\n /* Verify REST call */\r\n verifyHttp(server)\r\n .once(uri(\"/api/transaction/123321/file/sample.txt\")\r\n , method(Method.PUT)\r\n , Condition.withHeader(\"Application\", \"12345\")\r\n , Condition.withHeader(\"Authorization\", \"54321\")\r\n , Condition.withPostBodyContaining(\"\\\"Hail to the king, baby!\\\" -- Duke Nukem\"));\r\n }", "title": "" }, { "docid": "494ef27ec59d93b3db4b32237eb239c7", "score": "0.5790463", "text": "@RequestMapping(value = \"/uploadQuestionFile\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\t@ResponseBody\r\n\tpublic Boolean uploadQuestionFile(@RequestParam(value = \"questionFile\") MultipartFile req,\r\n\t\t\t@RequestParam(value = \"fileName\") String fileName)\r\n\t\t\tthrows NoSuchAlgorithmException, InvalidKeySpecException, IOException, Exception {\r\n\t\tUser user = (User) request.getSession().getAttribute(\"userSession\");\r\n\t\tBoolean status = questionService.fetchQuesionFromUploadFile(req, fileName, user.getUserId());\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "31c622e9afa84c5796078a9372b8d542", "score": "0.57871217", "text": "private static void uploadFile() throws FileNotFoundException,\n\t\t\tApiException, Exception {\n\t\tSystem.out.println(\"***** Sending uploadFile request\");\n\t\tFile fileToUpload = new File(FILE_PATH);\n\t\tApiResponse<ObjectDetails> response = objectsApi\n\t\t\t\t.uploadObject(BUCKET_KEY, FILE_NAME,\n\t\t\t\t\t\t(int) fileToUpload.length(), fileToUpload, null, null,\n\t\t\t\t\t\toauth2TwoLegged, twoLeggedCredentials);\n\n\t\tSystem.out.println(\"***** Response for uploadFile: \");\n\t\tObjectDetails objectDetails = response.getData();\n\t\tString objectId = objectDetails.getObjectId();\n\t\tString urn = getBASE64(objectId);\n\t\tJobPayload job = new JobPayload();\n\t\tJobPayloadInput input = new JobPayloadInput(); \n\t\tinput.setUrn(urn);\n\t\tjob.setInput(input);\n\t\tjob.setOutput(getJobPayloadOutput());\n\t\tApiResponse<Job> jobs = derivativesApi.translate(job, false, oauth2TwoLegged, twoLeggedCredentials);\n\t\turn = jobs.getData().getUrn();\n\t\tSystem.out.println(\"urn:\" + urn);\n\t\tSystem.out.println(\"Uploaded object Details - Location: \"\n\t\t\t\t+ objectDetails.getLocation() + \", Size:\"\n\t\t\t\t+ objectDetails.getSize());\n\n\t}", "title": "" }, { "docid": "a22d32d0d45336c89621caad5f98c46f", "score": "0.5775505", "text": "public void uploadFile(String path, String type) {\n File file = new File(path);\n // create RequestBody instance from file\n RequestBody requestFile = RequestBody.create(MediaType.parse(\"multipart/form-data\"), file);\n // MultipartBody.Part is used to send also the actual file name\n MultipartBody.Part body =\n MultipartBody.Part.createFormData(\"file\", file.getName(), requestFile);\n RequestBody typeBody = RequestBody.create(MediaType.parse(\"multipart/form-data\"), type);\n mUpLoadServiceApi.upload(body, typeBody)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(filePath -> {\n LogUtils.d(TAG, \"uploadFile: \" + filePath);\n //发送消息添加到本地,然后发送拓展消息到对方\n if (type.equals(DataExtensionType.IMAGE.toString())) {\n sendMyFriendMessage(filePath.resourceId, DataExtensionType.IMAGE);\n }\n if (type.equals(DataExtensionType.AUDIO.toString())) {\n sendMyFriendMessage(filePath.resourceId, DataExtensionType.AUDIO);\n }\n }, new ErrorAction() {\n @Override public void call(Throwable throwable) {\n super.call(throwable);\n SimpleHUD.showErrorMessage(getContext(), \"上传失败\" + throwable.toString());\n }\n });\n }", "title": "" }, { "docid": "699cba380f906ae9fe0e3f047697d87e", "score": "0.57647175", "text": "public void files_uploadMultipart(String params, String post_entry_id) {\n //getting name for the image\n String name = params; //editText.getText().toString().trim();\n\n //getting the actual path of the image\n String path = imageUrl; //files_uploadGetPath(fileUri);\n //String path = filePath; //getPath(filePath);\n\n\n //Log.d(\"upload_Uri\", String.valueOf(fileUri));\n //Log.d(\"upload_Path\", path);\n\n /*try {\n\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), fileUri);\n uploadBitmap(bitmap);\n\n } catch (Exception exc) {\n Toast.makeText(this, exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n*/\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n MultipartUploadRequest uploadRequest = new MultipartUploadRequest(this, uploadId, CONF_FILE_UPLOAD)\n .addFileToUpload(path, \"image\") //Adding file\n .addParameter(\"name\", name) //Adding text parameter to the request\n .addParameter(\"post_entry_id\", post_entry_id)\n .addParameter(\"user_id\", user_email)\n .setMaxRetries(3);\n\n // For Android > 8, we need to set an Channel to the UploadNotificationConfig.\n // So, here, we create the channel and set it to the MultipartUploadRequest\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n NotificationManager notificationManager = (NotificationManager) getSystemService(Service.NOTIFICATION_SERVICE);\n NotificationChannel channel = new NotificationChannel(\"Upload\", \"Upload service\", NotificationManager.IMPORTANCE_DEFAULT);\n notificationManager.createNotificationChannel(channel);\n\n UploadNotificationConfig notificationConfig = new UploadNotificationConfig();\n notificationConfig.setNotificationChannelId(\"Upload\");\n uploadRequest.setNotificationConfig(notificationConfig);\n\n } else {\n // If android < Oreo, just set a simple notification (or remove if you don't wanna any notification\n // Notification is mandatory for Android > 8\n uploadRequest.setNotificationConfig(new UploadNotificationConfig());\n }\n\n uploadRequest.startUpload(); //Starting the upload\n\n\n\n Toast.makeText(this, \"Uploaded\", Toast.LENGTH_SHORT).show();\n\n } catch (Exception exc) {\n Toast.makeText(this, \"NOT uploaded \" + exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n\n\n }", "title": "" }, { "docid": "75cc675694c70ba624afb19e5763149b", "score": "0.5754306", "text": "@Test\n public void testName() throws Exception {\n\n MultiValueMap<String, Object> map = new LinkedMultiValueMap<>();\n map.add(\"upload\", new FileSystemResource(\"/home/user9/upload.png\"));\n\n CloseableHttpClient httpClient = HttpClients.custom()\n .setSSLHostnameVerifier(new NoopHostnameVerifier())\n .build();\n HttpComponentsClientHttpRequestFactory requestFactory =\n new HttpComponentsClientHttpRequestFactory();\n requestFactory.setHttpClient(httpClient);\n\n RestTemplate restTemplate = new RestTemplate(requestFactory);\n restTemplate.getMessageConverters().add(new ByteArrayHttpMessageConverter());\n restTemplate.getMessageConverters().add(new FormHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJackson2HttpMessageConverter());\n\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.MULTIPART_FORM_DATA);\n headers.setAccept(Arrays.asList(MediaType.APPLICATION_OCTET_STREAM));\n HttpEntity<MultiValueMap<String, Object>> request = new HttpEntity<>(map, headers);\n\n ResponseEntity<String> result = restTemplate.exchange(UploadBaseURL.Media.POST, HttpMethod.POST, request, String.class);\n Gson gson = new Gson();\n JsonParser jsonParser = new JsonParser();\n JsonArray jsonArray = (JsonArray) jsonParser.parse(result.getBody().toString());\n List<FileResults> list = new ArrayList<>();\n for (JsonElement element : jsonArray) {\n list.add(gson.fromJson(element, FileResults.class));\n }\n for (FileResults fileResults: list){\n System.out.println(\"The results is \" + fileResults.getId());\n System.out.println(\"The results is \" + fileResults.getUrl());\n }\n\n }", "title": "" }, { "docid": "f073b4b99cf255b320225292c8de78c0", "score": "0.57537764", "text": "void uploadFile(byte [] data, String host, String targetLocation, String sftpUser, String sftpPassword, String fileName);", "title": "" }, { "docid": "0dc4fd4c2305459b232bcfbe621465cf", "score": "0.57508016", "text": "@RequestMapping(value = \"/uploadFile\", method = RequestMethod.POST)\n public @ResponseBody String uploadFile(@RequestParam(value = \"file\", required = true) MultipartFile file) throws IOException, JSONException {\n byte[] rawOutput = uploadClient.upload(file);\n\n // Format incomming message\n String formattedOutput = new String(rawOutput, StandardCharsets.UTF_8);\n String[] lines = formattedOutput.split(System.getProperty(\"line.separator\"));\n List<String> linesString = Arrays.asList(lines);\n\n // Convert output to json\n JSONObject jsonObj = new JSONObject();\n jsonObj.put(\"result\", new JSONArray(linesString));\n\n return jsonObj.toString();\n }", "title": "" } ]
506e61462be425cb5e00fa717a30a2a0
add any listeners necessary for the installed components
[ { "docid": "58cacfa0fabaf3054d75c760c7577fc1", "score": "0.7086734", "text": "private void installListeners() {\n clear.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n clear();\n }\n }\n );\n\n copy.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n copy();\n }\n }\n );\n\n zoomIn.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n zoomIn();\n }\n }\n );\n\n zoomOut.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n zoomOut();\n }\n }\n );\n\n rotateCCW.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n rotateCCW();\n }\n }\n );\n\n rotateCW.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n rotateCW();\n }\n }\n );\n\n reload.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n reload();\n }\n }\n );\n\n viewport.addMouseMotionListener(mouseAdapter);\n viewport.addMouseListener(mouseAdapter);\n viewport.addMouseWheelListener(mouseAdapter);\n\n addComponentListener(new ComponentAdapter() {\n public void componentResized(ComponentEvent ce) {\n if (ce.getComponent().equals(ImageViewer.this)) {\n filenameLabel.setText(compressFilename(filename));\n }\n }\n }\n );\n }", "title": "" } ]
[ { "docid": "4ff337faaadddf75cdc56aaef3b39d85", "score": "0.72911096", "text": "public void registerListeners() {\n registerBrokerChangeListener();\n }", "title": "" }, { "docid": "feb1fbd6adc39cc6dd445f6742720bc5", "score": "0.7282996", "text": "private void addListeners() {\n\n\n }", "title": "" }, { "docid": "6ab179b9638b0d0fd51dbc30f5fa0fc4", "score": "0.7240357", "text": "private void setupListeners() {\n PluginManager pm = this.getServer().getPluginManager();\n pm.registerEvents(new PlaceListener(this), this);\n pm.registerEvents(new BlockBreakListener(this), this);\n pm.registerEvents(new RecipeListener(this), this);\n }", "title": "" }, { "docid": "026aabb5992ec9d6e56f4c48f60a5a44", "score": "0.72138965", "text": "void addListeners () {\n Class<?>[] argTypes = { Config.class, JPF.class };\n Object[] args = { config, this };\n\n // first listeners that were automatically added from VM, Search and Reporter initialization\n if (pendingVMListeners != null){\n for (VMListener l : pendingVMListeners) {\n vm.addListener(l);\n }\n pendingVMListeners = null;\n }\n\n if (pendingSearchListeners != null){\n for (SearchListener l : pendingSearchListeners) {\n search.addListener(l);\n }\n pendingSearchListeners = null;\n }\n\n // and finally everything that's user configured\n List<JPFListener> listeners = config.getInstances(\"listener\", JPFListener.class, argTypes, args);\n if (listeners != null) {\n for (JPFListener l : listeners) {\n addListener(l);\n }\n }\n }", "title": "" }, { "docid": "c054e983ace81efe5e31de1a8b6f4da0", "score": "0.7128126", "text": "private void addListeners(){\n\t}", "title": "" }, { "docid": "33506389ab2660de21d3cdcb66e626b4", "score": "0.7058278", "text": "private void \r\n\tsetup_Components_Listeners() {\n\t\t//\r\n\t\t// menu\r\n\t\t//\r\n\t\t///////////////////////////////////\r\n\t\tmntmQuit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t///////////////////////////////////\r\n\t\t//\r\n\t\t// buttons\r\n\t\t//\r\n\t\t///////////////////////////////////\r\n\t\tbtnExec.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tMainWindow.lblMessage.setText(\"This lesson covers writing layout\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "title": "" }, { "docid": "0cb1847530739b5f537f2c90c459e959", "score": "0.7039735", "text": "void installListeners() {\n // Listeners on this popup's shell\n getShell().addListener(SWT.Deactivate, this);\n getShell().addListener(SWT.Close, this);\n\n // Listeners on the target control\n control.addListener(SWT.MouseDoubleClick, this);\n control.addListener(SWT.MouseDown, this);\n control.addListener(SWT.Dispose, this);\n control.addListener(SWT.FocusOut, this);\n // Listeners on the target control's shell\n Shell controlShell = control.getShell();\n controlShell.addListener(SWT.Move, this);\n controlShell.addListener(SWT.Resize, this);\n\n control.addListener(SWT.DefaultSelection, this);\n if (control instanceof Text)\n ((Text) control).addSelectionListener(this);\n if (control instanceof Combo)\n ((Combo) control).addSelectionListener(this);\n }", "title": "" }, { "docid": "a76c149a734e69a2639d10b20336138f", "score": "0.7006881", "text": "@Override\r\n\tprotected void attachListeners() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cdf8fd42044ffbf77d7430df05bd46ef", "score": "0.70054007", "text": "protected void registerEvents() {\n _messageCenter = new MessageCenter();\n _noticeProxy = _messageCenter.registerSource( this, ApplicationListener.class );\n \n addApplicationListener( _applicationAdaptor );\n }", "title": "" }, { "docid": "7e583878c6e6a958d9ab337104bf00d4", "score": "0.6963153", "text": "public void addListeners(){}", "title": "" }, { "docid": "39c2d2aa35b6c7fa734d6332eca9dac2", "score": "0.69061404", "text": "protected void installListeners() {\n monthView\n .addPropertyChangeListener(getMonthViewPropertyChangeListener());\n }", "title": "" }, { "docid": "9d411d6ce835bd43ad7194ced04e3db0", "score": "0.68554103", "text": "@Override protected void initListeners() {\r\n\r\n }", "title": "" }, { "docid": "8851dc36bbd76fdac18f89bae4f1e474", "score": "0.68507624", "text": "private void addListeners() {\n \t\tthis.triggerDelayText.addModifyListener(\n \t\t\t\ttriggerDelayTextModifiedListener);\n \t\tthis.triggerDelayText.addVerifyListener(triggerDelayTextVerifyListener);\n \t\tthis.settleTimeText.addModifyListener(settleTimeTextModifiedListener);\n \t\tthis.settleTimeText.addVerifyListener(settleTimeTextVerifyListener);\n \t\tthis.confirmTriggerCheckBox.addSelectionListener(\n \t\t\t\tconfirmTriggerCheckBoxSelectionListener);\n \t\tthis.eventsTabFolder.addSelectionListener(\n \t\t\t\teventsTabFolderSelectionListener);\n \t\tthis.appendScheduleEventCheckBox.addSelectionListener(\n \t\t\t\tappendScheduleEventCheckBoxSelectionListener);\n \t}", "title": "" }, { "docid": "26fa4d74d1d90650fceb06fc5a5b1298", "score": "0.6827191", "text": "public void setUpListeners() {\n\t\tappView.getTimelineView().addListener(timelineControl);\n\t\tappView.getEventView().addListener(eventControl);\n\t\tappView.addListener(this);\n\t\tapp.addListener(appView);\n\t}", "title": "" }, { "docid": "7fe41c5fe748ba4bc1e7fd232a36c3c3", "score": "0.6820906", "text": "private void registerListener() {\n\t}", "title": "" }, { "docid": "6af7f101f63e5b7389b578e1f4fac21a", "score": "0.68032956", "text": "protected void installListeners() {\n\t super.installListeners();\n\t tabPane.addMouseListener(new MyMouseHandler());\n\t }", "title": "" }, { "docid": "02c896b9b563df6bdedbd6ac6aaa10ea", "score": "0.6802394", "text": "private void addListeners() {\r\n signInListener();\r\n registerListener();\r\n signUpListener();\r\n returnSignInListener();\r\n singleplayerListener();\r\n backToChooseGameListener();\r\n multiplayerOpponentListener();\r\n multiplayerOptionListener();\r\n onlineOptionListener();\r\n offlineOptionListener();\r\n scoreListener();\r\n signOutBtnListener();\r\n startSingleListener();\r\n blackListener();\r\n whiteListener();\r\n multiplayerOpponentListener();\r\n createGameListener();\r\n createGameBtnListener();\r\n joinGameListener();\r\n refreshGameListListener();\r\n }", "title": "" }, { "docid": "14ac79a7b491aecb0b3723d72cbd0145", "score": "0.6793621", "text": "private void addListeners() {\n shell.addShellListener( new ShellAdapter() {\n @Override\n public void shellClosed( ShellEvent e ) {\n e.doit = quitFile();\n }\n } );\n\n wReload.addSelectionListener( new SelectionAdapter() {\n @Override\n public void widgetSelected( SelectionEvent arg0 ) {\n int[] idx = wPackages.table.getSelectionIndices();\n reload();\n wPackages.table.setSelection( idx );\n }\n } );\n\n wZip.addSelectionListener( new SelectionAdapter() {\n @Override\n public void widgetSelected( SelectionEvent arg0 ) {\n saveFilesToZip();\n }\n } );\n\n wClose.addSelectionListener( new SelectionAdapter() {\n @Override\n public void widgetSelected( SelectionEvent arg0 ) {\n quitFile();\n }\n } );\n\n }", "title": "" }, { "docid": "adac24eede62cc3b13b9afa6bfc31ab6", "score": "0.6729321", "text": "public void registerEvents() {\n\t}", "title": "" }, { "docid": "3824ab7e16680e1f0b914a3877785675", "score": "0.67243046", "text": "void installListeners() {\n // Listeners on this popup's table and scroll bar\n proposalTableViewer.getTable().addListener(SWT.FocusOut, this);\n final ScrollBar scrollbar = proposalTableViewer.getTable().getVerticalBar();\n if (scrollbar != null) {\n scrollbar.addListener(SWT.Selection, this);\n }\n\n // Listeners on this popup's shell\n getShell().addListener(SWT.Deactivate, this);\n getShell().addListener(SWT.Close, this);\n\n // Listeners on the target control\n control.addListener(SWT.MouseDoubleClick, this);\n control.addListener(SWT.MouseDown, this);\n control.addListener(SWT.Dispose, this);\n control.addListener(SWT.FocusOut, this);\n // Listeners on the target control's shell\n final Shell controlShell = control.getShell();\n controlShell.addListener(SWT.Move, this);\n controlShell.addListener(SWT.Resize, this);\n\n }", "title": "" }, { "docid": "40f20ea39e9c3b582b4c5148051817d8", "score": "0.6706707", "text": "public void initListeners() {\n\t}", "title": "" }, { "docid": "bb64da370a4468b6ce91ad1e2af91d40", "score": "0.6705009", "text": "public void enableAppEvents() {\n\t\t_myApp.addSetupListener(this);\n\t\t_myApp.addUpdateListener(this);\n\t\t_myApp.addDrawListener(this);\n\t\t_myApp.addDisposeListener(this);\n\t}", "title": "" }, { "docid": "9cb1129e165997de27e75af4bcf00467", "score": "0.66860217", "text": "public void registerListeners() {\n registerTopicChangeListener();\n }", "title": "" }, { "docid": "c6d58a6b7434a8582f885fbad26d63d2", "score": "0.66860205", "text": "@Override\n\tpublic void initListeners() {\n\n\t}", "title": "" }, { "docid": "71b5e41e8e6628cb53f86ebb5f0b2b91", "score": "0.6668073", "text": "@Override\r\n protected void listeners() {\n\r\n }", "title": "" }, { "docid": "6c8cfdabc4e0ca79cde6a3f63642c258", "score": "0.6641165", "text": "public abstract void startListeningTo (Component c, CustomComponentNotifier n);", "title": "" }, { "docid": "7470dffe181a9553a1ababe1343395ce", "score": "0.66377306", "text": "public void attachListeners() {\n eventManager.update(new WatchDogEvent(this, EventType.START_IDE));\n\n connection.subscribe(ApplicationActivationListener.TOPIC,\n new IntelliJActivationListener(eventManager));\n activityListener = new GeneralActivityListener(eventManager);\n\n EditorFactory.getInstance().addEditorFactoryListener(editorWindowListener, parent);\n }", "title": "" }, { "docid": "7c7d92b5c94e545a7f1f4cc35c6d77ec", "score": "0.66217303", "text": "protected void start() {\n final EventManager eventManager = Lifecycle.getBeanManager().getReference(EventManager.class);\n\n for (final AbstractEventListener<?> eventListener : eventListeners) {\n eventManager.registerListener(eventListener);\n }\n }", "title": "" }, { "docid": "6ac5e4f2ab91b0450cc07eb020f3767d", "score": "0.6618058", "text": "public void registerEvents() {\n\t\tfinal PluginManager pm = plugin.getServer().getPluginManager();\n\t\tpm.registerEvents(this, plugin);\n\t\t\n\t}", "title": "" }, { "docid": "1f6fcb9eb21c133cbe4f69a22aa622c7", "score": "0.6584868", "text": "@Override\n public void registerListener() {\n\n }", "title": "" }, { "docid": "086b5e7bc932bde6e7713bc165d011d9", "score": "0.6573077", "text": "private void addListeners () {\r\n \thostButton.addActionListener(new ActionListener() {\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\thandleHostButton();\r\n\t\t\t}\r\n\t\t});\r\n \t\r\n \tcancelButton.addActionListener(new ActionListener () {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\thandleCancelButton();\r\n\t\t\t}\r\n \t});\r\n }", "title": "" }, { "docid": "c8def2c165d59e0565bf470bc5aa4dbd", "score": "0.6549956", "text": "@Override\n\tpublic void addEvents() {\n\n\t}", "title": "" }, { "docid": "1e2284bbbfeb7e57878655b21a293f89", "score": "0.65455437", "text": "private void setUpTaskListeners() {\n messageProperty().addListener( (observable, oldMessage, newMessage) -> manageNewCommunicates(newMessage) );\n titleProperty().addListener((observable, oldValue, newValue) -> manageNewCommunicates(newValue) );\n }", "title": "" }, { "docid": "a2d5cf88fd8bb1e654f6f08575af0723", "score": "0.6545505", "text": "private void addListenersToComponent() {\n addMouseListener(new MouseListenerForPetriNetFigures(panel, this));\n addMouseMotionListener(new MouseListenerForPetriNetFigures(panel, this));\n }", "title": "" }, { "docid": "12a22c1227b4057592ed1b58b49c3f0f", "score": "0.65381604", "text": "private void addEventHandlers(){\n\t\t// Adding an event handler for mouse up event\n\t\tbtnConnection.addMouseListener(new MouseAdapter() {\n\t\t @Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\t\n\t\t\t\tString err=\tConfiguration.connection.connect(Configuration.host, Configuration.port);\n\t\t\t\tif (!err.isEmpty()){\n\t\t\t\t\tMessageBox msgBox= new MessageBox(org.eclipse.ui.PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell()\n\t\t\t\t\t ,SWT.ICON_ERROR|SWT.OK);\n\t\t\t\t\tmsgBox.setMessage(err);\n\t\t\t\t\tmsgBox.open();\n\t\t\t\t}\n\t\t\t\t//initialState();\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t// Adding an observer to the connection\n\t\tConfiguration.connection.addObserver(new IObserver() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void update() {\n\t\t\t\t\t\tinitialState();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t});\n\t\t\n\t\n\t}", "title": "" }, { "docid": "26d184682e83bda5744311f39f3b482c", "score": "0.65300244", "text": "private void attachEventListeners() {\n connectButton.addActionListener(comButtonListener);\n clearButton.addActionListener(comButtonListener);\n portListButton.addActionListener(comButtonListener);\n\n // Attach a generic key listener to the text area.\n deviceTextArea.addKeyListener(comTextListener);\n }", "title": "" }, { "docid": "ace7cc6ac348c78f56f31842beb53df4", "score": "0.6504923", "text": "@Override\n\tpublic void addListener() {\n\t}", "title": "" }, { "docid": "e4e06e66313da32540e7674c210fba50", "score": "0.6495901", "text": "protected void installListeners() {\n this.galleryCommandSelectionListener = (BaseCommand activated) ->\n SwingUtilities.invokeLater(() -> {\n if (ribbonGallery != null) {\n scrollToSelected();\n ribbonGallery.revalidate();\n }\n });\n this.ribbonGallery.getProjection().getContentModel().addCommandActivationListener(\n this.galleryCommandSelectionListener);\n\n this.galleryModelChangeListener = (ChangeEvent changeEvent) -> ribbonGallery.revalidate();\n this.ribbonGallery.getProjection().getContentModel().addChangeListener(\n this.galleryModelChangeListener);\n\n // Track command selection in the popup and update our main gallery content model on\n // every selection change. This way changing selection in popup will be reflected in the\n // main gallery once the popup is closed.\n this.expandedGalleryModelChangeListener = e -> {\n Command selectedCommandInPopupMenu =\n expandedGalleryContentModel.getPanelContentModel().getSelectedCommand();\n ribbonGallery.getProjection().getContentModel().setSelectedCommand(selectedCommandInPopupMenu);\n };\n this.expandedGalleryContentModel.addChangeListener(this.expandedGalleryModelChangeListener);\n }", "title": "" }, { "docid": "61fd5575f4a809cb3acb88f8b0cc7786", "score": "0.6481098", "text": "@Override public void addComponentListener(ComponentListener componentListener)\n {\n hook().addComponentListener(componentListener);;\n }", "title": "" }, { "docid": "f7825f7d80952eef4e341dd0e39cd85e", "score": "0.6471731", "text": "public void init()\n {\n this.initializeComponents();\n this.addListeners();\n }", "title": "" }, { "docid": "942f0fcef3b41e0c628692dc874b29fe", "score": "0.64641666", "text": "@Override\n\tprotected void registerListener() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "3d57e8e58343b1a243e07ec10f6505df", "score": "0.64497054", "text": "protected void installListeners(JComponent c) {\r\n\t\tif ( (oMouseListener = createMouseListener( c )) != null ) {\r\n\t\t c.addMouseListener( oMouseListener );\r\n\t\t}\r\n\t\tif ( (oMouseMotionListener = createMouseMotionListener( c )) != null ) {\r\n\t\t c.addMouseMotionListener( oMouseMotionListener );\r\n\t\t}\r\n\t\tif ( (oKeyListener = createKeyListener( c )) != null ) {\r\n\t\t\t\tc.addKeyListener( oKeyListener );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1d0a1d1450a4700d3af891fadf96c609", "score": "0.6430464", "text": "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprivate void createListeners() {\n\t\teq = EventQueues.lookup(\"Product Change Queue\", EventQueues.DESKTOP, true);\n\t\teq.subscribe(new EventListener() {\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\tif(event.getName().equals(\"onSupplyChange\")) {\n\t\t\t\t\tsupplyList = (List<ProductMaterial>) event.getData();\n\t\t\t\t} else {\n\t\t\t\t\trawMaterialList = (List<ProductMaterial>) event.getData();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// agregamos un listener para cuando se seleccione una pieza en el modal de copia de otra pieza\n\t\teq = EventQueues.lookup(\"Piece Selection Queue\", EventQueues.DESKTOP, true);\n\t\teq.subscribe(new EventListener() {\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\tPiece value = (Piece) event.getData();\n\t\t\t\tfillPieceCopy(value);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "890f8305a40473398dfe3e578c42019c", "score": "0.64250034", "text": "public void addListeners() {\r\n\t\tundoManager.addPropertyChangeListener(e -> updateItems());\r\n\t\tupdateItems();\r\n\t}", "title": "" }, { "docid": "514ec96c03b4b956ebcfcc68b59c2932", "score": "0.64155716", "text": "@Override\n protected void addSubListeners() { }", "title": "" }, { "docid": "91515e387768f7dd2275dcefd085f2f8", "score": "0.6403578", "text": "@Override\n\tprotected void addListener() {\n\n\t}", "title": "" }, { "docid": "56e05d3ab2464f66671838bc87e680b9", "score": "0.6399253", "text": "public void addListeners() {\n\t\tb_startBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpanel.removeAll();\n\t\t\t\tcontent.removeAll();\n\t\t\t\tcontent.repaint();\n\t\t\t\tadd(panel);\n\t\t\t\tmodel.startSimulation();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "67bad5aa2405b3d5ed7d5914d856737f", "score": "0.63918954", "text": "private static void createListeners() {\n\t\t// mouse click listener\n\t\tmh = new MouseHandler();\n\t\t\n\t\tframe.addMouseMotionListener(mh);\n\t\tframe.addMouseWheelListener(mh);\n\t\tframe.addMouseListener(mh);\n\t\t\n\t\t// window listener (resize)\n\t\tframe.addComponentListener(new WindowHandler());\n\t\t\n\t\t// key press / release listener\n\t\tkbh = new KeyBoardHandler();\n\t\tframe.addKeyListener(kbh);\n\t}", "title": "" }, { "docid": "d0ecd01bc71b7f6f1810e1eda3af6dd2", "score": "0.6383827", "text": "private void AddInitListeners() {\r\n\t\tinitView.getManageB().addActionListener(e -> ApplyManageApp());\r\n\t\tinitView.getPlanB().addActionListener(e -> ApplyPlanApp());\r\n\t}", "title": "" }, { "docid": "b5925f93a257bf269f86f142baabb2a3", "score": "0.63803273", "text": "private void addListeners() {\n shieldRespawnInterval.addListener((observable, oldValue, newValue) -> {\n if (playShieldSound) {\n playFemaleSound(newValue);\n } else {\n playShieldSound = true;\n }\n });\n\n ddRespawnInterval.addListener((observable, oldValue, newValue) -> {\n if (playDDSound) {\n playMaleSound(newValue);\n } else {\n playDDSound = true;\n\n }\n });\n }", "title": "" }, { "docid": "e63d69d36839a2aca95937dfcae6413e", "score": "0.6371417", "text": "private void eventsComponents(){\n\t\tthis.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent event) {\n\t\t\t\tSystem.out.println(\"Clicou\");\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "68eb50aee6a839fc0d794cd4098e54b4", "score": "0.6367654", "text": "private void registerListeners() {\n try {\n mBarcodeManager.addReadListener(this);\n mBarcodeManager.addStartListener(this);\n mBarcodeManager.addStopListener(this);\n mBarcodeManager.addTimeoutListener(this);\n } catch (Exception e) {\n Log.e(TAG, \"Cannot add listener, the app won't work\");\n showMessage(\"ERROR! Check logcat\");\n finish();\n }\n }", "title": "" }, { "docid": "66abb873f45a7a4f098e58d72d89c79a", "score": "0.63599896", "text": "private void addListeners() { \n//\t\tEventManager.inst().registerForAll(EventType.CONSOLE_MESSAGE, new EventListener() {\n//\t\t\t@Override\n//\t\t\tpublic void onEvent(Event e) {\n//\t\t\t\tGameObject obj = (GameObject) e.getValue(\"object\");\n//\t\t\t\tString message = (String) e.getValue(\"message\");\n//\n//\t\t\t\tConsole console = _consoles.get(obj.getName());\n//\t\t\t\tString oldText = console.model.getHtml();\n//\t\t\t\tconsole.model.setHtml(oldText + message);\n//\t\t\t} \n//\t\t});\n//\t\t\n//\t\tEventManager.inst().registerForAll(EventType.CHANGE_CAMERA_FOLLOWING, new EventListener() { \n//\t\t\t@Override\n//\t\t\tpublic void onEvent(Event e) {\n//\t\t\t\tPhysicsObject oldObj = (PhysicsObject) e.getValue(\"previous-object\");\n//\t\t\t\tPhysicsObject newObj = (PhysicsObject) e.getValue(\"new-object\");\n//\t\t\t\t\n//\t\t\t\tlogger.debug(\"Were following: \" + oldObj.getName() + \" now following: \" + newObj.getName());\n//\t\t\t\t_consoles.get(oldObj.getName()).textArea.setVisible(false);\n//\t\t\t\t_consoles.get(newObj.getName()).textArea.setVisible(true);\n//\t\t\t} \n//\t\t});\n\t}", "title": "" }, { "docid": "3f78b40eaa7614bff1ea95ea4a914789", "score": "0.63498837", "text": "private void addListeners() {\n\t\t// add mouse listener\n\t\tthis.fileTree.addMouseListener(new myMouseListener());\n\n\t\t// add tree selection listener\n\t\tthis.fileTree.addTreeSelectionListener(new TreeSelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void valueChanged(TreeSelectionEvent e) {\n\t\t\t\t// theIDE.refreshMenuItemsAndButtons();\n\t\t\t\tActionFactory.broadcastStateChange(FilePanel.this.ideState);\n\t\t\t}\n\t\t});\n\t\t// tree expansion listener\n\t\tthis.fileTree.addTreeExpansionListener(new TreeExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void treeExpanded(TreeExpansionEvent event) {\n\t\t\t\t// theIDE.refreshMenuItemsAndButtons();\n\t\t\t\tActionFactory.broadcastStateChange(FilePanel.this.ideState);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void treeCollapsed(TreeExpansionEvent event) {\n\t\t\t\t// theIDE.refreshMenuItemsAndButtons();\n\t\t\t\tActionFactory.broadcastStateChange(FilePanel.this.ideState);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "6ec521077e4f60a17fc3c1f251f3ef11", "score": "0.6344733", "text": "protected void addListeners() {\n\t\tif (sendButton != null) {\n\t\t\tsendButton.setOnClickListener(sendClick);\n\t\t}\n\t}", "title": "" }, { "docid": "a74db4438b12de2c27d3c6cb5d2c85ca", "score": "0.63446975", "text": "private void adicListeners() {\r\n\t\ttxtCodCompra.addActionListener( this );\r\n\t\tbtSair.addActionListener( this );\r\n\t\tbtBuscar.addActionListener( this );\r\n\t\tbtGerar.addActionListener( this );\r\n\t\t\r\n\t\tbtExec.addActionListener( this );\r\n\t\tbtTodosItCompra.addActionListener( this );\r\n\t\tbtNenhumItCompra.addActionListener( this );\r\n\r\n\t\tlcCompra.addCarregaListener( this );\r\n\t\tlcFor.addCarregaListener( this );\r\n\t\ttxtCodCompra.addFocusListener( this );\r\n\t\t\r\n\t\t\r\n\t\tcbTipo.addComboBoxListener( this );\r\n\r\n\t\t//addWindowListener( this );\r\n\r\n\t}", "title": "" }, { "docid": "60f7d749189093f2154e622feec4e6d7", "score": "0.63371503", "text": "protected void hookListeners() {\n\t\tfileChooser.addModifyListener(new ModifyListener() {\n\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\thandleTextModified();\n\t\t\t}\n\n\t\t});\n\t}", "title": "" }, { "docid": "b2675b295c3eda9a29b364665e9e454a", "score": "0.6331402", "text": "private void setUpListener() {\n\n }", "title": "" }, { "docid": "3d8865c4bb8460956db6c9cfb3db8cba", "score": "0.6325381", "text": "private void setupListeners() {\n final Process process = debugger.getProcess();\n\n for (final Thread thread : process.getThreads()) {\n thread.addListener(threadListener);\n }\n }", "title": "" }, { "docid": "e6618afbec0d1634043e58348646b053", "score": "0.63025874", "text": "protected void hookListeners() {\n\t\t\n\t\tdestinationButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tDirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.SAVE);\n\t\t\t\tdialog.setText(\"Destination directory\");\n\t\t\t\tdialog.setMessage(\"Select a destination directory for the CASE tool\");\n\t\t\t\tString res = dialog.open();\n\t\t\t\tif (res != null) {\n\t\t\t\t\tdestinationText.setText(res);\n\t\t\t\t\tdestination = res;\n\t\t\t\t\tenableOkButton();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tproductRootText.addModifyListener(new ModifyListener() {\n\t\t\t\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\t\n\t\t\t\tproductRoot = productRootText.getText();\n\t\t\t\t\n\t\t\t\tenableOkButton();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "93251b15b5e243a874339e6ad30596e7", "score": "0.629153", "text": "protected abstract void hookCustomListeners();", "title": "" }, { "docid": "542491db2957f07a5397545970f20243", "score": "0.6285454", "text": "private void addUIListeners() {\n\t\tHashMap<String, EventListener> listeners = new HashMap<String, EventListener>();\n\n\t\tif (robotTerminalUI instanceof RTManageUI) {\n\t\t\tlisteners.put(\"robDrop\", new RobDropListener());\n\t\t\tlisteners.put(\"infDrop\", new InfDropListener());\n\t\t\tlisteners.put(\"import\", new ImportListener());\n\t\t\tlisteners.put(\"export\", new ExportListener());\n\t\t\tlisteners.put(\"apply\", new ApplyListener());\n\t\t\tlisteners.put(\"back\", new NavToMainListener());\n\t\t\trobotTerminalUI.addListeners(listeners);\n\t\t} else if (robotTerminalUI instanceof RTConstrUI) {\n\t\t\tlisteners.put(\"rcDropDown\", new RCDropListener());\n\t\t\tlisteners.put(\"constr\", new ConstructListener());\n\t\t\tlisteners.put(\"back\", new NavToMainListener());\n\t\t\trobotTerminalUI.addListeners(listeners);\n\t\t} else if (robotTerminalUI instanceof RTMainUI) {\n\t\t\tlisteners.put(\"constr\", new NavToConstrListener());\n\t\t\tlisteners.put(\"manage\", new NavToManageListener());\n\t\t\trobotTerminalUI.addListeners(listeners);\n\t\t} else if (robotTerminalUI instanceof RTInactiveUI) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.println(\"Unsuccessfully tried to add Listeners to \" + robotTerminalUI.getClass()\n\t\t\t\t\t + \". Modify RobotTerminalController.addUIListeners to handle \" \n\t\t\t\t\t + robotTerminalUI.getClass()\n\t\t\t\t\t + \".\");\n\t\t}\n\t}", "title": "" }, { "docid": "003ef63dfcf00eff9fd4e182879381d3", "score": "0.62719274", "text": "private void registerEvents() {\n PluginManager pluginManager = getServer().getPluginManager();\n\n // Register events\n pluginManager.registerEvents(new PlayerListener(), this);\n }", "title": "" }, { "docid": "3a04a956491c25d4280c0290d8b32854", "score": "0.62587535", "text": "protected abstract void setListeners();", "title": "" }, { "docid": "53a07e6314c20da9600d3d1d1f139874", "score": "0.6248865", "text": "private void performContainerLifecycleEvents() {\n standardBeanManager.discoverExtensions();\n standardBeanManager.discoverObserverMethods();\n standardBeanManager.fireBeforeBeanDiscoveryEvent();\n }", "title": "" }, { "docid": "1df12da7a3539e1ee5f4b8abce22aa7e", "score": "0.6242148", "text": "public void addListeners()\n {\n enter.addActionListener(this);\n withdraw.addActionListener(this);\n deposit.addActionListener(this);\n createAccount.addActionListener(this);\n removeAccount.addActionListener(this);\n getBalance.addActionListener(this);\n transfer.addActionListener(this);\n newSession.addActionListener(this);\n }", "title": "" }, { "docid": "461f3fc73ecd728d1c5fe4584a7b64c7", "score": "0.6231135", "text": "private void initializeListeners() {\r\n\t\tClass<?> clazz = this.getClass();\r\n\t\tClass<?>[] paramTypes = {String.class};\r\n\r\n\t\tString remoteShowPossibilityMethod = \"showPossibility\";\r\n\r\n\t\ttry {\r\n\t\t\r\n\t\t\tMethod showPossibilityMethod = clazz.getMethod(remoteShowPossibilityMethod, paramTypes);\r\n\t\t\tthis.addActionListener(new SudokuEventHandler(showPossibilityMethod,this));\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\tlogger.error(\"Could not find the \"+remoteShowPossibilityMethod+\" Method Exiting...\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a1c52ca2cc8c6269f4f295884f4fa8ca", "score": "0.6216611", "text": "private void addListeners() {\n this.tree.getSelectionModel().addTreeSelectionListener(this.controller::treeClicked);\n }", "title": "" }, { "docid": "49a38a3534f6dfbb25c3329b35e3c674", "score": "0.62103", "text": "protected final void addConfigurationOnComponents() {\n\t\t\n\t\tfinal String methodName = \"addConfigurationOnComponents\";\n\t\tGUILogger.entering(CLASS_NAME, methodName);\n\t\t\n\t\tfinal ConnectToDatabaseListener connectToDBListener =\n\t\t\t\tnew ConnectToDatabaseListener(this);\n\t\t\n\t\tsetTitle(GUIMessages.CONNECT_TO_DATABASE_TEXT);\n\t\t\n\t\tsetServerLocationLabelText(GUIMessages.DATABASE_LOCATION_LABEL_TEXT);\n\t\t\n\t\tsetServerLocationTextField(readDatabasePath());\n\t\taddDocumentListenerToDBServerTextField(connectToDBListener);\n\t\t\n\t\tremovePortSection();\n\t\t\n\t\tsetStatusLabelText(GUIMessages.CONNECT_TO_DATABASE_STATUS_MESSAGE);\n\t\t\n\t\tsetPrimaryServerButtonText(GUIMessages.CONNECT_TO_DATABASE_TEXT, \n\t\t\t\tKeyEvent.VK_D);\n\t\taddListenerToPrimaryServerButton(connectToDBListener);\n\t\t\n\t\tfinal ExitServerListener exitWindowListener = new ExitServerListener();\n\t\t\n\t\tsetSecondaryServerButtonText(GUIMessages.EXIT_TEXT, KeyEvent.VK_E);\n\t\taddListenerToSecondaryServerButton(exitWindowListener);\n\t\t\n\t\taddWindowListener(exitWindowListener);\n\t\t\n\t\tconnectToDBListener.insertUpdate(null);\n\t\t\n\t\tGUILogger.exiting(CLASS_NAME, methodName);\n\t\t\n\t}", "title": "" }, { "docid": "cc99deaba1c275e31a2cf2ddf198f390", "score": "0.6202157", "text": "public void addWidgetListener() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5cf67b73b6049aff96781d05f3684b9a", "score": "0.61968166", "text": "public void onAddComponent(Container component) {\n\t\t\r\n\t}", "title": "" }, { "docid": "10fd2d627806de551d858d4ad07a2bf8", "score": "0.61725086", "text": "private void assignListeners()\n {\n // Get the start screen to add this controller as action\n // listener to the buttons.\n view.getStartScreen().addActionListenerToStartButton(this);\n view.getStartScreen().addActionListenerToQuitButton(this);\n view.getStartScreen().addActionListenerToEditorButton(this);\n \n // Get the field to add this controller as KeyListener\n view.getField().addKeyListener(this);\n \n // Get the level editor to add this controller as ItemListener\n // to the drop down list\n view.getLevelEditor().addItemListenerToSelectios(this);\n \n // Get the level editor to add this controller as MouseListener\n // to the field\n view.getLevelEditor().addMouseListenerToField(this);\n \n view.getLevelEditor().addActionListenerToSelectioButtons(this);\n \n view.getLevelEditor().addListSelectionListenerToSelection(this);\n }", "title": "" }, { "docid": "76e1d4d89a3101224850455445e3b106", "score": "0.61692023", "text": "private void initListeners()\n {\n maintenanceActivityInfoView.getjCloseConnectionLabel().addMouseListener(new java.awt.event.MouseAdapter()\n {\n @Override\n public void mouseClicked(java.awt.event.MouseEvent evt)\n {\n try\n {\n closeConnection();\n }\n catch (SQLException ex)\n {\n System.err.println(ex.getMessage());\n }\n maintenanceActivityInfoView.dispose();\n MainController.openLoginPage();\n } \n });\n \n maintenanceActivityInfoView.getjExitLabel().addMouseListener(new java.awt.event.MouseAdapter()\n {\n @Override\n public void mouseClicked(java.awt.event.MouseEvent evt)\n {\n System.exit(0);\n } \n });\n \n maintenanceActivityInfoView.getjGoBackLabel().addMouseListener(new java.awt.event.MouseAdapter()\n {\n public void mouseClicked(java.awt.event.MouseEvent evt)\n {\n goBackSelectMaintenanceActivityView();\n maintenanceActivityInfoView.dispose();\n }\n }); \n\n maintenanceActivityInfoView.getjForwardPanel().addMouseListener(new java.awt.event.MouseAdapter()\n {\n @Override\n public void mouseClicked(java.awt.event.MouseEvent evt)\n {\n openActivityAssignmentPage();\n maintenanceActivityInfoView.dispose();\n } \n }); \n }", "title": "" }, { "docid": "589269ad1c7f3878cf514e9f5099f0de", "score": "0.61541134", "text": "@PostConstruct\n\tpublic void init()\n\t\t{\n\t\tconfigService.addListener(this);\n\t\tlinkService.addListener(this);\n\t\tconfigChanged();\n\t\t}", "title": "" }, { "docid": "0a416668716209001111636e60bc6430", "score": "0.6153988", "text": "private void configureLifecycle()\n {\n LifecycleFactory lifecycleFactory\n = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);\n \n //Lifecycle lifecycle = lifecycleFactory.getLifecycle(getLifecycleId());\n for (Iterator<String> it = lifecycleFactory.getLifecycleIds(); it.hasNext();)\n {\n Lifecycle lifecycle = lifecycleFactory.getLifecycle(it.next());\n \n // add phase listeners\n for (String listenerClassName : getDispenser().getLifecyclePhaseListeners())\n {\n try\n {\n lifecycle.addPhaseListener((PhaseListener)\n ClassUtils.newInstance(listenerClassName, PhaseListener.class));\n }\n catch (ClassCastException e)\n {\n log.severe(\"Class \" + listenerClassName + \" does not implement PhaseListener\");\n }\n }\n\n // if ProjectStage is Development, install the DebugPhaseListener\n FacesContext facesContext = FacesContext.getCurrentInstance();\n if (facesContext.isProjectStage(ProjectStage.Development) &&\n MyfacesConfig.getCurrentInstance(facesContext.getExternalContext()).isDebugPhaseListenerEnabled())\n {\n lifecycle.addPhaseListener(new DebugPhaseListener());\n }\n }\n }", "title": "" }, { "docid": "a4f88d2e999a6e855cbb141db6e5b2c4", "score": "0.6147158", "text": "private void hookListeners() {\n draggableView.setDraggableListener(new DraggableListener() {\n @Override public void onMaximized() {\n updateActionBarTitle();\n }\n\n @Override public void onMinimized() {\n updateActionBarTitle();\n }\n\n @Override public void onClosedToLeft() {\n resetActionBarTitle();\n }\n\n @Override public void onClosedToRight() {\n resetActionBarTitle();\n }\n });\n }", "title": "" }, { "docid": "c6822cf1b53d1e311e63012a551a2e6a", "score": "0.61383855", "text": "void registerEventListeners(String configurator, EventListener... eventListeners);", "title": "" }, { "docid": "53b7bf3c0b9c5c8133462c74b282af4a", "score": "0.6136234", "text": "private void setInstanceListeners() {\n }", "title": "" }, { "docid": "53b7bf3c0b9c5c8133462c74b282af4a", "score": "0.6136234", "text": "private void setInstanceListeners() {\n }", "title": "" }, { "docid": "811ed94a4b978bb35e65d6bb23325971", "score": "0.61209387", "text": "@Override\n public void initListener() {\n\n }", "title": "" }, { "docid": "29e3627f21db52de255efd7d362b9726", "score": "0.6113996", "text": "private void notifyStartedListeners() {\r\n\t\t\tObject[] listeners = eventListeners.toArray();\r\n\t\t\tfor (Object listener : listeners) {\r\n\t\t\t\t((IOpendfEventListener) listener).handleStartedEvent();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "7c3d21701150f082c664d5a2c1776188", "score": "0.6113259", "text": "private void configurarListeners() {\n botAceptar.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) { aceptar(); }});\n botCancelar.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) { cancelar(); }});\n botSelecLibros.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) { seleccionarLibros(); }});\n }", "title": "" }, { "docid": "cffa53d6c8a3083ff3951a8ff8563088", "score": "0.6112583", "text": "@Override\n\tpublic void notifyListeners() {\n\t\t\n\t}", "title": "" }, { "docid": "74dcb1c970c17009b03f0b8354f3317b", "score": "0.61058706", "text": "private void addHistoryAndShellListeners() {\n /*\n * Listener for updating the history list.\n */\n final IHistoryListener historyListener = new IHistoryListener() {\n\n @Override\n public void historyListUpdated() {\n VizApp.runAsync(new Runnable() {\n\n /*\n * (non-Javadoc)\n * \n * @see java.lang.Runnable#run()\n */\n @Override\n public void run() {\n String[] labels = HistoryList.getInstance().getLabels();\n if (!dataList.isDisposed()) {\n dataList.setItems(labels);\n }\n }\n });\n }\n };\n\n HistoryList.getInstance().addHistoryListener(historyListener);\n\n /*\n * Add Copy Out change listener\n */\n final ProcedureComm.ICopyOutStateChangeListener changeListener = new ProcedureComm.ICopyOutStateChangeListener() {\n\n @Override\n public void copyOutStateChange() {\n VizApp.runAsync(new Runnable() {\n\n @Override\n public void run() {\n if (!copyOutBtn.isDisposed()) {\n copyOutBtn.setEnabled(ProcedureComm.getInstance()\n .getCopyListenerCount() > 0);\n }\n }\n });\n }\n };\n\n ProcedureComm.getInstance().addCopyOutStateListener(changeListener);\n\n /*\n * Add a listener for when the shell closes.\n */\n shell.addShellListener(new ShellAdapter() {\n\n @Override\n public void shellClosed(ShellEvent arg0) {\n\n HistoryList.getInstance()\n .removeHistoryListener(historyListener);\n ProcedureComm.getInstance().removeCopyOutStateListener(\n changeListener);\n }\n });\n }", "title": "" }, { "docid": "f3e790e23a09496ff12d502ac37bdf66", "score": "0.6081697", "text": "public void init() {\n\t\taddMouseListeners();\n\t}", "title": "" }, { "docid": "3eef406d9ba90b3079bd291340f96e13", "score": "0.60749316", "text": "@Override\r\n\tpublic void initListener() {\n\r\n\t}", "title": "" }, { "docid": "22974cb593ef3c8c9c64f3521c3cca69", "score": "0.60623324", "text": "private void init() {\r\n\r\n\t\t// EventsListener eintragen\r\n\t\tview.registerEventListener(this);\r\n\t}", "title": "" }, { "docid": "7128e21e5fb3caf0860ff0991b32157e", "score": "0.6059302", "text": "private synchronized void informListeners() {\n\t\tGuiEvent ge = new GuiEvent(this, id, textId, eat);\n\t\tfor(GuiListener gl : listenerList) {\n\t\t\tgl.eventReceived(ge);\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "555463744a0c75b8f2e902e79d7282e8", "score": "0.60557705", "text": "private void setupEvents() {\r\n\t\t// when the user checks/unchecks the Discount box, inform the shopping cart\r\n\t\tActionListener listener = new ScheduleButtonListener();\r\n\t\tadd.addActionListener(listener);\r\n\t\tdrop.addActionListener(listener);\r\n\t\tsave.addActionListener(listener);\r\n\t\tListSelectionListener selection = new ScheduleSelectionListener();\r\n\t\tif (SELECTION_ENABLING) {\r\n\t\t\tscheduleTable.getSelectionModel().addListSelectionListener(selection);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "31f4dd780df98ed634a920bf76c65f36", "score": "0.6047703", "text": "private void setupListeners(){\n\t\t// ADD YOUR LISTENERS\n\t\tmyButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent mouseClick) {\n\t\t\t\tchangeColor();\n\t\t\t}\n\t\t});\t\t\n\t}", "title": "" }, { "docid": "b462348d3710c2ba8cfafc6e1cbe6c0e", "score": "0.6045103", "text": "public void setListeners(){\r\n\t\t//sets the arrow color direct menu item listener\r\n\t\t_arrowColorDirectMenuItem.addActionListener(new AcideInsertedItemListener(\r\n\t\t\t\tAcideMenuItemsConfiguration.getInstance()\r\n\t\t\t\t.getSubmenu(AcideConfigurationMenu.CONFIGURATION_MENU_NAME)\r\n\t\t\t\t.getSubmenu(AcideGraphPanelMenu.GRAPH_MENU_NAME)\r\n\t\t\t\t.getSubmenu(ARROW_COLOR_MENU_NAME)\r\n\t\t\t\t.getItem(ARROW_COLOR_DIRECT)));\r\n\t\t//sets the arrow color inverse menu item listener\r\n\t\t_arrowColorInverseMenuItem.addActionListener(new AcideInsertedItemListener(\r\n\t\t\t\tAcideMenuItemsConfiguration.getInstance()\r\n\t\t\t\t.getSubmenu(AcideConfigurationMenu.CONFIGURATION_MENU_NAME)\r\n\t\t\t\t.getSubmenu(AcideGraphPanelMenu.GRAPH_MENU_NAME)\r\n\t\t\t\t.getSubmenu(ARROW_COLOR_MENU_NAME)\r\n\t\t\t\t.getItem(ARROW_COLOR_INVERSE)));\r\n\t}", "title": "" }, { "docid": "b6f8598b2e20dedc12d79e0314ae1865", "score": "0.6038864", "text": "private void addListeners(){\n srl_items.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n if (auth != null && auth.getTokenType().equals(\"bearer\")) {\n // Authenticate API requests with bearer token\n getTweets(auth.getAccessToken());\n }else{\n getAuth();\n }\n }\n });\n }", "title": "" }, { "docid": "47935627e9b05053583141558570436c", "score": "0.6030012", "text": "@Override\n public void registerDefaultEvents() {\n }", "title": "" }, { "docid": "634f2484884df92b4fd9577ed5a2d770", "score": "0.6022913", "text": "private void addListeners() {\r\n\t\tmyTherapistUpdateBtn = new JButton(\"Update\");\r\n\t\tmyTherapistUpdateBtn.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateTherapistDB();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmyTherapistDeleteBtn = new JButton(\"Delete\");\r\n\t\tmyTherapistDeleteBtn.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdeleteTherapistDB();\r\n\t\t\t}\r\n\t\t});\r\n\t\tadd(myTherapistUpdateBtn, ParagraphLayout.NEW_PARAGRAPH);\r\n\t\tadd(myTherapistDeleteBtn);\r\n\r\n\t}", "title": "" }, { "docid": "2381c6abd38309423c41654ffd9709f5", "score": "0.6008354", "text": "void addJComboListeners() {\n\t\tbSimC.addActionListener(this);\r\n\t}", "title": "" }, { "docid": "61f30fa8283e1b8045eeb96e5e0093e3", "score": "0.6001321", "text": "@Override\n\tpublic void initListener() {\n\t\t\n\t}", "title": "" }, { "docid": "63c680accb5ee942a24002240edc4939", "score": "0.5991207", "text": "private void initListeners(){\n /* initialize the listener to the Register Button */\n appCompatButtonRegister.setOnClickListener(this);\n /* initialize the listener to the login page */\n appCompatTextViewLoginLink.setOnClickListener(this);\n }", "title": "" }, { "docid": "120d7f4d9d45bb2027085876a6fc0c78", "score": "0.59904563", "text": "private void addListeners(DefaultMutableTreeNode componentNode) {\n\t\tComponent c = (Component) componentNode.getUserObject();\n\t\tc.addHierarchyListener(hierarchyListener);\n\t\tc.addMouseListener(mouseListener);\n\t\tc.addMouseMotionListener(mouseListener);\n\t\tfor (int a = 0; a < componentNode.getChildCount(); a++) {\n\t\t\taddListeners((DefaultMutableTreeNode) componentNode.getChildAt(a));\n\t\t}\n\t\tif (c instanceof Container)\n\t\t\t((Container) c).addContainerListener(containerListener);\n\t}", "title": "" }, { "docid": "e741af40453ec434c29ee55cfd4fe95b", "score": "0.598076", "text": "private void registerEverything() {\r\n\r\n // Set the button images and stuff\r\n displayUI();\r\n\r\n // Register Button Clicks\r\n registerButtonClickListeners();\r\n\r\n // Register the Broadcast Receiver\r\n registerBroadcastReceiver();\r\n\r\n // Registering for Swipe events\r\n registerForSwipeEvents();\r\n\r\n }", "title": "" }, { "docid": "6a1672e3671093fe955c0e1d705b2b2f", "score": "0.59758186", "text": "private void attachListenersToComponents() {\n\n\t\t/**\n\t\t * Attach keyListener to SearchText. When user type return, it\n\t\t * automatically search and show the definition of the word typed in\n\t\t */\n\t\tSearchText.addKeyListener(new KeyListener() {\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t// do nothing\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t// do nothing\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER) {\n\t\t\t\t\tview.updateDefinitions(SearchText.getText());\n\t\t\t\t\tif (model.isInWordsNote(SearchText.getText())) {\n\t\t\t\t\t\taddWordsButton.setEnabled(false);\n\t\t\t\t\t\tremoveWordsButton.setEnabled(true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\taddWordsButton.setEnabled(true);\n\t\t\t\t\t\tremoveWordsButton.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t\tif (model.searchWord(SearchText.getText()) == null) {\n\t\t\t\t\t\taddWordsButton.setEnabled(false);\n\t\t\t\t\t\tMWSynonymButton.setEnabled(false);\n\t\t\t\t\t\ttranslateButton.setEnabled(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tMWSynonymButton.setEnabled(true);\n\t\t\t\t\t\ttranslateButton.setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t\tbackButton.setEnabled(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Attach ActionListener to searchButton. When user click Search, the\n\t\t * definitions of the word will show\n\t\t */\n\t\tsearchButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tview.updateDefinitions(SearchText.getText());\n\t\t\t\tif (model.isInWordsNote(SearchText.getText())) {\n\t\t\t\t\taddWordsButton.setEnabled(false);\n\t\t\t\t\tremoveWordsButton.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\taddWordsButton.setEnabled(true);\n\t\t\t\t\tremoveWordsButton.setEnabled(false);\n\t\t\t\t}\n\t\t\t\tif (model.searchWord(SearchText.getText()) == null) {\n\t\t\t\t\taddWordsButton.setEnabled(false);\n\t\t\t\t\tMWSynonymButton.setEnabled(false);\n\t\t\t\t\ttranslateButton.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tMWSynonymButton.setEnabled(true);\n\t\t\t\t\ttranslateButton.setEnabled(true);\n\t\t\t\t}\n\t\t\t\tbackButton.setEnabled(false);\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Attach ActionListener to wordsNoteButton. When the user click the\n\t\t * wordsNote, a list of words stored will show in the left side\n\t\t */\n\t\twordsNoteButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tview.showWordsNote();\n\t\t\t\taddWordsButton.setEnabled(false);\n\t\t\t\tremoveWordsButton.setEnabled(false);\n\t\t\t\ttranslateButton.setEnabled(false);\n\t\t\t\tMWSynonymButton.setEnabled(false);\n\t\t\t\tbackButton.setEnabled(false);\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Attach ActionListener to backButton. After the user get the Chinese\n\t\t * translation or thesaurus of a word, the user can get back to the\n\t\t * initial definitions of the word by clicking the back button.\n\t\t */\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tview.backToDefinitions();\n\t\t\t\tbackButton.setEnabled(false);\n\t\t\t\ttranslateButton.setEnabled(true);\n\t\t\t\tMWSynonymButton.setEnabled(true);\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Attach ActionListener to translateButton. To show the Chinese\n\t\t * definition of an English word\n\t\t */\n\t\ttranslateButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tview.updateTranslation();\n\t\t\t\tMWSynonymButton.setEnabled(true);\n\t\t\t\ttranslateButton.setEnabled(false);\n\t\t\t\tbackButton.setEnabled(true);\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Attach ActionListener to MWSynonymButton. To show the thesaurus of a\n\t\t * word.\n\t\t */\n\t\tMWSynonymButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tview.updateThesaurus();\n\t\t\t\ttranslateButton.setEnabled(true);\n\t\t\t\tMWSynonymButton.setEnabled(false);\n\t\t\t\tbackButton.setEnabled(true);\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Attach ActionListener to addWordsButton. It will add current word\n\t\t * into wordsNote stored in local database.\n\t\t */\n\t\taddWordsButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmodel.addToWordsNote(view.getSelectedWord());\n\t\t\t\taddWordsButton.setEnabled(false);\n\t\t\t\tremoveWordsButton.setEnabled(true);\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Attach ActionListener to removeWordsButton. If the current word is in\n\t\t * wordsNote, user is able to choose to remove it.\n\t\t */\n\t\tremoveWordsButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmodel.removeFromWordsNote(view.getSelectedWord());\n\t\t\t\tremoveWordsButton.setEnabled(false);\n\t\t\t\taddWordsButton.setEnabled(true);\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Attach DocumenListener to SearchText. Each time when user type in or\n\t\t * delete a single character, the list of recommend words will get\n\t\t * updated by using the typed string as prefix of words.\n\t\t */\n\t\tSearchText.getDocument().addDocumentListener(new DocumentListener() {\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\tview.updateWords(SearchText.getText());\n\t\t\t\t// System.out.println(\"insert: \" + SearchText.getText());\n\t\t\t\tsearchButton.setEnabled(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\tview.updateWords(SearchText.getText());\n\t\t\t\t// System.out.println(\"remove: \" + SearchText.getText());\n\t\t\t\tif (SearchText.getText().length() == 0) {\n\t\t\t\t\tsearchButton.setEnabled(false);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\tview.updateWords(SearchText.getText());\n\t\t\t}\n\t\t});\n\n\t\tJList<String> wordsList = view.getWordsList();\n\n\t\t/**\n\t\t * Attach ListSelectionListenr to wordsList. When the user select a word\n\t\t * showed, the definitions of it will automatically display.\n\t\t */\n\t\twordsList.addListSelectionListener(new ListSelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e.getValueIsAdjusting() == false) {\n\t\t\t\t\tif (wordsList.getSelectedIndex() != -1) {\n\t\t\t\t\t\tString wordStr = wordsList.getSelectedValue();\n\t\t\t\t\t\tview.updateDefinitions(wordStr);\n\t\t\t\t\t\tbackButton.setEnabled(false);\n\t\t\t\t\t\tif (model.isInWordsNote(wordStr)) {\n\t\t\t\t\t\t\taddWordsButton.setEnabled(false);\n\t\t\t\t\t\t\tremoveWordsButton.setEnabled(true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\taddWordsButton.setEnabled(true);\n\t\t\t\t\t\t\tremoveWordsButton.setEnabled(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tMWSynonymButton.setEnabled(true);\n\t\t\t\t\t\ttranslateButton.setEnabled(true);\n\t\t\t\t\t\tbackButton.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" } ]
211749f8428fd6fc418845763a1ffce1
It calculates the eCPM(Effective Cost Per Thousand)
[ { "docid": "413a95b82b6916e2ee805d8f9be824c1", "score": "0.60099655", "text": "public static BigDecimal calculateECPM(BigDecimal revenue, BigInteger impressions) {\n\t\tBigDecimal impressions_bigdecimal = new BigDecimal(impressions);\n\t\treturn revenue.multiply(BigDecimal.valueOf(1000)).divide(impressions_bigdecimal, 2, RoundingMode.CEILING);\n\n\t}", "title": "" } ]
[ { "docid": "02bcbdff7d7b09e55c9ace0e4929230b", "score": "0.7459414", "text": "private double calcuCMetric() {\n\t\treturn (p-1)/fcost;\n\t}", "title": "" }, { "docid": "64208590afe7248dbd9ce57c18734df4", "score": "0.6789974", "text": "public void calculateCost()\n\t{\n\t\tLogManager lgmngr = LogManager.getLogManager(); \n\t\tLogger log = lgmngr.getLogger(Logger.GLOBAL_LOGGER_NAME);\n\t\tString s = \"\";\n\t\tint costperfeet = 0;\n\t\tif (this.materialStandard.equals(\"standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1200;\n\t\telse if (this.materialStandard.equals(\"above standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1500;\n\t\telse if(this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1800;\n\t\telse if (this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == true)\n\t\t\tcostperfeet = 2500;\n\t\t\n\t\tint totalCost = costperfeet * this.totalArea;\n\t\t/*s = \"Total Cost of Construction is :- \";\n\t\twriter.printf(\"%s\" + totalCost, s);\n\t\twriter.flush();*/\n\t\tlog.log(Level.INFO, \"Total Cost of Construction is :- \" + totalCost);\n\t}", "title": "" }, { "docid": "13b50679c555db5dd4e1d34ca238d91b", "score": "0.6631728", "text": "public void compute(){\r\n\r\n\t\ttotalCost=(capAmount*CAPCOST)+(hoodyAmount*HOODYCOST)+(shirtAmount*SHIRTCOST);\r\n\t}", "title": "" }, { "docid": "f168326a8979e0a15a0e5688bf767514", "score": "0.65249383", "text": "float getCpMultiplier();", "title": "" }, { "docid": "1af9bb6dcb8023205b48ec3b4544b500", "score": "0.6508943", "text": "double getTotalCost();", "title": "" }, { "docid": "4b79c973c208f5e4e94b4c91ac6b3cd1", "score": "0.65046704", "text": "private double calcuFcost() {\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('t');\n\t}", "title": "" }, { "docid": "72759e23fdbc6f3b944cffd84f786b07", "score": "0.64389807", "text": "@Override\n\tpublic double cost() {\n\t\treturn 10000;\n\t}", "title": "" }, { "docid": "69125776fedc33cf08070000079d0c2c", "score": "0.63265616", "text": "@Override\n public double getCost() {\n\t return 13;\n }", "title": "" }, { "docid": "9fc997c607c7841f8066702b1bb85a6d", "score": "0.63246495", "text": "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "title": "" }, { "docid": "6ff1480fc91a9d88e44b2a5ae9460438", "score": "0.6309712", "text": "double getCost();", "title": "" }, { "docid": "6ff1480fc91a9d88e44b2a5ae9460438", "score": "0.6309712", "text": "double getCost();", "title": "" }, { "docid": "af8b35312602fca6c058db3481466ee8", "score": "0.6292694", "text": "double compute() {\r\ndouble b, e;\r\nb = (1 + rateOfRet/compPerYear);\r\ne = compPerYear * numYears;\r\nreturn principal * Math.pow(b, e);\r\n}", "title": "" }, { "docid": "bef35e18f7ee1aced946dc7795a7b9bc", "score": "0.6290104", "text": "float getCostReduction();", "title": "" }, { "docid": "e0dc0522d02bb6c265d5b4ba2832353d", "score": "0.62710345", "text": "public double calcCost() {\n // $2 per topping.\n double cost = 2 * (this.cheese + this.pepperoni + this.ham);\n // size cost\n switch (this.size) {\n case \"small\":\n cost += 10;\n break;\n case \"medium\":\n cost += 12;\n break;\n case \"large\":\n cost += 14;\n break;\n default:\n }\n return cost;\n }", "title": "" }, { "docid": "b042666952a906383d79229d645f653d", "score": "0.62695104", "text": "private void calculateCosts() {\r\n lb_CubicSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_Volume)) + \" €\");\r\n lb_MaterialCostSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_Price)) + \" €\");\r\n lb_CuttingTimeSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingHours)) + \" €\");\r\n lb_CuttingCostSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingPrice)) + \" €\");\r\n lb_TotalCosts.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingPrice) + getColmunSum(tc_Price)) + \" €\");\r\n\r\n ModifyController.getInstance().setProject_constructionmaterialList(Boolean.TRUE);\r\n }", "title": "" }, { "docid": "a6c8dd7833d00d1b5c5e0f2b8953325a", "score": "0.62470627", "text": "public double getCost() {\n\t\treturn 1.25;\n\t}", "title": "" }, { "docid": "5bffcfdb51b8a1c38af926c496ba8e69", "score": "0.6230883", "text": "public static void calculatePersistentCSMACD() {\n ArrayList <Integer> arrivalRate = new ArrayList<Integer>();\n arrivalRate.add(7);\n arrivalRate.add(10);\n arrivalRate.add(20);\n double transmissionTime;\n for (int rate: arrivalRate) {\n System.out.printf(\"The values for a persistent CSMACD simulation with packet arrival rate of %d. (Number of nodes, efficiency, throughput(bps), throughput(mbps) %n\", rate);\n //Set transmission time for TA simulation so it doesnt take too long, we checked to see if the results are within +/- 5% in our report\n for (int nodes = 20; nodes <= 100; nodes += 20) {\n if(nodes > 60 && rate >= 10 ){\n transmissionTime = 100;\n } else if (rate == 20) {\n transmissionTime = 100;\n } else{\n transmissionTime = 1000;\n }\n Persistent persistentCSMACD = new Persistent(nodes, rate, 1000000, 1500, 10, 200000000, transmissionTime);\n persistentCSMACD.initalizeNodes();\n persistentCSMACD.startSimulation();\n persistentCSMACD.calculateEfficiency();\n }\n }\n\n }", "title": "" }, { "docid": "08c1035b34db8bf768cfa7425d927148", "score": "0.6170323", "text": "double ComputeCost(double order, double tipPercent, double serviceRating, double foodRating)\r\n {\r\n // kazda gwiazdka to 2 procent od sumy zamówienia\r\n return order + order * (tipPercent/100) + (serviceRating * 0.02) * order + (foodRating * 0.02) * order;\r\n }", "title": "" }, { "docid": "0a82e87e5cdfb7ccc17b49b25eb51904", "score": "0.616539", "text": "public double getCEMENTAmount();", "title": "" }, { "docid": "d77bae1681b47410f84c5171762255ba", "score": "0.6149198", "text": "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "title": "" }, { "docid": "6e3b7461a7a5e4b8e96fba55f7a83bad", "score": "0.61362004", "text": "public int getCost()\r\n\t{\n\t\treturn 70000;\r\n\t}", "title": "" }, { "docid": "3feba94099cd1184a9b4c478a202ee0b", "score": "0.6130498", "text": "double calculateCost() {\n double cost = 0;\n InspectionDTO[] DTOArray = this.currentInspectionChecklist.inspectionDTOArray;\n for (int i = 0; i <= DTOArray.length - 1; i++) {\n cost += DTOArray[i].getCost();\n }\n return cost;\n }", "title": "" }, { "docid": "0665a1b4d03cb12b72e2a5e20b495a73", "score": "0.61229473", "text": "public double getCost()\n\t{\n\t\treturn 0.9;\n\t}", "title": "" }, { "docid": "c72a799ed6b8cdd7193c487d3e47b281", "score": "0.6116789", "text": "@Override\n\tpublic int cost() {\n\t\treturn 5000;\n\t}", "title": "" }, { "docid": "d7f3f14f009b01856a7453995803e28a", "score": "0.61037433", "text": "private void computeMultiClassMCC(ConfusionMatrixElement[] elements) {\n\t\tdouble Sq = matrixTotal * matrixTotal;\n\t\tdouble CS = Arrays.stream(elements).map(n -> n.tp).reduce(0.0d, (n, m) -> n + m) * matrixTotal;\n\t\tdouble t = 0.0d, p = 0.0d, tt = 0.0d, pp = 0.0d, tp = 0.0d;\n\t\t\n\t\tfor (ConfusionMatrixElement e : elements) {\n\t\t\tt = (e.tp + e.fp); \n\t\t\tp = (e.tp + e.fn);\n\t\t\t\n\t\t\ttt += (t * t);\n\t\t\tpp += (p * p);\n\t\t\ttp += (t * p);\n\t\t}\n\t\tmatrixMCC = (CS - tp) / (Math.sqrt(Sq - pp) * Math.sqrt(Sq - tt));\n\t}", "title": "" }, { "docid": "ec3892b50b4368b93587732db82cc5b0", "score": "0.60898376", "text": "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "title": "" }, { "docid": "a2b4ccd459c0d250d51780fda22b1268", "score": "0.6071", "text": "@Override\n\tpublic double calcConsumedEnergy() {\n\t\treturn (getBasicEnergyCost() * 4);\n\t}", "title": "" }, { "docid": "c7d33e04f06591d3d263227ab7b7a776", "score": "0.60625494", "text": "private int calculatePrice() {\n int price = numberOfCoffees * 5;\n\n return price;\n\n\n }", "title": "" }, { "docid": "6bc8b307e315be914dd9eecb9465b54f", "score": "0.60592073", "text": "@Override\n\tpublic int calculateCost() \n\t{\n\t\treturn (this.modernCenterpieceCost*this.centerpieceCount);\n\t}", "title": "" }, { "docid": "c0836b409029a42b109b1b3597058a70", "score": "0.60407317", "text": "public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}", "title": "" }, { "docid": "fc33e74147b88478a72fd9a4e967abd8", "score": "0.60384446", "text": "@Override\n\tpublic BigDecimal getCosteEjecucion() {\n\t\treturn model.getCosteEjecucion();\n\t}", "title": "" }, { "docid": "18ae02884326cc545767cc511a3c7cbc", "score": "0.60253644", "text": "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "title": "" }, { "docid": "79d0da1931e0c1c678029814cbe4e62a", "score": "0.6019592", "text": "public double calcTuition(){\r\n return getNumCredits() * COST_PER_CREDIT_HOUR;\r\n }", "title": "" }, { "docid": "b4d18b66c14a80400bb3b920115638c0", "score": "0.5996454", "text": "private void calcEfficiency() {\n \t\tdouble possiblePoints = 0;\n \t\tfor (int i = 0; i < fermentables.size(); i++) {\n \t\t\tFermentable m = ((Fermentable) fermentables.get(i));\n \t\t\tpossiblePoints += (m.getPppg() - 1) * m.getAmountAs(\"lb\")\n \t\t\t\t\t/ postBoilVol.getValueAs(\"gal\");\n \t\t}\n \t\tefficiency = (estOg - 1) / possiblePoints * 100;\n \t}", "title": "" }, { "docid": "f7a9dc5437f35f1b5a2e80adf8f5ca6e", "score": "0.59961283", "text": "int getCost();", "title": "" }, { "docid": "f7a9dc5437f35f1b5a2e80adf8f5ca6e", "score": "0.59961283", "text": "int getCost();", "title": "" }, { "docid": "f7a9dc5437f35f1b5a2e80adf8f5ca6e", "score": "0.59961283", "text": "int getCost();", "title": "" }, { "docid": "59d973b0ed928215049bf39ef83542bc", "score": "0.5990704", "text": "public abstract double getCost();", "title": "" }, { "docid": "6dd168a07ff757768b6fc4199aa13497", "score": "0.5989778", "text": "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "title": "" }, { "docid": "7bb53fb79455e60737bf21579b6fb79b", "score": "0.59862745", "text": "public double getCost(int miles, int time) {\n\t\treturn 1.00 + (time / 30 ); \n\t}", "title": "" }, { "docid": "6e3a99b56b0938c33fa8ca803cbf53a6", "score": "0.596491", "text": "@Override\n\tprotected void setCost(double cst) {\n\t\t\n\t}", "title": "" }, { "docid": "96c7c1d6471bfd26a48a5ffbd240f503", "score": "0.59561473", "text": "public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }", "title": "" }, { "docid": "efaff4455bfcd45aa10c259940020575", "score": "0.5940782", "text": "@Override\n public long cost() {\n return 100;\n }", "title": "" }, { "docid": "025d237668d0ea3c67b37fe35be65301", "score": "0.59375995", "text": "public double getCost() {\n return quantity*ppu;\n\n }", "title": "" }, { "docid": "00fc2d54b966208ccc0756ca92fb5ab8", "score": "0.59354687", "text": "public double calcCost() {\n if (pizzaSize.equals(\"small\")) {\n return 10.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n\n }\n else if (pizzaSize.equals(\"medium\")) {\n return 12.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n else {\n return 14.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n }", "title": "" }, { "docid": "50939dbf881ade2f11927cd9f35bb8a6", "score": "0.59216607", "text": "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "title": "" }, { "docid": "15ae843b693a8677bbdb0280f4814c30", "score": "0.59118557", "text": "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "title": "" }, { "docid": "d98637579bdff4f0e4bc191b6135e8a2", "score": "0.5895155", "text": "@Test\n public void whenComputingBillForPeopleOver70WithDiagnosisXRayAndECG() {\n double result = billingService.computeBill(1);\n // 90% discount on Diagnosis (60£) = 6\n // 90% discount on X-RAY (150£) = 15\n // 90% discount on ECG (200.40£) = 20.04\n Assert.assertEquals(41.04, result, 0);\n }", "title": "" }, { "docid": "207d9802816c76ef42002d3c3f18ddf5", "score": "0.5894195", "text": "@Override\n public Double computeCost(double time) {\n // get the time period and policy type\n int timePeriod = Integer.parseInt(period.substring(1, period.length()-1));\n char periodPolicy = period.charAt(period.length()-1);\n\n double finalPrice = 0.0;\n\n // compute the final price\n switch (periodPolicy) {\n case 'D':\n final int secondsPerDay = 86400;\n finalPrice = (time / (secondsPerDay * timePeriod)) * periodCost;\n break;\n case 'W':\n final int secondsPerWeek = 604800;\n finalPrice = (time / (secondsPerWeek * timePeriod)) * periodCost;\n break;\n case 'M':\n final int secondsPerMonth = secondsInMonth(2015, 10); // TODO do this based on real date\n finalPrice = (time / (secondsPerMonth * timePeriod)) * periodCost;\n break;\n case 'Y':\n final int secondsPerYear = 31536000;\n finalPrice = (time / (secondsPerYear * timePeriod)) * periodCost;\n break;\n }\n\n return finalPrice;\n }", "title": "" }, { "docid": "e342f9f1b9b38dd83d8aed7e27900595", "score": "0.58851117", "text": "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "title": "" }, { "docid": "66f3b882625533eff6745f33dc00af2d", "score": "0.5881139", "text": "public int calculateCost() {\n int premium = surety.calculatePremium(insuredValue);\n SuretyType suretyType = surety.getSuretyType();\n int commission = (int) Math.round(premium * vehicle.getCommission(suretyType));\n return premium + commission;\n }", "title": "" }, { "docid": "6a9dca0ed2c30eb8d94e3ad5b4cc044b", "score": "0.58802724", "text": "public double calculatePrice(Model model)\n\t{\n\t\t//sum each of the price components price value\n\t\tString finalprice = \"\";\n\t\tdouble pc_price = -1, lower_limit = -1, upper_limit = -1, function_price = -1,finalvalue=0;\n\t\tfor(PriceComponent pc : this.priceComponents)\n\t\t{\n\t\t\tpc_price = -1; lower_limit = -1; upper_limit = -1;function_price = -1;\n\t\t\t//get the variables and define their value\n\t\t\tif(pc.getPriceFunction() != null)\n\t\t\t{\n\t\t\t\tif (pc.getPriceFunction().getSPARQLFunction() != null) {\n\t\t\t\t\tcom.hp.hpl.jena.query.Query q = ARQFactory.get().createQuery(pc.getPriceFunction().getSPARQLFunction());\n\t\t\t\t\tQueryExecution qexecc = ARQFactory.get().createQueryExecution(q, model);\t\n\t\t\t\t\t\n\t\t\t\t\tResultSet rsc = qexecc.execSelect();\n//\t\t\t\t\tSystem.out.println(q.toString());\n\t\t\t\t\tfunction_price = rsc.nextSolution().getLiteral(\"result\").getDouble();// final result is store in the ?result variable of the query\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pc.getComponentCap() != null) {\n\t\t\t\tupper_limit = pc.getComponentCap().getValue();\n\t\t\t}\n\n\t\t\tif (pc.getComponentFloor() != null) {\n\t\t\t\tlower_limit =pc.getComponentFloor().getValue();\n\t\t\t}\n\n\t\t\tif (pc.getPrice() != null) {\n\t\t\t\tpc_price = pc.getPrice().getValue();\n\t\t\t}\n\t\t\t\n\t\t\tif(function_price >=0)\n\t\t\t{\n\t\t\t\tif(function_price > upper_limit && upper_limit >= 0)\n\t\t\t\t\tfunction_price = upper_limit;\n\t\t\t\telse if(function_price < lower_limit && lower_limit >=0)\n\t\t\t\t\tfunction_price = lower_limit;\n\t\t\t}\n\t\t\t\n\t\t\tif(pc_price >= 0)\n\t\t\t{\n\t\t\t\tif(pc_price > upper_limit && upper_limit >=0)\n\t\t\t\t\tpc_price = upper_limit;\n\t\t\t\telse if(pc_price < lower_limit && lower_limit >= 0)\n\t\t\t\t\tpc_price = lower_limit;\n\t\t\t}\n\t\t\t\n\t\t\tif(pc.getPrice() != null && pc.getPriceFunction() != null)\n\t\t\t\tSystem.out.println(\"Dynamic and static price? offer->\"+this.name+\",pc->\"+pc.getName() + \"price ->\"+pc_price);//throw expection?\n\t\t\t\n\t\t\t\n\t\t\tif(pc.isDeduction())\n\t\t\t{\n\t\t\t\tif(function_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" - \" +function_price;\n\t\t\t\t\tfinalvalue-=function_price;\n\t\t\t\t}\n\t\t\t\tif(pc_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" - \" +pc_price;\n\t\t\t\t\tfinalvalue-=pc_price;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(function_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" + \" +function_price;\n\t\t\t\t\tfinalvalue+=function_price;\n\t\t\t\t}\n\t\t\t\tif(pc_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" + \" +pc_price;\n\t\t\t\t\tfinalvalue+=pc_price;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//conditions to verify that the final price is inside the interval defined by the lower and upper limit, in case these exist\n\t\tif(this.getPriceCap() != null)\n\t\t{\n\t\t\tif(this.getPriceCap().getValue() >= 0 && finalvalue < this.getPriceCap().getValue())\n\t\t\t\tfinalvalue = this.getPriceCap().getValue();\n\t\t}\n\t\tif(this.getPriceFloor() != null)\n\t\t{\n\t\t\tif(this.getPriceFloor().getValue() >= 0 && finalvalue > this.getPriceFloor().getValue())\n\t\t\t\tfinalvalue = this.getPriceFloor().getValue();\n\t\t}\n\t\t\t\t\n\t\treturn finalvalue;\n\t}", "title": "" }, { "docid": "374fe4d830283b693f1a1af9cf380b54", "score": "0.58694595", "text": "@Pure\n\tdouble getEstimatedCost();", "title": "" }, { "docid": "a5dd955d8c3f2e22d064011a619aef5d", "score": "0.5855434", "text": "public int totalCostOfComponents( ){\n\t\tint total=0;\n\t\tfor (Component temp : components){\n\t\t\ttotal+=temp.getCost();\n\t\t}\n\t\treturn total;\n\t}", "title": "" }, { "docid": "f3e4accf1abdc284d976357e10815b58", "score": "0.58438706", "text": "@Test public void getAndSetCostPerMailPieceTest() {\n DirectMC a = new DirectMC(\"AdMailing\", 10000.00, 3.00, 2000);\n a.setCostPerMailPiece(3);\n Assert.assertEquals(\"test 1\", 3.00, a.getCostPerMailPiece(), .000001);\n }", "title": "" }, { "docid": "ad7a5c4fa82a0cb0d38c4a9311dafae2", "score": "0.5824726", "text": "@Override\n public double getTotalCommission() {\n double cost = 0.0;\n //increase cost for each report in the order\n for (Report report : reports.keySet()) {\n //report cost depends on the WorkType\n //audits are not capped by max employee count\n //regular orders are limited by max employee count\n int employeeCount = reports.get(report);\n cost += workType.calculateReportCost(report, employeeCount);\n }\n //increase cost of order based on priority\n //critical orders increase based on their critical loading\n //regular orders don't have an effect\n cost = priorityType.loadCost(cost);\n return cost;\n }", "title": "" }, { "docid": "72e1818e9268e7a0646a9a1aba2d172a", "score": "0.58158225", "text": "double computePrintingCost(double price){\n //TODO calculate price and return it\n return price * printer.countCharactersPrinted();\n }", "title": "" }, { "docid": "75b717212273761cad7e26504a67df2e", "score": "0.5812335", "text": "UnsignedLong cost(EigrpMetricVersion version);", "title": "" }, { "docid": "f6b171af6063b3573041f3cb3c97f88c", "score": "0.58075625", "text": "public int getMaxTotalCost();", "title": "" }, { "docid": "be5346c484dd6cb44965c141eb541470", "score": "0.58068734", "text": "public Number getActualCost()\r\n {\r\n return (m_actualCost);\r\n }", "title": "" }, { "docid": "bd358bc7ff0c1a9aa0d4ff1e3c57def6", "score": "0.5796078", "text": "public double getTotalCost() {\r\n return totalCost;\r\n }", "title": "" }, { "docid": "ae5f08667037af274a50aad61f35d4c1", "score": "0.5794898", "text": "public static void increaseCostCorrection() {\n COST_CORRECTION_CPU_CURRENT *= COST_CORRECTION_FACTOR_INCREASE;\n }", "title": "" }, { "docid": "ba52779303211fdef924c0ade943c180", "score": "0.57925165", "text": "public java.math.BigDecimal getTotalCost () {\n\t\treturn totalCost;\n\t}", "title": "" }, { "docid": "05f9f205a868fd5cabe3b02bf0cc2e40", "score": "0.5792095", "text": "@Test\n\tvoid testCost() {\n\t\tint nbCores = 16;\n\t\tlong duration = 2000;\n\t\tDate requestDate = new Date(\"01/01/2000\");\n\t\tJob j1 = new Job(nbCores,requestDate,duration,mediumQ);//16 cores less than 1h\n\t\tJob j2 = new Job(nbCores*2,requestDate,duration,mediumQ);//32 cores less than 1h\n\t\tJob j3 = new Job(nbCores*2+1,requestDate,duration,mediumQ);//33 cores less than 1h\n\t\tJob j4 = new Job(nbCores,requestDate,duration*2,mediumQ);//16 cores more than 1h\n\t\tJob j5 = new Job(nbCores*2+1,requestDate,duration*2,mediumQ);//33 cores more than 1h\n\t\tassertEquals(j1.getCost(),0.05f);\n\t\tassertEquals(j2.getCost(),0.05f);\n\t\tassertEquals(j3.getCost(),0.1f);\n\t\tassertEquals(j4.getCost(),0.1f);\n\t\tassertEquals(j5.getCost(),0.2f);\n\t}", "title": "" }, { "docid": "0a49c7241555a379e75ae0c2a0843849", "score": "0.57885605", "text": "@Override\n public double cost()\n {\n return this.price * this.number;\n }", "title": "" }, { "docid": "39839857e983fe1783d0f60cc191dd3a", "score": "0.5785904", "text": "public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }", "title": "" }, { "docid": "5ce870079a7edf21cda3e5c9abc22b6c", "score": "0.57849056", "text": "public double get_overcharge_cost() {\n\t\treturn overchargepermin;\n\t}", "title": "" }, { "docid": "95298cb77f6507e7a4703f0247ebd4c2", "score": "0.57788575", "text": "public int totalCostOfComponents()\n\t{\n\t\tint total = 0;\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\ttotal += comp.getCost();\n\t\t}\n\t\treturn total;\n\t}", "title": "" }, { "docid": "51baa27441d03d9abce745bd1853818e", "score": "0.5778287", "text": "public int getWorkCredCost();", "title": "" }, { "docid": "ed85d5a66d9b7ead804f0f20189b58ba", "score": "0.5777278", "text": "public double calculateCost() {\n double output = price * (1 + taxRate);\n return output;\n }", "title": "" }, { "docid": "2674834dc9b056511ee45cf15d8b28f5", "score": "0.5776505", "text": "public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}", "title": "" }, { "docid": "5fad51927303654299efe0a7f177059f", "score": "0.57700753", "text": "public int calcMarketPrice() {\r\n player = Context.getInstance().getPlayer();\r\n //Random r = new Random();\r\n int techLevel = player.getCurrentPlanet().getTechLevel();\r\n Event event = player.getCurrentPlanet().getEvent();\r\n Resource resource = player.getCurrentPlanet().getResource();\r\n double price = basePrice;\r\n price += (ipl * (techLevel - mtlb)) + variance;\r\n if (player.getCurrentPlanet().getTechLevel() == this.ttp) {\r\n price *= Context.TECH_PRICE_MULT;\r\n }\r\n if (event.equals(this.ie)) {\r\n price *= event.getUpMult();\r\n } else if (event.equals(this.de)) {\r\n price *= event.getDownMult();\r\n }\r\n if (resource.equals(this.cr)) {\r\n price *= resource.getDownMult();\r\n } else if (resource.equals(this.er)) {\r\n price *= resource.getUpMult();\r\n }\r\n price *= (((double) player.getTrader() / DFIFTY) + 1.0);\r\n int finalPrice = (int) price;\r\n if (player.getTrader() > 0) {\r\n double discountedPrice = price;\r\n double trader = (double) player.getTrader();\r\n discountedPrice -= (price) * (4.0 * trader / PERCENT);\r\n return (int) discountedPrice;\r\n } else {\r\n return finalPrice;\r\n }\r\n }", "title": "" }, { "docid": "61d10f33616c6dff0cccb4522ee7a24b", "score": "0.57699484", "text": "double getDegreeOfTacitCollusion() {\n double price = getMeanPrice();\n Competition competition = SimulationManager.COMPETITION_TYPE.getCompetition();\n double priceInNashEquilibrium = competition.getPriceInNashEquilibrium(SimulationManager.MARKET_SIZE);\n double priceInJpmEquilibrium = competition.getPriceInJpmEquilibrium();\n\n return Calculation.round((price - priceInNashEquilibrium) /\n (priceInJpmEquilibrium - priceInNashEquilibrium), 3);\n }", "title": "" }, { "docid": "12b84932e3f86f00ae0ac48f48dd4b35", "score": "0.5769442", "text": "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }", "title": "" }, { "docid": "f654bbbacc819b3d18483f47ba32d4b6", "score": "0.5746316", "text": "public double getCost() {\t\t \n\t\treturn cost;\n\t}", "title": "" }, { "docid": "098f684322cf7d626896f9503748033e", "score": "0.5736143", "text": "public double costNEX() {\r\n double diff=0;\r\n double intensity=0;\r\n \r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n\r\n this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n intensity = this.body2[x][y][z].radiationIntensity(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (intensity>0) {\r\n// LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n this.body2[x][y][z].addCurrentDosis(intensity);\r\n } \r\n diff += Math.pow((this.body2[x][y][z].getGoalDosis()-this.body2[x][y][z].getCurrentDosis()),2);\r\n// LogTool.print(\" diffdose \" + (Looper.body2[x][y][z].getGoalDosis()-Looper.body2[x][y][z].getCurrentDosis()),\"notification\");\r\n } \r\n }\r\n }\r\n return Math.sqrt(diff);\r\n// return Math.random();\r\n }", "title": "" }, { "docid": "02583344f231b59fde8b0e61ca4ee042", "score": "0.5727268", "text": "float getCostScale();", "title": "" }, { "docid": "6d2d9fdce2bb2a8115b4a2681d1c6b8d", "score": "0.57154983", "text": "public double getTotalCost() {\n cost = spr.calculateCost();\n return cost;\n }", "title": "" }, { "docid": "a4eb97d3a5d71eb37f76e7e148ef1042", "score": "0.5713232", "text": "@Pure\n\tdouble getCost();", "title": "" }, { "docid": "4443dcb9ea208a46407b4cfa2830a538", "score": "0.57131785", "text": "public static double Cost(double boxes, double Cost) {\n\tdouble pay = boxes * Cost;\n\treturn pay;\n}", "title": "" }, { "docid": "c6acdecda2783fae0ce5eb4057dd012c", "score": "0.57098484", "text": "public double getCosts();", "title": "" }, { "docid": "3e6726b62508ebb76d3a9c721a79b476", "score": "0.5709437", "text": "public double getTotalCost(){\r\n\t\t//return the totalCost to the App\r\n\t\treturn totalCost;\r\n\t}", "title": "" }, { "docid": "a436a1164657aefa7e4ecfc550c92cfe", "score": "0.5708149", "text": "double getSolutionCost();", "title": "" }, { "docid": "a1a63c80ec89c4f761ffac41e55e87d0", "score": "0.5705234", "text": "@Override\n public int getCost() {\n\treturn 0;\n }", "title": "" }, { "docid": "9c4885230c40534e93decf4aa693f55c", "score": "0.5697562", "text": "public double getCost() {\r\n\t \treturn(cost);\r\n\t}", "title": "" }, { "docid": "2dd64047f2109336ecb7c4841afd7b6b", "score": "0.56933177", "text": "@java.lang.Override\n public float getCpMultiplier() {\n return cpMultiplier_;\n }", "title": "" }, { "docid": "3a628aa8961a5a0b49f7ca47f0611769", "score": "0.56923544", "text": "public BigDecimal getBSCA_ProfitPriceLimit();", "title": "" }, { "docid": "9b974feb5535c78f5283f85e8327137d", "score": "0.5689387", "text": "float getCPM() throws SQLException;", "title": "" }, { "docid": "c9d4abd9e06586d5a53a69bb7b918466", "score": "0.56889117", "text": "private double calcCost(Cloudlet cloudlet, FogDevice fogDevice) {\n double cost = 0;\n //cost includes the processing cost\n cost += fogDevice.getCharacteristics().getCostPerSecond() * cloudlet.getCloudletLength( ) / fogDevice.getHost().getTotalMips();\n // cost includes the memory cost\n cost += fogDevice.getCharacteristics().getCostPerMem() * cloudlet.getMemRequired();\n // cost includes the bandwidth cost\n cost += fogDevice.getCharacteristics().getCostPerBw() * (cloudlet.getCloudletFileSize() + cloudlet.getCloudletOutputSize());\n return cost;\n }", "title": "" }, { "docid": "4e81e18d4e6a705fedf2be0404e0eb70", "score": "0.5684865", "text": "public int act1Cost()\r\n {\r\n return 1;\r\n }", "title": "" }, { "docid": "64c2f89443ffb868b29eb91a7cb456c9", "score": "0.56840104", "text": "public float totalCost() {\n\t\tttCost = 0;\n\t\tfor (int i = 0; i < itemsOrdered.size(); i++) {\n\t\t\tttCost += itemsOrdered.get(i).getCost();\n\t\t}\n\t\treturn ttCost;\n\t}", "title": "" }, { "docid": "20b811db9522847745f1dba6efec10b5", "score": "0.56835914", "text": "public Double getCpm() {\n return cpm;\n }", "title": "" }, { "docid": "08bee3a72427d291d622de5b41efb173", "score": "0.5679281", "text": "public void cal_AdjustedFuelMoist(){\r\n\tADFM=0.9*FFM+0.5+9.5*Math.exp(-BUO/50);\r\n}", "title": "" }, { "docid": "db6ae6b2ead81a2496fb58f68aec5bd4", "score": "0.567789", "text": "public double calculatedConsuption(){\n\tint tressToSow=0;\n\n\tif (kiloWatts >=1 && kiloWatts <= 1000){\n\t\ttressToSow = 8;\n\t}\n\telse if (kiloWatts >=1001 && kiloWatts <=3000){\n\t\ttressToSow = 35;\n\t}\n\telse if (kiloWatts > 3000){\n\t\ttressToSow=500;\n\t}\n\treturn tressToSow;\n\t}", "title": "" }, { "docid": "f121fd2e4a2009c388e5cef7b6866874", "score": "0.5675876", "text": "@Override\r\n\tpublic double getCost() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "51c6c28ce74c743b348d9753c8b838b6", "score": "0.56706923", "text": "@Override\n public int computeProfit() {\n return getVehiclePerformance() / getVehiclePrice();\n }", "title": "" }, { "docid": "bd871d02379c82970b8219f67c467f4d", "score": "0.5669604", "text": "@java.lang.Override\n public float getCpMultiplier() {\n return cpMultiplier_;\n }", "title": "" }, { "docid": "a603d36bad6f6583c64dd712f0fb39b2", "score": "0.5668352", "text": "public BigDecimal getCostPerConversionManyPerClick() {\r\n return costPerConversionManyPerClick;\r\n }", "title": "" }, { "docid": "b432d19585524dbffa4f6bac65994cae", "score": "0.56660306", "text": "public double getCost(int maxTemp) {\n\t\tdouble tempcost;\n\t\ttempcost = 900 + (200 * (Math.pow( 0.7, ((double)maxTemp/5.0) )));\n\t\tSystem.out.println(Double.toString(tempcost));\n\t\treturn tempcost;\n\t\t\n\t}", "title": "" }, { "docid": "295ed76929153ac4bc9a55431e5bf7c9", "score": "0.56639713", "text": "public CP getProductServiceUnitCost() { \r\n\t\tCP retVal = this.getTypedField(13, 0);\r\n\t\treturn retVal;\r\n }", "title": "" } ]
bc25b30ab18a89959173dcc14a1e555e
Returns a string representation of this object. This string contains the most important properties that have a meaningful string representation.
[ { "docid": "a0a852b27dcac7c639d85ed3f656506b", "score": "0.0", "text": "@Override\n public String toString()\n {\n return String.format(TO_STRING_PATTERN, getName(), getType().name(),\n getX(), getY(), getButton(), getModifiers().toString());\n }", "title": "" } ]
[ { "docid": "44dfa1a2e3faa432a14f2082ceadd8aa", "score": "0.8267933", "text": "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "title": "" }, { "docid": "547c3a63720f2dbc03c2feaef27aae38", "score": "0.82572776", "text": "@Override\n\tpublic String toString() {\n\t\tGsonBuilder gsonBuilder = new GsonBuilder();\n\t\tGson gson = gsonBuilder.create();\n\t\treturn gson.toJson(this);\n\t}", "title": "" }, { "docid": "989fd60fb566b55c02726690b945d704", "score": "0.8225763", "text": "@Override\n public final String toString() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "title": "" }, { "docid": "3d5b6fe0c40eea4e53a2fbb19c598509", "score": "0.8118217", "text": "public String toString() {\n\t\tStringBuilder strBuilder = GenericsUtil.genToString(this);\n\t\treturn strBuilder.toString();\n\t}", "title": "" }, { "docid": "f77f533b79a9aef9545fe96386098dc2", "score": "0.8099393", "text": "@Override\n\tpublic String toString() {\n\t\treturn ReflectionToStringBuilder.toString(this);\n\t}", "title": "" }, { "docid": "2ea65ab7a0a70609ba5f0e140e214779", "score": "0.80814373", "text": "@Override\n\tpublic String toString() {\n\t\treturn JsonConverter.prettyStringify(this);\n\t}", "title": "" }, { "docid": "35be65be5f137823cd35869d0ec86664", "score": "0.8024996", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn UtilsClases.crearToString(this.getClass(),this);\r\n\t}", "title": "" }, { "docid": "643de433cfe3aaeab413a6c6736366ec", "score": "0.7987871", "text": "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }", "title": "" }, { "docid": "32e5f8aa97e0c9d4be26ecb07ed8cedb", "score": "0.7953283", "text": "@Override\n public String toString() {\n return toString(true, false);\n }", "title": "" }, { "docid": "e0046b4e127272dc7625b8bfaa808854", "score": "0.79451686", "text": "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "title": "" }, { "docid": "e0046b4e127272dc7625b8bfaa808854", "score": "0.79451686", "text": "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "title": "" }, { "docid": "e0046b4e127272dc7625b8bfaa808854", "score": "0.79451686", "text": "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "title": "" }, { "docid": "7ea09f9ecad369e0b47c2ca7559edcb8", "score": "0.79364705", "text": "@Override\n\tpublic String toString() {\n\t\treturn dump(\"\", false);\n\t}", "title": "" }, { "docid": "0ab3769002b747f18c538286a41e28cb", "score": "0.79318756", "text": "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }", "title": "" }, { "docid": "f93b8949dc6caae8c0aa89b2cc3d4cce", "score": "0.79179716", "text": "@Override\n public String toString() {\n return getProperties().toString();\n }", "title": "" }, { "docid": "679092ee7a3891aa4b3a912d3b56f8bd", "score": "0.7915368", "text": "@Override\n public String toString() {\n final StringBuilder sb = new StringBuilder();\n toString(sb);\n return sb.toString();\n }", "title": "" }, { "docid": "07bd8e7433ada9ec9b7f9dbb35574943", "score": "0.7915346", "text": "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "title": "" }, { "docid": "07bd8e7433ada9ec9b7f9dbb35574943", "score": "0.7915346", "text": "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "title": "" }, { "docid": "55e17e03cfc58b1189272bc1aa8785de", "score": "0.79116845", "text": "public String toString() {\n StringBuffer sb = new StringBuffer();\n\n sb.append(\"{\").append(\"\\n\");\n\n append(sb, \"client\", this.mClient);\n append(sb, \"version\", this.mVersion);\n append(sb, \"dax_api\", this.mWFAPI);\n append(sb, \"user\", this.mUser);\n append(sb, \"vogroup\", this.mVOGroup);\n append(sb, \"submitdir.base\", this.mBaseSubmitDirectory);\n append(sb, \"submitdir.relative\", this.mRelativeSubmitDirectory);\n append(sb, \"planning.start\", mNumFormatter.format(mStartTime));\n append(sb, \"planning.end\", mNumFormatter.format(mEndTime));\n append(sb, \"planning.arguments\", mPlannerArguments);\n append(sb, \"uses_pmc\", Boolean.toString(this.usesPMC()));\n append(sb, \"duration\", Double.toString(mDuration));\n append(sb, \"exitcode\", Integer.toString(mExitcode));\n append(sb, \"error\", mErrorMessage);\n append(sb, \"properties\", this.mPropertiesPath);\n append(sb, \"dax\", this.mDAXPath);\n append(sb, \"data.configuration\", this.mDataConfiguration);\n append(sb, \"root.wf.uuid\", this.mRootWorkflowUUID);\n append(sb, \"wf.uuid\", this.mWorkflowUUID);\n sb.append(this.getWorkflowMetrics());\n if (this.mApplicationMetrics != null) {\n append(sb, \"app.metrics\", this.mApplicationMetrics.toString());\n }\n sb.append(\"}\").append(\"\\n\");\n\n return sb.toString();\n }", "title": "" }, { "docid": "52eba53169ad0fe9afcc0747fb182b1c", "score": "0.7890453", "text": "@ Override\n public final String toString ( )\n {\n return toPrettyString ( ).toString ( ) ;\n }", "title": "" }, { "docid": "1b6cb81199ebca6d50dc577c8b603365", "score": "0.7882651", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn MoreObjects.toStringHelper(this) //\r\n\t\t\t\t.add(\"id\", getId()) //\r\n\t\t\t\t.add(\"name\", getName()) //\r\n\t\t\t\t.toString();\r\n\t}", "title": "" }, { "docid": "ad4697890076d101017863852715f0c1", "score": "0.78801024", "text": "@Override\n public String toString() {\n return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);\n }", "title": "" }, { "docid": "691814c986586bffda5581d16246cb89", "score": "0.7868042", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn toJSON();\r\n\t}", "title": "" }, { "docid": "8448965844ab449b9db02ef11ebccc2b", "score": "0.7850356", "text": "@Override\r\n public String toString()\r\n {\r\n return ToStringBuilder.reflectionToString(this);\r\n }", "title": "" }, { "docid": "7139fbc164704207037e7c136739c32b", "score": "0.7844914", "text": "public String toObjString() {\n return toObjString(new StringBuilder()).toString();\n }", "title": "" }, { "docid": "e8dcd62e7752f41eed7019d227cf203d", "score": "0.7843595", "text": "public String toString()\n {\n java.io.StringWriter out = new java.io.StringWriter();\n write(out);\n return out.toString();\n }", "title": "" }, { "docid": "a38184fb829ae51eecc0572c4ca3a74b", "score": "0.78371274", "text": "public String toString()\n {\n String toString = \"\";\n toString = toString + \"Year: \"+ year + \"\\n\";\n toString = toString + \"Property: \"+ property + \"\\n\";\n\n return toString;\n }", "title": "" }, { "docid": "5615406fbfe19472138b03ec0881d5e9", "score": "0.7825491", "text": "public String toString(){\n\t\treturn toString(true, false);\n\t}", "title": "" }, { "docid": "551732a0ce7d1ebc0f31192f73ef55f5", "score": "0.7824291", "text": "@Override\n public String toString() {\n StringWriter w = new StringWriter();\n writeTo(new StreamResult(w));\n return w.toString();\n }", "title": "" }, { "docid": "58efcb55dd3879e43fae1104fc2ec7bb", "score": "0.7814695", "text": "@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}", "title": "" }, { "docid": "d6c8bd5336be97eb7ee7b383b488e40d", "score": "0.7803837", "text": "@Override\n public String toString()\n {\n StringBuilder json = new StringBuilder();\n\n ObjectMapper mapper = new ObjectMapper();\n try\n {\n json.append(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(this));\n }\n catch (IOException e)\n {\n // TODO: MAKE THIS LOG THE ERROR SINCE THIS SHOULDN'T BREAK ANYTHING (IT'S ONLY USED FOR PRINT STATEMENTS)\n e.printStackTrace();\n }\n\n return json.toString();\n }", "title": "" }, { "docid": "83c1c33fab4a64641c396dbd33cb1eb2", "score": "0.7791113", "text": "@Override public String toString(){\n return ModelUtil.toStringFor(this);\n }", "title": "" }, { "docid": "796ebab7bf0b4cbe213bb9c8822c6742", "score": "0.7783889", "text": "@Override\n public String toString() {\n return toString(this, \"\");\n }", "title": "" }, { "docid": "98dfbe7cc53a08d888f9ec597354d2c5", "score": "0.77832025", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getStorageSystemArn() != null)\n sb.append(\"StorageSystemArn: \").append(getStorageSystemArn()).append(\",\");\n if (getServerConfiguration() != null)\n sb.append(\"ServerConfiguration: \").append(getServerConfiguration()).append(\",\");\n if (getSystemType() != null)\n sb.append(\"SystemType: \").append(getSystemType()).append(\",\");\n if (getAgentArns() != null)\n sb.append(\"AgentArns: \").append(getAgentArns()).append(\",\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getErrorMessage() != null)\n sb.append(\"ErrorMessage: \").append(getErrorMessage()).append(\",\");\n if (getConnectivityStatus() != null)\n sb.append(\"ConnectivityStatus: \").append(getConnectivityStatus()).append(\",\");\n if (getCloudWatchLogGroupArn() != null)\n sb.append(\"CloudWatchLogGroupArn: \").append(getCloudWatchLogGroupArn()).append(\",\");\n if (getCreationTime() != null)\n sb.append(\"CreationTime: \").append(getCreationTime()).append(\",\");\n if (getSecretsManagerArn() != null)\n sb.append(\"SecretsManagerArn: \").append(getSecretsManagerArn());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "8f4f1a8fb7a9485d9a2f1385ff51c1b3", "score": "0.77762437", "text": "public String toString() {\r\n StringBuffer buffer = new StringBuffer();\r\n\r\n buffer.append(getClass().getName());\r\n buffer.append(\"@\");\r\n buffer.append(Integer.toHexString(hashCode()));\r\n buffer.append(\" [\");\r\n buffer.append(objectToString(\"Id\", getId()));\r\n buffer.append(objectToString(\"UserSess\", getUserSess()));\r\n buffer.append(objectToString(\"AnonStudentId\", getAnonStudentId()));\r\n buffer.append(objectToStringFK(\"ResourceUseOliUserSessFileItem\", getResourceUseOliUserSessFileItem()));\r\n buffer.append(\"]\");\r\n\r\n return buffer.toString();\r\n }", "title": "" }, { "docid": "247d1ac0ba55c337b070cb4b53b4fa80", "score": "0.7774378", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getAttributes() != null)\n sb.append(\"Attributes: \").append(getAttributes()).append(\",\");\n if (getTags() != null)\n sb.append(\"Tags: \").append(getTags()).append(\",\");\n if (getDataProtectionPolicy() != null)\n sb.append(\"DataProtectionPolicy: \").append(getDataProtectionPolicy());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "af3d61f14f5ff4794d102874f3c76160", "score": "0.77379906", "text": "@Override\n public String toString() {\n try {\n return toJSON();\n } catch (RuntimeException e) {\n return super.toString();\n }\n }", "title": "" }, { "docid": "88c2bd49e8a5ffc21aa532e58f99b678", "score": "0.7733999", "text": "public String toString() {\r\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "0e38b8972bc54a2d141655fae9798381", "score": "0.7733576", "text": "@Override\n String toString();", "title": "" }, { "docid": "50a5f364e3b0227d00cc1edcd86e8d09", "score": "0.77321494", "text": "public String toString() {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "f396cc51eb5f151ddb8f18e0a698f8d5", "score": "0.77212155", "text": "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "title": "" }, { "docid": "f396cc51eb5f151ddb8f18e0a698f8d5", "score": "0.77212155", "text": "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "title": "" }, { "docid": "f396cc51eb5f151ddb8f18e0a698f8d5", "score": "0.77212155", "text": "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "title": "" }, { "docid": "228c02b66df4f69de4c3f30c35b99e8a", "score": "0.7721128", "text": "public String toString() {\n return _asString;\n }", "title": "" }, { "docid": "ed969400a0861396d81787d99f6009ca", "score": "0.77099764", "text": "@Override\n public String toString() {\n final StringBuilder s = new StringBuilder(256);\n final Formatter f = new Formatter(s)\n .format(\"%s[name=%s\", getClass().getName(), getName());\n long value;\n if (UNKNOWN != (value = getGeneralPurposeBitFlags()))\n f.format(\", gpbf=0x%04X\", value);\n if (UNKNOWN != (value = getMethod()))\n f.format(\", method=%d\", value);\n if (UNKNOWN != (value = getTime()))\n f.format(\", time=%tc\", value);\n if (UNKNOWN != (value = getCrc()))\n f.format(\", crc=0x%08X\", value);\n if (UNKNOWN != (value = getCompressedSize()))\n f.format(\", compressedSize=%d\", value);\n if (UNKNOWN != (value = getSize()))\n f.format(\", size=%d\", value);\n if (UNKNOWN != (value = getExternalAttributes()))\n f.format(\", ea=0x%08X\", value);\n {\n final String comment = getComment();\n if (null != comment)\n f.format(\", comment=\\\"%s\\\"\", comment);\n }\n return s.append(\"]\").toString();\n }", "title": "" }, { "docid": "d9c4e93bacecc6f5b160c6f40e08e1b9", "score": "0.7706941", "text": "public String toString()\r\n\t{\r\n\t\tString str_asString = new String();\r\n\t\t\r\n\t\tsynchronized (properties)\r\n\t\t{\r\n\t\t\tfor(int i_propertyIndex = 0; i_propertyIndex < properties.length; i_propertyIndex++)\r\n\t\t\t{\r\n\t\t\t\tstr_asString += Properties.values()[i_propertyIndex]+\" = '\"+properties[i_propertyIndex]+\"'\\r\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn str_asString;\r\n\t}", "title": "" }, { "docid": "7ed19459545518cccbe1d018d8af27bd", "score": "0.77015084", "text": "public String toString() {\r\n \t\tStringBuilder builder = new StringBuilder();\r\n \r\n \t\tif (this.type != null) builder.append(type.value);\r\n \t\tif (this.language != null) {\r\n \t\t\tif (builder.length() > 0) builder.append(\".\");\r\n \t\t\tbuilder.append(this.language.getCode());\r\n \t\t}\r\n \t\t\r\n \t\tif (this.publisher != null) {\r\n \t\t\tif (builder.length() > 0) builder.append(\".\");\r\n \t\t\tbuilder.append(this.publisher);\r\n \t\t}\r\n \t\t\r\n \t\tif (this.name != null) {\r\n \t\t\tif (builder.length() > 0) builder.append(\".\");\r\n \t\t\tbuilder.append(this.name);\r\n \t\t}\r\n \t\t\r\n \t\tif (this.publicationDate != null) {\r\n \t\t\tif (builder.length() > 0) builder.append(\".\");\r\n \t\t\tbuilder.append(this.publicationDate);\r\n \t\t}\r\n \t\t\r\n \t\treturn builder.toString();\r\n \t}", "title": "" }, { "docid": "3951111231dd14111739aa0be90075da", "score": "0.7692623", "text": "@Override\n public String toString() {\n return getString();\n }", "title": "" }, { "docid": "b577c7fa8bc7ab05c4a636b2fa6e7033", "score": "0.76898634", "text": "public String toString()\r\n {\r\n return stringRepresentation;\r\n }", "title": "" }, { "docid": "7e0ecf37de25feab2e59b1f26ef71ef0", "score": "0.76886165", "text": "public String toString(){\n String prettyPrinted = \"\";\n for(String p : properties){\n prettyPrinted += this.get(p)+\",\";\n }\n prettyPrinted = prettyPrinted.substring(0, prettyPrinted.length()-1);\n return prettyPrinted;\n }", "title": "" }, { "docid": "3c2bf810f0213455ab82095c45064d92", "score": "0.7686587", "text": "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);\r\n\t}", "title": "" }, { "docid": "75881c25e959e1abe0848736f72ddea8", "score": "0.76846725", "text": "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);\n }", "title": "" }, { "docid": "24ff9ecbe73461f46a809b9ba9e68788", "score": "0.76803744", "text": "@Override\n\tpublic String toString() {\n\t\tJSONObject obj = JSONObject.fromObject(this);\n\t\treturn obj.toString();\n\n\t}", "title": "" }, { "docid": "277d2836fc5c947980cba867df061264", "score": "0.76792896", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "7ca669537c1fecac59318acb14b5e684", "score": "0.7672416", "text": "public String toString()\n\t{\n\t\tStringBuilder builder = new StringBuilder(); \n\t\t\n\t\ttoString(builder); \n\t\t\n\t\treturn builder.toString(); \n\t}", "title": "" }, { "docid": "1dd11adb1e76499ec9e0e749372bc5d2", "score": "0.7671754", "text": "public String toString () {\n\t\treturn EPPUtil.toString( this );\n\t}", "title": "" }, { "docid": "37c702135c743f67fd21983d275dca1c", "score": "0.7668907", "text": "@Override\n public String toString()\n {\n return _stringRep;\n }", "title": "" }, { "docid": "2cabe934b43b7fa839fe4e90f3f30b24", "score": "0.7665541", "text": "public synchronized String toString() {\n if (itsStringForm != null) {\n // String representation is already available\n return itsStringForm;\n }\n\n String res = \"{\";\n if (itsClass != null && !itsClass.equals(\"\")) {\n res += itsClass + \"`\";\n } else {\n res += \"null`\";\n }\n if (itsName != null && !itsName.equals(\"\")) {\n res += itsName + \"`\";\n } else {\n res += \"null`\";\n }\n\n res += size();\n\n Iterator<Entry<String, String>> it = entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<String, String> me = it.next();\n String temp = \"`\" + escape((String) me.getKey()) + \"`\" + escape((String) me.getValue());\n res += temp;\n }\n if (size() > 0) {\n res += \"`}\";\n } else {\n res += \"}\";\n }\n\n // Cache this for next time\n itsStringForm = res;\n\n return res;\n }", "title": "" }, { "docid": "9b201a6d8e7378f760a4c187f99f742e", "score": "0.7662452", "text": "public String toString() {\n\n\t\tStringBuilder buffer = new StringBuilder();\n\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\n\t\tbuffer.append(\"type=[\").append(type).append(\"] \");\n\t\tbuffer.append(\"name=[\").append(name).append(\"] \");\n\t\tbuffer.append(\"creater=[\").append(creater).append(\"] \");\n\t\tbuffer.append(\"createDate=[\").append(createDate).append(\"] \");\n\t\tbuffer.append(\"auditStatus=[\").append(auditStatus).append(\"] \");\n\n\t\treturn buffer.toString();\n\t}", "title": "" }, { "docid": "56871c6576b4aeed8c76212756171daa", "score": "0.7661229", "text": "public String toString() {\n StringBuffer buffer = new StringBuffer(32);\n\n buffer.append(Constants.INDENT);\n buffer.append(\"Object Class: \");\n if (objectClass_ != null) {\n buffer.append(objectClass_.toString());\n } else {\n buffer.append(\"<unavailable>\");\n }\n\n return buffer.toString();\n }", "title": "" }, { "docid": "f53d37fb561ca1f79137b27d6d0f0bbb", "score": "0.7655532", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getReadWriteType() != null)\n sb.append(\"ReadWriteType: \").append(getReadWriteType()).append(\",\");\n if (getIncludeManagementEvents() != null)\n sb.append(\"IncludeManagementEvents: \").append(getIncludeManagementEvents()).append(\",\");\n if (getDataResources() != null)\n sb.append(\"DataResources: \").append(getDataResources()).append(\",\");\n if (getExcludeManagementEventSources() != null)\n sb.append(\"ExcludeManagementEventSources: \").append(getExcludeManagementEventSources());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "4fcb2e28f6b839a97744feeba42ede40", "score": "0.76480174", "text": "@Override\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder();\n\n stringBuilder.append(String.format(\"Type: %s\\n\", this.type));\n\n return stringBuilder.toString();\n }", "title": "" }, { "docid": "80dd334dde904a7ece7cf9955d94cfa8", "score": "0.76479423", "text": "@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}", "title": "" }, { "docid": "99416a64a188ef24ed06edd6d6d86e0c", "score": "0.7627872", "text": "@Override\n public String toString()\n {\n StringBuilder result = new StringBuilder();\n \n result.append(this.getClass().getName()+\"@\"+hashCode()+\"[\");\n result.append(\"name:\"+getName()+\";\");\n result.append(\"description:\"+getLongName()+\";\");\n result.append(\"mimetype:\"+getMimeType()+\";\");\n result.append(\"extensions:\"+getExtensions()+\";\");\n result.append(\"]\");\n return result.toString();\n }", "title": "" }, { "docid": "4d58b46547849569b37b4ca76babb8e9", "score": "0.7624518", "text": "@Override\n\tpublic String toString() {\n\t\treturn new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)\n\t\t\t.append(\"objectType\", getObjectType())\n\t\t\t.append(\"objectIdentifier\", getObjectIdentifier())\n\t .toString();\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.7624433", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.7624433", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.7624433", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "3f8017b7542476fd4557c61077d6ae60", "score": "0.76227397", "text": "public java.lang.String toString()\n {\n return super.toString();\n }", "title": "" }, { "docid": "af764aa37ce35ea93fcd394ff355fcf5", "score": "0.7616923", "text": "@Override\n public final String toString() {\n DefaultTextOutput out = new DefaultTextOutput(false);\n JsToStringGenerationVisitor v = new JsToStringGenerationVisitor(out);\n v.accept(this);\n return out.toString();\n }", "title": "" }, { "docid": "87f98eba98016cc15c0aea25f565e204", "score": "0.7616409", "text": "public String prettyString()\n\t{\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "23d1d648a16afe5b8c904b955d04b1ed", "score": "0.761142", "text": "@Override\r\n\tpublic String toString() {\r\n\t\tString ret = super.toString();\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "01138dfe70db342c049750bc76dd1924", "score": "0.76092464", "text": "public String toString() {\n\t\tMap m = new HashMap();\n\t\tm.put(\"id\", this.id);\n\n\t\t// we only print the verbose version in debug mode\n\t\tif (log.isDebugEnabled())\n\t\t\tm = createVerboseToStringMap(m);\n\n\t\treturn toStringFromMap(m);\n\t}", "title": "" }, { "docid": "549e6049761a5ffa2ad006cb28c19ebd", "score": "0.7585783", "text": "@Override\n public String toString()\n {\n try {\n StringWriter sw = new StringWriter();\n writeTo(sw);\n return sw.toString();\n } catch (Exception e) {\n return e.toString();\n }\n }", "title": "" }, { "docid": "705ae2784bef6f058b4259d724ee0822", "score": "0.7582257", "text": "@Override\n public String toString() {\n return marshal();\n }", "title": "" }, { "docid": "4549d7e6f8d711b3c226f4393f9be770", "score": "0.7578665", "text": "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToString(\"SessionId\", getSessionId()));\n buffer.append(objectToString(\"Time\", getTime()));\n buffer.append(objectToString(\"TimeZone\", getTimeZone()));\n buffer.append(objectToString(\"Source\", getSource()));\n buffer.append(objectToString(\"Action\", getAction()));\n buffer.append(objectToString(\"ExtObjId\", getExtObjId()));\n buffer.append(objectToString(\"Container\", getContainer()));\n buffer.append(objectToString(\"InfoType\", getInfoType()));\n buffer.append(objectToString(\"Info\", getInfo()));\n buffer.append(objectToString(\"SeverReceiptTime\", getServerReceiptTime()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }", "title": "" }, { "docid": "d25cab384d9b862ba89f620a7e83c19f", "score": "0.7577701", "text": "public String toString() {\n\n return super.toString();\n }", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.75762194", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.75762194", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.75762194", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.75762194", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.75762194", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.75762194", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.75762194", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.75762194", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.75762194", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "16d4384a6a28b9b10d0312b107cea670", "score": "0.75750893", "text": "public String toString() {\n\t\treturn \"Property Name: \" + propertyName + \"\\n\" +\n\t\t\t\t\"Located in city: \" + city + \"\\n\" + \n\t\t\t\t\"Belonging to: \" + owner + \"\\n\" +\n\t\t\t\t\"Rent Amount: \" + rentAmount + \"\\n\";\n\t}", "title": "" }, { "docid": "72144fa88ba1fefe24d9e810bf4124b2", "score": "0.7572859", "text": "public String toString()\n {\n return \"<Make: \" + this.make + \"> \" + \"<Model: \" + this.model + \"> \" + \"<Built date: \" + this.built+ \">\";\n }", "title": "" }, { "docid": "44a0b31770bb815818ef590bb5d3d025", "score": "0.7571577", "text": "public String toString()\n\t{\n\t\tString str = \"\";\n\t\t\n\t\tstr += this.getClass().getSimpleName() + \" { \" + x + \", \" + y + \" }\";\n\t\t\n\t\treturn str;\n\t}", "title": "" }, { "docid": "3d2bf723022da92cd7b8b82678a01cb7", "score": "0.75677395", "text": "@Override\r\n\tpublic String toString() {\r\n\t\tString result=this.getClass().getSimpleName()+\":\\n\";\r\n\t\tresult+=\"---------------------------------------\\n\";\r\n\t\tresult+=name.toString()+\"\\n\";\r\n\t\tresult+=\"---------------------------------------\\n\";\r\n\t\tresult+=\"Home Address: \"+address.toString()+\"\\n\";\r\n\t\tresult+=\"Phone Number: \"+phoneNumber+\"\\n\";\r\n\t\tresult+=\"Email Address: \"+email+\"\\n\";\r\n\t\tresult+=\"ID: \"+id+\"\\n\";\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "c7848d7f1131c8fbea4acf070385eea6", "score": "0.7564964", "text": "@Override\r\n public String toString() {\r\n \r\n return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);\r\n \r\n }", "title": "" }, { "docid": "c49ac45eb31ed81b35ec4eb58567172f", "score": "0.75610393", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getId() != null)\n sb.append(\"Id: \").append(getId()).append(\",\");\n if (getType() != null)\n sb.append(\"Type: \").append(getType()).append(\",\");\n if (getAdditionalAttributes() != null)\n sb.append(\"AdditionalAttributes: \").append(getAdditionalAttributes()).append(\",\");\n if (getDocumentId() != null)\n sb.append(\"DocumentId: \").append(getDocumentId()).append(\",\");\n if (getDocumentTitle() != null)\n sb.append(\"DocumentTitle: \").append(getDocumentTitle()).append(\",\");\n if (getDocumentExcerpt() != null)\n sb.append(\"DocumentExcerpt: \").append(getDocumentExcerpt()).append(\",\");\n if (getDocumentURI() != null)\n sb.append(\"DocumentURI: \").append(getDocumentURI()).append(\",\");\n if (getDocumentAttributes() != null)\n sb.append(\"DocumentAttributes: \").append(getDocumentAttributes()).append(\",\");\n if (getFeedbackToken() != null)\n sb.append(\"FeedbackToken: \").append(getFeedbackToken());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "4e89ad5c285ebe7c4f6d35a9b50ca3d9", "score": "0.7552893", "text": "public String toString() {\n String str = \"\";\n str += this.data.toString();\n return str;\n }", "title": "" }, { "docid": "91a569bed95901f7293a24c39f10f868", "score": "0.7547324", "text": "public String toString() {\n\t\tString output = \"\";\r\n\t\treturn output;\r\n\t}", "title": "" }, { "docid": "c8a321d5fe1248f42c98e4fb72a08e87", "score": "0.75399256", "text": "@Override\n\tpublic String toString() {\n\t\treturn getClass().getName() + \"[\" + toStringRep() + \"]\";\n\t}", "title": "" }, { "docid": "1574bbb36de21914a4cc5df2455d725c", "score": "0.75399", "text": "@Override\n public final String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"id : \" + this.id + \"\\n\");\n builder.append(\"author : \" + this.author + \"\\n\");\n builder.append(\"categ : \" + this.categ + \"\\n\");\n builder.append(\"text : \" + this.text + \"\\n\");\n builder.append(\"commentable : \" + this.commentable + \"\\n\");\n builder.append(\"comments : \" + this.comments + \"\\n\");\n builder.append(\"I validate : \" + this.iValidate + \"\\n\");\n builder.append(\"you deserve it : \" + this.youDeserveIt + \"\\n\");\n builder.append(\"date : \" + this.date + \"\\n\");\n return builder.toString();\n }", "title": "" }, { "docid": "92e4909ebe58588a6c96fbfd6fe6be2d", "score": "0.75366974", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getValue() != null)\n sb.append(\"Value: \").append(getValue()).append(\",\");\n if (getPrincipalArn() != null)\n sb.append(\"PrincipalArn: \").append(getPrincipalArn()).append(\",\");\n if (getEffectiveSettings() != null)\n sb.append(\"EffectiveSettings: \").append(getEffectiveSettings()).append(\",\");\n if (getNextToken() != null)\n sb.append(\"NextToken: \").append(getNextToken()).append(\",\");\n if (getMaxResults() != null)\n sb.append(\"MaxResults: \").append(getMaxResults());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "784794b7e096da09c1799bddc767a1f8", "score": "0.7530498", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getDatabase() != null)\n sb.append(\"Database: \").append(getDatabase()).append(\",\");\n if (getTable() != null)\n sb.append(\"Table: \").append(getTable()).append(\",\");\n if (getConnectionName() != null)\n sb.append(\"ConnectionName: \").append(getConnectionName()).append(\",\");\n if (getConnectionType() != null)\n sb.append(\"ConnectionType: \").append(getConnectionType()).append(\",\");\n if (getRedshiftTmpDir() != null)\n sb.append(\"RedshiftTmpDir: \").append(getRedshiftTmpDir());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "a938790c1779f0087535ad1237eda071", "score": "0.7530374", "text": "@Override\r\n public String toString() {\r\n String info;\r\n info = this.getClass().toString();\r\n return info;\r\n }", "title": "" }, { "docid": "6311b2140cff1b99e7a5f0787150a823", "score": "0.75302386", "text": "@Override\r\n\tpublic String toString() {\r\n\t\tToStringBuilder builder = new ToStringBuilder(this);\r\n\t\tbuilder.append(\"user\", username);\r\n\t\tbuilder.append(\"web\", webClient);\r\n\t\tbuilder.append(\"loggedIn\", loggedIn);\r\n\t\tbuilder.append(\"isLocked\", islocked);\r\n\t\tbuilder.append(\"permission\", authorization);\r\n\t\treturn builder.toString();\r\n\t}", "title": "" }, { "docid": "a6c614a7a9bdf3be042bc301ceabef79", "score": "0.75277454", "text": "public String toString()\r\n\t{\r\n\t\tString output;\r\n\t\toutput = getFullName() + \" Gender: \";\r\n\t\toutput += Gender.convertGenderToString(this.gender);\r\n\t\toutput += \" SSN: \" + this.SSN + \" Age: \" + this.getAge();\r\n\t\treturn output;\r\n\t}", "title": "" } ]
a301450d9aa09e3963c81fa61585a010
Returns true if field rentalReturn is set (has been assigned a value) and false otherwise
[ { "docid": "59671e2be78018bf9fcba118ee5f0d79", "score": "0.8097697", "text": "public boolean isSetRentalReturn() {\n return EncodingUtils.testBit(__isset_bitfield, __RENTALRETURN_ISSET_ID);\n }", "title": "" } ]
[ { "docid": "61207b4d2117eafc192f67b7a59be636", "score": "0.6737794", "text": "public boolean isRented()\r\n {\r\n return this.rented;\r\n }", "title": "" }, { "docid": "04850ae97918e3ecf6446c5f7660cd11", "score": "0.666796", "text": "public boolean isSetRentMoney() {\n return EncodingUtils.testBit(__isset_bitfield, __RENTMONEY_ISSET_ID);\n }", "title": "" }, { "docid": "96c35926f6640c3bcc3994c4b1a68995", "score": "0.66176164", "text": "public Boolean hasReturn() {\n return any(preferTags(), getPreferTag(\"return\"));\n }", "title": "" }, { "docid": "58853da80f40b26e0ee75acab4c1e786", "score": "0.65983576", "text": "public boolean isSetRepayDttm() {\n return this.repayDttm != null;\n }", "title": "" }, { "docid": "15d24bc786ee9c35c8c1088e0a73abd1", "score": "0.64910716", "text": "public boolean isForReturn() {\n return this.bIsForReturn;\n }", "title": "" }, { "docid": "d439737ebad2039ecd3df54e2a87ce9a", "score": "0.6395388", "text": "public boolean isSetReconciliationAmt() {\n return EncodingUtils.testBit(__isset_bitfield, __RECONCILIATIONAMT_ISSET_ID);\n }", "title": "" }, { "docid": "a3a9a8abf58fcff8c445fd185c305258", "score": "0.62329376", "text": "boolean isSetRecidvar();", "title": "" }, { "docid": "e45c1b5ec05406498539fe3738b23b18", "score": "0.6225879", "text": "public boolean isSetRepaymentMoneyTotal() {\n return EncodingUtils.testBit(__isset_bitfield, __REPAYMENTMONEYTOTAL_ISSET_ID);\n }", "title": "" }, { "docid": "33ba5ccd447525d71ddd69eba8379a15", "score": "0.621111", "text": "public boolean isSetRebates() {\n return this.rebates != null;\n }", "title": "" }, { "docid": "2b5b261c205060e6528f83cccebe1d38", "score": "0.61867577", "text": "public boolean isSetReceDate() {\n return this.receDate != null;\n }", "title": "" }, { "docid": "67c09c55c6a709b144d34762f7ed9daf", "score": "0.6085197", "text": "public boolean get_return(){\r\n return local_return;\r\n }", "title": "" }, { "docid": "67c09c55c6a709b144d34762f7ed9daf", "score": "0.6085197", "text": "public boolean get_return(){\r\n return local_return;\r\n }", "title": "" }, { "docid": "ad25b22e19b283b017fdac566a5c4adc", "score": "0.6070522", "text": "public void rented()\r\n {\r\n this.rented = true;\r\n }", "title": "" }, { "docid": "56afb1c2044664631934c5b797ffabe0", "score": "0.6035076", "text": "public boolean isSetRentTerm() {\n return EncodingUtils.testBit(__isset_bitfield, __RENTTERM_ISSET_ID);\n }", "title": "" }, { "docid": "a641e3cf411db45cad3c623e0b515ef5", "score": "0.6017978", "text": "public boolean isSetReconciliationDt() {\n return this.reconciliationDt != null;\n }", "title": "" }, { "docid": "b84205cc58b89f3f76b859895de2c83e", "score": "0.5994108", "text": "public void returned()\r\n {\r\n this.rented = false;\r\n }", "title": "" }, { "docid": "ff8b039b8997eccc83b18c7cd8e5db94", "score": "0.59651595", "text": "public boolean isSetPlanRepayDttm() {\n return this.planRepayDttm != null;\n }", "title": "" }, { "docid": "5f83a972a0f3518d8dd2d0eb9d054139", "score": "0.5947274", "text": "public boolean isSetMonthlyRepaymentMoney() {\n return EncodingUtils.testBit(__isset_bitfield, __MONTHLYREPAYMENTMONEY_ISSET_ID);\n }", "title": "" }, { "docid": "cc38235d54069eacf14927f862f240ef", "score": "0.59027344", "text": "public boolean hasRet() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "0ce72e7af1374bb169e93c8c5e1a9626", "score": "0.58925825", "text": "public boolean hasRet() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "74b36e87d41e6882f5029db0339e7118", "score": "0.58589196", "text": "public boolean isSetPlanRepayDt() {\n return this.planRepayDt != null;\n }", "title": "" }, { "docid": "5d1cbb2324708e7b8f9d915c1c9c6e3b", "score": "0.58149225", "text": "public boolean isSetRepaymentType() {\n return EncodingUtils.testBit(__isset_bitfield, __REPAYMENTTYPE_ISSET_ID);\n }", "title": "" }, { "docid": "6e62e777e409b7bfa896ce3543cb949e", "score": "0.57998717", "text": "public boolean isSetResendPaymentAuthorisationResult()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(RESENDPAYMENTAUTHORISATIONRESULT$0) != 0;\n }\n }", "title": "" }, { "docid": "819f22085d98fd29627d06227e54d0c3", "score": "0.5793188", "text": "boolean isIsReceiptingFlag();", "title": "" }, { "docid": "d069abf0ace5cfcab5ab94485a480ce0", "score": "0.57913536", "text": "private static boolean checkReturn(String checkKeys) {\r\n if (checkKeys.equals(\"r\")) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "6234c78bb7c857ca06f12565f01b4205", "score": "0.5762193", "text": "public boolean isSetPlanRepayDt() {\n return this.planRepayDt != null;\n }", "title": "" }, { "docid": "4d2a35b7a0adb46b7e64b74710a680ae", "score": "0.5737231", "text": "public Boolean getReprice() {\n return reprice;\n }", "title": "" }, { "docid": "c9dfd4f84791505bbbb97c81f85774d7", "score": "0.5710336", "text": "boolean isSetPPr();", "title": "" }, { "docid": "684f02be6c636c274414fd486773d519", "score": "0.56933737", "text": "public Boolean getRetailTaxSwitch() {\n\t\treturn retailTaxSwitch;\n\t}", "title": "" }, { "docid": "31689243e684219baf215e73e7ab171c", "score": "0.56855184", "text": "public boolean isSetRepayInfo() {\n return this.repayInfo != null;\n }", "title": "" }, { "docid": "6bebd2e2009691906ce135f348fdbdbb", "score": "0.56762105", "text": "public void set_return(boolean param){\r\n \r\n // setting primitive attribute tracker to true\r\n \r\n if (false) {\r\n local_returnTracker = false;\r\n \r\n } else {\r\n local_returnTracker = true;\r\n }\r\n \r\n this.local_return=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "6bebd2e2009691906ce135f348fdbdbb", "score": "0.56762105", "text": "public void set_return(boolean param){\r\n \r\n // setting primitive attribute tracker to true\r\n \r\n if (false) {\r\n local_returnTracker = false;\r\n \r\n } else {\r\n local_returnTracker = true;\r\n }\r\n \r\n this.local_return=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "4a71c872a0c9182b6b224adc0b7ed830", "score": "0.5668077", "text": "private synchronized boolean testAndSetRenewalPending() {\n\tfinal boolean result = renewalPending;\n\trenewalPending = true;\n\treturn result;\n }", "title": "" }, { "docid": "c3ba428ac32c77ca369c5112eaf74bf8", "score": "0.5667609", "text": "public boolean isSetNRC() {\n return this.NRC != null;\n }", "title": "" }, { "docid": "c3ba428ac32c77ca369c5112eaf74bf8", "score": "0.5667609", "text": "public boolean isSetNRC() {\n return this.NRC != null;\n }", "title": "" }, { "docid": "0fbe7d249feb52df27f6c5f64c121a17", "score": "0.566055", "text": "@Test\r\n public void testSetRetired() {\r\n System.out.println(\"setRetired\");\r\n Boolean retired = null;\r\n instance.setRetired(retired);\r\n assertEquals(retired, instance.getRetired());\r\n }", "title": "" }, { "docid": "7035b07a091ee8871aa9acadec58b2aa", "score": "0.56551105", "text": "protected boolean isReInvite() {\n return this.reInviteFlag;\n }", "title": "" }, { "docid": "a96661dd68a0e70d72d654a0e0ca49e5", "score": "0.5640868", "text": "boolean IsReturning() {\n\t\treturn display instanceof Function && ((Function) display).returnvalue;\n\t}", "title": "" }, { "docid": "75041011c438d086c7388520d11460bc", "score": "0.56301296", "text": "boolean isSetAmount();", "title": "" }, { "docid": "a4ed0b7dca97932b81478554701f2800", "score": "0.5621079", "text": "public boolean isSetRemainingAmt() {\n return EncodingUtils.testBit(__isset_bitfield, __REMAININGAMT_ISSET_ID);\n }", "title": "" }, { "docid": "e49ae3c361831f895af09e59e7013d83", "score": "0.5615873", "text": "boolean isSetTaxAmount();", "title": "" }, { "docid": "c325aae2b14c806709d7073ea5ab0522", "score": "0.55721456", "text": "boolean hasEntryAmount();", "title": "" }, { "docid": "428d5e29f73c54721dc90cc38759012e", "score": "0.5570457", "text": "public boolean isSetRes() {\n return this.res != null;\n }", "title": "" }, { "docid": "d65c6807257a401cdd83e9b37c379706", "score": "0.5561423", "text": "public boolean isAutoRetaliateEnabled() {\n \treturn methods.settings.getSetting(Settings.SETTING_AUTO_RETALIATE) == 0;\n }", "title": "" }, { "docid": "f3d9623bffe37ddd811a29b2e5dbd304", "score": "0.5558797", "text": "public boolean haveRemainPayment() { return (paid_amount < fee.getTotalFee());}", "title": "" }, { "docid": "dd7b00bbdde70b55e447e5526a443e02", "score": "0.55271673", "text": "public Boolean isRowToReturn() {\r\n\r\n int cpt = 0;\r\n cpt += this.addedData.size();\r\n cpt += this.data.size();\r\n cpt -= this.deletedData.size();\r\n return cpt > 0;\r\n\r\n }", "title": "" }, { "docid": "903fd4d8b1039030a1c1eb645c552546", "score": "0.55264914", "text": "public boolean Racine(){\r\n return this.profondeur == 0;\r\n }", "title": "" }, { "docid": "52d537a00ab1ac28dfc51753a7d92c4f", "score": "0.5501924", "text": "public boolean isSetITURegDate() {\n return (this.ituRegDate != null ? this.ituRegDate.isSetValue() : false);\n }", "title": "" }, { "docid": "41068e0dcbf43b481641fee0614303eb", "score": "0.5483481", "text": "public boolean isRented(Vehicle v){\r\n \tif (this.rentedVehicles.containsValue(v)) return true;\r\n return false;\r\n }", "title": "" }, { "docid": "c786048130b995fed775ed6007cfce52", "score": "0.5481153", "text": "boolean getIsRemind();", "title": "" }, { "docid": "c786048130b995fed775ed6007cfce52", "score": "0.5481153", "text": "boolean getIsRemind();", "title": "" }, { "docid": "c786048130b995fed775ed6007cfce52", "score": "0.5481153", "text": "boolean getIsRemind();", "title": "" }, { "docid": "4e9fb1e5c2e45a015c2a9548957ff8f1", "score": "0.5476976", "text": "boolean isSetPatent();", "title": "" }, { "docid": "d37c522db499a0aa0acfcf5ca952cb84", "score": "0.5457237", "text": "boolean isSetRtypeloc();", "title": "" }, { "docid": "19e05b68869e9c6bd92ee9a910bbeab4", "score": "0.5453203", "text": "public boolean isSetResultMoney() {\n return EncodingUtils.testBit(__isset_bitfield, __RESULTMONEY_ISSET_ID);\n }", "title": "" }, { "docid": "9496b42412885a3a5222272cdcef13c3", "score": "0.5440165", "text": "boolean hasRet();", "title": "" }, { "docid": "b679620a3266a545c15d5f646ee5b353", "score": "0.5426566", "text": "public boolean isNotNullNonRevenue() {\n return genClient.cacheValueIsNotNull(CacheKey.nonRevenue);\n }", "title": "" }, { "docid": "f916f8c381a638a5fd01b8f232b47169", "score": "0.5425669", "text": "boolean hasIsRemind();", "title": "" }, { "docid": "f916f8c381a638a5fd01b8f232b47169", "score": "0.5425669", "text": "boolean hasIsRemind();", "title": "" }, { "docid": "f916f8c381a638a5fd01b8f232b47169", "score": "0.5425669", "text": "boolean hasIsRemind();", "title": "" }, { "docid": "f1882a33b245194e2690debef19918da", "score": "0.5411265", "text": "public boolean isReceiptRequested() {\n return receiptRequested;\n }", "title": "" }, { "docid": "887a07fd1a7ed933a2c2314917dfbbfd", "score": "0.5409573", "text": "public Integer getRentStatus() {\n return rentStatus;\n }", "title": "" }, { "docid": "f9801fc3e60d0255c1af18ce7d92b23b", "score": "0.5407345", "text": "public Byte getIsReturnPurchase() {\r\n return isReturnPurchase;\r\n }", "title": "" }, { "docid": "4f991e279c7cea7706efc38fcebd9e39", "score": "0.54064137", "text": "public boolean isSetBlurRad()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(BLURRAD$12) != null;\n }\n }", "title": "" }, { "docid": "319323d89d1ab8f43f558870bfb6fb5c", "score": "0.53995603", "text": "public boolean hasMaxDaysToReturn() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "title": "" }, { "docid": "91258c111bb0c127aa5b6431a347ae21", "score": "0.53885376", "text": "boolean hasDefaultRemindDay();", "title": "" }, { "docid": "9f797c6ff2030483a29911d6bf3be617", "score": "0.5387406", "text": "public boolean hasReward() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "title": "" }, { "docid": "57d23689ba12ac78a89e8ef5dc27e371", "score": "0.5379965", "text": "public boolean hasReward() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "10adbaf763b0abd531e9f115e027fb21", "score": "0.5378634", "text": "boolean hasNoRecordsToReturn();", "title": "" }, { "docid": "80984fa48c527c54a99f4db20d47c63b", "score": "0.5377521", "text": "public boolean hasMaxDaysToReturn() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "title": "" }, { "docid": "e16537c53338591368e91e0388259b9d", "score": "0.5375056", "text": "public boolean getCompleted() {\n return this.reward != null && this.reward.satisfiesEntryRequirements()\n && this.reward.satisfiesPointRequirements();\n }", "title": "" }, { "docid": "1ecb81338bcdad1386af3575da25be54", "score": "0.53705055", "text": "public boolean isSetRemarks() {\n return this.remarks != null;\n }", "title": "" }, { "docid": "8a26b69590db126149bb81bd4d92449c", "score": "0.5367712", "text": "@Test\n public void testRentalValidationOnlyCostumerIsSet() {\n System.out.println(\"testRentalValidationOnlyCostumerIsSet(): \");\n rental.setCustomer(youngCustomer);\n testvalidateRental(rental);\n }", "title": "" }, { "docid": "eeca6370a04e414869d2bfd31c68a040", "score": "0.5366191", "text": "public double getRentAmount()\r\n\t{\r\n\t\treturn rentAmount;\r\n\t}", "title": "" }, { "docid": "726a5dd782c81c07e79a0a9ae7dc5749", "score": "0.53509027", "text": "boolean isSetReversalIndicator();", "title": "" }, { "docid": "2fc90b95cec2de0b14c63fcc42be0faa", "score": "0.5345017", "text": "public boolean isReturningAll(){\r\n\t\treturn _returnAll;\r\n\t}", "title": "" }, { "docid": "c83372b4a674eaa9edde7878d5ed1e86", "score": "0.5343029", "text": "public boolean visit(ReturnStatement node) {\n return true;\n }", "title": "" }, { "docid": "ec4b025d29269fc37770910482154d2b", "score": "0.5339197", "text": "public boolean isDealerHasRetailer(int dealer_id) throws SQLException {\n\t\tboolean result = false;\n\t\tPreparedStatement ps=connection.prepareStatement(\n\t\t\t\t\"select 1 from dealers where active IN(1,2,3) AND parent_id = ? limit 1\");\n\t\tps.setInt(1, dealer_id);\n\t\tps.execute();\n\t\tResultSet rs = ps.getResultSet();\n\t\tif(rs.next()) {\n\t\t\tresult = true;\n\t\t}\n\t\trs.close();\n\t\tps.close();\n\t\treturn result;\n\t}", "title": "" }, { "docid": "4cb0b1e268d1a08afb7cd74f2cd1a001", "score": "0.5337732", "text": "public boolean isSetRFile() {\n return this.rFile != null;\n }", "title": "" }, { "docid": "a9e171133234c29df873aeb24211f48e", "score": "0.53345895", "text": "public Boolean getReturnedExpressListing()\n {\n return this.returnedExpressListing;\n }", "title": "" }, { "docid": "08ae556c23c4e22f72aa47a3babc2dc8", "score": "0.53336537", "text": "public void set_return(RegistrosProcesadosDTO param){\r\n local_returnTracker = param != null;\r\n \r\n this.local_return=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "08ae556c23c4e22f72aa47a3babc2dc8", "score": "0.53336537", "text": "public void set_return(RegistrosProcesadosDTO param){\r\n local_returnTracker = param != null;\r\n \r\n this.local_return=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "62e78870d5ba2aada518aaad096a5118", "score": "0.53263354", "text": "public boolean isReceipt();", "title": "" }, { "docid": "4e5036251c4fe0475f708cdf6f85c4c8", "score": "0.53216684", "text": "public boolean hasRetranUL() {\n return fieldSetFlags()[13];\n }", "title": "" }, { "docid": "534b54fee61319ce92dfa5956ade4a17", "score": "0.5321057", "text": "public boolean isRegdateModified() {\n return regdate_is_modified; \n }", "title": "" }, { "docid": "534b54fee61319ce92dfa5956ade4a17", "score": "0.5321057", "text": "public boolean isRegdateModified() {\n return regdate_is_modified; \n }", "title": "" }, { "docid": "5b73a6fbac5cd1ac37ede10fd9a42a23", "score": "0.5313368", "text": "public boolean getInitialPayment();", "title": "" }, { "docid": "60828399a0dabfdc3a512892a465ca5b", "score": "0.5307194", "text": "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case REPAY_INFO:\n return isSetRepayInfo();\n }\n throw new IllegalStateException();\n }", "title": "" }, { "docid": "beecac1cdd35d5483dcd5019ffaa327b", "score": "0.53028744", "text": "public boolean hasIsRetweeted() {\n return fieldSetFlags()[4];\n }", "title": "" }, { "docid": "3434dd6139e26483f82ff1cd965f740a", "score": "0.53021944", "text": "public boolean setRaggio(double r) {\n if(r>=0){\n this.raggio = r;\n return true;\n }else {\n return false;\n }\n }", "title": "" }, { "docid": "50b9cbe314ebe76fd397c9773ae893cb", "score": "0.52896076", "text": "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PLAN_REPAY_DT:\n return isSetPlanRepayDt();\n }\n throw new IllegalStateException();\n }", "title": "" }, { "docid": "5759f797db95a7f5515c648cd74f5bdf", "score": "0.5286161", "text": "public boolean isDonor() {\r\n\t\treturn (getState() == State.D);\r\n\t}", "title": "" }, { "docid": "c3bded237ceaed2f31d4f9b9199f26fd", "score": "0.5285733", "text": "public boolean isSetPaymentMoneyStr() {\n return this.paymentMoneyStr != null;\n }", "title": "" }, { "docid": "813cd95576998fa42c579b0647469753", "score": "0.52851135", "text": "boolean hasReward();", "title": "" }, { "docid": "51f61f3ccd1c3aeca05ec8529ddf9e2a", "score": "0.52769893", "text": "private boolean getPaymentSuccedd(){\n return true;\n }", "title": "" }, { "docid": "8c964e0cc979f0f5935519b8fd84b036", "score": "0.527488", "text": "boolean hasPayState();", "title": "" }, { "docid": "8c964e0cc979f0f5935519b8fd84b036", "score": "0.527488", "text": "boolean hasPayState();", "title": "" }, { "docid": "6d76a97084e70722a536ee41fc3f90cf", "score": "0.5271828", "text": "boolean hasMonthlyPayamount();", "title": "" }, { "docid": "f603b136e60ba13e03c6c0bdf6418bdc", "score": "0.52708405", "text": "public boolean hasRetcode() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "f603b136e60ba13e03c6c0bdf6418bdc", "score": "0.52708405", "text": "public boolean hasRetcode() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" } ]
5d344cc28f4a3be58ee8fd9d87c2ffb3
method for check checklist applicable or not
[ { "docid": "5ec2fea63f90467d58b98820b9bceb16", "score": "0.0", "text": "public boolean isChecklistApplicable(String serviceShortCode, long orgId) {\r\n Long smCheckListVerifyId = serviceRepo.isCheckListApplicable(serviceShortCode, orgId);\r\n if (smCheckListVerifyId == null || smCheckListVerifyId == 0) {\r\n throw new NullPointerException(\"No record found from TB_SERVICES_MST for serviceShortCode=\"\r\n + serviceShortCode + \"and orgId=\" + orgId + \"OR sm_chklst_verify column found null\");\r\n }\r\n String flag = StringUtils.EMPTY;\r\n\r\n // get APL prefix from default organization\r\n Organisation defaultOrg = organisationService.findDefaultOrganisation();\r\n List<LookUp> lookUps = CommonMasterUtility.getLookUps(\"APL\", defaultOrg);\r\n if (lookUps == null || lookUps.isEmpty()) {\r\n throw new NullPointerException(\r\n LOOKUP_NOT_FOUND_FOR_APL + defaultOrg.getONlsOrgname() + \", orgId:\" + defaultOrg.getOrgid());\r\n }\r\n for (LookUp lookUp : lookUps) {\r\n if (lookUp.getLookUpId() == smCheckListVerifyId) {\r\n flag = lookUp.getLookUpCode();\r\n break;\r\n }\r\n }\r\n if (flag.isEmpty()) {\r\n throw new IllegalArgumentException(\r\n \"conflicts! Prefix APL ids does'nt match to id found from TB_SERVICES_MST\");\r\n }\r\n\r\n return MainetConstants.APPLICABLE.equalsIgnoreCase(flag) ? true : false;\r\n }", "title": "" } ]
[ { "docid": "7edcb2538cc3792f8eabf70b4208f82c", "score": "0.68288964", "text": "boolean isSetList();", "title": "" }, { "docid": "8713bce528f9ad4d78e79c99c78d34f1", "score": "0.6673576", "text": "private boolean shouldLoadCheckList(Import_permit model){\n\t\tboolean ret = model.getCheckLists() != null && model.getCheckLists().size()>0;\n\t\tif(ret){\n\t\t\tret = loadQuestionInstances(model,null).size()>0;\n\t\t}\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "f7154ed937250ff6114ea0a00a9bbd2b", "score": "0.6633696", "text": "protected abstract boolean checkConditions();", "title": "" }, { "docid": "6c549cfd695c160300e12d35be546d68", "score": "0.6630895", "text": "static void checkList() {\n\n sb = new StringBuilder();\n\n System.out.println(\"*** Check lists. ***\");\n\n // validity to mark\n int len = rules.size();\n valid = new boolean[len];\n for(int i=0; i < len; i++) {\n valid[i] = true;\n }\n\n for (int i = 0; i < rules.size(); ++i) {\n if(!valid[i]) { // check validity\n continue;\n }\n IPsecRule curPolicy = rules.get(i);\n for(int j = 0; j < i; ++j) {\n if(!valid[j]) { // check validity\n continue;\n }\n IPsecRule prePolicy = rules.get(j);\n String preSrcIP = prePolicy.getmSource();\n String curSrcIP = curPolicy.getmSource();\n String preDesIP = prePolicy.getmDestination();\n String curDesIP = curPolicy.getmDestination();\n int preAction = prePolicy.getAction();\n int curAction = curPolicy.getAction();\n String srcIPComp = compareIP(preSrcIP, curSrcIP);\n String desIPComp = compareIP(preDesIP, curDesIP);\n\n String ipComp = ipComps(srcIPComp, desIPComp); //result of comparision in srcIP & desIP\n\n if(ipComp.equals(Constant.COMP_BE)) { // Shadow\n System.out.println(\"===> SHADOW policy: \" + curPolicy.toString() + \" by \" +\n prePolicy.toString());\n sb.append(\"策略屏蔽: \" + curPolicy.toString() + \"被\" +\n prePolicy.toString() + \"屏蔽.\\n\");\n System.out.println(\" => Delete latter policy: \" + curPolicy.toString());\n valid[i] = false;\n break;\n } else if(ipComp.equals(Constant.COMP_LE)) {\n if(preAction == curAction) { // Redundant\n System.out.println(\"===> REDUNDANT policy: \" + prePolicy.toString() + \" with \"\n + curPolicy.toString());\n sb.append(\"冗余策略: \" + prePolicy.toString() + \"是\"\n + curPolicy.toString() + \"的冗余.\\n\");\n System.out.println(\" => Delete former policy: \" + prePolicy.toString());\n valid[j] = false;\n } else { // Special case\n System.out.println(\"===> SPECIAL_CASE policy: \" + prePolicy.toString() + \" of \"\n + curPolicy.toString());\n sb.append(\"特例: \" + prePolicy.toString() + \"是\"\n + curPolicy.toString() + \"的特例.\\n\");\n }\n }\n }\n }\n\n// // delete at last according to the validity\n// Iterator<IPsecRule> it = rules.iterator();\n// int i = 0;\n// while (it.hasNext()) {\n// it.next();\n// if(!valid[i++]) {\n// it.remove();\n// }\n// }\n }", "title": "" }, { "docid": "5820ae30b0cbdabe1c069e79d7c8474b", "score": "0.6523711", "text": "public void checkChosenOptionListOnImpropriety(Tariff tariff, List<Option> chosenOptionList);", "title": "" }, { "docid": "fb64926facd044ec60b5fe1c8915d15c", "score": "0.6441412", "text": "@Override\n public boolean checkParticipation(){\n return buyerList.size() > 0;\n\n }", "title": "" }, { "docid": "b242d1910bcba58ff3d28acb53359a1a", "score": "0.64204884", "text": "private boolean validationCheck(Map map, ArrayList list) {\r\n\r\n\t\tif (list.size() > 0 && map.containsKey(\"appType\") && map.containsKey(\"browser\")\r\n\t\t\t\t&& map.containsKey(\"browserVersion\") && map.containsKey(\"platform\")) {\r\n\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "2d982dbc954ae14467148303726f331a", "score": "0.6410953", "text": "boolean isSetWarningList();", "title": "" }, { "docid": "2fd7d3850d83af3325b2f290c9d774cd", "score": "0.63343", "text": "boolean hasTicketList();", "title": "" }, { "docid": "41b40648a3f6bfa3bf15c4736a4d2720", "score": "0.62800246", "text": "@Override\n public void check(){\n \n }", "title": "" }, { "docid": "b04100d74d047e1c376fbf9d82939349", "score": "0.6217157", "text": "boolean checkAllRights(List<String> rights);", "title": "" }, { "docid": "696133b0225a13bac9ebe8cfd197629e", "score": "0.61939615", "text": "public void validateLists() {\n\r\n \tif (((DefaultListModel) affymetrixSelectedList.getModel()).size() > 0) {\r\n \t\tif (referenceRadioButton.isSelected()) {\r\n \t\t\tif (((DefaultListModel) refSelectedList.getModel()).size() > 0) {\r\n \t\t\t\tmarkLoadEnabled(true);\r\n \t\t\t} else {\r\n \t\t\t\tmarkLoadEnabled(false);\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tmarkLoadEnabled(true);\r\n \t\t}\r\n \t} else {\r\n \t\tmarkLoadEnabled(false);\r\n \t}\r\n }", "title": "" }, { "docid": "4642ce65c12fed734f917f88e7e69f1a", "score": "0.61928856", "text": "protected boolean handleList() {\n return this.hasRestriction;\n }", "title": "" }, { "docid": "3b4f9a4bc011ba3eb0d2de73cb9d90d6", "score": "0.61522317", "text": "private boolean validate (List<ParameterLogicalCondition> checkCondList) throws CyclicException, EmptyListParameterException {\n boolean hasComparison = false;\n // Lists parameter Collection\n for (ParameterCondition param : listComparable) {\n // If parameter is null\n if (param == null)\n throw new EmptyListParameterException(\"A condition in List of ParameterCondition is NULL.\");\n // If this object is inserted in its list\n if (this == param)\n throw new CyclicException(\"Cyclic structure. \" + this.toString());\n // If the object is a parameter logical condition\n if (param.getClass() == ParameterLogicalCondition.class) {\n ParameterLogicalCondition op = ((ParameterLogicalCondition)param);\n // Check the object doesn't exists in the list of checked conditions\n if (checkCondList.contains(op))\n throw new CyclicException(\"Cyclic structure. \" + this.toString());\n // Add check condition to the list\n checkCondList.add(this);\n // Validate the condition\n if (op.validate(checkCondList))\n hasComparison = true;\n }\n // If the object is a parameter logical condition\n else if (param instanceof ParameterCondition)\n hasComparison = true;\n }\n\n return hasComparison;\n }", "title": "" }, { "docid": "c15b76cfa337a14ee36545d55ebf4e8a", "score": "0.61461043", "text": "public void doCheck();", "title": "" }, { "docid": "c91fe382543f0d57dd671785103971e1", "score": "0.6140386", "text": "boolean hasValueList();", "title": "" }, { "docid": "e4a04e5e4b553b3e931c96b91fd4aea6", "score": "0.61383724", "text": "boolean getNewCheck();", "title": "" }, { "docid": "23e1cb59e3d03684f9fec738a3dfdda6", "score": "0.6108094", "text": "public CheckList getCheckList() {\n return checkList;\n }", "title": "" }, { "docid": "7786303700e877cc9078d0199a6bc2e3", "score": "0.60797507", "text": "boolean hasCustomMultiple();", "title": "" }, { "docid": "2dbb8d645612be3e13e62c9d1f51d53c", "score": "0.60720235", "text": "boolean hasNewList();", "title": "" }, { "docid": "339c8c6700c72b36e2ca597e17439fd6", "score": "0.60597783", "text": "public boolean verifyRequirements(){\n for (boolean b : approved) {\n if(b)\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "21fcdda255b058ec1a5b09301f8086db", "score": "0.60596", "text": "boolean checkAvailability(Item item);", "title": "" }, { "docid": "51d993bc68e13542f94793cbae57cb39", "score": "0.6052908", "text": "@Override\r\n public void check()\r\n {\n \r\n }", "title": "" }, { "docid": "cab96475c10840c69a2bd9e0271f69cc", "score": "0.60445535", "text": "Checklist() {\r\n }", "title": "" }, { "docid": "5fbfd32c9f362213d6ffa5f89c61220d", "score": "0.60225064", "text": "private static List<Boolean> createCheckList(DoorState door) {\n return new ArrayList<>(Arrays.asList(door.hasNoDamage()));\n }", "title": "" }, { "docid": "d5cbe5b7c98a7ecadff8391b57a6fa9c", "score": "0.60114604", "text": "protected abstract boolean hasElementsToCheck();", "title": "" }, { "docid": "bd770b693ac224b9a09f92e16b36e83f", "score": "0.60052925", "text": "@Override\r\n public void check() {\n }", "title": "" }, { "docid": "94fcf8c8f386d7808c43db71ea1dc0db", "score": "0.5972812", "text": "void _check();", "title": "" }, { "docid": "be86f4f55692af31d1ad6ba06cf4c601", "score": "0.59584063", "text": "public boolean checkConditions() {\n // logger.info(\"Checking Conditions\");\n return control.subTasks.size() > 0;\n }", "title": "" }, { "docid": "5f1a55e77b0e9b9260b1f3aa11d81d40", "score": "0.5947108", "text": "boolean hasUserList();", "title": "" }, { "docid": "9069ce0f7559bfaa565e7dcd92f14382", "score": "0.59354556", "text": "@Override\r\n\tpublic boolean listValidate(DataList dataList) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "45e7ac26cbf64d03d423e09e5aec1c1a", "score": "0.5915819", "text": "public boolean check(int check_list[],\n Classification classification, Globals g )\n {\n int errors_total = 0;\n int warnings_total = 0;\n// int errors;\n// int warnings;\n /** The first element contains the number of errors and the second\n *contains the number of warnings produced by the various checks.\n *At this moment the warnings are not really used.\n */\n int[] status = {0, 0};\n int check_id;\n\n if ( check_list.length == 0 ) {\n General.showWarning(\"check got empty check list\");\n return true;\n }\n\n for ( int i=0;i<check_list.length;i++ ) {\n check_id = check_list[i];\n switch(check_id)\n {\n case 1:\n status = checkBlockCount();\n errors_total += status[0];\n warnings_total += status[1];\n break;\n case 2:\n status = checkBlockTypes(classification);\n errors_total += status[0];\n warnings_total += status[1];\n break;\n case 3:\n status = checkBlockEmptiness();\n errors_total += status[0];\n warnings_total += status[1];\n break;\n case 4:\n status = checkDiff(g);\n errors_total += status[0];\n warnings_total += status[1];\n break;\n default:\n General.showError(\"in DBMRFile.check found:\");\n General.showError(\"no check with id: \" + check_id);\n break;\n }\n }\n\n if (errors_total!=0) {\n General.showError(\"Found one or more errors by checking.\");\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "019e65abeab3d662893a3103619e62ef", "score": "0.5878438", "text": "boolean isValid(ArrayList<String> args) {\n return args.size() == 2;\n }", "title": "" }, { "docid": "b4c0eb2f383b29d5808a725abf61ece6", "score": "0.5873452", "text": "public ArrayList<String> checklistChecker() {\r\n /*Make an ArrayList*/\r\n ArrayList<String> checklist = new ArrayList<>();\r\n /*\r\n THIS VARIABLE SERVES TO REDUCE FILE ACCESS TIME AND REDUCE FUNCTION TIME\r\n */\r\n List<String> seriesList = ProgramFunctions.getUtilities().getFileHandler().searchSeriesFolder();\r\n /*Declare a counter*/\r\n float counter;\r\n /*For all series*/\r\n for (String aSeriesList : seriesList) {\r\n /*Set the counter to zero*/\r\n counter = 0;\r\n /*\r\n THIS VARIABLE SERVES TO REDUCE FILE ACCESS TIME AND REDUCE FUNCTION TIME\r\n */\r\n ArrayList<String> series = ProgramFunctions.getUtilities().getFileHandler().loadSeries(aSeriesList).listCardsString();\r\n /*For all cards in the series*/\r\n for (String sery : series) {\r\n /*Make an ArrayList of the search cards in user profile*/\r\n ArrayList<SearchResult> tmp = ProgramFunctions.getQuery().searchCard(sery);\r\n /*For all the search results*/\r\n for (SearchResult test : tmp) {\r\n /*Create a test string*/\r\n /*If the series name matches the cards set ID*/\r\n if (aSeriesList.equals(test.getSetID())) {\r\n /*Increment the counter*/\r\n counter++;\r\n /*Break*/\r\n break;\r\n }\r\n }\r\n }\r\n /*Make a float*/\r\n float size = series.size();\r\n /*Make a float*/\r\n float percent = ((counter / size) * 100);\r\n /*Output the percentage to console*/\r\n System.out.println(\"[SYSTEM] Percentage calculated at \" + percent + \"%\");\r\n /*Add the data to the checklist*/\r\n checklist.add(aSeriesList + \" \\t=====\\t \" + percent + \"%\");\r\n }\r\n /*Return the checklist*/\r\n return checklist;\r\n }", "title": "" }, { "docid": "7a027543db9d74ccc81f16c94cd5074c", "score": "0.58669454", "text": "public void validateItem(String sensorID, ArrayList<String> capList, boolean doesCapabilitiesHaveToBeSelected);", "title": "" }, { "docid": "9124b26b1b2093ca34f91cc538344a77", "score": "0.5863356", "text": "protected abstract boolean isChecked();", "title": "" }, { "docid": "94e7c99310a3c327a96b27a9b273ec5f", "score": "0.5854614", "text": "@java.lang.Override\n public boolean hasRuleBasedUserList() {\n return userListCase_ == 21;\n }", "title": "" }, { "docid": "67fb22399cbb80f8b449bf9f3a21386d", "score": "0.58505017", "text": "private void checkAttendantPresent(List<AttendantDetails> attendantDetails) {\n }", "title": "" }, { "docid": "f15f10b790f1f2cfcf6562cfe54c67a0", "score": "0.58442754", "text": "public CheckStatus check(Item item, Object value);", "title": "" }, { "docid": "0f39dbb7e4a19181a521e27f1a4ae732", "score": "0.58208734", "text": "public boolean isReady(List<ChecklistItem> checklistItems) {\n for (ChecklistItem checklistItem : checklistItems) {\n if (!checklistItem.isComplete()) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "52e6f59c74665bd6fc264e398e03ad1e", "score": "0.5819345", "text": "public boolean isAllValid();", "title": "" }, { "docid": "c806980916e6dbc2f959aa393a833e48", "score": "0.58030146", "text": "void verifyCanList() throws IllegalStateException;", "title": "" }, { "docid": "d0be7714bac0be5cad874b270363b0e9", "score": "0.57968724", "text": "private boolean initIsEligible() {\n if (!ProviderEligibilityChecker.isEligible(mContext, mId, mResolveInfo)) {\n return false;\n }\n if (!ConnectivityEligibilityChecker.isEligible(mContext, mId, mResolveInfo)) {\n return false;\n }\n if (!FeatureEligibilityChecker.isEligible(mContext, mId, mResolveInfo)) {\n return false;\n }\n if (!AccountEligibilityChecker.isEligible(mContext, mId, mResolveInfo)) {\n return false;\n }\n if (!DismissedChecker.isEligible(mContext, mId, mResolveInfo, mIgnoreAppearRule)) {\n return false;\n }\n if (!AutomotiveEligibilityChecker.isEligible(mContext, mId, mResolveInfo)) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "c326e9ab91cdb36c8382665525484851", "score": "0.5789039", "text": "@Override\n public boolean CheckCondition() {\n return AllQuestions.get(0).getCurrentCondition() == AllQuestions.get(4).getCurrentCondition();\n }", "title": "" }, { "docid": "5be42182a1427cd1ca61f0e371238d58", "score": "0.5788034", "text": "@Override\n\t\t\tpublic boolean checkCondition()\n\t\t\t{\n\t\t\t\treturn !controller.displayVendingMachines().isEmpty();\n\t\t\t}", "title": "" }, { "docid": "e80b6e533b4032ae7d23c85717e9a9cd", "score": "0.5779526", "text": "boolean isSetCareOf();", "title": "" }, { "docid": "0bb97d3ca547ea92f7894e770bbf2e35", "score": "0.57782483", "text": "@java.lang.Override\n public boolean hasLogicalUserList() {\n return userListCase_ == 22;\n }", "title": "" }, { "docid": "d9ab6e61435039dd7d2b974b89d11ce2", "score": "0.57695955", "text": "protected abstract boolean ruleCheck();", "title": "" }, { "docid": "bb4b6e36dc9af1345d05a441e251712a", "score": "0.57665044", "text": "boolean allowed();", "title": "" }, { "docid": "97df212fdc1fc0700d382d177f804d2d", "score": "0.57619303", "text": "boolean hasListOpen();", "title": "" }, { "docid": "3a23a2f7d335835bd248c386abf08710", "score": "0.5748624", "text": "@java.lang.Override\n public boolean hasRuleBasedUserList() {\n return userListCase_ == 21;\n }", "title": "" }, { "docid": "2ec92d1b73f8c1f8aadd300adc668409", "score": "0.57418764", "text": "@Override\r\n\tpublic void validCheck() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e8519096a8ef1c73a2a05fd7114e97f9", "score": "0.57326853", "text": "@Override\n\t\t\tpublic boolean checkCondition()\n\t\t\t{\n\t\t\t\treturn ( !controller.displayVendingMachines().isEmpty() );\n\t\t\t}", "title": "" }, { "docid": "32142294bfea9a5d9ca5518b20aba5d7", "score": "0.5718367", "text": "private boolean allWordsGuessed() {\n for (CheckBox chk : chkList) {\n if (!chk.isChecked()) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "9acfa896fec801b954248d057da68179", "score": "0.56952554", "text": "protected abstract boolean canCheck(final C component);", "title": "" }, { "docid": "c970f7a20110083c4f0145bbe58ed8f0", "score": "0.5685233", "text": "private static boolean isInList(CheckstyleRecord testedRecord,\n List<CheckstyleRecord> list) {\n boolean belongsToList = false;\n for (CheckstyleRecord record : list) {\n if (testedRecord.specificEquals(record)) {\n belongsToList = true;\n break;\n }\n }\n return belongsToList;\n }", "title": "" }, { "docid": "793aa72c0d075f8203f312c902937d51", "score": "0.568488", "text": "@Override\n public boolean canCheck(Object obj) {\n return (obj instanceof SpectrumIdentificationList);\n }", "title": "" }, { "docid": "b9d7bc04c7ae8876b2b6bb2d582f2c93", "score": "0.5674445", "text": "private static boolean checkIfExists(final List<Field<?, ?>> theList,\r\n final Field<?, ?> theField) {\r\n for (final Field<?, ?> f : theList) {\r\n if (f.name().equals(theField.name())) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "b66702c36ac287ad60e2366e3a4d3cc9", "score": "0.56709814", "text": "public static boolean check3(List<String> list){\n\t\tString anwser=list.get(2);\r\n\t\tswitch (anwser)\r\n\t\t{\r\n\t case \"A\"://2 4 6 same\r\n\t \treturn functionOne(list.get(1),list.get(3),list.get(5));\r\n\t case \"B\": //2 3 4 same\r\n\t \treturn functionOne(list.get(1),list.get(2),list.get(3));\r\n\t\tcase \"C\": //3 4 6 same\r\n\t\t\treturn functionOne(list.get(2),list.get(3),list.get(5));\r\n\t\tcase \"D\": //2 3 6 same\r\n\t\t\treturn functionOne(list.get(1),list.get(2),list.get(5));\r\n\t\tdefault:\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "81ea02f82f7564241ec98aeb261c0f59", "score": "0.5670635", "text": "public boolean verify(List<String>but, List<Regle>regles,Fait fait){\n //if all regles.conclusions doesn't contain but return false\n boolean test = false;\n List<Regle> butInRegles = new ArrayList<Regle>();\n for( int r = 0; r < regles.size(); r++ ){\n if ( util.bcContains( but, regles.get( r ).getConclusions() ) == true ){\n butInRegles.add( regles.get( r ) );\n test = true;\n //System.out.println( \"1 \");\n }\n }\n if( test == false ){\n //System.out.println( \"2 \");\n return false;\n\n }\n else{\n //else\n//System.out.println( \"3 \");\n for( int reg =0; reg < butInRegles.size(); reg++ )\n if (util.allExists(butInRegles.get(reg).getPremisses(), fait.getHypothesis()) == true) {\n System.out.println(\"premisses \" + butInRegles.get(reg).getPremisses() + \" hypothesis \" + fait.getHypothesis());\n System.out.println(butInRegles.get(reg));\n return true;\n } else /*if ( this.bcContains(but, butInRegles.get( reg ).getConclusions() ).size() == 0 )*/ {\n System.out.println(\"premisses \" + butInRegles.get(reg).getPremisses() + \" but \" + but);\n System.out.println(butInRegles.get(reg));\n //delete regles\n test = this.verify(util.diffLists(butInRegles.get(reg).getPremisses(), fait.getHypothesis()), util.delRegle(regles, butInRegles.get(reg)), fait);\n //System.out.println( this.bcContains( butInRegles.get( reg ).getPremisses(), fait.getHypothesis() ) );\n }\n\n }\n return test;\n }", "title": "" }, { "docid": "0d911fbd0ff0d9abb4629ba80e25bcad", "score": "0.5668655", "text": "public Vector requestHowManyCheckbox(Vector listReason, Vector listPosition) {\n try {\n this.requestParam();\n\n String userSelected[];\n //int indexString =0;\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_PRESENCE_ONTIME_IDX_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_PRESENCE_ONTIME_IDX_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n //sSelected.add()\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n\n\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_PRESENCE_ONTIME_TIME_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_PRESENCE_ONTIME_TIME_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n //priska\n// userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_IN_CHK_BOX]);\n// if (userSelected != null && userSelected.length > 0) {\n// for (int i = 0; i < userSelected.length; i++) {\n// try {\n// long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n// long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n// long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n// String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_IN_ADJUSMENT];\n// if (empId != 0) {\n// //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n// vListManyCheckBox.add(payCode + \"_\" + empId);\n// sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n//\n// }\n// } catch (Exception exc) {\n// System.out.println(\"Exc\" + exc);\n// }\n// }\n// }\n// userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_OUT_CHK_BOX]);\n// if (userSelected != null && userSelected.length > 0) {\n// for (int i = 0; i < userSelected.length; i++) {\n// try {\n// long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n// long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n// long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n// String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_OUT_ADJUSMENT];\n// if (empId != 0) {\n// //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n// vListManyCheckBox.add(payCode + \"_\" + empId);\n// sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n//\n// }\n// } catch (Exception exc) {\n// System.out.println(\"Exc\" + exc);\n// }\n// }\n// }\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_LATE_IDX_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_LATE_IDX_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_LATE_TIME_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_LATE_TIME_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_EARLY_HOME_IDX_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_EARLY_HOME_IDX_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_EARLY_HOME_TIME_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_EARLY_HOME_TIME_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_LATE_EARLY_IDX_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_LATE_EARLY_IDX_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_LATE_EARLY_TIME_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_LATE_EARLY_TIME_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n if (listReason != null && listReason.size() > 0) {\n for (int idxRes = 0; idxRes < listReason.size(); idxRes++) {\n Reason reason = (Reason) listReason.get(idxRes);\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_REASON_IDX_CHK_BOX] + \"_\" + reason.getNo());\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n int reasonNo = Integer.parseInt((userSelected[i].split(\"_\")[3]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_REASON_IDX_ADJUSMENT];\n if (empId != 0 && reasonNo == reason.getNo()) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId+\"_\"+payCode+\"_\"+reason.getNo()+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + reason.getNo() + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId + \"-\" + payCode + \"-\" + reason.getNo() + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_REASON_TIME_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_REASON_TIME_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId+\"_\"+payCode+\"_\"+reason.getNo()+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + reason.getNo() + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId + \"-\" + payCode + \"-\" + reason.getNo() + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n }\n }\n\n\n //end reason\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ABSENCE_IDX_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ABSENCE_IDX_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ABSENCE_TIME_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ABSENCE_TIME_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n //priska 20150320\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_IN_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_IN_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_IN_TIME_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_IN_TIME_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n \n \n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_OUT_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_OUT_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_OUT_TIME_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_ONLY_OUT_TIME_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n \n \n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_UNPAID_LEAVE_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_UNPAID_LEAVE_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_INSENTIF_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_INSENTIF_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n \n \n \n /*userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_OT_IDX_SALARY_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId =Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId =Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode =FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_OT_IDX_PAID_SALARY_ADJUSMENT];\n if(empId!=0){\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode+\"_\"+empId);\n sSelectedChkBox.add(payCode+\"-\"+paySlipId+\"-\"+periodId+\"-\"+empId);\n }\n }catch(Exception exc){\n System.out.println(\"Exc\"+exc);\n }\n }\n }*/\n\n /*userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_OT_ALLOWANCE_MONEY_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId =Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId =Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode =FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_OT_ALLOWANCE_MONEY_ADJUSMENT];\n if(empId!=0){\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode+\"_\"+empId);\n sSelectedChkBox.add(payCode+\"-\"+paySlipId+\"-\"+periodId+\"-\"+empId);\n }\n }catch(Exception exc){\n System.out.println(\"Exc\"+exc);\n }\n }\n }*/\n\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_OT_ALLOWANCE_FOOD_CHK_BOX]);\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_OT_ALLOWANCE_FOOD_ADJUSMENT];\n if (empId != 0) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n\n //position\n if (listPosition != null && listPosition.size() > 0) {\n for (int idxRes = 0; idxRes < listPosition.size(); idxRes++) {\n Position position = (Position) listPosition.get(idxRes);\n userSelected = this.getParamsStringValues(FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_POSITION_CHK_BOX] + \"_\" + position.getOID());\n if (userSelected != null && userSelected.length > 0) {\n for (int i = 0; i < userSelected.length; i++) {\n try {\n long empId = Long.parseLong((userSelected[i].split(\"_\")[0]));\n long periodId = Long.parseLong((userSelected[i].split(\"_\")[1]));\n long paySlipId = Long.parseLong((userSelected[i].split(\"_\")[2]));\n long positionId = Long.parseLong((userSelected[i].split(\"_\")[3]));\n String payCode = FrmPayInput.fieldNames[FrmPayInput.FRM_FIELD_POSITION_ADJUSMENT];\n if (empId != 0 && positionId == position.getOID()) {\n //vListManyCheckBox.add(payCode+\"_\"+paySlipId+\"_\"+periodId+\"_\"+empId+\"_\"+payCode+\"_\"+position.getOID()+\"_\"+periodId+\"_\"+empId);\n vListManyCheckBox.add(payCode + \"_\" + position.getOID() + \"_\" + empId);\n sSelectedChkBox.add(payCode + \"-\" + paySlipId + \"-\" + periodId + \"-\" + empId + \"-\" + payCode + \"-\" + position.getOID() + \"-\" + periodId + \"-\" + empId);\n }\n } catch (Exception exc) {\n System.out.println(\"Exc\" + exc);\n }\n }\n }\n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Error on requestEntityObject : \" + e.toString());\n }\n Vector vListAllTotal = new Vector();\n vListAllTotal.add(vListManyCheckBox);\n vListAllTotal.add(sSelectedChkBox);\n return vListAllTotal;\n }", "title": "" }, { "docid": "4df3ca4a2f4a644b6901d772115885fa", "score": "0.5665308", "text": "@Override\r\n\tpublic boolean listValidate(ListHead listHead) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c1408afde9b5e91b5cdfdac92bbd6f01", "score": "0.56410193", "text": "@java.lang.Override\n public boolean hasLogicalUserList() {\n return userListCase_ == 22;\n }", "title": "" }, { "docid": "f1c205a5965e0ac652f96782d2bd8381", "score": "0.56016076", "text": "@FXML\n @SuppressWarnings(\"unchecked\")\n private boolean addCheckFields() {\n boolean ok = true;\n if (!addTestField(\"addBuildingNumber\", \"addBuildingName\", \"addBuildingAddress\", \"addMondayHours\", \"addTuesdayHours\", \"addWednesdayHours\",\n \"addThursdayHours\", \"addFridayHours\", \"addSaturdayHours\", \"addSundayHours\")) {\n ok = false;\n }\n return ok;\n }", "title": "" }, { "docid": "0f37646086ab24c0b17fd081b0c3bc8e", "score": "0.5599667", "text": "boolean hasItems();", "title": "" }, { "docid": "0f37646086ab24c0b17fd081b0c3bc8e", "score": "0.5599667", "text": "boolean hasItems();", "title": "" }, { "docid": "d2a5927a31b74ff155294f16d7a4afb1", "score": "0.5589315", "text": "private boolean validatePage() {\r\n\t\tboolean result = false;\r\n\r\n\t\tAndrolate a = getAndrolate();\r\n\t\tif (a == null)\r\n\t\t\treturn false;\r\n\r\n\t\tfor (TableItem ti : mFileList.getItems()) {\r\n\t\t\tAndrolateOperation op = (AndrolateOperation) ti.getData();\r\n\t\t\tif (op == null)\r\n\t\t\t\tcontinue;\r\n\t\t\tif (ti.getChecked()) {\r\n\t\t\t\tif (!AndrolateApplication.contains(a.getOperations(), op))\r\n\t\t\t\t\ta.getOperations().add(op);\r\n\t\t\t} else {\r\n\t\t\t\tif (AndrolateApplication.contains(a.getOperations(), op))\r\n\t\t\t\t\ta.getOperations().remove(op);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (TableItem ti : mFileList.getSelection()) {\r\n\t\t\tAndrolateOperation op = (AndrolateOperation) ti.getData();\r\n\t\t\tif (op == null)\r\n\t\t\t\tcontinue;\r\n\t\t\tif (ti.getChecked()) {\r\n\t\t\t\tif (!AndrolateApplication.contains(a.getOperations(), op))\r\n\t\t\t\t\ta.getOperations().add(op);\r\n\t\t\t} else {\r\n\t\t\t\tif (AndrolateApplication.contains(a.getOperations(), op))\r\n\t\t\t\t\ta.getOperations().remove(op);\r\n\t\t\t}\r\n\t\t\tfor (TableItem tiTranslate : mTranslateStringTable.getItems()) {\r\n\t\t\t\tStringData s = (StringData) tiTranslate.getData();\r\n\t\t\t\tif (tiTranslate.getChecked()) {\r\n\t\t\t\t\tif (!AndrolateApplication.containsStringData(op\r\n\t\t\t\t\t\t\t.getTranslateList(), s)) {\r\n\t\t\t\t\t\top.getTranslateList().add(s);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (AndrolateApplication.containsStringData(op\r\n\t\t\t\t\t\t\t.getTranslateList(), s)) {\r\n\t\t\t\t\t\tAndrolateApplication.removeStringData(op\r\n\t\t\t\t\t\t\t\t.getTranslateList(), s);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (TableItem tiIgnore : mIgnoreStringTable.getItems()) {\r\n\t\t\t\tStringData s = (StringData) tiIgnore.getData();\r\n\t\t\t\tif (tiIgnore.getChecked()) {\r\n\t\t\t\t\tif (!AndrolateApplication.containsStringData(op\r\n\t\t\t\t\t\t\t.getIgnoreList(), s)) {\r\n\t\t\t\t\t\top.getIgnoreList().add(s);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tAndrolateApplication\r\n\t\t\t\t\t\t\t.removeStringData(op.getIgnoreList(), s);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tList<AndrolateOperation> operations = a.getOperations();\r\n\t\tif (operations == null || operations.size() == 0)\r\n\t\t\treturn false;\r\n\r\n\t\tfor (AndrolateOperation o : operations) {\r\n\t\t\tif (!(o.getTranslateList() == null || o.getTranslateList().size() == 0)) {\r\n\t\t\t\tresult = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "7edd895e42bf5887ec979ed426ed8869", "score": "0.55854636", "text": "public boolean isCheckedOut();", "title": "" }, { "docid": "a61ebf4c6c5d04b5770729c3ddd21d80", "score": "0.5576452", "text": "public void check()\n\t{\n\n\n\t\t if(Filter.filtercolor == 2) {\n\t\t\tFragmentManager manager = getFragmentManager();\n\t\t\tLayout2 layout2 = (Layout2) manager.findFragmentById(R.id.detailFragment);\n\t\t\t if(layout2 != null ) {\n\t\t\t\t View v;\n\t\t\t\t CheckBox cbedit;\n\n\t\t\t\t for (int i = 0; i < 5; i++) {\n\n\n\t\t\t\t\t v = layout2.list.getChildAt(i);\n\t\t\t\t\t cbedit = (CheckBox) v.findViewById(R.id.checkBox1);\n\t\t\t\t\t if (i == 0 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.AC = true;\n\t\t\t\t\t }\n\t\t\t\t\t else if (i ==0 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.AC = null;\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 1 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.Wifi = true;\n\t\t\t\t\t }\n\t\t\t\t\t else if (i ==1 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.Wifi = null;\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 2 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.EducationalTrips = true;\n\n\t\t\t\t\t }else if (i ==2 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.EducationalTrips = null;\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 3 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.auditorium = true;\n\t\t\t\t\t }\n\t\t\t\t\t else if (i ==3 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.auditorium = null;\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 4 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.hostel = true;\n\n\t\t\t\t\t }\n\t\t\t\t\t else if (i ==4 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.hostel = null;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t//\tToast.makeText(getApplicationContext(), \"Saving facilities\", Toast.LENGTH_SHORT).show();\n\t\t}\n\t\telse if(Filter.filtercolor == 3) {\n\t\t\t FragmentManager manager = getFragmentManager();\n\t\t\t Layout3 layout3 = (Layout3) manager.findFragmentById(R.id.detailFragment);\n\t\t\t if (layout3 != null) {\n\t\t\t\t View v;\n\t\t\t\t CheckBox cbedit;\n\t\t//\t\t Toast.makeText(getApplicationContext(), \"Saving Level \", Toast.LENGTH_SHORT).show();\n\t\t\t\t for (int i = 0; i < 3; i++) {\n\n\t\t\t\t\t v = layout3.list.getChildAt(i);\n\t\t\t\t\t cbedit = (CheckBox) v.findViewById(R.id.checkBox1);\n\t\t\t\t\t if (i == 0 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.primary = true;\n\t\t\t\t\t\t Filter.levelAL[0] = \"primary\"; // we made an array because we have to send values in array in json format.\n\t\t\t\t\t }\n\t\t\t\t\t else if(i == 0 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.primary = false;\n\t\t\t\t\t\t Filter.levelAL[0] = null;\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 1 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.senior_secondary = true;\n\t\t\t\t\t\t Filter.levelAL[1] = \"senior-secondary\";\n\t\t\t\t\t }\n\t\t\t\t\t else if(i == 1 && !cbedit.isChecked()){\n\t\t\t\t\t\t Filter.senior_secondary = false;\n\t\t\t\t\t\t Filter.levelAL[1] = null;\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 2 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.play_school = true;\n\t\t\t\t\t\t Filter.levelAL[2] = \"play-school\";\n\t\t\t\t\t }\n\t\t\t\t\t else if(i ==2 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.play_school =false;\n\t\t\t\t\t\t Filter.levelAL[2] = null;\n\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\telse if(Filter.filtercolor == 4) {\n\t\t\t FragmentManager manager = getFragmentManager();\n\t\t\t Layout4 layout4 = (Layout4) manager.findFragmentById(R.id.detailFragment);\n\t\t\t if (layout4 != null) {\n\t\t\t\t View v;\n\t\t\t\t CheckBox cbedit;\n\t\t\t\t// Toast.makeText(getApplicationContext(), \"Saving Board\", Toast.LENGTH_SHORT).show();\n\t\t\t\t for (int i = 0; i < 4; i++) {\n\t\t\t\t\t v = layout4.list.getChildAt(i);\n\t\t\t\t\t cbedit = (CheckBox) v.findViewById(R.id.checkBox1);\n\t\t\t\t\t if (i == 0 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.CBSE = true;\n\t\t\t\t\t\t Filter.boardAL[0] = \"CBSE\"; // we made an array because we have to send values in array in json format.\n\t\t\t\t\t }\n\t\t\t\t\t else if (i == 0 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\tFilter.CBSE = false;\n\t\t\t\t\t\t Filter.boardAL[0] = null;\n\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 1 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.ICSE = true;\n\t\t\t\t\t\t Filter.boardAL[1] = \"ICSE\";\n\t\t\t\t\t }\n\t\t\t\t\t else if(i == 1 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.ICSE = false;\n\t\t\t\t\t\t Filter.boardAL[1] = null;\n\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 2 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.IGCSE = true;\n\t\t\t\t\t\t Filter.boardAL[2] = \"IGCSE\";\n\t\t\t\t\t }\n\t\t\t\t\t else if(i == 2 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.IGCSE = false;\n\t\t\t\t\t\t Filter.boardAL[2] = null;\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 3 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.SSC = true;\n\t\t\t\t\t\t Filter.boardAL[3] = \"SSC\";\n\t\t\t\t\t }\n\t\t\t\t\t else if(i == 3 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.SSC = false;\n\t\t\t\t\t\t Filter.boardAL[3] = null;\n\n\t\t\t\t\t }\n\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\telse if(Filter.filtercolor == 5) {\n\t\t\t FragmentManager manager = getFragmentManager();\n\t\t\t Layout5 layout5 = (Layout5) manager.findFragmentById(R.id.detailFragment);\n\t\t\t if (layout5 != null) {\n\t\t\t\t View v;\n\t\t\t\t CheckBox cbedit;\n\t\t\t\t// Toast.makeText(getApplicationContext(), \"Saving Coeducation\", Toast.LENGTH_SHORT).show();\n\t\t\t\t for (int i = 0; i < 3; i++) {\n\n\n\t\t\t\t\t v = layout5.list.getChildAt(i);\n\t\t\t\t\t cbedit = (CheckBox) v.findViewById(R.id.checkBox1);\n\t\t\t\t\t if (i == 0 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.boys_only = true;\n\t\t\t\t\t\t Filter.coeducationAL[0] = \"1\"; // we made an array because we have to send values in array in json format.\n\t\t\t\t\t }\n\t\t\t\t\t else if(i ==0 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.boys_only = false;\n\t\t\t\t\t\t Filter.coeducationAL[0] = null;\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 1 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.girls_only = true;\n\t\t\t\t\t\t Filter.coeducationAL[1] = \"2\";\n\t\t\t\t\t }\n\t\t\t\t\t else if(i == 1 && !cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.girls_only = false;\n\t\t\t\t\t\t Filter.coeducationAL[1] = null;\n\t\t\t\t\t }\n\t\t\t\t\t if (i == 2 && cbedit.isChecked()) {\n\t\t\t\t\t\t Filter.coed = true;\n\t\t\t\t\t\t Filter.coeducationAL[2] = \"3\";\n\t\t\t\t\t }\n\t\t\t\t\t else if(i == 2 &&! cbedit.isChecked())\n\t\t\t\t\t {\n\t\t\t\t\t\t Filter.coed = false;\n\t\t\t\t\t\t Filter.coeducationAL[2] = null;\n\t\t\t\t\t }\n\n\n\t\t\t\t }\n\n\t\t\t }\n\t\t }\n\n\t\telse if(Filter.filtercolor == 6)\n\t\t{\n\t\t\tFragmentManager manager = getFragmentManager();\n\t\t\tLayout6 layout6 = (Layout6) manager.findFragmentById(R.id.detailFragment);\n\n\t\t\tView v;\n\t\t\tCheckBox cbedit;\n\t\t//\tToast.makeText(getApplicationContext(), \"Rating Submitted\", Toast.LENGTH_SHORT).show();\n\t\t\tfor(int i = 0 ; i < layout6.list.getCount();i++)\n\t\t\t{\n\n\n\t\t\t\tv = layout6.list.getChildAt(i);\n\t\t\t\tcbedit = (CheckBox)v.findViewById(R.id.checkBox1);\n\t\t\t\tif(i==0&&cbedit.isChecked())\n\t\t\t\t{\n\t\t\t\t\tFilter.star_1 = true;\n\t\t\t\t\tFilter.ratingAL[0]=\"1\"; // we made an array because we have to send values in array in json format.\n\t\t\t\t}\n\t\t\t\tif(i==1&&cbedit.isChecked())\n\t\t\t\t{\n\t\t\t\t\tFilter.star_2 = true;\n\t\t\t\t\tFilter.ratingAL[1]=\"2\";\n\t\t\t\t}\n\t\t\t\tif(i==2&&cbedit.isChecked())\n\t\t\t\t{\n\t\t\t\t\tFilter.star_3 = true;\n\t\t\t\t\tFilter.ratingAL[2]=\"3\";\n\n\t\t\t\t}\n\t\t\t\tif(i==3&&cbedit.isChecked())\n\t\t\t\t{\n\t\t\t\t\tFilter.star_4 = true;\n\t\t\t\t\tFilter.ratingAL[3]=\"4\";\n\t\t\t\t}\n\t\t\t\tif(i==4&&cbedit.isChecked())\n\t\t\t\t{\n\t\t\t\t\tFilter.star_5 = true;\n\t\t\t\t\tFilter.ratingAL[4]=\"5\";\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0756aec8c2af65c85c7a9420c423444e", "score": "0.5569636", "text": "protected boolean checkToSeeIfTrue()\r\n throws ParserException\r\n {\r\n \tif(allConstants()){\r\n\t \tboolean result = true;\r\n\t \tIterator<Node> iter = this.iterator();\r\n\t \t\r\n\t while(iter.hasNext()){\r\n\t \tPredicate p = ((Predicate)iter.next());\r\n\t \t//System.out.println(p.toString());\r\n\t \tif(Project3.datalogProgram.getFactList().canProve(p) || Project3.datalogProgram.getRuleList().canProve(p)) {\r\n\t \t\t//System.out.println(p.toString());\r\n\t \t\t\tsaveResult();\r\n\t \t\t} else {\r\n\t \t\t\treturn false;\r\n\t \t\t}\r\n\t }\r\n\t\t\treturn result;\r\n \t}\r\n \telse {\r\n \t\treturn false;\r\n \t}\r\n }", "title": "" }, { "docid": "c6323444532468b57732980a19069419", "score": "0.5562466", "text": "protected abstract boolean _addTestObject(List<T> c);", "title": "" }, { "docid": "c3d035c479e52a31c3853aa559f0cf04", "score": "0.5557015", "text": "@Test\n public void multipleConditions() {\n assertEquals(createList(\"#\", \"1\"), lab2.function(createList(\"#\", \"0\")));\n\n // the T && F case will invoke when the main element is the second zero in the following list -> 00\n assertEquals(createList(\"0\", \"0\"), lab2.function(createList(\"0\", \"0\")));\n\n // the F && X case will invoke only when the main element is the first element of the given list -> 0\n assertEquals(createList(\"0\"), lab2.function(createList(\"0\")));\n\n\n // if (i+1<list.size() && list.get(i+1).equals(\"#\"))\n // T && T\n // T && F\n // F && X\n\n // the T && T case will invoke when the main element is the zero in the following list -> 0#\n assertEquals(createList(\"1\", \"#\"), lab2.function(createList(\"0\", \"#\")));\n\n // the T && F case will invoke when the main element is the first zero in the following list -> 00\n assertEquals(createList(\"0\", \"0\"), lab2.function(createList(\"0\", \"0\")));\n\n // the F && X case will invoke only when the main element is the last element of the given list -> 0\n assertEquals(createList(\"0\"), lab2.function(createList(\"0\")));\n }", "title": "" }, { "docid": "cfea6fca1592aee21c4bbf39c85420c1", "score": "0.55541384", "text": "@Override\n public void onItemschecked(boolean[] checked) {\n }", "title": "" }, { "docid": "a942ef7157719156442a320fd203484a", "score": "0.5546003", "text": "@Override\n public Collection<ValidatorMessage> check(SpectrumIdentificationList sil) throws ValidatorException {\n List<ValidatorMessage> messages = new ArrayList<>();\n\n for (CvParam cv: sil.getCvParam()) {\n if (cv != null) {\n if (cv.getAccession().equals(\"MS:1002439\")) { // final PSM list\n SIRUniqueSpectrumIDSpectrumRefCombinationRule.bIsFinalPSMList = true;\n return messages;\n }\n }\n }\n \n SIRUniqueSpectrumIDSpectrumRefCombinationRule.bIsFinalPSMList = false;\n return messages;\n }", "title": "" }, { "docid": "c668fac7766d2bb26c8bcb487d64a9d8", "score": "0.5538896", "text": "public boolean isInapplicable() { //check all items\r\n\t\tboolean inappPresent = false;\r\n\t\tfor (int i=0; i<numItems; i++)\r\n\t\t\tif (values[i] == MesquiteDouble.inapplicable)\r\n\t\t\t\tinappPresent = true;\r\n\t\t\telse if (values[i] != MesquiteDouble.unassigned)\r\n\t\t\t\treturn false;\r\n\t\treturn inappPresent;\r\n\t}", "title": "" }, { "docid": "8a6d972fae1b1baf03aef6ad57efc7cf", "score": "0.55222", "text": "@Override\n\tpublic List<NoCheckVO> checkList(NoCheckVO ncvo) {\n\t\treturn session.selectList(\"checkList\", ncvo);\n\t}", "title": "" }, { "docid": "a4b56997966519cf0cc179a76017f9dc", "score": "0.5518543", "text": "public abstract boolean hasViolations();", "title": "" }, { "docid": "2f767125e0849ef036b4c36394368058", "score": "0.5515411", "text": "public boolean checkForEmptyAnswers(){\n if(listView.getCheckedItemCount() > 0){\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "8f9d3cfacce18d1891b31e4a865b3503", "score": "0.55153966", "text": "public static boolean check()\n{\n\tBoolean flag=true;\n\tfor(int i=0;i<ContactInterface.contacts.size();i++)\n\t{\n\t\tif(ContactInterface.contacts.get(i).FirstName.equals(ContactInterface.text_fname.getText())\n\t\t && ContactInterface.contacts.get(i).MiddleInitial.equals(ContactInterface.text_midname.getText())\n\t\t && ContactInterface.contacts.get(i).LastName.equals(ContactInterface.text_lname.getText()))\n\t\t\tflag=false;\n\t}\n\treturn flag;\n}", "title": "" }, { "docid": "ff56b5598515e0d7c8197496197931a8", "score": "0.5507697", "text": "public boolean neededInfrastructure(ArrayList<String> listOfNeededThings){\n\t\tboolean hasEverything = true;\n\t\t\n\t\tfor(String s : listOfNeededThings){\n\t\t\tif(!placeDescriptions.containsKey(s.toLowerCase())){\n\t\t\t\thasEverything = false;\t\n\t\t\t}\t\t\t\t\t\n\t\t}\n\n\t\treturn hasEverything;\n\t}", "title": "" }, { "docid": "97a3ab6911b1607d79bd0bfbcf6d3209", "score": "0.5503273", "text": "boolean isLegal(Collection<QwirklePlacement> play);", "title": "" }, { "docid": "b922e2002a46d9d8882cc93aa816bcad", "score": "0.54991454", "text": "private boolean checkButtonCondition() {\n return (sources.size() != 0) && (testes.size() != 0);\n }", "title": "" }, { "docid": "455d03f4c1f5771a86eced29de29b88e", "score": "0.54934764", "text": "public final boolean isApplicable() {\n\t\treturn this.checkConditions();\n\t\t\n\t}", "title": "" }, { "docid": "49a646b943359f037af7016186a92598", "score": "0.54862666", "text": "public void checkListItemById(Integer id)\n {\n for (ListItem item : listItems) {\n if(item.getId() == id) {\n item.setIsChecked(true);\n }\n }\n }", "title": "" }, { "docid": "ca8aa97c9e52ec3e6c52fd8e9632c581", "score": "0.5484899", "text": "private boolean checkValues()\r\n\t{\r\n\r\n/*\t\tif(txtName.getText().trim().equals(\"\"))\r\n\t\t{\r\n\t\t\tOncMessageBox.showMessageDialog( modeFrame, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"Please enter a value for the name.\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"ERROR: Parameter Editor\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t OncMessageBox.WARNING_MESSAGE);\r\n\t\t\treturn(false);\r\n\t\t}\r\n*/\r\n\t\tIterator it = paramBox.getIterator();\r\n\t\twhile(it.hasNext())\r\n\t\t{\r\n\t\t\tParameterLine pl = (ParameterLine) it.next();\r\n\t\t\tif(pl.getDescription().trim().equals(\"\"))\r\n\t\t\t{\r\n\t\t\t\tOncMessageBox.showMessageDialog( modeFrame, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Please enter a value for the \" + pl.getParameterType() + \" type.\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"ERROR: Parameter Editor\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOncMessageBox.WARNING_MESSAGE);\r\n\t\t\t\treturn(false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn(true);\r\n\t}", "title": "" }, { "docid": "be61eb515a2fe4574dfe1e2f45c67ca3", "score": "0.5479023", "text": "private void checkValued(){\n \n }", "title": "" }, { "docid": "2b60de36639cc5b5ea6382791a6d7a46", "score": "0.5478718", "text": "public boolean isValid()\r\n/* 108: */ {\r\n/* 109: 95 */ return this.criteria.size() > 0;\r\n/* 110: */ }", "title": "" }, { "docid": "7242c2f131b8e9a1718e91176c0b1b48", "score": "0.5475526", "text": "public boolean checkKnown(){\n\t\tboolean valid = false;\n\t\tfor(int i = 0; i < related.size(); i++){\n\t\t\tif(this.hazard == 'u'){\n\t\t\t\tif(related.get(i).get('w')){\n\t\t\t\t\tvalid = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(related.get(i).get('p')){\n\t\t\t\t\tvalid = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn valid;\n\t}", "title": "" }, { "docid": "9603b6ba30c5382a3a2137e881c3316e", "score": "0.54694515", "text": "public AbstractTestBooleanList(String name) {\r\n super(name);\r\n }", "title": "" }, { "docid": "1d4e2e858bf9d72a13850840c119fb1f", "score": "0.5467915", "text": "boolean isMultipleChoice();", "title": "" }, { "docid": "bb86741e2902ab492a9078f23b533fc5", "score": "0.5462995", "text": "public abstract boolean matches(T t, List<T> list);", "title": "" }, { "docid": "484017b1fa8343abdbe632c808af1045", "score": "0.54412204", "text": "private boolean\n taskTracker(List<Task> listOfPoweronVmTasks, String vappName, String operation) throws Exception\n {\n boolean allTasksSucceded = false;\n List<Boolean> taskStatusList = new ArrayList<Boolean>();\n\n for (Task tempTaskMor : listOfPoweronVmTasks) {\n Boolean tempTaskStatus = taskTracker(tempTaskMor, vappName, operation);\n taskStatusList.add(tempTaskStatus);\n }\n\n if (taskStatusList.contains(Boolean.FALSE)) {\n allTasksSucceded = false;\n } else {\n allTasksSucceded = true;\n }\n\n return allTasksSucceded;\n }", "title": "" }, { "docid": "7e7e22c29d8fa04eb86e466187b1b092", "score": "0.5440037", "text": "protected void setConditionalLists(boolean result,String method, String actualValue,\n\t\t\tint id, HashMap<String, Integer> sourceMap){\n\t\t\n\t\tif(!actualValue.equals(\"true\")&& !actualValue.equals(\"false\")){\n\t\t\tSystem.err.println(\"warning constraint detected without true/false value\");\n\t\t\treturn;\n\t\t}\n\t\t\tString fName = method.split(\"!!\")[0];\n\n\t\t\tbase =new ArrayList<String>((ArrayList<String>) store.get(sourceMap.get(\"t\")));\n\t\t\targ=null;\n\t\t\t\t\n\t\t\t argNum=-1;\n\t\t\t\tif(sourceMap.get(\"s1\")!=null){\n\t\t\t\t\targ =new ArrayList<String>((ArrayList<String>) store.get(sourceMap.get(\"s1\")));\n\t\t\t\t\targNum=sourceMap.get(\"s1\");\n\t\t\t\t}\n\n\t\t\tif (fName.equals(\"contains\")) {\n\t\t\t\tbase=mergeLists(base, arg);\n\t\t\t\t//contained in\n\n\t\t\t\tif(result){\n//\t\t\t\t\tbase.add(\"(declare-variable i\"+id+\"_1-t Int)\\n\");\n//\t\t\t\t\tbase.add(\"(declare-variable i\"+id+\"_2-t Int)\\n\");\n\t\t\t\t\tbase.add(\"(assert (Contains s\"+sourceMap.get(\"t\")+\" s\"+sourceMap.get(\"s1\")+\" ))\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n//\t\t\t\t\tbase.add(\"(declare-variable i\"+id+\"_1-f Int)\\n\");\n//\t\t\t\t\tbase.add(\"(declare-variable i\"+id+\"_2-f Int)\\n\");\n\t\t\t\t\tbase.add(\"(assert (not (Contains s\"+sourceMap.get(\"t\")+\" s\"+sourceMap.get(\"s1\")+\" )))\\n\");\n\t\t\t\t}\n\t\t\t} else if (fName.equals(\"endsWith\")) {\n\t\t\t\tbase=mergeLists(base, arg);\n\n\t\t\t\tif(result){\n\t\t\t\t\tbase.add(\"(declare-variable s_ends_\"+id+\"_t String)\\n\");\n\t\t\t\t\tbase.add(\"(assert (= s\"+sourceMap.get(\"t\")+\" (Concat s_ends_\"+id+\"_t s\"+sourceMap.get(\"s1\")+\")))\\n\");\n\n\t\t\t\t\t\n//\t\t\t\t\tbase.add(\"(assert (Contains s\"+sourceMap.get(\"t\")+\" s\"+sourceMap.get(\"s1\")+\" ))\\n\");\t\t\t\n//\t\t\t\t\t//contained in\n\n\t\t\t\t}\n\t\t\t\telse{\n\n//\t\t\t\t\tif(concreteVals.contains(sourceMap.get(\"s1\"))){\n//\t\t\t\t\t\tbase.add(\"(assert (not (= (Substring s\"+sourceMap.get(\"t\")+\" (- (Length s\"+sourceMap.get(\"t\")+\") (Length s\"+sourceMap.get(\"s1\")+\")) (Length s\"+sourceMap.get(\"s1\")+\")) s\"+sourceMap.get(\"s1\")+\")))\\n\");\n//\t\t\t\t\t}else{\n\t\t\t\t\t\tbase.add(\"(declare-variable i\"+id+\"_1 Int)\\n\");\n\t\t\t\t\t\tbase.add(\"(declare-variable i\"+id+\"_2 Int)\\n\");\n\t\t\t\t\t\tbase.add(\"(assert (not (= (Substring s\"+sourceMap.get(\"t\")+\" i\"+id+\"_1 i\"+id+\"_2 ) s\"+sourceMap.get(\"s1\")+\")))\\n\");\n//\t\t\t\t\t\tbase.add(\"(declare-variable s_ends_\"+id+\"-f String)\\n\");\n//\t\t\t\t\t\tbase.add(\"(assert (not (= s\"+sourceMap.get(\"t\")+\" (Concat s_ends_\"+id+\"-f s\"+sourceMap.get(\"s1\")+\"))))\\n\");\n//\t\t\t\t\t}\n\t\t\t\t\t//base.add(\"(assert (not (= s\"+sourceMap.get(\"t\")+\" s\"+sourceMap.get(\"s1\")+\" )))\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(fName.equals(\"startsWith\")) {\n\t\t\t\tbase=mergeLists(base, arg);\n\t\t\t\t\n\t\t\t\tString argument;\n\t\t\t\tif(sourceMap.size()==2){\n\t\t\t\t\targument=\"s\"+sourceMap.get(\"t\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint argOne=Integer.parseInt(actualVals.get(sourceMap.get(\"s2\")));\n\t\t\t\t\t\n\t\t\t\t\tif(argOne==0){\n\t\t\t\t\t\targument=\"s\"+sourceMap.get(\"t\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\targument=\"t\"+id;\n\t\t\t\t\n\t\t\t\t\t\tbase.add(\"(declare-variable \"+argument+\" String)\\n\");\n\t\t\t\t\t\tbase.add(\"(declare-variable i\"+id+\" Int)\\n\");\n\n\t\t\t\t\t\tbase.add(\"(assert (= i\"+id+\" (- (Length s\"+sourceMap.get(\"t\")+\") \"+(argOne)+\")))\\n\");\n\t\t\t\t\t\tbase.add(\"(assert (= \"+argument+\" (Substring s\"+sourceMap.get(\"t\")+\" \"+argOne+\" i\"+id+\")))\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(result){\n\t\t\t\t\tbase.add(\"(declare-variable i\"+id+\"_1_t Int)\\n\");\n\t\t\t\t\tbase.add(\"(assert (= (Substring \"+argument+\" 0 i\"+id+\"_1_t ) s\"+sourceMap.get(\"s1\")+\"))\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(concreteVals.contains(sourceMap.get(\"s1\"))){\n\t\t\t\t\t\tbase.add(\"(declare-variable i\"+id+\"_1_f Int)\\n\");\n\t\t\t\t\t\tbase.add(\"(assert (not (= (Substring \"+argument+\" 0 i\"+id+\"_1_f ) s\"+sourceMap.get(\"s1\")+\")))\\n\");\n\t\t\t\t\t\t//(Substring \"+argument+\" 0 (Length s\"+sourceMap.get(\"s1\")+\") )\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tbase.add(\"(declare-variable i\"+id+\"_1_f Int)\\n\");\n\t\t\t\t\t\tbase.add(\"(assert (not (= (Substring \"+argument+\" 0 i\"+id+\"_1_f ) s\"+sourceMap.get(\"s1\")+\")))\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(fName.equals(\"equals\") || fName.equals(\"contentEquals\")){\n\t\t\t\tbase=mergeLists(base, arg);\n\t\t\t\tif(result){\n\t\t\t\t\tbase.add(\"(assert (= s\"+sourceMap.get(\"t\")+\" s\"+sourceMap.get(\"s1\")+\" ))\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbase.add(\"(assert (not (= s\"+sourceMap.get(\"t\")+\" s\"+sourceMap.get(\"s1\")+\" )))\\n\");\n\t\t\t\t}\n\t\t\t} else if (fName.equals(\"equalsIgnoreCase\")) {\n\t\t\t\tbase=arg=null;\n//\t\t\t\ttry {\n//\t\t\t\t\tbase=changeCase(id, sourceMap, true, sourceMap.get(\"t\"), \"s\"+id+\"_1\", \"case1-\"+id);\n//\t\t\t\t\targ=changeCase(id, sourceMap, true, sourceMap.get(\"s1\"), \"s\"+id+\"_2\", \"case2-\"+id );\n//\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\tbase=mergeLists(base, arg);\n//\t\t\t\tif(result){\n//\t\t\t\t\tbase.add(\"(assert (= s\"+id+\"_1 s\"+id+\"_2))\\n\");\n//\t\t\t\t}\n//\t\t\t\telse{\n//\t\t\t\t\tbase.add(\"(assert (not (= s\"+id+\"_1 s\"+id+\"_2)))\\n\");\n//\t\t\t\t}\n\t\t\t}\n\t\t\telse if(fName.equals(\"isEmpty\")){\n\t\t\t\tif(result){\n\t\t\t\t\tbase.add(\"(assert (= (Length s\"+sourceMap.get(\"t\")+\") 0))\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbase.add(\"(assert (> (Length s\"+sourceMap.get(\"t\")+\") 0))\\n\");\n\t\t\t\t}\n\t\t\t}\t\t\t\t\n\t\t\telse if(fName.equals(\"matches\")){\n\t\t\t\tbase=arg=null;\n\t\t\t}\n\t\t\telse if(fName.equals(\"regionMatches\")){\n\t\t\t\tint toffset, ooffset, len;\n\t\t\t\tboolean ignoreCase=false;\n\t\t\t\tif(sourceMap.size()==5){\n\t\t\t\t\ttoffset=sourceMap.get(\"s1\");\n\t\t\t\t\targNum=sourceMap.get(\"s2\");\n\t\t\t\t\targ=new ArrayList<String>((ArrayList<String>) store.get(argNum));\n\t\t\t\t\tooffset=sourceMap.get(\"s3\");\n\t\t\t\t\tlen=sourceMap.get(\"s4\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttoffset=sourceMap.get(\"s2\");\n\t\t\t\t\targNum=sourceMap.get(\"s3\");\n\t\t\t\t\targ=new ArrayList<String>((ArrayList<String>) store.get(argNum));\n\t\t\t\t\tooffset=sourceMap.get(\"s4\");\n\t\t\t\t\tlen=sourceMap.get(\"s5\");\n\t\t\t\t\tif(actualVals.get(sourceMap.get(\"s1\")).equals(\"true\")){\n\t\t\t\t\t\tignoreCase=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbase=mergeLists(base, arg);\n\t\t\t\tif(ignoreCase){\n\t\t\t\t\tmakeStringSymbolic(id);\n\t\t\t\t\treturn;\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\tbase=changeCase(id, sourceMap, true, sourceMap.get(\"t\"), \"s\"+id+\"_1\", \"case1-\"+id);\n//\t\t\t\t\t\targ=changeCase(id, sourceMap, true, argNum, \"s\"+id+\"_2\", \"case2-\"+id);\n//\t\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\t\treturn;\n//\t\t\t\t\t}\n//\t\t\t\t\tbase=mergeLists(base, arg);\n//\t\t\t\t\tif(result){\n//\t\t\t\t\t\tbase.add(\"(assert (= (Substring s\"+id+\"_1 \"+toffset+\" \"+len+\") (Substring s\"+id+\"_2 \"+ooffset+\" \"+len+\")))\\n\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tbase.add(\"(assert (or (not (= (Substring s\"+id+\"_1 \"+toffset+\" \"+len+\") (Substring s\"+id+\"_2 \"+ooffset+\" \"+len+\"))) (> \"+(toffset+len)+\" (Length s\"+sourceMap.get(\"t\")+\"))(> \"+(ooffset+len)+\" (Length s\"+argNum+\"))))\\n\");\n//\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\telse{\n//\t\t\t\t\tif(result){\n//\t\t\t\t\t\t\tbase.add(\"(assert (= (Substring s\"+sourceMap.get(\"t\")+\" \"+toffset+\" \"+len+\") (Substring s\"+argNum+\" \"+ooffset+\" \"+len+\")))\\n\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tif(toffset>=0 && ooffset >=0){\n//\t\t\t\t\t\t\tbase.add(\"(assert (or (not (= (Substring s\"+sourceMap.get(\"t\")+\" \"+toffset+\" \"+len+\") (Substring s\"+argNum+\" \"+ooffset+\" \"+len+\"))) (> \"+(toffset+len)+\" (Length s\"+sourceMap.get(\"t\")+\"))(> \"+(ooffset+len)+\" (Length s\"+argNum+\"))))\\n\");\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstore.put(argNum, base);\n\t\t\t\targ=null;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "29e84fd9fb8bc16ff7bf65dcc09388b3", "score": "0.54377383", "text": "public boolean checkAllFields();", "title": "" }, { "docid": "c32e274e908a5f26159195d17b38ebd5", "score": "0.54337436", "text": "public boolean supportsEmptyInList();", "title": "" }, { "docid": "c5c1e59d3b2886547973cc542c4d4fb1", "score": "0.54296947", "text": "boolean validInformation();", "title": "" }, { "docid": "75b0784ba1e430d5b2498ac47a71d19a", "score": "0.5428358", "text": "public boolean checkFlags(){\n\t\tboolean valid = true;\n\t\t\n\t\tif(this.hazard == 'u'){\n\t\t\tfor(int i = 0; i < related.size(); i++){\n\t\t\t\tif(!this.related.get(i).get('u')){\n\t\t\t\t\tvalid = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}else if(this.hazard == 'i'){\n\t\t\tfor(int i = 0; i < related.size(); i++){\n\t\t\t\tif(!this.related.get(i).get('i')){\n\t\t\t\t\tvalid = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "title": "" }, { "docid": "6069a768ca35e5f3f5e0a90d873976d3", "score": "0.54272944", "text": "abstract void preCheck();", "title": "" }, { "docid": "289d152f95f7e81748482c79eaab6d0d", "score": "0.5426486", "text": "public boolean checkAllPlay() {\n \tboolean flag = true;\n \tfor (ListIterator<Play> iterator = playList.listIterator(); iterator.hasNext();) {\n Play aPlay = iterator.next();\n if(aPlay.checkTime() == false)\n \tflag = false;\n }\n \treturn flag;\n }", "title": "" }, { "docid": "289d152f95f7e81748482c79eaab6d0d", "score": "0.5426486", "text": "public boolean checkAllPlay() {\n \tboolean flag = true;\n \tfor (ListIterator<Play> iterator = playList.listIterator(); iterator.hasNext();) {\n Play aPlay = iterator.next();\n if(aPlay.checkTime() == false)\n \tflag = false;\n }\n \treturn flag;\n }", "title": "" }, { "docid": "724f1c3706884527ca325c75ca6aaf97", "score": "0.5418285", "text": "private boolean checkValidation() {\n boolean ret = true;\n\n\n if (!Validation1.hasText(this._autocompletePharmacyName))\n ret = false;\n\n\n if (this._chkSuturing.isChecked()) {\n if (this._muliautcompltxtSuturing.getText().toString().length() == 0) {\n ret = false;\n this._muliautcompltxtSuturing.setError(\"Required\");\n Toast.makeText(this, \"Enter body part for plastering\", Toast.LENGTH_SHORT).show();\n }\n\n }\n\n if (this._chkPlastering.isChecked()) {\n if (this._muliautcompltxtPlastering.getText().toString().length() == 0) {\n ret = false;\n this._muliautcompltxtPlastering.setError(\"Required\");\n Toast.makeText(this, \"Enter body part for suturing\", Toast.LENGTH_SHORT).show();\n }\n\n }\n\n\n if (this._chkNebulization.isChecked()) {\n if (this._chkAsthasaline.isChecked()) {\n if (this._edtDosage2.getText().toString().length() == 0 || this._edtDuration2.getText().toString().length() == 0 || this._edtQuantity2.getText().toString().length() == 0) {\n ret = false;\n this._edtDosage2.setError(\"Required\");\n this._edtDuration2.setError(\"Required\");\n this._edtQuantity2.setError(\"Required\");\n Toast.makeText(this, \"Fill all fields of Asthaline saline\", Toast.LENGTH_SHORT).show();\n }\n\n }\n if (this._chkNrmsaline.isChecked()) {\n if (this._edtDosage1.getText().toString().length() == 0 || this._edtDuration1.getText().toString().length() == 0 || this._edtQuantity1.getText().toString().length() == 0) {\n ret = false;\n this._edtDosage1.setError(\"Required\");\n this._edtDuration1.setError(\"Required\");\n this._edtQuantity1.setError(\"Required\");\n Toast.makeText(this, \"Fill all fields of Normal saline\", Toast.LENGTH_SHORT).show();\n }\n\n }\n }\n\n\n if (!Validation1.hasText(this._multiautoDiagnosis))\n ret = false;\n if (!Validation1.hasText(this._multiautoTreatmentfor))\n ret = false;\n if (!Validation1.hasText(this._autocompletePatientname))\n ret = false;\n\n return ret;\n }", "title": "" } ]
e6cf51e698e1920c52f3fb69a7b2a2de
/ Changes related to SPAMPS1051 end here
[ { "docid": "4afcc05639512d4a1f6931ebfa7375a4", "score": "0.0", "text": "@Override\n public boolean sendFourBlockerReport(String to, String name, File report) throws Exception {\n\n boolean result = false;\n\n String subject = \"Your four blocker report\";\n Map<String, Object> model = new HashMap<String, Object>();\n model.put(\"username\", name);\n model.put(\"imagePath\", Util.nvl(getSparkURL()) + \"/resources/img/dealpro-logo.png\");\n String contents = VelocityEngineUtils.mergeTemplateIntoString(velocityEngine, \"emailtemplates/fourBlockerReport.vm\", \"UTF-8\", model);\n\n MimeMessage message = javaMailSender.createMimeMessage();\n\n // create the message using the specified template\n MimeMessageHelper helper;\n\n helper = new MimeMessageHelper(message, true, \"UTF-8\");\n\n helper.setFrom(new InternetAddress(getMailFrom()));\n helper.addBcc(emailList);\n helper.addTo(to + \"@mail.ad.ge.com\");\n helper.addAttachment(report.getName(), report);\n helper.setSubject(subject);\n helper.setSentDate(new Date());\n helper.setText(contents, true);\n javaMailSender.send(message);\n result = true;\n\n return result;\n\n }", "title": "" } ]
[ { "docid": "0d81c067c8001661f6cbaddca50d165a", "score": "0.6322082", "text": "public void mo6081a() {\n }", "title": "" }, { "docid": "712a71c17db1c756dc28432e0a149340", "score": "0.6124999", "text": "protected void mo6255a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5955169", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5955169", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5955169", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5955169", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5955169", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5955169", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5955169", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "5cb964a210e066943aa990c52dfce544", "score": "0.58802825", "text": "static void armStrongSeries(){\n\t}", "title": "" }, { "docid": "e3e5d222037a2235226c837f37be9b48", "score": "0.5848598", "text": "private void m6601R() {\n if (AppFeature.f5609e) {\n this.f5399S.mo6174f(\"0\");\n }\n this.f5399S.mo6172e(\"1\");\n }", "title": "" }, { "docid": "ac82b0e7773b86524193ebb0ec5d6df7", "score": "0.584509", "text": "public void mo21794S() {\n }", "title": "" }, { "docid": "e0bdc7895c624ff30c4df0c53f3ca4bd", "score": "0.5831835", "text": "private final void m711f() {\n /*\n r25 = this;\n r6 = r25\n long r7 = android.os.SystemClock.uptimeMillis()\n awv r0 = r6.f534s\n r11 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n r14 = 1\n r15 = 0\n if (r0 != 0) goto L_0x0013\n goto L_0x0224\n L_0x0013:\n int r1 = r6.f511B\n if (r1 > 0) goto L_0x0221\n akn r0 = r6.f531p\n long r1 = r6.f513D\n r0.mo453a(r1)\n akn r0 = r6.f531p\n akl r1 = r0.f603f\n if (r1 != 0) goto L_0x0025\n goto L_0x0041\n L_0x0025:\n akm r2 = r1.f582f\n boolean r2 = r2.f597g\n if (r2 != 0) goto L_0x00e4\n boolean r1 = r1.mo441b()\n if (r1 == 0) goto L_0x00e4\n akl r1 = r0.f603f\n akm r1 = r1.f582f\n long r1 = r1.f595e\n int r3 = (r1 > r11 ? 1 : (r1 == r11 ? 0 : -1))\n if (r3 == 0) goto L_0x00e4\n int r0 = r0.f604g\n r1 = 100\n if (r0 >= r1) goto L_0x00e4\n L_0x0041:\n akn r0 = r6.f531p\n long r1 = r6.f513D\n akp r3 = r6.f533r\n akl r4 = r0.f603f\n if (r4 == 0) goto L_0x0050\n akm r0 = r0.mo449a(r4, r1)\n goto L_0x005a\n L_0x0050:\n awt r1 = r3.f612b\n long r4 = r3.f614d\n long r2 = r3.f613c\n akm r0 = r0.mo451a(r1, r2)\n L_0x005a:\n if (r0 == 0) goto L_0x00c8\n akn r1 = r6.f531p\n aky[] r2 = r6.f519d\n bgq r3 = r6.f520e\n akk r4 = r6.f522g\n ajd r4 = (p000.ajd) r4\n bhz r4 = r4.f433a\n awv r5 = r6.f534s\n bgr r13 = r6.f521f\n akl r9 = r1.f603f\n if (r9 == 0) goto L_0x007e\n long r11 = r9.f586j\n akm r9 = r9.f582f\n long r9 = r9.f595e\n long r11 = r11 + r9\n long r9 = r0.f592b\n long r9 = r11 - r9\n r18 = r9\n goto L_0x0086\n L_0x007e:\n awt r9 = r0.f591a\n boolean r9 = r9.mo1504a()\n r18 = 0\n L_0x0086:\n akl r9 = new akl\n r16 = r9\n r17 = r2\n r20 = r3\n r21 = r4\n r22 = r5\n r23 = r0\n r24 = r13\n r16.<init>(r17, r18, r20, r21, r22, r23, r24)\n akl r2 = r1.f603f\n if (r2 == 0) goto L_0x00a1\n r2.mo439a(r9)\n goto L_0x00a5\n L_0x00a1:\n r1.f601d = r9\n r1.f602e = r9\n L_0x00a5:\n r2 = 0\n r1.f605h = r2\n r1.f603f = r9\n int r2 = r1.f604g\n int r2 = r2 + r14\n r1.f604g = r2\n aws r1 = r9.f577a\n long r2 = r0.f592b\n r1.mo1483a(r6, r2)\n akn r0 = r6.f531p\n akl r0 = r0.f601d\n if (r0 != r9) goto L_0x00c3\n long r0 = r9.mo434a()\n r6.m691a(r0)\n L_0x00c3:\n r6.m706b(r15)\n goto L_0x00e4\n L_0x00c8:\n akn r0 = r6.f531p\n akl r0 = r0.f603f\n if (r0 == 0) goto L_0x00df\n akx[] r0 = r6.f535t\n int r1 = r0.length\n r2 = 0\n L_0x00d2:\n if (r2 >= r1) goto L_0x00df\n r3 = r0[r2]\n boolean r3 = r3.mo359g()\n if (r3 == 0) goto L_0x00e4\n int r2 = r2 + 1\n goto L_0x00d2\n L_0x00df:\n awv r0 = r6.f534s\n r0.mo1494d()\n L_0x00e4:\n boolean r0 = r6.f539x\n if (r0 == 0) goto L_0x00f2\n boolean r0 = r25.m717l()\n r6.f539x = r0\n r25.m718m()\n goto L_0x00f5\n L_0x00f2:\n r25.m716k()\n L_0x00f5:\n akn r0 = r6.f531p\n akl r0 = r0.f602e\n if (r0 == 0) goto L_0x01ba\n akl r1 = r0.f583g\n if (r1 != 0) goto L_0x012b\n akm r1 = r0.f582f\n boolean r1 = r1.f597g\n if (r1 != 0) goto L_0x0107\n goto L_0x01ba\n L_0x0107:\n r1 = 0\n L_0x0109:\n akx[] r2 = r6.f518c\n int r3 = r2.length\n if (r1 >= r3) goto L_0x0129\n r2 = r2[r1]\n axx[] r3 = r0.f579c\n r3 = r3[r1]\n if (r3 != 0) goto L_0x0117\n goto L_0x0126\n L_0x0117:\n axx r4 = r2.mo358f()\n if (r4 != r3) goto L_0x0126\n boolean r3 = r2.mo359g()\n if (r3 == 0) goto L_0x0126\n r2.mo361i()\n L_0x0126:\n int r1 = r1 + 1\n goto L_0x0109\n L_0x0129:\n goto L_0x01ba\n L_0x012b:\n boolean r1 = r25.m714i()\n if (r1 == 0) goto L_0x01ba\n akl r1 = r0.f583g\n boolean r1 = r1.f580d\n if (r1 == 0) goto L_0x01ba\n bgr r0 = r0.f585i\n akn r1 = r6.f531p\n akl r2 = r1.f602e\n if (r2 == 0) goto L_0x0147\n akl r2 = r2.f583g\n if (r2 == 0) goto L_0x0145\n r2 = 1\n goto L_0x0148\n L_0x0145:\n L_0x0147:\n r2 = 0\n L_0x0148:\n p000.bks.m3512b(r2)\n akl r2 = r1.f602e\n akl r2 = r2.f583g\n r1.f602e = r2\n akl r1 = r1.f602e\n bgr r2 = r1.f585i\n aws r3 = r1.f577a\n long r3 = r3.mo1486c()\n r9 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n int r5 = (r3 > r9 ? 1 : (r3 == r9 ? 0 : -1))\n if (r5 == 0) goto L_0x016a\n r25.m715j()\n r0 = 0\n goto L_0x01bb\n L_0x016a:\n r3 = 0\n L_0x016b:\n akx[] r4 = r6.f518c\n int r5 = r4.length\n if (r3 >= r5) goto L_0x01b9\n r4 = r4[r3]\n boolean r5 = r0.mo1867a(r3)\n if (r5 != 0) goto L_0x0179\n goto L_0x01b6\n L_0x0179:\n boolean r5 = r4.mo362j()\n if (r5 != 0) goto L_0x01b6\n bgm r5 = r2.f3835c\n bgl r5 = r5.mo1861a(r3)\n boolean r9 = r2.mo1867a(r3)\n aky[] r10 = r6.f519d\n r10 = r10[r3]\n int r10 = r10.mo344a()\n akz[] r11 = r0.f3834b\n r11 = r11[r3]\n akz[] r12 = r2.f3834b\n r12 = r12[r3]\n if (r9 == 0) goto L_0x01b3\n boolean r9 = r12.equals(r11)\n if (r9 == 0) goto L_0x01b3\n r9 = 6\n if (r10 != r9) goto L_0x01a5\n goto L_0x01b3\n L_0x01a5:\n akh[] r5 = m701a(r5)\n axx[] r9 = r1.f579c\n r9 = r9[r3]\n long r10 = r1.f586j\n r4.mo353a(r5, r9, r10)\n goto L_0x01b6\n L_0x01b3:\n r4.mo361i()\n L_0x01b6:\n int r3 = r3 + 1\n goto L_0x016b\n L_0x01b9:\n L_0x01ba:\n r0 = 0\n L_0x01bb:\n boolean r1 = r6.f537v\n if (r1 == 0) goto L_0x0224\n akn r1 = r6.f531p\n akl r2 = r1.f601d\n if (r2 == 0) goto L_0x0224\n akl r3 = r2.f583g\n if (r3 == 0) goto L_0x0224\n akl r1 = r1.f602e\n if (r2 == r1) goto L_0x01ce\n goto L_0x01d4\n L_0x01ce:\n boolean r1 = r25.m714i()\n if (r1 == 0) goto L_0x0224\n L_0x01d4:\n long r1 = r6.f513D\n long r3 = r3.mo434a()\n int r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r5 < 0) goto L_0x0224\n if (r0 != 0) goto L_0x01e1\n goto L_0x01e4\n L_0x01e1:\n r25.m703b()\n L_0x01e4:\n akn r0 = r6.f531p\n akl r9 = r0.f601d\n akl r0 = r0.f602e\n if (r9 == r0) goto L_0x01ed\n goto L_0x01f0\n L_0x01ed:\n r25.m715j()\n L_0x01f0:\n akn r0 = r6.f531p\n akl r0 = r0.mo448a()\n r6.m693a(r9)\n akm r0 = r0.f582f\n awt r1 = r0.f591a\n long r2 = r0.f592b\n r4 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n r0 = r25\n akp r0 = r0.m686a(r1, r2, r4)\n r6.f533r = r0\n akm r0 = r9.f582f\n boolean r0 = r0.f596f\n if (r0 != 0) goto L_0x0214\n r0 = 3\n goto L_0x0216\n L_0x0214:\n r0 = 0\n L_0x0216:\n akc r1 = r6.f529n\n r1.mo409b(r0)\n r25.m710e()\n r0 = 1\n goto L_0x01bb\n L_0x0221:\n r0.mo1494d()\n L_0x0224:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r14) goto L_0x022c\n goto L_0x03b3\n L_0x022c:\n r1 = 4\n if (r0 == r1) goto L_0x03b3\n akn r0 = r6.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x03ad\n java.lang.String r4 = \"doSomeWork\"\n p000.blk.m3619a(r4)\n r25.m710e()\n boolean r4 = r0.f580d\n r9 = 1000(0x3e8, double:4.94E-321)\n if (r4 == 0) goto L_0x02b5\n long r4 = android.os.SystemClock.elapsedRealtime()\n long r4 = r4 * r9\n aws r11 = r0.f577a\n akp r12 = r6.f533r\n long r12 = r12.f623m\n long r14 = r6.f527l\n long r12 = r12 - r14\n r11.mo1489d(r12)\n r11 = 0\n r12 = 1\n r14 = 1\n L_0x0258:\n akx[] r13 = r6.f518c\n int r15 = r13.length\n if (r11 >= r15) goto L_0x02b2\n r13 = r13[r11]\n int r15 = r13.mo356d()\n if (r15 == 0) goto L_0x02ad\n long r2 = r6.f513D\n r13.mo484a(r2, r4)\n if (r12 == 0) goto L_0x0275\n boolean r2 = r13.mo486w()\n if (r2 == 0) goto L_0x0274\n r12 = 1\n goto L_0x0276\n L_0x0274:\n L_0x0275:\n r12 = 0\n L_0x0276:\n axx[] r2 = r0.f579c\n r2 = r2[r11]\n axx r3 = r13.mo358f()\n if (r2 != r3) goto L_0x028c\n akl r15 = r0.f583g\n if (r15 == 0) goto L_0x028c\n boolean r15 = r13.mo359g()\n if (r15 == 0) goto L_0x028c\n r15 = 1\n goto L_0x028d\n L_0x028c:\n r15 = 0\n L_0x028d:\n if (r2 == r3) goto L_0x0291\n L_0x028f:\n r2 = 1\n goto L_0x02a0\n L_0x0291:\n if (r15 != 0) goto L_0x028f\n boolean r2 = r13.mo485v()\n if (r2 != 0) goto L_0x028f\n boolean r2 = r13.mo486w()\n if (r2 != 0) goto L_0x028f\n r2 = 0\n L_0x02a0:\n if (r14 != 0) goto L_0x02a4\n L_0x02a2:\n r14 = 0\n goto L_0x02a7\n L_0x02a4:\n if (r2 == 0) goto L_0x02a2\n r14 = 1\n L_0x02a7:\n if (r2 != 0) goto L_0x02ad\n r13.mo363k()\n goto L_0x02ae\n L_0x02ad:\n L_0x02ae:\n int r11 = r11 + 1\n goto L_0x0258\n L_0x02b2:\n r16 = r12\n goto L_0x02be\n L_0x02b5:\n aws r2 = r0.f577a\n r2.mo1482a()\n r14 = 1\n r16 = 1\n L_0x02be:\n akm r2 = r0.f582f\n long r2 = r2.f595e\n r4 = 2\n if (r16 != 0) goto L_0x02c6\n goto L_0x02e9\n L_0x02c6:\n boolean r5 = r0.f580d\n if (r5 == 0) goto L_0x02e9\n r11 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n int r5 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r5 == 0) goto L_0x02db\n akp r5 = r6.f533r\n long r11 = r5.f623m\n int r5 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r5 > 0) goto L_0x02e9\n L_0x02db:\n akm r0 = r0.f582f\n boolean r0 = r0.f597g\n if (r0 == 0) goto L_0x02e9\n r6.m690a(r1)\n r25.m709d()\n goto L_0x036b\n L_0x02e9:\n akp r0 = r6.f533r\n int r2 = r0.f615e\n if (r2 == r4) goto L_0x02f0\n goto L_0x034c\n L_0x02f0:\n akx[] r2 = r6.f535t\n int r2 = r2.length\n if (r2 != 0) goto L_0x02fc\n boolean r0 = r25.m712g()\n if (r0 == 0) goto L_0x034c\n goto L_0x033f\n L_0x02fc:\n if (r14 == 0) goto L_0x034c\n boolean r0 = r0.f617g\n if (r0 == 0) goto L_0x033f\n akn r0 = r6.f531p\n akl r0 = r0.f603f\n boolean r2 = r0.mo441b()\n if (r2 != 0) goto L_0x030d\n L_0x030c:\n goto L_0x0314\n L_0x030d:\n akm r0 = r0.f582f\n boolean r0 = r0.f597g\n if (r0 != 0) goto L_0x033f\n goto L_0x030c\n L_0x0314:\n akk r0 = r6.f522g\n long r2 = r25.m719n()\n ajf r5 = r6.f528m\n akq r5 = r5.mo376Q()\n float r5 = r5.f625b\n boolean r11 = r6.f538w\n long r2 = p000.blm.m3661b(r2, r5)\n if (r11 == 0) goto L_0x032f\n ajd r0 = (p000.ajd) r0\n long r11 = r0.f438f\n goto L_0x0333\n L_0x032f:\n ajd r0 = (p000.ajd) r0\n long r11 = r0.f437e\n L_0x0333:\n r15 = 0\n int r0 = (r11 > r15 ? 1 : (r11 == r15 ? 0 : -1))\n if (r0 <= 0) goto L_0x033f\n int r0 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r0 >= 0) goto L_0x033f\n goto L_0x034c\n L_0x033f:\n r0 = 3\n r6.m690a(r0)\n boolean r0 = r6.f537v\n if (r0 == 0) goto L_0x036b\n r25.m707c()\n goto L_0x036b\n L_0x034c:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n r2 = 3\n if (r0 != r2) goto L_0x036b\n akx[] r0 = r6.f535t\n int r0 = r0.length\n if (r0 != 0) goto L_0x035f\n boolean r0 = r25.m712g()\n if (r0 != 0) goto L_0x036b\n goto L_0x0361\n L_0x035f:\n if (r14 != 0) goto L_0x036b\n L_0x0361:\n boolean r0 = r6.f537v\n r6.f538w = r0\n r6.m690a(r4)\n r25.m709d()\n L_0x036b:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r4) goto L_0x037f\n akx[] r0 = r6.f535t\n int r2 = r0.length\n r3 = 0\n L_0x0375:\n if (r3 >= r2) goto L_0x037f\n r5 = r0[r3]\n r5.mo363k()\n int r3 = r3 + 1\n goto L_0x0375\n L_0x037f:\n boolean r0 = r6.f537v\n if (r0 != 0) goto L_0x0384\n goto L_0x038b\n L_0x0384:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n r2 = 3\n if (r0 == r2) goto L_0x0391\n L_0x038b:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r4) goto L_0x0392\n L_0x0391:\n goto L_0x03a4\n L_0x0392:\n akx[] r2 = r6.f535t\n int r2 = r2.length\n if (r2 != 0) goto L_0x0398\n goto L_0x039e\n L_0x0398:\n if (r0 == r1) goto L_0x039e\n r6.m692a(r7, r9)\n goto L_0x03a9\n L_0x039e:\n bkp r0 = r6.f516a\n r0.mo2044a()\n goto L_0x03a9\n L_0x03a4:\n r0 = 10\n r6.m692a(r7, r0)\n L_0x03a9:\n p000.blk.m3618a()\n return\n L_0x03ad:\n r0 = 10\n r6.m692a(r7, r0)\n return\n L_0x03b3:\n bkp r0 = r6.f516a\n r0.mo2044a()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m711f():void\");\n }", "title": "" }, { "docid": "ed1bc515936f231b890b4bc1220df36e", "score": "0.5823986", "text": "void mo21070b();", "title": "" }, { "docid": "86232e6a9aaa22e4403270ce10de01d3", "score": "0.5823489", "text": "public void mo4359a() {\n }", "title": "" }, { "docid": "8c4be9114abb8cb7b57dc3c5d34882a8", "score": "0.57997984", "text": "public void mo38117a() {\n }", "title": "" }, { "docid": "b84dae1da65f3f99003e332457bda094", "score": "0.57885283", "text": "public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():void\");\n }", "title": "" }, { "docid": "e2d342bbaeabeb80e6d9fc851b97cb80", "score": "0.5784628", "text": "public void skystonePos4() {\n }", "title": "" }, { "docid": "7278b602e6ce0bf5ab91e42fa7212615", "score": "0.57752305", "text": "public void mo3370l() {\n }", "title": "" }, { "docid": "0da81e690311e218640442311e0d1a32", "score": "0.5751757", "text": "public void skystonePos6() {\n }", "title": "" }, { "docid": "502b1954008fce4ba895ad7a32b37b97", "score": "0.5746608", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "6d689c09c7e4f345ce6b17a3ecd38a62", "score": "0.5742843", "text": "public void skystonePos5() {\n }", "title": "" }, { "docid": "d51ece159ae532d40a64a7f2350390a7", "score": "0.5703324", "text": "public synchronized void m29983k() {\n if (this.f23294u.isEmpty()) {\n if (this.f23286B == null) {\n this.f23286B = new C7030c(7, null, this.f23290J);\n }\n if (this.f23286B.f23372f == null) {\n this.f23286B = new C7030c(7, null, this.f23290J);\n }\n if (XGPushConfig.enableDebug) {\n C6864a.m29298c(\"TpnsChannel\", \"Action -> send heartbeat \");\n }\n m29967a(-1, this.f23286B);\n if ((f23266a > 0 && f23266a % 3 == 0) || f23266a == 2) {\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n C7056i.m30212h(C6973b.m29776f());\n }\n });\n }\n }\n m29985m();\n C6860a.m29257b(C6973b.m29776f());\n C7059f.m30231a(C6973b.m29776f()).mo34155a();\n m29980i();\n if (XGPushConfig.isLocationEnable(C6973b.m29776f())) {\n if (f23264F == 0) {\n f23264F = C7055h.m30167a(C6973b.m29776f(), Constants.LOC_REPORT_TIME, 0);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23264F == 0 || Math.abs(currentTimeMillis - f23264F) > ((long) f23281p)) {\n final JSONObject reportLocationJson = CustomDeviceInfos.getReportLocationJson(C6973b.m29776f());\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n C7046a.m30130b(C6973b.m29776f(), \"location\", reportLocationJson);\n }\n });\n f23264F = currentTimeMillis;\n C7055h.m30171b(C6973b.m29776f(), Constants.LOC_REPORT_TIME, currentTimeMillis);\n }\n }\n }", "title": "" }, { "docid": "a68ea4498347130a8eceb6cbd9fa3df2", "score": "0.5691159", "text": "private void mo3747b() {\n this.f1427B.add(this.f1490s);\n this.f1427B.add(this.f1491t);\n this.f1427B.add(this.f1492u);\n this.f1427B.add(this.f1493v);\n this.f1427B.add(this.f1495x);\n this.f1427B.add(this.f1496y);\n this.f1427B.add(this.f1497z);\n this.f1427B.add(this.f1494w);\n }", "title": "" }, { "docid": "67ec4f4025666274786d147de9924fff", "score": "0.56835115", "text": "private static java.lang.String m586k() {\r\n /*\r\n r6 = 1;\r\n r0 = 0;\r\n r1 = \"/proc/cpuinfo\";\r\n r2 = new java.io.FileReader;\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r2.<init>(r1);\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r1 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n r3 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\r\n r1.<init>(r2, r3);\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n L_0x0010:\r\n r3 = r1.readLine();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0039;\r\n L_0x0016:\r\n r4 = com.alipay.security.mobile.module.p010a.C0159a.m556a(r3);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 != 0) goto L_0x0010;\r\n L_0x001c:\r\n r4 = \":\";\r\n r3 = r3.split(r4);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0010;\r\n L_0x0024:\r\n r4 = r3.length;\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 <= r6) goto L_0x0010;\r\n L_0x0027:\r\n r4 = 0;\r\n r4 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r5 = \"BogoMIPS\";\r\n r4 = r4.contains(r5);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 == 0) goto L_0x0010;\r\n L_0x0032:\r\n r4 = 1;\r\n r3 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r0 = r3.trim();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n L_0x0039:\r\n r2.close();\t Catch:{ IOException -> 0x0060 }\r\n L_0x003c:\r\n r1.close();\t Catch:{ IOException -> 0x0062 }\r\n L_0x003f:\r\n return r0;\r\n L_0x0040:\r\n r1 = move-exception;\r\n r1 = r0;\r\n r2 = r0;\r\n L_0x0043:\r\n if (r2 == 0) goto L_0x0048;\r\n L_0x0045:\r\n r2.close();\t Catch:{ IOException -> 0x0064 }\r\n L_0x0048:\r\n if (r1 == 0) goto L_0x003f;\r\n L_0x004a:\r\n r1.close();\t Catch:{ IOException -> 0x004e }\r\n goto L_0x003f;\r\n L_0x004e:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0050:\r\n r1 = move-exception;\r\n r2 = r0;\r\n r7 = r0;\r\n r0 = r1;\r\n r1 = r7;\r\n L_0x0055:\r\n if (r2 == 0) goto L_0x005a;\r\n L_0x0057:\r\n r2.close();\t Catch:{ IOException -> 0x0066 }\r\n L_0x005a:\r\n if (r1 == 0) goto L_0x005f;\r\n L_0x005c:\r\n r1.close();\t Catch:{ IOException -> 0x0068 }\r\n L_0x005f:\r\n throw r0;\r\n L_0x0060:\r\n r2 = move-exception;\r\n goto L_0x003c;\r\n L_0x0062:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0064:\r\n r2 = move-exception;\r\n goto L_0x0048;\r\n L_0x0066:\r\n r2 = move-exception;\r\n goto L_0x005a;\r\n L_0x0068:\r\n r1 = move-exception;\r\n goto L_0x005f;\r\n L_0x006a:\r\n r1 = move-exception;\r\n r7 = r1;\r\n r1 = r0;\r\n r0 = r7;\r\n goto L_0x0055;\r\n L_0x006f:\r\n r0 = move-exception;\r\n goto L_0x0055;\r\n L_0x0071:\r\n r1 = move-exception;\r\n r1 = r0;\r\n goto L_0x0043;\r\n L_0x0074:\r\n r3 = move-exception;\r\n goto L_0x0043;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.security.mobile.module.b.a.k():java.lang.String\");\r\n }", "title": "" }, { "docid": "ddf9158d46b42384c5f893a1ddc4ee30", "score": "0.56793463", "text": "public void mo44053a() {\n }", "title": "" }, { "docid": "2f8bc325cbd58e19eae4acec86ffe12c", "score": "0.56607777", "text": "public final void mo51373a() {\n }", "title": "" }, { "docid": "6b2a2e5c902081b40ed12b7c3e553fa2", "score": "0.5638117", "text": "void mo21072c();", "title": "" }, { "docid": "62ffdc2d5a15f08a7c37429678120610", "score": "0.563401", "text": "public void mo3376r() {\n }", "title": "" }, { "docid": "f9f717a1aa85f1f7893f91441317750c", "score": "0.56030285", "text": "public void mo3811g() {\n this.f1490s.mo3763i();\n this.f1491t.mo3763i();\n this.f1492u.mo3763i();\n this.f1493v.mo3763i();\n this.f1494w.mo3763i();\n this.f1495x.mo3763i();\n this.f1496y.mo3763i();\n this.f1497z.mo3763i();\n this.f1429D = null;\n this.f1461aj = 0.0f;\n this.f1430E = 0;\n this.f1431F = 0;\n this.f1432G = 0.0f;\n this.f1433H = -1;\n this.f1434I = 0;\n this.f1435J = 0;\n this.f1462ak = 0;\n this.f1463al = 0;\n this.f1464am = 0;\n this.f1465an = 0;\n this.f1438M = 0;\n this.f1439N = 0;\n this.f1440O = 0;\n this.f1441P = 0;\n this.f1442Q = 0;\n this.f1466ao = 0;\n this.f1467ap = 0;\n float f = f1425R;\n this.f1443S = f;\n this.f1444T = f;\n this.f1428C[0] = EnumC0282a.FIXED;\n this.f1428C[1] = EnumC0282a.FIXED;\n this.f1468aq = null;\n this.f1469ar = 0;\n this.f1470as = 0;\n this.f1472au = null;\n this.f1445U = false;\n this.f1446V = false;\n this.f1450Z = 0;\n this.f1452aa = 0;\n this.f1453ab = false;\n this.f1454ac = false;\n float[] fArr = this.f1455ad;\n fArr[0] = -1.0f;\n fArr[1] = -1.0f;\n this.f1451a = -1;\n this.f1473b = -1;\n int[] iArr = this.f1460ai;\n iArr[0] = Integer.MAX_VALUE;\n iArr[1] = Integer.MAX_VALUE;\n this.f1476e = 0;\n this.f1477f = 0;\n this.f1481j = 1.0f;\n this.f1484m = 1.0f;\n this.f1480i = Integer.MAX_VALUE;\n this.f1483l = Integer.MAX_VALUE;\n this.f1479h = 0;\n this.f1482k = 0;\n this.f1487p = -1;\n this.f1488q = 1.0f;\n ResolutionDimension nVar = this.f1474c;\n if (nVar != null) {\n nVar.mo3878b();\n }\n ResolutionDimension nVar2 = this.f1475d;\n if (nVar2 != null) {\n nVar2.mo3878b();\n }\n this.f1489r = null;\n this.f1447W = false;\n this.f1448X = false;\n this.f1449Y = false;\n }", "title": "" }, { "docid": "65bbac121d8376de01663a26919192c4", "score": "0.5593501", "text": "public void mo21783H() {\n }", "title": "" }, { "docid": "8cd0d30288ed544ab02f99be126d3edb", "score": "0.5589034", "text": "void mo80452a();", "title": "" }, { "docid": "2d9ef51adae1b85a2d5c80c839eb8305", "score": "0.558623", "text": "public void mo21791P() {\n }", "title": "" }, { "docid": "3dc0a8a3614fff872da2a2d167d4e69b", "score": "0.55792516", "text": "private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }", "title": "" }, { "docid": "529f538cbfe34d240bdadcc0538cf039", "score": "0.55752593", "text": "private void m10994cS(Context context) {\n C3724a bR = C3724a.m9052bR(context);\n if (AppPreferencesSetting.getInstance().getAppSettingBoolean(\"pref_receive_notification\", true)) {\n bR.mo23085gp(4097);\n bR.mo23085gp(4098);\n bR.mo23081a(bR.mo23086gq(4097), 4097);\n bR.mo23081a(bR.mo23086gq(4098), 4098);\n }\n bR.mo23084dj(4100);\n bR.mo23084dj(4101);\n if (C3724a.m9047Ih()) {\n bR.mo23084dj(4102);\n return;\n }\n bR.mo23085gp(4102);\n bR.mo23085gp(4103);\n }", "title": "" }, { "docid": "d662671b995c24c7517dc6bda0ff09ed", "score": "0.5566462", "text": "void mo1637a();", "title": "" }, { "docid": "de9d820aa7022de3f155611decfc4bef", "score": "0.5564342", "text": "public void mo9848a() {\n }", "title": "" }, { "docid": "e5872e231b881ffd09d2434faaf7ad5e", "score": "0.5564215", "text": "protected void mo3893f() {\n if (this.B) {\n Log.i(\"MPAndroidChart\", \"Preparing Value-Px Matrix, xmin: \" + this.H.t + \", xmax: \" + this.H.s + \", xdelta: \" + this.H.u);\n }\n this.f9056t.m15912a(this.H.t, this.H.u, this.f9052p.u, this.f9052p.t);\n this.f9055s.m15912a(this.H.t, this.H.u, this.f9051o.u, this.f9051o.t);\n }", "title": "" }, { "docid": "39a31da3bdde79b846eeda4ad9993ce4", "score": "0.5558085", "text": "void mo7353b();", "title": "" }, { "docid": "267519ea0317a21c6f9cc9b2b831b1fb", "score": "0.55442303", "text": "public void mo5996r() {\n Message obtainMessage = this.f5396P.obtainMessage(1);\n this.f5396P.removeMessages(1);\n this.f5396P.sendMessageDelayed(obtainMessage, 16);\n RecordService.C1445b bVar = this.f5401U;\n if (bVar != null) {\n this.f5441s = (float) bVar.mo6344e();\n this.f5443t = this.f5401U.mo6348i();\n }\n if (C1413m.m6844f()) {\n this.f5392L.mo6498a(this.f5443t, this.f5431n);\n this.f5392L.mo6500b(this.f5441s);\n } else if (m6595L()) {\n this.f5391K.mo6585a(this.f5443t, this.f5431n);\n this.f5391K.mo6586b(this.f5441s);\n } else {\n this.f5392L.mo6498a(this.f5443t, this.f5431n);\n this.f5392L.mo6500b(this.f5441s);\n }\n this.f5431n = false;\n }", "title": "" }, { "docid": "a45cb6c0835f29888068dff9046206e6", "score": "0.5540139", "text": "public void m6606W() {\n /*\n r17 = this;\n r0 = r17\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 != 0) goto L_0x0007\n return\n L_0x0007:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"<updateTimerView>,mState = \"\n r1.append(r2)\n int r2 = r0.f5435p\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n java.lang.String r2 = \"SR/SoundRecorder\"\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n com.android.service.RecordService$b r1 = r0.f5401U\n long r3 = r1.mo6348i()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r7 = r3 / r5\n r0.f5420ha = r7\n com.android.service.RecordService$b r1 = r0.f5401U\n long r9 = r1.mo6346g()\n int r1 = r0.f5435p\n r11 = 3\n r12 = 4\n r13 = 1\n r14 = 2\n r5 = 0\n if (r1 == 0) goto L_0x009a\n if (r1 == r13) goto L_0x0043\n if (r1 == r14) goto L_0x0055\n if (r1 == r11) goto L_0x0045\n if (r1 == r12) goto L_0x00a1\n L_0x0043:\n r7 = r5\n goto L_0x00a1\n L_0x0045:\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x004b\n r7 = r5\n goto L_0x004d\n L_0x004b:\n r0.f5451x = r5\n L_0x004d:\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n goto L_0x00a1\n L_0x0055:\n r0.f5449w = r3\n int r1 = r0.f5439r\n if (r1 != r12) goto L_0x006b\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r15 = 1000(0x3e8, double:4.94E-321)\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n goto L_0x007f\n L_0x006b:\n r15 = 1000(0x3e8, double:4.94E-321)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r12 = 1\n long r7 = r7 + r12\n r0.f5451x = r7\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n L_0x007f:\n long r7 = r0.f5449w\n r12 = 500(0x1f4, double:2.47E-321)\n long r7 = r7 + r12\n long r7 = r7 / r15\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,currentTime = \"\n r1.append(r3)\n r1.append(r7)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n goto L_0x00a1\n L_0x009a:\n r0.f5451x = r5\n r7 = -1000(0xfffffffffffffc18, double:NaN)\n r0.f5449w = r7\n goto L_0x0043\n L_0x00a1:\n java.lang.Object[] r1 = new java.lang.Object[r11]\n r3 = 0\n r11 = 3600(0xe10, double:1.7786E-320)\n long r15 = r7 / r11\n java.lang.Long r13 = java.lang.Long.valueOf(r15)\n r1[r3] = r13\n long r11 = r7 % r11\n r15 = 60\n long r11 = r11 / r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r11 = 1\n r1[r11] = r3\n long r11 = r7 % r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r1[r14] = r3\n java.lang.String r3 = \"%02d:%02d:%02d\"\n java.lang.String r1 = java.lang.String.format(r3, r1)\n r0.f5413e = r1\n int r1 = r0.f5435p\n if (r1 == r14) goto L_0x00d1\n r3 = 4\n if (r1 != r3) goto L_0x00d6\n L_0x00d1:\n com.android.view.timeview.TimeView r1 = r0.f5387G\n r1.setCurrentTime(r7)\n L_0x00d6:\n int r1 = r0.f5435p\n r0.f5439r = r1\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 == 0) goto L_0x012f\n boolean r1 = r0.f5425k\n if (r1 != 0) goto L_0x012f\n boolean r1 = r0.f5421i\n if (r1 == 0) goto L_0x012f\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x012f\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,mHasFileSizeLimitation : \"\n r1.append(r3)\n boolean r3 = r0.f5421i\n r1.append(r3)\n java.lang.String r3 = \",mRecorder.getRemainingTime(): \"\n r1.append(r3)\n r1.append(r9)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n r1 = 1\n r0.f5425k = r1\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>, mState = \"\n r1.append(r3)\n int r3 = r0.f5435p\n r1.append(r3)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n int r1 = r0.f5435p\n if (r1 != r14) goto L_0x012f\n r17.m6604U()\n L_0x012f:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.activity.SoundRecorder.m6606W():void\");\n }", "title": "" }, { "docid": "360f4bca7c4d229b472c20c23c8bc602", "score": "0.55381185", "text": "C1458cs mo7613iS();", "title": "" }, { "docid": "08d08df5bf6b38b8592b8b696c3d646d", "score": "0.55260324", "text": "private final com.google.wireless.android.finsky.dfe.p515h.p516a.ae m35733b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x001f;\n case 26: goto L_0x002c;\n case 34: goto L_0x0039;\n case 42: goto L_0x004a;\n case 50: goto L_0x0057;\n case 56: goto L_0x0064;\n case 64: goto L_0x00a3;\n case 72: goto L_0x00b1;\n case 82: goto L_0x00bf;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r6.f38026c;\n if (r0 != 0) goto L_0x0019;\n L_0x0012:\n r0 = new com.google.android.finsky.cv.a.bd;\n r0.<init>();\n r6.f38026c = r0;\n L_0x0019:\n r0 = r6.f38026c;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x001f:\n r0 = r7.m33564f();\n r6.f38027d = r0;\n r0 = r6.f38025b;\n r0 = r0 | 1;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x002c:\n r0 = r7.m33564f();\n r6.f38028e = r0;\n r0 = r6.f38025b;\n r0 = r0 | 2;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0039:\n r0 = r6.f38029f;\n if (r0 != 0) goto L_0x0044;\n L_0x003d:\n r0 = new com.google.android.finsky.cv.a.ax;\n r0.<init>();\n r6.f38029f = r0;\n L_0x0044:\n r0 = r6.f38029f;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x004a:\n r0 = r7.m33564f();\n r6.f38030g = r0;\n r0 = r6.f38025b;\n r0 = r0 | 4;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0057:\n r0 = r7.m33564f();\n r6.f38031h = r0;\n r0 = r6.f38025b;\n r0 = r0 | 8;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0064:\n r1 = r6.f38025b;\n r1 = r1 | 16;\n r6.f38025b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0090 }\n switch(r2) {\n case 0: goto L_0x0099;\n case 1: goto L_0x0099;\n case 2: goto L_0x0099;\n case 3: goto L_0x0099;\n case 4: goto L_0x0099;\n default: goto L_0x0075;\n };\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0075:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = \" is not a valid enum Type\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0090 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0090:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0099:\n r6.f38032i = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r6.f38025b;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2 | 16;\n r6.f38025b = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n goto L_0x0000;\n L_0x00a3:\n r0 = r7.m33563e();\n r6.f38033j = r0;\n r0 = r6.f38025b;\n r0 = r0 | 32;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00b1:\n r0 = r7.m33563e();\n r6.f38034k = r0;\n r0 = r6.f38025b;\n r0 = r0 | 64;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00bf:\n r0 = r6.f38035l;\n if (r0 != 0) goto L_0x00ca;\n L_0x00c3:\n r0 = new com.google.android.finsky.cv.a.cv;\n r0.<init>();\n r6.f38035l = r0;\n L_0x00ca:\n r0 = r6.f38035l;\n r7.m33552a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.h.a.ae.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.h.a.ae\");\n }", "title": "" }, { "docid": "d87e29cc83264dae45d60d2c194bd640", "score": "0.54770786", "text": "@Test\n @Tag(\"slow\")\n public void testSTANDMPS() {\n CuteNetlibCase.doTest(\"STANDMPS.SIF\", \"1406.0175\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "8a2bafc538d7bd5a2e24ac5e85f43376", "score": "0.54670244", "text": "private void m11061a(com.bigroad.ttb.android.vehicle.C2338a r7, long r8, java.util.ArrayList<com.bigroad.ttb.android.status.C2265b> r10) {\n /*\n r6 = this;\n r4 = 10000; // 0x2710 float:1.4013E-41 double:4.9407E-320;\n if (r7 == 0) goto L_0x000c;\n L_0x0004:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.REQUIRED;\n r0 = r7.m11451a(r0);\n if (r0 != 0) goto L_0x000d;\n L_0x000c:\n return;\n L_0x000d:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x002d;\n L_0x0015:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0124;\n L_0x001d:\n r0 = r0.longValue();\n r2 = 20000; // 0x4e20 float:2.8026E-41 double:9.8813E-320;\n r0 = r0 + r2;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0124;\n L_0x0028:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.VAR_DATA_CORRUPTED;\n r6.m11060a(r2, r0, r10);\n L_0x002d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00e5;\n L_0x0035:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.TURBO_FIRMWARE_UPDATING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x0042;\n L_0x003d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.TURBO_FIRMWARE_UPDATING;\n r6.m11060a(r0, r8, r10);\n L_0x0042:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_INCOMPATIBLE;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x004f;\n L_0x004a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_NOT_COMPATIBLE;\n r6.m11060a(r0, r8, r10);\n L_0x004f:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x006d;\n L_0x0057:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0121;\n L_0x005f:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0121;\n L_0x0068:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_DETECTING;\n r6.m11060a(r2, r0, r10);\n L_0x006d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CURRENT;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00d2;\n L_0x0075:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.EOBR_TYPE_MATCH;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x0082;\n L_0x007d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WRONG_EOBR_TYPE;\n r6.m11060a(r0, r8, r10);\n L_0x0082:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_READINGS_VALID;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x008f;\n L_0x008a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x008f:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_CALIBRATED;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x009c;\n L_0x0097:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.UNCALIBRATED_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x009c:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ABSOLUTE_TIMESTAMP;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x00b7;\n L_0x00a4:\n r0 = r6.f7779m;\n if (r0 == 0) goto L_0x00b7;\n L_0x00a8:\n r0 = r6.f7779m;\n r0 = r0.mo1121o();\n r1 = com.bigroad.shared.eobr.EobrType.TURBO;\n if (r0 != r1) goto L_0x00b7;\n L_0x00b2:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WAITING_FOR_TURBO_GPS;\n r6.m11060a(r0, r8, r10);\n L_0x00b7:\n r0 = r7.m11449a();\n if (r0 == 0) goto L_0x00c2;\n L_0x00bd:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.RECONNECTING;\n r6.m11060a(r0, r8, r10);\n L_0x00c2:\n r0 = r6.f7780n;\n if (r0 != 0) goto L_0x00cb;\n L_0x00c6:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED_NOT_PLUGGED_IN;\n r6.m11060a(r0, r8, r10);\n L_0x00cb:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x00d2:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11453b(r0);\n if (r0 == 0) goto L_0x00b7;\n L_0x00da:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NOT_CURRENT;\n r6.m11060a(r2, r0, r10);\n goto L_0x00b7;\n L_0x00e5:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.SEARCHING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x00f2;\n L_0x00ed:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.SEARCHING;\n r6.m11060a(r0, r8, r10);\n L_0x00f2:\n r0 = com.bigroad.ttb.android.status.p031a.C2242a.C22408.f7760b;\n r1 = r7.m11455c();\n r1 = r1.ordinal();\n r0 = r0[r1];\n switch(r0) {\n case 1: goto L_0x0103;\n case 2: goto L_0x010a;\n case 3: goto L_0x0113;\n case 4: goto L_0x011a;\n default: goto L_0x0101;\n };\n L_0x0101:\n goto L_0x000c;\n L_0x0103:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_VIN_SPECIFIED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x010a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_DISABLED;\n r2 = 0;\n r6.m11060a(r0, r2, r10);\n goto L_0x000c;\n L_0x0113:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_UNSUPPORTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x011a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.DISCONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x0121:\n r0 = r8;\n goto L_0x0068;\n L_0x0124:\n r0 = r8;\n goto L_0x0028;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bigroad.ttb.android.status.a.a.a(com.bigroad.ttb.android.vehicle.a, long, java.util.ArrayList):void\");\n }", "title": "" }, { "docid": "93b66a48039a96f9cc3a2e1834b30ba0", "score": "0.54606104", "text": "public void mo21781F() {\n }", "title": "" }, { "docid": "9b13c3c6e783097c6c1164c85c2b6b5b", "score": "0.5459835", "text": "public void mo2470d() {\n }", "title": "" }, { "docid": "4c3b3d975dd112cd0977aeae3ca50081", "score": "0.5459196", "text": "public void mo12930a() {\n }", "title": "" }, { "docid": "bcf3f15fa353c6e95244664c48e9986d", "score": "0.5456513", "text": "public void mo21782G() {\n }", "title": "" }, { "docid": "ba4c78e625543cf957f0509ce0b4439d", "score": "0.5456259", "text": "public void mo1531a() {\n }", "title": "" }, { "docid": "82b2329ba94e70008d237cba257ebaeb", "score": "0.54485273", "text": "private void m50367F() {\n }", "title": "" }, { "docid": "6e43bc01d15f8c87023975a3366a8ff5", "score": "0.54382277", "text": "private void m7222b() {\n this.f5601w.mo5525a((C1272h) this);\n this.f5601w.mo5527a((C1280l) this);\n this.f5601w.mo5528a(this.f5580E);\n }", "title": "" }, { "docid": "ca31be53fc1e0f0d0fb239cd7d8d1bc5", "score": "0.54363227", "text": "public void skystonePos3() {\n }", "title": "" }, { "docid": "72cfa1e061ffaace4491489f2f2f4f3c", "score": "0.54347795", "text": "public void mo21880v() {\n }", "title": "" }, { "docid": "a016dea082a59bbacbb0da3ee8986957", "score": "0.5421888", "text": "void mo80457c();", "title": "" }, { "docid": "f1d8c1f1fb4db2541f9be4566ab83fdf", "score": "0.5418002", "text": "public final void mo92082N() {\n }", "title": "" }, { "docid": "a50a07d59b46722889988478ea2327bd", "score": "0.5416292", "text": "private void m6585B() {\n this.f5395O = (TelephonyManager) getSystemService(\"phone\");\n this.f5399S = new C1425w(this.f5389I);\n this.f5404X = C1018a.m5416a(this.f5389I);\n }", "title": "" }, { "docid": "3ffa707c9b71bb5d71029b374afca625", "score": "0.5415928", "text": "void mo80455b();", "title": "" }, { "docid": "f1ede8f946612d8b0debc844bd678d8f", "score": "0.54049927", "text": "public abstract void mo20900UP();", "title": "" }, { "docid": "6f6edd3d34f4b90774e9b306d79009f8", "score": "0.5402147", "text": "public void mo7778r() {\n C1617m mVar;\n C1680l lVar;\n long j;\n C1605b c = this.f5559c.mo7539c(C1613i.f5305hP);\n if (c instanceof C1604a) {\n C1604a aVar = (C1604a) c;\n C1604a aVar2 = (C1604a) this.f5559c.mo7539c(C1613i.f5122ds);\n if (aVar2 == null) {\n aVar2 = new C1604a();\n aVar2.mo7490a((C1605b) C1612h.f4886a);\n aVar2.mo7490a(this.f5559c.mo7539c(C1613i.f5288gz));\n }\n ArrayList arrayList = new ArrayList();\n Iterator<C1605b> it = aVar2.iterator();\n while (true) {\n if (!it.hasNext()) {\n break;\n }\n long b = ((C1612h) it.next()).mo7585b();\n int c2 = ((C1612h) it.next()).mo7586c();\n for (int i = 0; i < c2; i++) {\n arrayList.add(Long.valueOf(((long) i) + b));\n }\n }\n Iterator it2 = arrayList.iterator();\n int c3 = aVar.mo7498c(0);\n int c4 = aVar.mo7498c(1);\n int c5 = aVar.mo7498c(2);\n int i2 = c3 + c4 + c5;\n while (!this.f5510a.mo7797d() && it2.hasNext()) {\n byte[] bArr = new byte[i2];\n this.f5510a.mo7789a(bArr);\n int i3 = 0;\n for (int i4 = 0; i4 < c3; i4++) {\n i3 += (bArr[i4] & 255) << (((c3 - i4) - 1) * 8);\n }\n Long l = (Long) it2.next();\n switch (i3) {\n case 1:\n int i5 = 0;\n for (int i6 = 0; i6 < c4; i6++) {\n i5 += (bArr[i6 + c3] & 255) << (((c4 - i6) - 1) * 8);\n }\n int i7 = 0;\n for (int i8 = 0; i8 < c5; i8++) {\n i7 += (bArr[(i8 + c3) + c4] & 255) << (((c5 - i8) - 1) * 8);\n }\n mVar = new C1617m(l.longValue(), i7);\n lVar = this.f5560d;\n j = (long) i5;\n break;\n case 2:\n int i9 = 0;\n for (int i10 = 0; i10 < c4; i10++) {\n i9 += (bArr[i10 + c3] & 255) << (((c4 - i10) - 1) * 8);\n }\n mVar = new C1617m(l.longValue(), 0);\n lVar = this.f5560d;\n j = (long) (-i9);\n break;\n }\n lVar.mo7812a(mVar, j);\n }\n return;\n }\n throw new IOException(\"/W array is missing in Xref stream\");\n }", "title": "" }, { "docid": "84c63a3972849a51130f896e81a5c87d", "score": "0.54006547", "text": "private void m18357t() {\n AudioProcessor[] k;\n ArrayList<AudioProcessor> newAudioProcessors = new ArrayList<>();\n for (AudioProcessor audioProcessor : m18348k()) {\n if (audioProcessor.mo25036a()) {\n newAudioProcessors.add(audioProcessor);\n } else {\n audioProcessor.flush();\n }\n }\n int count = newAudioProcessors.size();\n this.f16596P = (AudioProcessor[]) newAudioProcessors.toArray(new AudioProcessor[count]);\n this.f16597Q = new ByteBuffer[count];\n m18347j();\n }", "title": "" }, { "docid": "1c2a3cb6ea716a4eaf5bebe962ec46f4", "score": "0.53974605", "text": "public synchronized void m29984l() {\n if (XGPushConfig.enableDebug) {\n C6864a.m29298c(\"TpnsChannel\", \"Action -> send heartbeatSlave \");\n }\n f23274i++;\n mo33398h();\n if (C6973b.m29763a().mo33291f(C6973b.m29776f())) {\n if (!C7048a.m30142d(C6973b.m29776f())) {\n C6864a.m29308i(Constants.ServiceLogTag, \"network is unreachable ,give up and go on slave service\");\n } else if (C6973b.m29776f() != null) {\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n boolean isForeiginPush = XGPushConfig.isForeiginPush(C6973b.m29776f());\n String str = Constants.ACTION_SLVAE_2_MAIN;\n String str2 = Constants.ServiceLogTag;\n if (isForeiginPush) {\n C6864a.m29308i(str2, \"isForeiginPush network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else if (C6979b.m29795a(C6973b.m29776f()).mo33300b()) {\n C6864a.m29308i(str2, \"network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else {\n C6864a.m29308i(str2, \"network is error , go on slave service\");\n }\n }\n });\n } else {\n C6864a.m29308i(Constants.ServiceLogTag, \"PushServiceManager.getInstance().getContext() is null\");\n }\n }\n }", "title": "" }, { "docid": "0c1da414aaa3e9244cb86e56762fd382", "score": "0.5397447", "text": "public void mo3749d() {\n }", "title": "" }, { "docid": "b951c172d67b4e6274f0612c7173c535", "score": "0.5391307", "text": "public void mo21877s() {\n }", "title": "" }, { "docid": "e17006bc342b3639deadb9ecf478c442", "score": "0.53899574", "text": "private void m15509a(C8504ba baVar) {\n long j;\n String str;\n long j2;\n long j3;\n if (mo9140c() != null) {\n PkState pkState = (PkState) LinkCrossRoomDataHolder.m13782a().get(\"data_pk_state\");\n this.f13396d.f11674l = baVar.f23299a.f25652d;\n this.f13396d.f11672j = baVar.f23299a.f25650b;\n this.f13396d.f11673k = baVar.f23299a.f25651c;\n this.f13396d.f11666d = baVar.f23299a.f25653e;\n this.f13396d.f11680r = (int) baVar.f23299a.f25654f;\n this.f13396d.lambda$put$1$DataCenter(\"cmd_log_link\", \"another game\");\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_anchor_score\", Integer.valueOf(0));\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_guest_score\", Integer.valueOf(0));\n if (this.f13395c || pkState == PkState.PENAL) {\n ((C4697a) mo9140c()).mo12635a(baVar.f23299a.f25651c);\n }\n if (!this.f13395c && this.f13396d.f11672j != 0) {\n ((C4697a) mo9140c()).mo12638c();\n }\n this.f13393a.lambda$put$1$DataCenter(\"cmd_pk_state_change\", new C4448r(5));\n m15508a(baVar.timestamp);\n if (this.f13395c) {\n HashMap hashMap = new HashMap();\n String str2 = \"is_oncemore\";\n if (pkState == PkState.PENAL) {\n str = \"oncemore\";\n } else {\n str = \"not_oncemore\";\n }\n hashMap.put(str2, str);\n C8443c a = C8443c.m25663a();\n String str3 = \"pk_start\";\n Object[] objArr = new Object[4];\n objArr[0] = new C8438j().mo21599b(\"live_take\").mo21598a(\"live_detail\");\n C8435g gVar = new C8435g();\n if (this.f13398f) {\n j2 = this.f13394b.getOwner().getId();\n } else {\n j2 = this.f13396d.f11667e;\n }\n C8435g c = gVar.mo21596c(j2);\n if (this.f13398f) {\n j3 = this.f13396d.f11667e;\n } else {\n j3 = this.f13394b.getOwner().getId();\n }\n objArr[1] = c.mo21594b(j3);\n objArr[2] = LinkCrossRoomDataHolder.m13782a().mo11449b();\n objArr[3] = Room.class;\n a.mo21606a(str3, hashMap, objArr);\n this.f13398f = false;\n }\n if (!this.f13395c && pkState == PkState.PENAL) {\n C8435g gVar2 = new C8435g();\n if (this.f13396d.f11680r == 0) {\n gVar2.mo21591a(this.f13396d.f11669g);\n }\n C8443c.m25663a().mo21607a(\"pk_transform\", new C8438j().mo21599b(\"live_function\").mo21598a(\"live_detail\"), gVar2, LinkCrossRoomDataHolder.m13782a().mo11449b(), Room.class);\n }\n if (this.f13395c && pkState == PkState.PENAL) {\n C8435g gVar3 = new C8435g();\n if (this.f13396d.f11680r == 0) {\n gVar3.mo21591a(this.f13396d.f11669g);\n }\n this.f13396d.f11684v = true;\n C8443c a2 = C8443c.m25663a();\n String str4 = \"connection_success\";\n Object[] objArr2 = new Object[4];\n objArr2[0] = new C8438j().mo21598a(\"live_detail\").mo21603f(\"other\").mo21599b(\"live\");\n if (this.f13398f) {\n j = this.f13394b.getOwner().getId();\n } else {\n j = this.f13396d.f11667e;\n }\n objArr2[1] = gVar3.mo21596c(j);\n objArr2[2] = LinkCrossRoomDataHolder.m13782a().mo11449b();\n objArr2[3] = Room.class;\n a2.mo21607a(str4, objArr2);\n if (this.f13394b.getId() == this.f13396d.f11665c) {\n gVar3.mo21594b(this.f13394b.getOwner().getId());\n gVar3.mo21596c(this.f13396d.f11667e);\n } else {\n gVar3.mo21594b(this.f13396d.f11667e);\n gVar3.mo21596c(this.f13394b.getOwner().getId());\n }\n C8443c.m25663a().mo21607a(\"punish_end\", gVar3.mo21597c(\"disconnect\").mo21593a(String.valueOf((System.currentTimeMillis() - LinkCrossRoomDataHolder.m13782a().f11688z) / 1000)), LinkCrossRoomDataHolder.m13782a().mo11449b(), Room.class);\n }\n }\n }", "title": "" }, { "docid": "540bd9e48b0408e97909b1092c10babb", "score": "0.53868914", "text": "void mo5018b();", "title": "" }, { "docid": "ddfdce9a0547e158f596cca93b622552", "score": "0.5382572", "text": "void mo4833b();", "title": "" }, { "docid": "2e3db9844c98652a6b769dc068437c2b", "score": "0.53816617", "text": "private static void psm2() {\n System.out.println(\"I5.psm2()\");\n psm3(); // OK\n }", "title": "" }, { "docid": "09d2e631d3fc5b3b062b84fc75fccd85", "score": "0.53794825", "text": "void mo60893b();", "title": "" }, { "docid": "06d1e95afdd94c0454c58e874d1ebff1", "score": "0.5379259", "text": "@Override\n public void run() {\n ElapsedTime time = new ElapsedTime();\n time.reset();\n while (!sh.liftReady && time.milliseconds() < 1500) {\n }\n //\n sh.pivotPID(650, true, .07/650, .01, .01/650, 2);\n sh.pivotPID(640, false, .07/640, .01, .01/640, 2);\n\n\n\n }", "title": "" }, { "docid": "02a88abb18d1012583ded4c0528d64f1", "score": "0.53786737", "text": "private void m50366E() {\n }", "title": "" }, { "docid": "5f09028a8652427e1ba187c8ff542f50", "score": "0.5372539", "text": "public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }", "title": "" }, { "docid": "43d3c27b17642646e5b252a16a00c4f8", "score": "0.53688574", "text": "public void mo21793R() {\n }", "title": "" }, { "docid": "78cdc5a113f74d3048c7f9788dc58548", "score": "0.536486", "text": "void mo17021c();", "title": "" }, { "docid": "c96f482c8d317971f2895e142c13da86", "score": "0.5361382", "text": "void mo41083a();", "title": "" }, { "docid": "bbea4f612bd732a387249c0d6ae4ad14", "score": "0.5346934", "text": "void mo1507n();", "title": "" }, { "docid": "5f572e2ae279fb867ec409d2de4c858f", "score": "0.53435355", "text": "public final void mo92084P() {\n }", "title": "" }, { "docid": "6b52600db4caf73fa011dfa884d05fc2", "score": "0.53428847", "text": "private void sout() {\n\t\t\n\t}", "title": "" }, { "docid": "ca45bdc736c159c0a8f174c1e4c25f7e", "score": "0.5341328", "text": "public final void mo92083O() {\n }", "title": "" }, { "docid": "e763c38636f47490a9bb473dad9ed604", "score": "0.53397083", "text": "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "title": "" }, { "docid": "c522c81444bb3e80fcb34ccab167fa4e", "score": "0.53386277", "text": "protected void mo3351b() {\n this.H.a(((C3225c) this.C).m15593g(), ((C3225c) this.C).m15594h());\n this.f9051o.m15399a(((C3225c) this.C).m15574a(AxisDependency.LEFT), ((C3225c) this.C).m15581b(AxisDependency.LEFT));\n this.f9052p.m15399a(((C3225c) this.C).m15574a(AxisDependency.RIGHT), ((C3225c) this.C).m15581b(AxisDependency.RIGHT));\n }", "title": "" }, { "docid": "2a70f9e783b4458cae9f61307d64f72d", "score": "0.5338576", "text": "void mo21073d();", "title": "" }, { "docid": "91ca6de85141a13c55b126c0a4a4ddee", "score": "0.5334705", "text": "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "title": "" }, { "docid": "e53a9ac4139a16ab8cdec30e33f26fdf", "score": "0.5334645", "text": "void mo3194r();", "title": "" }, { "docid": "3d98e438c5de6f43e61ce2fe7e307636", "score": "0.53313196", "text": "public static /* synthetic */ void DistributeHyperSP(int a, MapleClient a, MapleCharacter a, boolean a) {\n block3: {\n var4_4 = SkillFactory.getSkill(a);\n if (var4_4 == null || !var4_4.isHyperSkill() && !var4_4.isHyperStat()) ** GOTO lbl17\n if (a != 0) break block3;\n a = a.getRemainingHSp(var4_4.getHyper() - 1);\n if (a >= 1 && a.getLevel() >= var4_4.getReqLevel() && var4_4.canBeLearnedBy(a.getJob()) && a.getSkillLevel(var4_4) == 0) {\n v0 = a;\n v0.setRemainingHSp(var4_4.getHyper() - 1, a - 1);\n v0.changeSkillLevel(a, 1, var4_4.getMaxLevel());\n }\n ** GOTO lbl17\n }\n if (a.getSkillLevel(var4_4) >= var4_4.getMaxLevel()) ** GOTO lbl17\n if (a == 80000406 && !JobConstants.is\\u60e1\\u9b54\\u6bba\\u624b(a.getJob()) && !JobConstants.is\\u795e\\u4e4b\\u5b50(a.getJob())) {\n v1 = a;\n a.dropMessage(1, DumpMapName.ALLATORIxDEMO(\"\\u8a44\\u62d3\\u80cb\\u53b9\\u673f\\u60b2\\u9b62\\u6be9\\u627d|\\u7968\\u4e18\\u5b66\\u53bc\\u4ed3\\u4f2c\\u751e}\"));\n } else {\n a.changeSkillLevel(a, a.getSkillLevel(var4_4) + 1, var4_4.getMaxLevel());\nlbl17:\n // 4 sources\n\n v1 = a;\n }\n v1.sendPacket(MaplePacketCreator.enableActions());\n }\n\n /*\n * Enabled aggressive block sorting\n */\n public static final /* synthetic */ void AutoAssignAP(LittleEndianAccessor a2, MapleClient a3, MapleCharacter a4) {\n long l2;\n LittleEndianAccessor littleEndianAccessor;\n LittleEndianAccessor littleEndianAccessor2 = a2;\n a4.updateTick(littleEndianAccessor2.readInt());\n int n2 = littleEndianAccessor2.readInt();\n if (littleEndianAccessor2.available() < (long)(GameSetConstants.MAPLE_VERSION >= 147 ? n2 * 12 : 16)) {\n return;\n }\n long l3 = 0L;\n if (GameSetConstants.MAPLE_VERSION >= 138) {\n LittleEndianAccessor littleEndianAccessor3 = a2;\n littleEndianAccessor = littleEndianAccessor3;\n l3 = littleEndianAccessor3.readLong();\n } else {\n LittleEndianAccessor littleEndianAccessor4 = a2;\n littleEndianAccessor = littleEndianAccessor4;\n l3 = littleEndianAccessor4.readInt();\n }\n int n3 = littleEndianAccessor.readInt();\n long l4 = 0L;\n l4 = GameSetConstants.MAPLE_VERSION >= 138 ? (n2 > 1 ? (long)((int)a2.readLong()) : 0L) : (long)a2.readInt();\n int n4 = 0;\n if (GameSetConstants.MAPLE_VERSION >= 138) {\n n4 = n2 > 1 ? a2.readInt() : 0;\n l2 = l3;\n } else {\n n4 = a2.readInt();\n l2 = l3;\n }\n MapleStat mapleStat = MapleStat.getByValue(l2);\n MapleStat mapleStat2 = MapleStat.getByValue(l4);\n if (n3 < 0 || n4 < 0) {\n a3.sendPacket(MaplePacketCreator.enableActions());\n return;\n }\n if (a4.getRemainingAp() < 1) {\n a3.sendPacket(MaplePacketCreator.enableActions());\n return;\n }\n if (!StatsHandling.checkAssignAp(a4, mapleStat, mapleStat2, n3, n4)) {\n a3.sendPacket(MaplePacketCreator.enableActions());\n return;\n }\n MapleCharacter mapleCharacter = a4;\n PlayerStats playerStats = mapleCharacter.getStat();\n ArrayList<Pair<MapleStat, Integer>> arrayList = new ArrayList<Pair<MapleStat, Integer>>(2);\n a3.sendPacket(MaplePacketCreator.updatePlayerStats(arrayList, true, a4));\n if (mapleCharacter.getRemainingAp() == n3 + n4) {\n MapleCharacter mapleCharacter2;\n switch (mapleStat) {\n case STR: {\n if (playerStats.getStr() + n3 > GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats2 = playerStats;\n playerStats2.setStr((short)(playerStats2.getStr() + n3));\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.STR, Integer.valueOf(playerStats.getStr())));\n break;\n }\n case DEX: {\n if (playerStats.getDex() + n3 > GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats3 = playerStats;\n playerStats3.setDex((short)(playerStats3.getDex() + n3));\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.DEX, Integer.valueOf(playerStats.getDex())));\n break;\n }\n case INT: {\n if (playerStats.getInt() + n3 > GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats4 = playerStats;\n playerStats4.setInt((short)(playerStats4.getInt() + n3));\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.INT, Integer.valueOf(playerStats.getInt())));\n break;\n }\n case LUK: {\n if (playerStats.getLuk() + n3 > GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats5 = playerStats;\n playerStats5.setLuk((short)(playerStats5.getLuk() + n3));\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.LUK, Integer.valueOf(playerStats.getLuk())));\n break;\n }\n default: {\n a3.sendPacket(MaplePacketCreator.updatePlayerStats(MaplePacketCreator.EMPTY_STATUPDATE, true, a4));\n return;\n }\n }\n switch (mapleStat2) {\n case STR: {\n if (playerStats.getStr() + n4 > GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats6 = playerStats;\n playerStats6.setStr((short)(playerStats6.getStr() + n4));\n mapleCharacter2 = a4;\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.STR, Integer.valueOf(playerStats.getStr())));\n break;\n }\n case DEX: {\n if (playerStats.getDex() + n4 > GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats7 = playerStats;\n playerStats7.setDex((short)(playerStats7.getDex() + n4));\n mapleCharacter2 = a4;\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.DEX, Integer.valueOf(playerStats.getDex())));\n break;\n }\n case INT: {\n if (playerStats.getInt() + n4 > GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats8 = playerStats;\n playerStats8.setInt((short)(playerStats8.getInt() + n4));\n mapleCharacter2 = a4;\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.INT, Integer.valueOf(playerStats.getInt())));\n break;\n }\n case LUK: {\n if (playerStats.getLuk() + n4 > GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats9 = playerStats;\n playerStats9.setLuk((short)(playerStats9.getLuk() + n4));\n mapleCharacter2 = a4;\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.LUK, Integer.valueOf(playerStats.getLuk())));\n break;\n }\n default: {\n a3.sendPacket(MaplePacketCreator.updatePlayerStats(MaplePacketCreator.EMPTY_STATUPDATE, true, a4));\n return;\n }\n }\n mapleCharacter2.setRemainingAp((short)(a4.getRemainingAp() - (n3 + n4)));\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.AVAILABLEAP, Integer.valueOf(a4.getRemainingAp())));\n MapleClient mapleClient = a3;\n mapleClient.sendPacket(MaplePacketCreator.updatePlayerStats(arrayList, true, a4));\n mapleClient.sendPacket(MaplePacketCreator.enableActions());\n }\n }\n\n /*\n * Enabled aggressive block sorting\n */\n public static final /* synthetic */ void DistributeAP(MapleClient a2, MapleCharacter a3, MapleStat a42) {\n ArrayList<Pair<MapleStat, Integer>> arrayList = new ArrayList<Pair<MapleStat, Integer>>(2);\n if (a3 != null) {\n a2.sendPacket(MaplePacketCreator.updatePlayerStats(arrayList, true, a3));\n MapleCharacter mapleCharacter = a3;\n PlayerStats playerStats = mapleCharacter.getStat();\n short s2 = a3.getJob();\n if (mapleCharacter.getRemainingAp() > 0 && a42 != null) {\n MapleCharacter mapleCharacter2;\n switch (1.ALLATORIxDEMO[a42.ordinal()]) {\n case 1: {\n if (playerStats.getStr() >= GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats2 = playerStats;\n playerStats2.setStr((short)(playerStats2.getStr() + 1));\n mapleCharacter2 = a3;\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.STR, Integer.valueOf(playerStats.getStr())));\n break;\n }\n case 2: {\n if (playerStats.getDex() >= GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats3 = playerStats;\n playerStats3.setDex((short)(playerStats3.getDex() + 1));\n mapleCharacter2 = a3;\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.DEX, Integer.valueOf(playerStats.getDex())));\n break;\n }\n case 3: {\n if (playerStats.getInt() >= GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats4 = playerStats;\n playerStats4.setInt((short)(playerStats4.getInt() + 1));\n mapleCharacter2 = a3;\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.INT, Integer.valueOf(playerStats.getInt())));\n break;\n }\n case 4: {\n if (playerStats.getLuk() >= GameSetConstants.MAX_STAT) {\n return;\n }\n PlayerStats playerStats5 = playerStats;\n playerStats5.setLuk((short)(playerStats5.getLuk() + 1));\n mapleCharacter2 = a3;\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.LUK, Integer.valueOf(playerStats.getLuk())));\n break;\n }\n case 5: {\n int a42 = playerStats.getMaxHp();\n if (a3.getHpMpApUsed() >= 10000 || a42 >= 30000) {\n return;\n }\n if (s2 == 0) {\n a42 += Randomizer.rand(8, 12);\n } else if (s2 >= 100 && s2 <= 132 || s2 >= 3200 && s2 <= 3212) {\n ISkill iSkill = SkillFactory.getSkill(1000001);\n int n2 = a2.getPlayer().getSkillLevel(iSkill);\n a42 += Randomizer.rand(20, 25);\n if (n2 >= 1) {\n a42 += iSkill.getEffect(n2).getX();\n }\n } else if (s2 >= 200 && s2 <= 232) {\n a42 += Randomizer.rand(10, 20);\n } else if (s2 >= 300 && s2 <= 322 || s2 >= 400 && s2 <= 434 || s2 >= 1300 && s2 <= 1312 || s2 >= 1400 && s2 <= 1412 || s2 >= 3300 && s2 <= 3312) {\n a42 += Randomizer.rand(16, 20);\n } else if (s2 >= 500 && s2 <= 522 || s2 >= 3500 && s2 <= 3512) {\n ISkill iSkill = SkillFactory.getSkill(5100000);\n int n3 = a2.getPlayer().getSkillLevel(iSkill);\n a42 += Randomizer.rand(18, 22);\n if (n3 >= 1) {\n a42 += iSkill.getEffect(n3).getY();\n }\n } else if (s2 >= 1500 && s2 <= 1512) {\n ISkill iSkill = SkillFactory.getSkill(15100000);\n int n4 = a2.getPlayer().getSkillLevel(iSkill);\n a42 += Randomizer.rand(18, 22);\n if (n4 >= 1) {\n a42 += iSkill.getEffect(n4).getY();\n }\n } else if (s2 >= 1100 && s2 <= 1112) {\n ISkill iSkill = SkillFactory.getSkill(11000000);\n int n5 = a2.getPlayer().getSkillLevel(iSkill);\n a42 += Randomizer.rand(36, 42);\n if (n5 >= 1) {\n a42 += iSkill.getEffect(n5).getY();\n }\n } else {\n a42 = s2 >= 1200 && s2 <= 1212 ? (a42 += Randomizer.rand(15, 21)) : (s2 >= 2000 && s2 <= 2112 ? (a42 += Randomizer.rand(40, 50)) : (a42 += Randomizer.rand(50, 100)));\n }\n a42 = (short)Math.min(30000, Math.abs(a42));\n mapleCharacter2 = a3;\n MapleCharacter mapleCharacter3 = a3;\n mapleCharacter3.setHpMpApUsed((short)(mapleCharacter3.getHpMpApUsed() + 1));\n playerStats.setMaxHp(a42);\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.MAXHP, a42));\n break;\n }\n case 6: {\n int n6 = playerStats.getMaxMp();\n if (a3.getHpMpApUsed() >= 10000 || playerStats.getMaxMp() >= 30000) {\n return;\n }\n if (s2 == 0) {\n n6 += Randomizer.rand(6, 8);\n } else if (s2 >= 100 && s2 <= 132) {\n n6 += Randomizer.rand(2, 4);\n } else if (s2 >= 200 && s2 <= 232 || s2 >= 3200 && s2 <= 3212) {\n ISkill iSkill = SkillFactory.getSkill(2000001);\n int a42 = a2.getPlayer().getSkillLevel(iSkill);\n n6 += Randomizer.rand(18, 20);\n if (a42 >= 1) {\n n6 += iSkill.getEffect(a42).getY() * 2;\n }\n } else if (s2 >= 300 && s2 <= 322 || s2 >= 400 && s2 <= 434 || s2 >= 500 && s2 <= 522 || s2 >= 3200 && s2 <= 3212 || s2 >= 3500 && s2 <= 3512 || s2 >= 1300 && s2 <= 1312 || s2 >= 1400 && s2 <= 1412 || s2 >= 1500 && s2 <= 1512) {\n n6 += Randomizer.rand(10, 12);\n } else if (s2 >= 1100 && s2 <= 1112) {\n n6 += Randomizer.rand(6, 9);\n } else if (s2 >= 1200 && s2 <= 1212) {\n ISkill iSkill = SkillFactory.getSkill(12000000);\n int a42 = a2.getPlayer().getSkillLevel(iSkill);\n n6 += Randomizer.rand(18, 20);\n if (a42 >= 1) {\n n6 += iSkill.getEffect(a42).getY() * 2;\n }\n } else {\n n6 = s2 >= 2000 && s2 <= 2112 ? (n6 += Randomizer.rand(6, 9)) : (n6 += Randomizer.rand(50, 100));\n }\n n6 = (short)Math.min(30000, Math.abs(n6));\n mapleCharacter2 = a3;\n MapleCharacter mapleCharacter4 = a3;\n mapleCharacter4.setHpMpApUsed((short)(mapleCharacter4.getHpMpApUsed() + 1));\n playerStats.setMaxMp(n6);\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.MAXMP, n6));\n break;\n }\n default: {\n a2.sendPacket(MaplePacketCreator.updatePlayerStats(MaplePacketCreator.EMPTY_STATUPDATE, true, a3));\n return;\n }\n }\n mapleCharacter2.setRemainingAp((short)(a3.getRemainingAp() - 1));\n arrayList.add(new Pair<MapleStat, Integer>(MapleStat.AVAILABLEAP, Integer.valueOf(a3.getRemainingAp())));\n a2.sendPacket(MaplePacketCreator.updatePlayerStats(arrayList, true, a3));\n }\n }\n }\n\n public /* synthetic */ StatsHandling() {\n StatsHandling a2;\n }", "title": "" }, { "docid": "382de0d408d24998ae1db14690b2e5dd", "score": "0.5321435", "text": "public void mo115190b() {\n }", "title": "" }, { "docid": "bef763b569d41d9df5e5c212385a5c5e", "score": "0.5319433", "text": "void mo72113b();", "title": "" }, { "docid": "0a6c9499afdc95a3c566eef4c3ba17b0", "score": "0.5318364", "text": "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "title": "" }, { "docid": "cb4cefe654cf3e2d7e77f71c6cd7ad15", "score": "0.53179", "text": "static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }", "title": "" }, { "docid": "acf1db70fb510df3e2318060dc9df35c", "score": "0.5314789", "text": "public void m6607X() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"0\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"mark_num\", String.valueOf(this.f5418ga));\n C1390G.m6779b(\"A107|1|3|10\", hashMap2);\n HashMap hashMap3 = new HashMap();\n hashMap3.put(\"rec_time\", String.valueOf(this.f5420ha));\n C1390G.m6779b(\"A107|1|3|10\", hashMap3);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "title": "" }, { "docid": "556befd345cb7860c72f7ee67c536e00", "score": "0.53135115", "text": "public void mo21785J() {\n }", "title": "" }, { "docid": "c86609118fffd7494c9ddaf686b97d5a", "score": "0.5304743", "text": "void mo37810a();", "title": "" }, { "docid": "6fb5c89c20676290c5b138bec65cd9e5", "score": "0.5302115", "text": "void mo10148a();", "title": "" }, { "docid": "fd5eac436518e3bfbc644b5af7f690c7", "score": "0.5302079", "text": "private final com.google.android.play.p179a.p352a.ae m28545b(com.google.protobuf.nano.a r8) {\n /*\n r7 = this;\n r6 = 1048576; // 0x100000 float:1.469368E-39 double:5.180654E-318;\n L_0x0002:\n r0 = r8.a();\n switch(r0) {\n case 0: goto L_0x000f;\n case 8: goto L_0x0010;\n case 18: goto L_0x001d;\n case 24: goto L_0x002a;\n case 34: goto L_0x0037;\n case 42: goto L_0x0044;\n case 50: goto L_0x0051;\n case 58: goto L_0x005e;\n case 66: goto L_0x006b;\n case 74: goto L_0x0078;\n case 82: goto L_0x0086;\n case 90: goto L_0x0094;\n case 98: goto L_0x00a2;\n case 106: goto L_0x00b0;\n case 114: goto L_0x00be;\n case 122: goto L_0x00cc;\n case 130: goto L_0x00dc;\n case 138: goto L_0x00eb;\n case 144: goto L_0x00fa;\n case 152: goto L_0x0108;\n case 160: goto L_0x0117;\n case 168: goto L_0x0126;\n default: goto L_0x0009;\n };\n L_0x0009:\n r0 = super.m4918a(r8, r0);\n if (r0 != 0) goto L_0x0002;\n L_0x000f:\n return r7;\n L_0x0010:\n r0 = r8.j();\n r7.f30754b = r0;\n r0 = r7.f30753a;\n r0 = r0 | 1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x001d:\n r0 = r8.f();\n r7.f30755c = r0;\n r0 = r7.f30753a;\n r0 = r0 | 2;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x002a:\n r0 = r8.i();\n r7.f30757e = r0;\n r0 = r7.f30753a;\n r0 = r0 | 8;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0037:\n r0 = r8.f();\n r7.f30758f = r0;\n r0 = r7.f30753a;\n r0 = r0 | 16;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0044:\n r0 = r8.f();\n r7.f30759g = r0;\n r0 = r7.f30753a;\n r0 = r0 | 32;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0051:\n r0 = r8.f();\n r7.f30762j = r0;\n r0 = r7.f30753a;\n r0 = r0 | 256;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x005e:\n r0 = r8.f();\n r7.f30763k = r0;\n r0 = r7.f30753a;\n r0 = r0 | 512;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x006b:\n r0 = r8.f();\n r7.f30760h = r0;\n r0 = r7.f30753a;\n r0 = r0 | 64;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0078:\n r0 = r8.f();\n r7.f30761i = r0;\n r0 = r7.f30753a;\n r0 = r0 | 128;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0086:\n r0 = r8.f();\n r7.f30764l = r0;\n r0 = r7.f30753a;\n r0 = r0 | 1024;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0094:\n r0 = r8.f();\n r7.f30765m = r0;\n r0 = r7.f30753a;\n r0 = r0 | 2048;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00a2:\n r0 = r8.f();\n r7.f30766n = r0;\n r0 = r7.f30753a;\n r0 = r0 | 4096;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00b0:\n r0 = r8.f();\n r7.f30767o = r0;\n r0 = r7.f30753a;\n r0 = r0 | 8192;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00be:\n r0 = r8.f();\n r7.f30768p = r0;\n r0 = r7.f30753a;\n r0 = r0 | 16384;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00cc:\n r0 = r8.f();\n r7.f30769q = r0;\n r0 = r7.f30753a;\n r1 = 32768; // 0x8000 float:4.5918E-41 double:1.61895E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00dc:\n r0 = r8.f();\n r7.f30770r = r0;\n r0 = r7.f30753a;\n r1 = 65536; // 0x10000 float:9.18355E-41 double:3.2379E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00eb:\n r0 = r8.f();\n r7.f30771s = r0;\n r0 = r7.f30753a;\n r1 = 131072; // 0x20000 float:1.83671E-40 double:6.47582E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00fa:\n r0 = r8.j();\n r7.f30756d = r0;\n r0 = r7.f30753a;\n r0 = r0 | 4;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0108:\n r0 = r8.i();\n r7.f30772t = r0;\n r0 = r7.f30753a;\n r1 = 262144; // 0x40000 float:3.67342E-40 double:1.295163E-318;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0117:\n r0 = r8.e();\n r7.f30773u = r0;\n r0 = r7.f30753a;\n r1 = 524288; // 0x80000 float:7.34684E-40 double:2.590327E-318;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0126:\n r1 = r7.f30753a;\n r1 = r1 | r6;\n r7.f30753a = r1;\n r1 = r8.o();\n r2 = r8.i();\t Catch:{ IllegalArgumentException -> 0x0151 }\n switch(r2) {\n case 0: goto L_0x015a;\n case 1: goto L_0x015a;\n case 2: goto L_0x015a;\n default: goto L_0x0136;\n };\t Catch:{ IllegalArgumentException -> 0x0151 }\n L_0x0136:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r4 = 48;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r4 = \" is not a valid enum PairedDeviceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0151 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0151 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0151 }\n L_0x0151:\n r2 = move-exception;\n r8.e(r1);\n r7.m4918a(r8, r0);\n goto L_0x0002;\n L_0x015a:\n r7.f30774v = r2;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r7.f30753a;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r2 | r6;\n r7.f30753a = r2;\t Catch:{ IllegalArgumentException -> 0x0151 }\n goto L_0x0002;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.ae.b(com.google.protobuf.nano.a):com.google.android.play.a.a.ae\");\n }", "title": "" }, { "docid": "f4e635999447d79a222a376e0b67425e", "score": "0.53010166", "text": "public void mo21787L() {\n }", "title": "" }, { "docid": "2bbe05b970128fcdfabe4e93622ef844", "score": "0.5297145", "text": "public BMPS() {\n this.name = CrossLinkerName.BMPS;\n this.type = CrossLinkerType.AMINE_TO_SULFHYDRYL; \n double moleculeMass = (7 * Atom.C.getMonoisotopicMass()) + Atom.N.getMonoisotopicMass () + (4 * Atom.O.getMonoisotopicMass()) + (7 * Atom.H.getMonoisotopicMass());\n \n super.massShift_Type0 = moleculeMass;\n super.massShift_Type2 = moleculeMass - (2 * Atom.H.getMonoisotopicMass()+ Atom.O.getMonoisotopicMass());\n }", "title": "" }, { "docid": "97a0ca51227625527b7b04ccfc464658", "score": "0.5293596", "text": "private void m6603T() {\n RecordService.C1445b bVar;\n if (!isFinishing() && !this.f5427l && (bVar = this.f5401U) != null) {\n bVar.mo6340a(true);\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"from\", \"1\");\n C1390G.m6779b(\"A107|7|2|7\", hashMap);\n } catch (Exception unused) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"vcode error\");\n }\n }\n }", "title": "" }, { "docid": "58275700b0866d99309a4c3f9dd490cd", "score": "0.52920526", "text": "private void detectParkingSlot()\r\n\t{\t\t\r\n\t\tPoint PosS = new Point(0,0);\r\n\t\tPoint PosE = new Point(0,0);\r\n\t\t\r\n\t\tdouble sum_F = 0;\r\n\t\tdouble sum_B = 0;\r\n\t\t\r\n\t\tdouble distance_F = 0;\r\n\t\tdouble distance_B = 0;\r\n\t\t\r\n\t\tint SlotID = Pk_counter;\r\n\t\tINavigation.ParkingSlot.ParkingSlotStatus SlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\r\n\t\tshort axe = getHeadingAxe();\r\n\t\t\r\n\t\tfor (int i = 1; i <= 4; i++)\r\n\t\t{\r\n\t\t\tPk_DIST_FS[i] = Pk_DIST_FS[i-1];\r\n\t\t\tsum_F = Pk_DIST_FS[i] + sum_F;\r\n\t\t\t\r\n\t\t\tPk_DIST_BS[i] = Pk_DIST_BS[i-1];\r\n\t\t\tsum_B = Pk_DIST_BS[i] + sum_B;\r\n\t\t}\r\n\t\t\r\n\t\tPk_DIST_FS[0] = frontSensorDistance;\r\n\t\t//distance_F = (sum_F + Pk_DIST_FS[0])/5;\r\n\t\tdistance_F = frontSensorDistance;\r\n\t\t\r\n\t\tPk_DIST_BS[0] = backSideSensorDistance;\r\n\t\t//distance_B = (sum_B + Pk_DIST_BS[0])/5;\r\n\t\tdistance_B = backSideSensorDistance;\r\n\t\t\r\n\t\t//LCD.drawString(\"Dist_F: \" + (distance_F), 0, 6);\r\n\t\t//LCD.drawString(\"Dist_B: \" + (distance_B), 0, 7);\r\n\t\t\r\n\t\t// Saving the begin point of the PS\r\n\t\tif ((distance_F <= TRSH_SG) && (Pk_burstFS == 0))\r\n\t\t{\r\n\t\t\tPk_PosF1.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstFS = 1;\r\n\t\t\tPk_burstFE = 0;\r\n\t\t\t//Sound.beep();\r\n\t\t}\r\n\t\t\r\n\t\tif ((distance_B <= TRSH_SG) && (Pk_burstRS == 0))\r\n\t\t{\r\n\t\t\tPk_PosR1.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstRS = 1;\r\n\t\t\tPk_burstRE = 0;\r\n\t\t\t//Sound.twoBeeps();\r\n\t\t}\r\n\t\t\t\t\r\n\t\t// Saving the end point of the PS\r\n\t\tif ((distance_F >= TRSH_SG) && (Pk_burstFE == 0))\r\n\t\t{\r\n\t\t\tPk_PosF2.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstFS = 0;\r\n\t\t\tPk_burstFE = 1;\r\n\t\t\t//Sound.beep();\r\n\t\t}\r\n\t\t\r\n\t\tif ((distance_B >= TRSH_SG) && (Pk_burstRE == 0))\r\n\t\t{\r\n\t\t\tPk_PosR2.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstRS = 0;\r\n\t\t\t//burstRE = 1;\r\n\t\t\t//Sound.twoBeeps();\r\n\t\t}\r\n\t\t\r\n\t\tif (Po_RoundF == 0)\t\t\t// Saving new parking slots\r\n\t\t{\t\r\n\t\t\tif ((Pk_burstRS == 0) && (Pk_burstRE == 0) && (Pk_counter < 10))\r\n\t\t\t{\r\n\t\t\t\tPosS.setLocation(((Pk_PosF1.getX() + Pk_PosR1.getX())/2), ((Pk_PosF1.getY() + Pk_PosR1.getY())/2));\r\n\t\t\t\tPosE.setLocation(((Pk_PosF2.getX() + Pk_PosR2.getX())/2), ((Pk_PosF2.getY() + Pk_PosR2.getY())/2));\r\n\t\t\t\t\r\n\t\t\t\t// Evaluation of the slot\r\n\t\t\t\tif (axe == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getX() - PosS.getX()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getY() - PosS.getY()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPk_slotList[Pk_counter] = new INavigation.ParkingSlot(SlotID, PosE, PosS, SlotStatus, 0);\r\n\t\t\t\tPk_counter ++;\r\n\t\t\t\t\r\n\t\t\t\tPk_burstRE = 1;\r\n\t\t\t\t\r\n\t\t\t\tSound.beepSequence();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\t\t\t\t\t// Updating the old slots\r\n\t\t{\r\n\t\t\tif ((Pk_burstRS == 0) && (Pk_burstRE == 0) && (Pk_update <= Pk_counter))\r\n\t\t\t{\r\n\t\t\t\tPosS.setLocation(((Pk_PosF1.getX() + Pk_PosR1.getX())/2), ((Pk_PosF1.getY() + Pk_PosR1.getY())/2));\r\n\t\t\t\tPosE.setLocation(((Pk_PosF2.getX() + Pk_PosR2.getX())/2), ((Pk_PosF2.getY() + Pk_PosR2.getY())/2));\r\n\t\t\t\t\r\n\t\t\t\t// Evaluation of the slot\r\n\t\t\t\tif (axe == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getX() - PosS.getX()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getY() - PosS.getY()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPk_slotList[Pk_update] = new INavigation.ParkingSlot(SlotID, PosE, PosS, SlotStatus, 0);\r\n\t\t\t\t\r\n\t\t\t\tif (Pk_update < Pk_counter)\r\n\t\t\t\t{\r\n\t\t\t\t\tPk_update ++;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tPk_update = 0;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPk_burstRE = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn; // data are saved in the shared variable\r\n\t}", "title": "" }, { "docid": "1dab545ba7a0b59f6913c964083b9356", "score": "0.5291832", "text": "public void mo55177a() {\n C3561h5.m954c().mo55465a().execute(new C3634a());\n }", "title": "" }, { "docid": "48d2769480f23d37b2830ef29c29bbed", "score": "0.5291716", "text": "public void mo55583c() {\n C3561h5.m954c().mo55465a().execute(new C3629m());\n }", "title": "" }, { "docid": "1dbef3d85a1f1e0c1e54a1648508e821", "score": "0.52882344", "text": "void mo72114c();", "title": "" } ]
50f750c28c85f449cb1eef29ca1dbe0f
The responsible person about this notification on the yard side.
[ { "docid": "a8f67ccf50f630fb774188c0e24dc324", "score": "0.0", "text": "public ContactPerson getYardContact() {\n return yardContact;\n }", "title": "" } ]
[ { "docid": "d324a469f9df521b861b13dcc805587a", "score": "0.69328684", "text": "java.lang.String getResponsibleName();", "title": "" }, { "docid": "8aa74c01d90f2620709b7fa178c129c2", "score": "0.6462291", "text": "Responsible getResponsible();", "title": "" }, { "docid": "d817379ee141c0379ae5d4276ae7e2ca", "score": "0.6360276", "text": "public User getUser() {\n return message.getAuthor();\n }", "title": "" }, { "docid": "c54846d89d062cd678d7fc6f4ff52ef7", "score": "0.6213418", "text": "public NonProfitContact getOwner() {\n\t\treturn myOwner;\n\t}", "title": "" }, { "docid": "6a078da32cacd193fef197a7abe8c03d", "score": "0.61652255", "text": "java.lang.String getOwnerEmail();", "title": "" }, { "docid": "f91f9f057b384431418d1579ac98429c", "score": "0.61059564", "text": "java.lang.String getOwner();", "title": "" }, { "docid": "f91f9f057b384431418d1579ac98429c", "score": "0.61059564", "text": "java.lang.String getOwner();", "title": "" }, { "docid": "f91f9f057b384431418d1579ac98429c", "score": "0.61059564", "text": "java.lang.String getOwner();", "title": "" }, { "docid": "f91f9f057b384431418d1579ac98429c", "score": "0.61059564", "text": "java.lang.String getOwner();", "title": "" }, { "docid": "f91f9f057b384431418d1579ac98429c", "score": "0.61059564", "text": "java.lang.String getOwner();", "title": "" }, { "docid": "f91f9f057b384431418d1579ac98429c", "score": "0.61059564", "text": "java.lang.String getOwner();", "title": "" }, { "docid": "0e360650c285fc291627e87947bfb81e", "score": "0.61041975", "text": "public String getNameOfOwner() {\n return nameOfOwner;\n }", "title": "" }, { "docid": "faa7b76cd8e3d44c0e91d5d0a7b5695a", "score": "0.60948557", "text": "public String getOwnerName(){\n return owner.getName();\n }", "title": "" }, { "docid": "0db48d8ebc355e7c433bb86d15ac4bd6", "score": "0.6037673", "text": "public String getNoticeTeacher() {\r\n return (String) getAttributeInternal(NOTICETEACHER);\r\n }", "title": "" }, { "docid": "f3b373860f232d6775e5d613d8071375", "score": "0.60142374", "text": "com.google.protobuf.ByteString\n getResponsibleNameBytes();", "title": "" }, { "docid": "ae6c4505ffda2271a3750be0ab86ec71", "score": "0.6000463", "text": "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "8ad61331320ccb9b9685dfd09593d8de", "score": "0.59897166", "text": "public Person getOwner() {\n\t\tif (owner != null && owner.eIsProxy()) {\n\t\t\tInternalEObject oldOwner = owner;\n\t\t\towner = (Person)eResolveProxy(oldOwner);\n\t\t\tif (owner != oldOwner) {\n\t\t\t\tif (eNotificationRequired())\n\t\t\t\t\teNotify(new ENotificationImpl(this, Notification.RESOLVE, Scenario4_v2Package.DOG__OWNER, oldOwner, owner));\n\t\t\t}\n\t\t}\n\t\treturn owner;\n\t}", "title": "" }, { "docid": "7689d42da1fa1a03008c88629363ad7c", "score": "0.5967784", "text": "public int getOwnedBy() {\n\t\treturn ownedBy;\r\n\t}", "title": "" }, { "docid": "983a2f3e4c4db18f0ac3b94f7c670955", "score": "0.5945713", "text": "public Number getCreatedBy() {\r\n return (Number)getAttributeInternal(CREATEDBY);\r\n }", "title": "" }, { "docid": "f38899736e4a9e40e8d79c597c4908be", "score": "0.59447", "text": "java.lang.String getResponsibleUuid();", "title": "" }, { "docid": "4fb8f13323a27c32d50ab420e722888f", "score": "0.59396803", "text": "public webschedule.data.PersonDO getOwner () \n throws DataObjectException {\n beforeAnyGet();\t// business actions/assertions prior to data return\n return DO.getOwner ();\n }", "title": "" }, { "docid": "8ee5a76068f42099fbe8e3b85a19a4ef", "score": "0.593163", "text": "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "8ee5a76068f42099fbe8e3b85a19a4ef", "score": "0.593163", "text": "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "8ee5a76068f42099fbe8e3b85a19a4ef", "score": "0.593163", "text": "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "8ee5a76068f42099fbe8e3b85a19a4ef", "score": "0.593163", "text": "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "498b59e102572a27fcfcd1eee63a9b4d", "score": "0.5931436", "text": "public Person getSender()\n {\n return from;\n }", "title": "" }, { "docid": "52f8c346f5e32467777ae9b6dff32409", "score": "0.59209746", "text": "public String getCreatedBy() {\r\n return (String)getAttributeInternal(CREATEDBY);\r\n }", "title": "" }, { "docid": "c883ccde56f2532f3b9d7dc137fe7adb", "score": "0.59053177", "text": "public User getCreator() {\n\t\treturn this.creator;\n\t}", "title": "" }, { "docid": "73f889ef7c55bb41c489fc983722836f", "score": "0.5895546", "text": "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "73f889ef7c55bb41c489fc983722836f", "score": "0.5895546", "text": "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "8fb93a0735a5a9df26738def919b4f20", "score": "0.5894915", "text": "java.lang.String getCreatedBy();", "title": "" }, { "docid": "8fb93a0735a5a9df26738def919b4f20", "score": "0.5894915", "text": "java.lang.String getCreatedBy();", "title": "" }, { "docid": "c9a54cdbe1e1361fd4fb16e1f316d491", "score": "0.5881193", "text": "public Number getCreatedBy() {\r\n return (Number) getAttributeInternal(CREATEDBY);\r\n }", "title": "" }, { "docid": "c9a54cdbe1e1361fd4fb16e1f316d491", "score": "0.5881193", "text": "public Number getCreatedBy() {\r\n return (Number) getAttributeInternal(CREATEDBY);\r\n }", "title": "" }, { "docid": "c9a54cdbe1e1361fd4fb16e1f316d491", "score": "0.5881193", "text": "public Number getCreatedBy() {\r\n return (Number) getAttributeInternal(CREATEDBY);\r\n }", "title": "" }, { "docid": "b8a42a8ce6d011c42f7f4212c1c7ccfb", "score": "0.58774245", "text": "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "title": "" }, { "docid": "a700ab0156ac26841c9ff2b8a4ea73be", "score": "0.5868483", "text": "public java.lang.Object getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "18f042fa8d9b2277e56ba768cced89e1", "score": "0.58679265", "text": "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "dc3e39433585ebbc60d19f19e05fc802", "score": "0.5866767", "text": "public String getOwnerName();", "title": "" }, { "docid": "dc3e39433585ebbc60d19f19e05fc802", "score": "0.5866767", "text": "public String getOwnerName();", "title": "" }, { "docid": "1f9e3939502c907cdf8a0ecd9b52be59", "score": "0.5855561", "text": "public String getOwner() {\n return owner.toString();\n }", "title": "" }, { "docid": "54adb0eba35ef55bf88a7eccac5cbde1", "score": "0.5851104", "text": "public String getCreatedBy() {\r\n return (String) getAttributeInternal(CREATEDBY);\r\n }", "title": "" }, { "docid": "2a741c53806ee4cacf63efbbb35c59bd", "score": "0.5845944", "text": "public String getCreatedBy() {\n return _createdBy;\n }", "title": "" }, { "docid": "30275fff3082409b41694ab2261a5820", "score": "0.5837953", "text": "public String getOwner() {\n return this.owner;\n }", "title": "" }, { "docid": "10347beb72c3389148cc0f52ee8319ff", "score": "0.58335614", "text": "IPerson getAuthor();", "title": "" }, { "docid": "7e7e3ef69465b580cbf0d73c86956c62", "score": "0.58290714", "text": "public String getOwnerName() {\r\n return ownerName;\r\n }", "title": "" }, { "docid": "7e7e3ef69465b580cbf0d73c86956c62", "score": "0.58290714", "text": "public String getOwnerName() {\r\n return ownerName;\r\n }", "title": "" }, { "docid": "9b79d737fe5c4df2b61e11fb8ec6627e", "score": "0.5825666", "text": "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "title": "" }, { "docid": "9b79d737fe5c4df2b61e11fb8ec6627e", "score": "0.5825666", "text": "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "title": "" }, { "docid": "4ea624a05926e15e40abdcac43a681d2", "score": "0.58247566", "text": "public String getOwner() {\r\n\t\treturn this.owner;\r\n\t}", "title": "" }, { "docid": "4ea624a05926e15e40abdcac43a681d2", "score": "0.58247566", "text": "public String getOwner() {\r\n\t\treturn this.owner;\r\n\t}", "title": "" }, { "docid": "f559864a8a883ee5e6b9093324c8f6b6", "score": "0.5820226", "text": "public ParticipantId getAuthor() {\n return author;\n }", "title": "" }, { "docid": "9ca35af87936f24a1802e418db77732d", "score": "0.5819238", "text": "public java.lang.String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "756e5ec427a6e5667f6521306dbd3993", "score": "0.5818892", "text": "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "756e5ec427a6e5667f6521306dbd3993", "score": "0.5818892", "text": "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "756e5ec427a6e5667f6521306dbd3993", "score": "0.5818892", "text": "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "756e5ec427a6e5667f6521306dbd3993", "score": "0.5818892", "text": "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "title": "" }, { "docid": "2f71af685e4ff8fa4659638069383f9f", "score": "0.5812511", "text": "public String getPerson() {\n return person;\n }", "title": "" }, { "docid": "cb60e15d1c609fd350c563e03feda203", "score": "0.58117294", "text": "public String getCreatedBy() {\r\n return createdBy;\r\n }", "title": "" }, { "docid": "cb60e15d1c609fd350c563e03feda203", "score": "0.58117294", "text": "public String getCreatedBy() {\r\n return createdBy;\r\n }", "title": "" }, { "docid": "cb60e15d1c609fd350c563e03feda203", "score": "0.58117294", "text": "public String getCreatedBy() {\r\n return createdBy;\r\n }", "title": "" }, { "docid": "1fecf9f82851396435fa3f12cbcf8fcf", "score": "0.57970643", "text": "public User getOwner() {\n\t\treturn user;\n\t}", "title": "" }, { "docid": "71c179f1f933299ef621c1024f28bf15", "score": "0.5797048", "text": "public String getOwner() {\n return owner;\n }", "title": "" }, { "docid": "b515113ee415408276a43c8bd7d1d014", "score": "0.5792689", "text": "public User getOwner()\n {\n return this.owner;\n }", "title": "" }, { "docid": "62891c990195ee13d4d378c160ffcad0", "score": "0.5783275", "text": "public java.lang.String getOwner() {\n return owner;\n }", "title": "" }, { "docid": "6ae64e420f48a16224db03793b72b283", "score": "0.57735837", "text": "String getCreatedBy();", "title": "" }, { "docid": "6ae64e420f48a16224db03793b72b283", "score": "0.57735837", "text": "String getCreatedBy();", "title": "" }, { "docid": "9078da6f52d0173386ef23bb3ac8f7c5", "score": "0.57706803", "text": "@Override\n\tpublic java.lang.String getCreatedBy() {\n\t\treturn _wfms_Position_Audit.getCreatedBy();\n\t}", "title": "" }, { "docid": "4c53e481713e4e9fb1fdc8b1e5139937", "score": "0.5770347", "text": "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "title": "" }, { "docid": "3bd9c290fb204872d947daf8326fa924", "score": "0.5769165", "text": "public String getUsername() {\n return lease.getBorrowingCustomer().getUsername();\n }", "title": "" }, { "docid": "43801a62c9c8cf09daa572087d9e2970", "score": "0.5765994", "text": "public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "43801a62c9c8cf09daa572087d9e2970", "score": "0.5765994", "text": "public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "43801a62c9c8cf09daa572087d9e2970", "score": "0.5765994", "text": "public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "43801a62c9c8cf09daa572087d9e2970", "score": "0.5765994", "text": "public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "43801a62c9c8cf09daa572087d9e2970", "score": "0.5765994", "text": "public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "43801a62c9c8cf09daa572087d9e2970", "score": "0.5765994", "text": "public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "43801a62c9c8cf09daa572087d9e2970", "score": "0.5765994", "text": "public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "43801a62c9c8cf09daa572087d9e2970", "score": "0.5765994", "text": "public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "43801a62c9c8cf09daa572087d9e2970", "score": "0.5765994", "text": "public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "ce8340951b8d4de4b5ca08eeb76d1c55", "score": "0.57605934", "text": "public String getOwner() {\n return owner;\n }", "title": "" }, { "docid": "ce8340951b8d4de4b5ca08eeb76d1c55", "score": "0.57605934", "text": "public String getOwner() {\n return owner;\n }", "title": "" }, { "docid": "ce8340951b8d4de4b5ca08eeb76d1c55", "score": "0.57605934", "text": "public String getOwner() {\n return owner;\n }", "title": "" }, { "docid": "ce8340951b8d4de4b5ca08eeb76d1c55", "score": "0.57605934", "text": "public String getOwner() {\n return owner;\n }", "title": "" }, { "docid": "ce8340951b8d4de4b5ca08eeb76d1c55", "score": "0.57605934", "text": "public String getOwner() {\n return owner;\n }", "title": "" }, { "docid": "ce8340951b8d4de4b5ca08eeb76d1c55", "score": "0.57605934", "text": "public String getOwner() {\n return owner;\n }", "title": "" }, { "docid": "0e34d8cf199ea1af65e3420dc440266b", "score": "0.5759198", "text": "public String getOwnerInfo() {\n\t\treturn ownerInfo;\n\t}", "title": "" }, { "docid": "ea00317248aee13c787dd96c8b0fb92d", "score": "0.57548153", "text": "public Person getRecipient()\n {\n return to;\n }", "title": "" }, { "docid": "bc489e93c27e73b82a939eff3775727f", "score": "0.5753317", "text": "public CsvCell getReferralSenderUserId() {\n return super.getCell(\"HCP\");\n }", "title": "" }, { "docid": "7b881119d40ade26c635a22eb305879f", "score": "0.57459366", "text": "@Override\n public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "a09c897fd60d1212b8198210858a8a76", "score": "0.57418907", "text": "public String getOwner() {\n\t\treturn owner;\n\t}", "title": "" }, { "docid": "5f22664277da5fc82142e4ce8537e4c0", "score": "0.57404906", "text": "public User getOwner() {\n return this.owner;\n }", "title": "" }, { "docid": "5c7790920060afd3d075c05bdea0b69f", "score": "0.5734298", "text": "public String getNamePerson() {\n\t\treturn this.namePerson;\n\t}", "title": "" }, { "docid": "eea061120a89227d5832d54c5639d971", "score": "0.5726335", "text": "public String getModifyPerson() {\n return modifyPerson;\n }", "title": "" }, { "docid": "eea061120a89227d5832d54c5639d971", "score": "0.5726335", "text": "public String getModifyPerson() {\n return modifyPerson;\n }", "title": "" }, { "docid": "2bfbce36c744cb69bb79391d508dcca8", "score": "0.57152826", "text": "String getOwner();", "title": "" }, { "docid": "2bfbce36c744cb69bb79391d508dcca8", "score": "0.57152826", "text": "String getOwner();", "title": "" }, { "docid": "fdedeaf6abf79cc825a231d9dbc3f9d5", "score": "0.5705949", "text": "public CsvCell getReferralRecipientUserId() {\n return super.getCell(\"TO_HCP\");\n }", "title": "" }, { "docid": "0a20952c8fe4872a748c44359d6239d0", "score": "0.56981933", "text": "@Override\r\n public String owner() {\r\n return tweeter.text();\r\n }", "title": "" }, { "docid": "04105aa69658fc412a77586a459a7cc1", "score": "0.56955785", "text": "public String getOwner() {\n return owner;\n }", "title": "" }, { "docid": "95687d24c84322d39bdeda4ba2324d2f", "score": "0.5693018", "text": "User getOwner();", "title": "" }, { "docid": "a20308a9d72afbf5f45d589f2ce63dfc", "score": "0.56927323", "text": "public User getCreatedBy() {\n\t\treturn createdBy;\n\t}", "title": "" } ]
0046679f8c14fb11558bfdc82b785c4e
Constructor of main frame
[ { "docid": "82672218b9887384ed04990d8e76253f", "score": "0.0", "text": "public PendingRepairJobsScreen(final RepairJobDAO repairJobDAO)\n\t{\n\t\t\n\t\tfinal JFrame currentObject = this;\n\t\tmodel = new DefaultTableModel() {\n\t\t public boolean isCellEditable(int rowIndex, int colIndex) {\n\t\t return false; \n\t\t }\n\t\t };\n\t\t \n\n\t\t \n\t\tthis.repairJobDAO=repairJobDAO;\n\t\t// Set the frame characteristics\n\t\tsetTitle( \"Repair Jobs\" );\n\t\tsetSize( 600, 300 );\n\t\tsetBackground( Color.gray );\n\n\t\t// Create a panel to hold all other components\n\t\ttopPanel = new JPanel();\n\t\tbuttonPanel = new JPanel();\n\t\ttopPanel.setLayout( new GridLayout(2,1));\n\t\tgetContentPane().add( topPanel );\n\n\t\t// Create columns names\n\t\tString columnNames[] = { \"Customer Name\", \"Car Type\", \"Request Type\", \"Car Number\"};\n\n\t\t model.setColumnIdentifiers(columnNames);\t\t \n \n loadData();\n \n\t\t// Create a new table instance\n\t\ttable = new JTable(model); \n\t\ttable.setBackground(Color.LIGHT_GRAY);\n table.setForeground(Color.black); \n \n // set the model to the table\n table.setModel(model);\n JComboBox<String> statusCombo = new JComboBox<String>();\n statusCombo.addItem(\"Pending\");\n statusCombo.addItem(\"In-Progress\");\n statusCombo.addItem(\"Completed\");\n \n\t\t// Add the table to a scrolling pane\n\t\tscrollPane = new JScrollPane(table);\n\t\t \n\t\t JButton backButton = new JButton(\"Back\"); \n\t\t\t//panel.add(btnUpdate); \n\t backButton.addActionListener(new ActionListener(){\n\n\t @Override\n\t public void actionPerformed(ActionEvent e) {\n\t \tcurrentObject.setVisible(false);\n\t \t \n\t }\n\t\t\t});\n\t \n\t \tbuttonPanel.add(backButton);\n\t\ttopPanel.add(scrollPane);\n\t\ttopPanel.add(buttonPanel);\n\t}", "title": "" } ]
[ { "docid": "97186bd8a9651abca72a442277c07d33", "score": "0.85358334", "text": "public MainFrame() {\r\n\t\tinitialize();\r\n\t}", "title": "" }, { "docid": "bd6d1e571665aa095c3a3e6c8ea3b1c4", "score": "0.8385902", "text": "public MainFrame()\n {\n this(null);\n }", "title": "" }, { "docid": "eec4e7f1b87ef8b4320509df7493a0d4", "score": "0.82853836", "text": "public _Frame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "title": "" }, { "docid": "c1d5cba516377212279bf69bddf5e1fa", "score": "0.8160174", "text": "public MainFrame() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "c1d5cba516377212279bf69bddf5e1fa", "score": "0.8160174", "text": "public MainFrame() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "f4069f666092f64b7d11dd3f617fc8e3", "score": "0.8150939", "text": "private MainFrame() {\n\t\tinitComponents();\n\n\t}", "title": "" }, { "docid": "97d0406428b4de587e4651125731ddb2", "score": "0.8074747", "text": "public Frame() {\n\t\tinitComponents();\n\t}", "title": "" }, { "docid": "954d35aef02e89b218cd3e85a6689675", "score": "0.8002883", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "954d35aef02e89b218cd3e85a6689675", "score": "0.8002883", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "954d35aef02e89b218cd3e85a6689675", "score": "0.8002883", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "954d35aef02e89b218cd3e85a6689675", "score": "0.8002883", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "954d35aef02e89b218cd3e85a6689675", "score": "0.8002883", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "954d35aef02e89b218cd3e85a6689675", "score": "0.8002883", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "954d35aef02e89b218cd3e85a6689675", "score": "0.8002883", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "954d35aef02e89b218cd3e85a6689675", "score": "0.8002883", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "954d35aef02e89b218cd3e85a6689675", "score": "0.8002883", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "954d35aef02e89b218cd3e85a6689675", "score": "0.8002883", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "03c346605a0cc7823d97d7b20ad9aa53", "score": "0.79436916", "text": "public Main() {\n\t\tMainFrame mf=new MainFrame();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "bcaaec3333a6d6233f82efde572d8bc7", "score": "0.78994507", "text": "public MainFrame() {\r\n \t\tsuper();\r\n \r\n \t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n \t\tinitialize();\r\n \t}", "title": "" }, { "docid": "aec6d2534ed4f75c5778bfb3b2e31ac1", "score": "0.7899146", "text": "public FrameAnalisador() {\n initComponents();\n }", "title": "" }, { "docid": "f5cf94f4aa4dec4301c22971f7e3f4c0", "score": "0.7858797", "text": "public Main_Frame() {\n initComponents();\n }", "title": "" }, { "docid": "895d89878e6777a29041615a194b56f2", "score": "0.78416824", "text": "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n openWelcome();\n init();\n }", "title": "" }, { "docid": "2da314510abd04d7765ae55d31d40a0d", "score": "0.78301644", "text": "public mainframe() {\n initComponents();\n }", "title": "" }, { "docid": "bed060f69b751754ebe4b7bee2455d8a", "score": "0.7817513", "text": "public Frame() {\n initComponents();\n }", "title": "" }, { "docid": "07d10b8c1f5ff99007912ee6083faff4", "score": "0.78064483", "text": "public MainFrame()\n {\n initComponents();\n }", "title": "" }, { "docid": "98e57a36f6832e4e3780b7e3011fe8d9", "score": "0.7795022", "text": "public NewFrame ()\n {\n this (500, 300);\n }", "title": "" }, { "docid": "502aff53800d7f9014b26054d9888dcc", "score": "0.77950114", "text": "public JGSFrame() {\n \tsuper();\n \tinitialize();\n }", "title": "" }, { "docid": "eada6676170861b800e1f85311dfd025", "score": "0.7669636", "text": "public MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "d77707cd1d452b87c2d000cfd6858d8a", "score": "0.76577276", "text": "public MainFrame() {\n \ttry\n\t\t{\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedLookAndFeelException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n initComponents();\n \n makeCommFrame();\n makeMiniInfoFrame();\n \n FramePlaceHolder.setMainFrame(this);\n }", "title": "" }, { "docid": "bdf3b401db7d2f14c94efe9427850904", "score": "0.76566327", "text": "public MyFrame1() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "title": "" }, { "docid": "73925d9ee25f816b83b5e187b460c600", "score": "0.76224035", "text": "public CluedoFrame(){\n\t\tsuper(\"Cluedo\");\n\t\tinitialise();\n\t}", "title": "" }, { "docid": "e124f8e321c9b4e343b84e7cf8f7f05d", "score": "0.75628585", "text": "public ActivoFrame() {\n initComponents();\n }", "title": "" }, { "docid": "e9e95ca2fa43a93d5ef447e2e88325b2", "score": "0.7524861", "text": "public MainJFrame() {\n initComponents();\n init();\n }", "title": "" }, { "docid": "f7d11c1334dcca6bd64a0562c24245a6", "score": "0.75109285", "text": "public BaseFrame() {\n setTitle(\"Sort Application by Dani\");\n initComponents();\n }", "title": "" }, { "docid": "00469486f1948b2a980a70f91a22daf4", "score": "0.7496868", "text": "public TitleFrame() {\n initComponents();\n }", "title": "" }, { "docid": "8be3390a9e52618bf22517fb5a50368e", "score": "0.74908787", "text": "public PageFrame() {\n\t\tsuper(); \n\t}", "title": "" }, { "docid": "3b3d7cf448b55b541551c235f7d50524", "score": "0.7459121", "text": "public F_MainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "0e1d3f4d3a128585652170d53f8b4dca", "score": "0.7423229", "text": "public D_Frame() {\n initComponents();\n }", "title": "" }, { "docid": "d500694044a42ed483bec7e53f8375c8", "score": "0.74213886", "text": "public SfwMainFrame() {\n initComponents();\n }", "title": "" }, { "docid": "fd6ce710c911afe9da49bb782c4456f4", "score": "0.74135065", "text": "public CannonFrame() {\n initComponents();\n }", "title": "" }, { "docid": "ccac810ea75cf80fbcae5cb513007553", "score": "0.7396782", "text": "public DebugFrame()\r\n {\r\n try {\r\n initGuiComponents();\r\n }\r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "127125ec3c075c8a8b2c0619e49ddbb8", "score": "0.7383368", "text": "public FractalViewerFrame() {\n\t\tsuper(\"The Fractal Viewer\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tinitiate();\n\t}", "title": "" }, { "docid": "879f368d05701bf58f712f45b3c6c70e", "score": "0.7374274", "text": "public MainMenuFrame() {\r\n this.createComponents();\r\n this.createPanel();\r\n this.setSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n this.setVisible(true);\r\n \r\n }", "title": "" }, { "docid": "dfe1b8b5b6928a23522a34404ed353fe", "score": "0.73729146", "text": "public CalculatorFrame() {\n\t\tinitComponents();\n\t}", "title": "" }, { "docid": "1d8919cf360984c35fa5c5c9edf1ac52", "score": "0.7331583", "text": "public Frame() {\r\n\r\n super();\r\n setSize(350, 400);\r\n setTitle(\"Java\");\r\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n\tsetResizable(false);\r\n ConfigVentanaa();\r\n setLayout(null);\r\n }", "title": "" }, { "docid": "f57ca9c318b83a01e4105e64b40dae1b", "score": "0.7327357", "text": "public StudentMenu(MainFrame frame) {\n initComponents();\n this.parentFrame = frame;\n }", "title": "" }, { "docid": "36bac35fc4f643b1842d4e9f8404736d", "score": "0.7310625", "text": "public MyFrame(int rij, int kolom){\n super(\"opdracht12\");\n /* aantalRij = rij;\n aantalKolom = kolom;\n initComponents();\n layoutComponets();\n initListeners();\n */\n initComponents(rij, kolom);\n layoutComponets();\n initListeners(rij, kolom);\n setVisible(true);\n \n \n }", "title": "" }, { "docid": "3154dcfea4b14d52c4ebe6d13ae14f9e", "score": "0.72915155", "text": "public MainFrame() {\n \n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);\n } catch (UnsupportedLookAndFeelException ex) {\n System.out.println(\"Unable to load native look and feel\");\n }\n \n loadRecentFilesList();\n initComponents();\n\n System.setErr(new PrintStream(new TextAreaOutputStream(jTextArea1, System.err)));\n System.setOut(new PrintStream(new TextAreaOutputStream(jTextArea1, System.out)));\n }", "title": "" }, { "docid": "1678ef496f7c40e39780ccf90eaa6800", "score": "0.72843575", "text": "public MainGUI() {\n super();\n initialize();\n }", "title": "" }, { "docid": "aa3d678604597b42489d2177c85b7ae2", "score": "0.72763443", "text": "public static void main(String[] args) {\n\n new Frame();\n\n }", "title": "" }, { "docid": "45ef667b275686ad084348c043a7f8b4", "score": "0.7263054", "text": "public MainJFrame() {\n initComponents();\n }", "title": "" }, { "docid": "45ef667b275686ad084348c043a7f8b4", "score": "0.7263054", "text": "public MainJFrame() {\n initComponents();\n }", "title": "" }, { "docid": "76e3bee2cc2877767d7c18a7faac0b1c", "score": "0.72545314", "text": "public VibeController(MainFrame frame) {\n \t\tmFrame = frame;\n \t\tmEARCompiler = new EARCompiler();\n \t\tmOpenFilePath = null;\n \t\tmParser = new Parser();\n \t\tmWorker = null;\n \t\tmStepWorker = null;\n \t\tmPlayState = PlayState.STOPPED;\n \t\tmEARLineStartPositions = new ArrayList<Integer>();\n \t}", "title": "" }, { "docid": "453f0bee4cb3ecc6731051dfaf2edb4d", "score": "0.7254262", "text": "public frameUtama() {\n initComponents();\n \n }", "title": "" }, { "docid": "3a113a265608f6bf87ae8bc2c0930817", "score": "0.7253465", "text": "private UIFrame() {\n this.history = new PageHistory();\n this.pathManager = new PathManager();\n setUpJFrame();\n }", "title": "" }, { "docid": "9f62379891d6b575c814486753699e0a", "score": "0.72270995", "text": "public Main() {\r\n\t\tinitComponents();\r\n\t}", "title": "" }, { "docid": "13f7187a0ec383065b86311b37317bd5", "score": "0.722391", "text": "public QLSach_Frame() {\n initComponents();\n }", "title": "" }, { "docid": "824ae47e7d4ac1561dcfcae87d0a86da", "score": "0.720834", "text": "public NewJFrame() {\n \n initComponents();\n \n }", "title": "" }, { "docid": "79ea06ede63ab8ebd3d32c5fa3e33d37", "score": "0.71893287", "text": "public CommunicationFrame()\n {\n // private methods for this constructor\n setFrameOnDisplay();\n setPanels();\n setVisible(true);\n }", "title": "" }, { "docid": "153f9f55fee831b9e66f66d15d7c80f5", "score": "0.71826303", "text": "public BMGame() {\n\t\tmainFrame = new JFrame(\"Gruppe 21 - Bomberman\");\n\t\tmainFrame.setSize(GameConstants.FRAME_SIZE_X,\n\t\t\t\tGameConstants.FRAME_SIZE_Y);\n\t\tmainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tmainFrame.setLocationRelativeTo(null);\n\t\tmainFrame.setResizable(false);\n\t\tmainFrame.setVisible(true);\n\t\tMainPanel mainPanel = new MainPanel();\n\t\tmainPanel.initGame();\n\t\tmainFrame.add(mainPanel);\n\t}", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.71750605", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.71750605", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.71750605", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.71750605", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.71750605", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "9108d255058e77d6afb59334b08f9bda", "score": "0.71731514", "text": "public BaseFrame() {\n\tframe.getContentPane().setBackground(new Color(65, 105, 225));\n\tframe.setBounds(100, 100, 865, 500);\n\tframe.setBackground(new Color(65, 105, 225));\n\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\tframe.setResizable(true);\n\tframe.setJMenuBar(getMenuBar());\n\tsetCalibPanel();\n }", "title": "" }, { "docid": "52499316a1772449ed35b02fb58b2c85", "score": "0.7166396", "text": "public ConsultaClienteFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "title": "" }, { "docid": "4944fbee4a5ed4032180ea7e4122083f", "score": "0.7163809", "text": "public FeverMainFrame() {\n\t\t\n\t\tthis.openAnalyses = new LinkedHashMap<String, SingleAnalysisTask>();\n\t\tthis.openFrames = new LinkedHashMap<String, JInternalFrame>();\n\t\tthis.session_id = DebugToolbox.getSessionID();\n\t\tthis.infiGlass = new InfiniteProgressPanel(\"Processing, please wait...\", 20, 0.5f, 15f);\n\t\tsetGlassPane(infiGlass);\n\t\tinitComponents();\n\t\t\n\t\tMessageConsole console = new MessageConsole(mainPanel.getTextPane());\n\t\tconsole.redirectOut(null, System.out);\n\t\tconsole.redirectErr(Color.RED, System.err);\n\t\tconsole.setMessageLines(1000);\n\t\t\n\t\tSystem.out.println(\"Running FEvER 38.2C alpha bleeding...\");\n\t\tpack();\n\n\t}", "title": "" }, { "docid": "940286e370fdd6ba78616a32b9bd4e4b", "score": "0.71572626", "text": "public ETDemo(JFrame frame)\n {\n \tmRPC = frame;\n }", "title": "" }, { "docid": "2d27049d9cb7afc6b13f61684e2001c6", "score": "0.71360177", "text": "public FrameApp() {\r\n\t\t\r\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tthis.setTitle(\"Editeur de Base De Données (Databs)\");\r\n\t\ttry\r\n \t\t{\r\n \t\t\tthis. setIconImage(ImageIO.read(getClass().getResourceAsStream(\"/images/icon.png\")));\r\n \t\t}\r\n\t\tcatch(Exception err){}\r\n\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(false);\r\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\t\r\n\t\tthis.control = new Controller(this);\r\n\t\tthis.dialogConnection = new DialogConnection(this);\r\n\t\t\r\n\t\tinitializeFrame();\r\n\t\tinitializeDialog();\r\n\t\t\r\n\t\tthis.pack();\r\n\t\tthis.setVisible(true);\r\n\t}", "title": "" }, { "docid": "f306a8d672dda044e88597dacf39f46f", "score": "0.71319395", "text": "public InstructionFrame() {\n initComponents();\n }", "title": "" }, { "docid": "c465a119f9c6d706bc93aafab1368581", "score": "0.7124718", "text": "public MainJFram() {\n initComponents();\n }", "title": "" }, { "docid": "839a7d72831473fc4a524568c9ba700a", "score": "0.71125627", "text": "public officerFrame() {\n initComponents();\n }", "title": "" }, { "docid": "8833fa88e46ecdaec044ced9873fe273", "score": "0.7109981", "text": "private void guiInitialiser() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"Client - Service Controller\");\n\t\tframe.setBounds(100, 100, 500, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t// call addUiObjects class that adds the fields that are required in the GUI\n\t\taddUiObjects(frame);\n\t}", "title": "" }, { "docid": "5034d05d5495a0e50f96b5beee6a07f6", "score": "0.7108975", "text": "public UsageFrame() {\r\n final String methodName = \"<init>\";\r\n LOGGER.entering(CLASSNAME, methodName);\r\n\r\n initComponents();\r\n\r\n usageTextArea.setText(USAGE_MESSAGE);\r\n usageTextArea.setCaretPosition(0);\r\n \r\n LOGGER.exiting(CLASSNAME, methodName);\r\n }", "title": "" }, { "docid": "d8afdd46b1cd6f3c91f08e80f9a43052", "score": "0.7104582", "text": "public Frame9() {\n initComponents();\n }", "title": "" }, { "docid": "8a45400534736f6eedff55a6840fd243", "score": "0.7098018", "text": "public MainGui() {\r\n\t\tjava.net.URL imageURL = null;\r\n\t\tpopup = null;\r\n\t\tdt = null;\r\n\t\tjt1 = null;\r\n\t\tjt2 = null;\r\n\t\tjsp1 = null;\r\n\t\tjsp2 = null;\r\n\t\tlandf = null;\r\n\t\tmmh = null;\r\n\t\ttype = -1;\r\n\t\ttype1 = -1;\r\n\r\n\t\tsetSize(1000, 800);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\r\n\t\tmmh = new MainMenuHandler(this);\r\n\t}", "title": "" }, { "docid": "d97910b6bec61f2f74f198be1379d32c", "score": "0.7095245", "text": "public MAIN() {\n initComponents();\n }", "title": "" }, { "docid": "6cf923086432a7e4341cda31c4015693", "score": "0.70942956", "text": "public ServerFrame() {\n initComponents();\n }", "title": "" }, { "docid": "74dcd92105c6a0899a7967d8d3484a3f", "score": "0.7088374", "text": "public InternalFrame() {\n // Initialize JSON parts\n jsonWriterSMS = new JsonWriterSMS(JSON_STORE_SMS);\n jsonReaderSMS = new JsonReaderSMS(JSON_STORE_SMS);\n\n jsonWriterGame = new JsonWriterGame(JSON_STORE_GAME);\n jsonReaderGame = new JsonReaderGame(JSON_STORE_GAME);\n\n // Background image for desktopPane\n ImageIcon desktopIcon = new ImageIcon(\"./data/desktopPic.jpg\");\n Image desktopImage = desktopIcon.getImage();\n\n // Initialize desktopPane with background image\n desktopPane = new JDesktopPane() {\n @Override\n protected void paintComponent(Graphics g) {\n g.drawImage(desktopImage, 0, 0, getWidth(), getHeight(), this);\n }\n };\n\n // Button for opening GameFrame\n JButton openGameFrameButton = createOpenGameFrameButton();\n desktopPane.add(openGameFrameButton);\n\n // Button for opening MessagingFrame\n JButton openMessagingFrameButton = createOpenMessagingFrameButton();\n desktopPane.add(openMessagingFrameButton);\n\n // Add desktopPane to main frame\n add(desktopPane);\n }", "title": "" }, { "docid": "64f2390bcf0d9cc19dc1a5fe90a44a9c", "score": "0.70842427", "text": "public MainJFrame() {\n queryHandler = new QueryHandler();\n initComponents();\n loadDates();\n }", "title": "" }, { "docid": "504f63f01428137560b3a758f9560222", "score": "0.70748705", "text": "public NoteFrame() {\n initComponents();\n\n //Remplissage de la liste des notes\n initNoteList();\n }", "title": "" }, { "docid": "75a7f3ff3423cb9b4f2ab9e7d3b43587", "score": "0.7073382", "text": "public FactoryFrame()\n\t{\n\t\tsuper(WINDOW_TITLE);\n\t\tthis.setSize(WINDOW_WIDTH, WINDOW_HEIGHT);\n\n\t\t// make top container panel\n\t\ttopPanel = new JPanel();\n\t\ttopPanel.setLayout(new CardLayout());\n\n\t\t// add top panel to frame\n\t\tthis.add(topPanel);\n\t\tthis.setResizable(false);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setBackground(Color.black);\n\t\tthis.setForeground(Color.black);\n\n\t\t// start the timer to update GUI objects\n\t\tguiTimer.setDelay(1000 / DEFAULT_FRAMES_PER_SECOND);\n\t\tguiTimer.start();\n\n\t\t// welcome\n\t\tswitchToFactoryPanel();\n\t}", "title": "" }, { "docid": "e39c323e51b669bfa385f5e7e21dc289", "score": "0.70511913", "text": "public MainFrame(Controller ctrl) {\r\n\t\tthis.controller = ctrl;\r\n\t\tcreateFrame();\r\n\t}", "title": "" }, { "docid": "e4896c51a6c028de66011288eafdf262", "score": "0.7050698", "text": "public Figure_Frame() {\n initComponents();\n }", "title": "" }, { "docid": "2db86943cd95229876200ac3f27f6329", "score": "0.7049565", "text": "public ClientFrame() {\n initComponents();\n }", "title": "" }, { "docid": "369d8b8d9c43de7cf0cd83131277dcd8", "score": "0.70465475", "text": "public void initFrame(){\n\t\ttry{\n\t\t\tDisplay.setDisplayMode(new DisplayMode(WIDTH, HEIGHT)); //sets the resolution in new DisplayMode(int,int)\n\t\t\tDisplay.setTitle(\"Pong Rebirth\"); //Set title for the frame\n\t\t\tDisplay.create(); //Initiate the frame\n\t\t}\n\t\tcatch(LWJGLException e){\n\t\t\t\n\t\t}\n\t\t\n\t\tscoreHolder.LoadFont(); //Load the font used to draw text to the screen\n\t\t//Initialize the key Handler and what's connected with the key handler\n\t\tkeyHandler.initKeyHandler();\n\t\trenderer.initRenderer(); //Initialize the renderer for the game\n\t\t\n\t\t/**\n\t\tmenu = new MainMenu();\n\t\t**/\n\t}", "title": "" }, { "docid": "cd28b35499f064da0634bd647583b159", "score": "0.7037864", "text": "public Studentframe() {\n initComponents();\n }", "title": "" }, { "docid": "8d844171c9f25e41eb3296d5451b0e78", "score": "0.70360446", "text": "public NewJFrame_utility() {\n initComponents();\n }", "title": "" }, { "docid": "c438ddf7a8d1c20d125c8de8be8ea565", "score": "0.7034876", "text": "public Main() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "c438ddf7a8d1c20d125c8de8be8ea565", "score": "0.7034876", "text": "public Main() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "d79abb46e44ee6e9853e6014209a93b9", "score": "0.70278126", "text": "private void initializeFrame() {\r\n\t\tpm = new PanelMenu(this);\r\n\t\tpp = new PanelPrincipal(this);\r\n\t\tpe = new PanelEtat();\r\n\t\tpe.setBorder(BorderFactory.createMatteBorder(0,0,0,1,Color.BLACK));\r\n\t\t\r\n\t\tthis.setJMenuBar(pm.getMenuBarFrame());\r\n\t\t\r\n\t\tadd(pe, BorderLayout.SOUTH);\r\n\t\tadd(pp, BorderLayout.CENTER);\r\n\t\tadd(pm.getJtb(), BorderLayout.NORTH);\t \r\n\t}", "title": "" }, { "docid": "8b823b40821c7c61970dc811fce611b0", "score": "0.7027374", "text": "public NewJFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "9d6227849bd83e97dcdc4580128d7ea3", "score": "0.70219594", "text": "public ExceptionsFrame() {\r\n super();\r\n initialize();\r\n mijnInit();\r\n }", "title": "" }, { "docid": "0d65a329da521ad224e469bf4860f084", "score": "0.70163465", "text": "public NewJFrame() {\n initComponents();\n }", "title": "" }, { "docid": "0d65a329da521ad224e469bf4860f084", "score": "0.70163465", "text": "public NewJFrame() {\n initComponents();\n }", "title": "" }, { "docid": "0d65a329da521ad224e469bf4860f084", "score": "0.70163465", "text": "public NewJFrame() {\n initComponents();\n }", "title": "" }, { "docid": "0d65a329da521ad224e469bf4860f084", "score": "0.70163465", "text": "public NewJFrame() {\n initComponents();\n }", "title": "" }, { "docid": "0d65a329da521ad224e469bf4860f084", "score": "0.70163465", "text": "public NewJFrame() {\n initComponents();\n }", "title": "" }, { "docid": "0d65a329da521ad224e469bf4860f084", "score": "0.70163465", "text": "public NewJFrame() {\n initComponents();\n }", "title": "" }, { "docid": "0d65a329da521ad224e469bf4860f084", "score": "0.70163465", "text": "public NewJFrame() {\n initComponents();\n }", "title": "" } ]
cbebd25523a8c4de28ce5b4d9d4cbc64
reads data from persistence layer.
[ { "docid": "8ec71b8f99fd9625357dc473b594749c", "score": "0.0", "text": "public byte[] read(Path path) throws IOException;", "title": "" } ]
[ { "docid": "be2683467ceba62c89721cce4ad52237", "score": "0.65688527", "text": "protected void readFromDB() throws CacheReloadException {\n readFromDB4Properties();\n readFromDB4Links();\n readFromDB4Access();\n }", "title": "" }, { "docid": "dc15849a9f7ec0b23afec31f1bc557e1", "score": "0.65113443", "text": "@SuppressWarnings(\"unchecked\")\r\n\t\t@Override\r\n\t\tpublic List<Item> readItems() {\r\n\t\t\tTransaction transaction = null;\r\n\t\t\ttry (Session session = factory.openSession()){\r\n\t\t\t\ttransaction = session.beginTransaction();\r\n\t\t\t\t\r\n\t\t\t\tList<Item> items = session.createQuery(\"FROM Item\").getResultList();\r\n\t\t\t\t\r\n\t\t\t\tsession.getTransaction().commit();\r\n\t\t\t\tsession.close();\r\n\t\t\t\treturn items;\r\n\t\t\t}catch(Exception e) {\r\n\t\t\t\ttransaction.rollback();\r\n\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "afd6a34651de6162207939b82e133c25", "score": "0.6451234", "text": "public static Object readData() {\n\n\t\t// Does the persistent store exist?\n\t\tFile file = new File(storageFile);\n\t\tif (!file.exists()) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// Yes, so let's deserialize the object\n\t\tXStream x = new XStream();\n\n\t\t// Security Framework Initialization - Introduced as part of XStream Version\n\t\t// Upgrade to resolve com.thoughtworks.xstream.security.ForbiddenClassException\n\t\t// while data retrieval from XML\n\n\t\t// clear out existing permissions and set own ones\n\t\tx.addPermission(NoTypePermission.NONE);\n\t\t// allow any type from the given package\n\t\t// x.allowTypesByWildcard(new String[] { \"control.*\", \"model.*\" }); //Commented\n\t\t// as part of Della04 and added AnyTypePermission.ANY line, analyze later on\n\t\tx.addPermission(AnyTypePermission.ANY);\n\n\t\tObject result = null;\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(file));\n\t\t\tObjectInputStream oin = x.createObjectInputStream(in);\n\t\t\tresult = oin.readObject();\n\t\t\toin.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"IO exception reading \" + storageFile);\n\t\t\tSystem.exit(0);\n\t\t} catch (ClassNotFoundException ex) {\n\t\t\tSystem.out.println(\"Class not found exception while reading \" + storageFile);\n\t\t\tSystem.exit(0);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "f979cd20e2bcc4d501827e4bd006a3ac", "score": "0.6423608", "text": "@Override\n public void loadFromDB() {\n }", "title": "" }, { "docid": "9d25063c1cd5fec2dd1957b84e0f0fc3", "score": "0.6409961", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void readDatabase() throws IOException {\n\n System.out.print(\"Reading database...\");\n\n File dataFile = new File(DATA_FILE_NAME);\n\n InputStream file = null;\n InputStream buffer = null;\n ObjectInput input = null;\n try {\n if (!dataFile.exists()) {\n System.out.println(\"Data file does not exist. Creating a new database.\");\n itemList = new ArrayList<Item>();\n userList = new ArrayList<User>();\n transactionList = new ArrayList<Transaction>();\n userIdCounter = 1;\n return;\n }\n file = new FileInputStream(dataFile);\n buffer = new BufferedInputStream(file);\n input = new ObjectInputStream(buffer);\n\n itemList = (ArrayList<Item>) input.readObject();\n userList = (ArrayList<User>) input.readObject();\n transactionList = (ArrayList<Transaction>) input.readObject();\n userIdCounter = input.readInt();\n\n input.close();\n } catch (ClassNotFoundException ex) {\n System.err.println(ex.toString());\n } catch (FileNotFoundException ex) {\n System.err.println(\"Database file not found.\");\n } catch (IOException ex) {\n System.err.println(ex.toString());\n } finally {\n \tclose(file);\n }\n System.out.println(\"Done.\");\n }", "title": "" }, { "docid": "306078b18f6bfc9e2f2bd3a0af646409", "score": "0.64012396", "text": "@Override\r\n\tpublic void loadFromDatabase() {\r\n\t\tsuper.data = this.pullFromDataBase();\r\n\t}", "title": "" }, { "docid": "c130b7d20ffbebb3920d73cd9866197e", "score": "0.63850224", "text": "@Transactional\n void load();", "title": "" }, { "docid": "dcb144af12f6490989a540838ff8c255", "score": "0.63490504", "text": "private void getDataFromDB() {\n\n\t\tproductList = ProductDAO.getInstance().getRecordsWithInvenQty(\n\t\t\t\tDBHandler.getDBObj(Constants.READABLE));\n\t\tsetDataToViews();\n\t}", "title": "" }, { "docid": "96df78981f17ba324b6f7256fd8269fa", "score": "0.632109", "text": "public void read()\n\t\tthrows DatabaseException\n\t{\n\t\tmyDatabase.getDbIo().readUnitConverterSet(this);\n\t}", "title": "" }, { "docid": "367a939df43eb1c294c22f9f1d10e3d0", "score": "0.6300951", "text": "public List<EmployeePayrollData> readData() {\n String sql = \"SELECT * FROM employee_payroll; \";\n return this.getEmployeePayrollDataUDINGDB(sql);\n }", "title": "" }, { "docid": "8e8ba9f0c1f145a7499827ac7c9306cf", "score": "0.6258553", "text": "public void read() throws ClassNotFoundException, SQLException {\n\t\tConnection con = DBConector.getCsvConnectionInstance(\"E:\\\\repos\\\\Database-Apps\\\\oracleImport\\\\src\\\\main\\\\resources\\\\\");\r\n\r\n\t\tStatement stmt = con.createStatement();\r\n\t\tResultSet rs = stmt.executeQuery(\"SELECT hei,id FROM data\");\r\n\t\twhile (rs.next()) {\r\n\t\t\tSystem.out.println(rs.getString(\"hei\"));\r\n\t\t\tSystem.out.println(rs.getString(\"id\"));\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "5e55d63da9111006ac8add5d0ceb3bfa", "score": "0.6243611", "text": "@SuppressWarnings( \"unchecked\")\r\n\t@Override\r\n\tpublic List<Gamedata> readGames() {\r\n\t\tTransaction transaction = null;\r\n\t\ttry (Session session = factory.openSession()){\r\n\t\t\ttransaction = session.beginTransaction();\r\n\t\t\t\r\n\t\t\tList<Gamedata> games = session.createQuery(\"FROM Gamedata\").getResultList();\r\n\t\t\t\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t\treturn games;\r\n\t\t}catch(Exception e) {\r\n\t\t\ttransaction.rollback();\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3cfaf32a2ee46c2b80b62fc6d05a8fb5", "score": "0.6213734", "text": "List<EntityOrder> readAll();", "title": "" }, { "docid": "495e11b656d5642a6ab37f35d1477166", "score": "0.6186406", "text": "private static void readAllRecords()\n {\n productDAO.readAllRecords();\n }", "title": "" }, { "docid": "edf42caccc277980f1a56217247cc097", "score": "0.61754435", "text": "public void loadData()\n\t{\n\t\tstoreDM.readFile(this);\n\t}", "title": "" }, { "docid": "ef38f39934bc5ef3eba08a46e286e61f", "score": "0.61395997", "text": "private void loadDB() {\n\t\tdataSource.open();\n\t\tlistofItems = dataSource.getAllItems();\n\t\tdataSource.close();\n\t}", "title": "" }, { "docid": "217071c540a7efc6456d76c1bf14ccd5", "score": "0.6138928", "text": "@Override\n\t\t\tprotected List<E> loadData() {\n\t\t\t\treturn load();\n\t\t\t}", "title": "" }, { "docid": "0fe0049205e318a963b1954cea2e0bcd", "score": "0.61056006", "text": "@Override\n\t\t\tpublic Object load() throws Exception {\n\t\t\t\treturn bookshelfService.getBooks(userId);\t\t\t\n\t\t\t}", "title": "" }, { "docid": "99f8f8b96c6beeca1b064ed9cd7faf0f", "score": "0.6067935", "text": "T read(PK id);", "title": "" }, { "docid": "023d7895547d20e3b5b82d3ca7fcff6b", "score": "0.6066102", "text": "@Override\n\tpublic List<AbstractPersistentObject> read(Object o) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3b02e2fcaea9cdcc0e05dc350d501766", "score": "0.6013094", "text": "public void read() {\n\t\treadPersistentPropertiesAccess();\n\n\t\tif ( persistentPropertiesSource instanceof DynamicComponentSource ) {\n\t\t\taddPropertiesFromDynamicComponent( (DynamicComponentSource) persistentPropertiesSource );\n\t\t}\n\t\telse {\n\t\t\t// Retrieve classes and properties that are explicitly marked for auditing process by any superclass\n\t\t\t// of currently mapped entity or itself.\n\t\t\tfinal XClass clazz = persistentPropertiesSource.getXClass();\n\t\t\treadAuditOverrides( clazz );\n\n\t\t\t// Adding all properties from the given class.\n\t\t\taddPropertiesFromClass( clazz );\n\t\t}\n\t}", "title": "" }, { "docid": "284e599826d9077acddcce0235d58436", "score": "0.6003017", "text": "private void readData ()\n {\n plantsData = FXCollections.observableArrayList();\n Storage.readRecords(this.DB_FILE, this.plantsData);\n }", "title": "" }, { "docid": "727ffae0c5d5c5fb78078663f1c7f190", "score": "0.5963785", "text": "abstract void loadData();", "title": "" }, { "docid": "57bde4a3b90e581067ccc6773ccb2ccc", "score": "0.5956227", "text": "public abstract void loadData();", "title": "" }, { "docid": "af95dcec57fc86c69b8095f775d065c1", "score": "0.59457994", "text": "public List<Object[]> fetchData()\r\n\t{\n\t\tEntityManager entityManager = JpaManager.getEntityManagerFactory().createEntityManager();\r\n\t\t\r\n\t\t//Begin entity manager transaction\r\n\t\tentityManager.getTransaction().begin();\r\n\t\t\r\n\t\tQuery q = entityManager.createNativeQuery(\"SELECT users.user_id,users.name,users.phone,users.email,users.mark1,users.mark2,users.average FROM user_details users\");\r\n\t\tList<Object[]> fetchedData = q.getResultList();\r\n\t\t\r\n\t\t//closing the entity manager transaction\r\n\t\tentityManager.getTransaction().commit();\r\n\t\tentityManager.close();\r\n\t\t\r\n\t\treturn fetchedData;\r\n\t}", "title": "" }, { "docid": "a7b578392931e7db7102c48d47d041bf", "score": "0.5926413", "text": "private void loadPersistedSessionData() {\n\t\t// Crate Database to store Session Data\n\t\tDatabase database = new Database(context);\n\t\tdatabase.createTable(SessionMaster.CREATE_TABLE);\n\n\t\t// Fetch Session data from Database\n\t\tArrayList<ContentValues> _sessionList = database\n\t\t\t\t.SelectData(\"SELECT * FROM \" + SessionMaster.TABLE_NAME);\n\n\t\t// Check if data stored in Database or not\n\t\tif (_sessionList.size() > 0) {\n\n\t\t\t// get Previous session object\n\t\t\tContentValues values = _sessionList.get(0);\n\n\t\t\t// Initialize current session object from previous session object\n\t\t\t// data\n\t\t\t_currentSession = new SogamoSession();\n\t\t\t_currentSession = _currentSession.init(values\n\t\t\t\t\t.getAsString(SessionMaster.SESSION_ID), values\n\t\t\t\t\t.getAsString(SessionMaster.PLAYER_ID), values\n\t\t\t\t\t.getAsInteger(SessionMaster.GAME_ID), values\n\t\t\t\t\t.getAsString(SessionMaster.LOG_URL), values\n\t\t\t\t\t.getAsString(SessionMaster.SUGGESTION_URL), values\n\t\t\t\t\t.getAsString(SessionMaster.OFFLINE).equals(\"true\"));\n\t\t} else {\n\t\t\tLog.d(TAG, \" No stored sessions found\");\n\t\t}\n\t}", "title": "" }, { "docid": "dd9f6daa7935ce991d34efe52df30afb", "score": "0.5925431", "text": "T read(final int id) throws DAOException;", "title": "" }, { "docid": "b723293f3bc97d5d8b541ba2fb385efd", "score": "0.5914539", "text": "List<T> readListDB();", "title": "" }, { "docid": "149e39f725ca79dc7283c1bed9407f69", "score": "0.59099704", "text": "@Override\n\tpublic Object load(){\n\t\tObject model=null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\tXStream xStream = new XStream(new DomDriver());\n\t\ttry {\n\t\t\t//TODO change query\n\t\t\tString query = \"select descriptions from GameDescriptions\";\n\t\t\tstmt = db.getConnection().prepareStatement(query);\n\t\t\trs = stmt.executeQuery();\n\t\t\tdb.getConnection().commit();\n\t\t\twhile (rs.next()) {\n\t\t\t\t/*byte[] st = (byte[]) rs.getObject(1);\n\t\t\t\tByteArrayInputStream baip = new ByteArrayInputStream(st);\n\t\t\t\tObjectInputStream ois = new ObjectInputStream(baip);*/\n\t\t\t\tString xml = (String)rs.getString(1);\n\t\t\t\tmodel = (Object) xStream.fromXML(xml);\n\t\t\t\t//model = (Object)ois.readObject();\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\tSystem.out.println(\"Failed DB load game description:\"+e.getMessage());\n\t\t}\t\t\n//\t\tfinally {\n//\t\t\tSQLPlugin.safeClose(rs);\n//\t\t\tSQLPlugin.safeClose(stmt);\n//\t\t}\n\t\treturn model;\n\t}", "title": "" }, { "docid": "0c2c5ccb105ba014348e3b9ace5d1d56", "score": "0.58987683", "text": "@Override\r\n\tpublic Map<String, Object> readAll() {\n\t\treturn tipo_DenominacionDao.readAll();\r\n\t}", "title": "" }, { "docid": "c3faeaec13b780163cbf48ae58327a17", "score": "0.58855426", "text": "@Override\r\n\tpublic Vector<Player> readAll() throws PersistenceException {\r\n\t\tVector<Player> players = new Vector<Player>();\r\n\r\n\t\ttry {\r\n\t\t\tResultSet record = this.select(sql.get(\"selectAll\"));\r\n\r\n\t\t\twhile (record.next()) {\r\n\t\t\t\tplayers.add(this.resultSetToObject(record));\r\n\t\t\t}\r\n\r\n\t\t\trecord.close();\r\n\t\t} catch (DatabaseIOException e) {\r\n\t\t\tthrow new PersistenceException(e.getMessage());\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new PersistenceException(\"Error occurred while receiving a player list from the database: \"\r\n\t\t\t\t\t\t\t\t\t\t\t +e.getMessage()+\" - \"+e.getErrorCode());\r\n\t\t}\r\n\t\t\r\n\t\treturn players;\r\n\t}", "title": "" }, { "docid": "f10dfd3bcffbb5ccf147684b2832a816", "score": "0.5859929", "text": "private void loadData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa08ae9260300ad5860af4ba8c3cbdfb", "score": "0.5855524", "text": "List<Homestead> readAll() throws PersistentException;", "title": "" }, { "docid": "f20aa0672f9be4f71e86e9e46f294c84", "score": "0.58461994", "text": "@Override\n\tpublic List<Items> readAll() {\n\t\tList<Items> items = itemsDAO.readAll();\n\t\tfor (Items item : items) {\n\t\t\tLOGGER.info(item.toString());\n\t\t}\n\t\treturn items;\n\t}", "title": "" }, { "docid": "e131ec1df1d12bb5de4dbb7c209659d4", "score": "0.5844447", "text": "public Product read(long id){\n EntityManagerFactory fac = getFactoryWithoutConfig();\n EntityManager e = fac.createEntityManager();\n EntityTransaction t = e.getTransaction();\n\n Product product = null;\n t.begin();\n List resultList = e.createQuery(\"SELECT x FROM Product x WHERE x.id =\" + id).getResultList();\n for(Object o : resultList){\n product = (Product) o;\n }\n t.commit();\n\n e.close();\n fac.close();\n return product;\n }", "title": "" }, { "docid": "08a1670e8ec7b6b4caf499d321576fd4", "score": "0.5834611", "text": "E load(Serializable primaryKey);", "title": "" }, { "docid": "5467f9d8f47f6847c9f8cae88187d35e", "score": "0.58328617", "text": "protected void readFromDB() throws CacheReloadException {\n for (final UIObj uiObj : getCache4Id().values()) {\n uiObj.readFromDB();\n }\n }", "title": "" }, { "docid": "e5e09f8c95fb171d2bcd5646864990c5", "score": "0.5832394", "text": "Homestead readById(Integer id) throws PersistentException;", "title": "" }, { "docid": "61315b8e1a0b0e8bdb797bd6b7cef664", "score": "0.5780586", "text": "private void readInitialDatabase() {\n try {\n // Created a reader for the file\n BufferedReader reader = new BufferedReader(new FileReader(Constants.STUD_INFO));\n\n String line;\n // Reading the file line by line\n while ((line = reader.readLine()) != null) {\n // Splitting data into columns using ',' as seperators\n String[] data = line.split(\",\");\n\n // Adding the data in the in-memory database\n ArrayList<String> newData = new ArrayList<>();\n newData.add(data[1]);\n newData.add(data[2]);\n newData.add(data[3]);\n newData.add(data[4]);\n Database.put(data[0], newData);\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "966c1214d7d9058aaa657913169dfade", "score": "0.5769984", "text": "public void loadDataFromDB() {\n DataLoader dataLoader = new DataLoader();\n dataLoader.loadData(action);\n\n rule = dataLoader.getRule();\n if (action == 1) {\n healthMap = dataLoader.getHealthMap();\n thermalMap = dataLoader.getThermalMap();\n jobs = dataLoader.getJobs();\n prevSchedule = dataLoader.getSchedule();\n }\n }", "title": "" }, { "docid": "9d304cd7eaa71aac1516adfaa0942e01", "score": "0.5767075", "text": "@Override\n\tprotected Object loadDataBase() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d7e0b7337a305d7bc2b89391afcd38a0", "score": "0.5760202", "text": "private void readAllData() throws Exception {\n\t\tgetOwner(\"q911qq\");\n\t\tgetOwner(\"a222qq\");\n\t\tgetOwner(\"z333qq\");\n\t\t// read again same three records\n\t\tgetOwner(\"q911qq\");\n\t\tgetOwner(\"a222qq\");\n\t\tgetOwner(\"z333qq\");\n\t}", "title": "" }, { "docid": "e23d2c826055f1338c6c1b0b9e4bd388", "score": "0.57577246", "text": "@Override\n public List readAll() {\n return virementDao.readAll();\n }", "title": "" }, { "docid": "1c0a487c9d1b08e145cd1deaa43de793", "score": "0.57551324", "text": "public abstract T load(long bizId) throws EJBException;", "title": "" }, { "docid": "4e386d4f3820a8c3f71955ef52e9f24c", "score": "0.57474947", "text": "@Override\r\n\tpublic TrabalhadorEntity read(long pk) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e6ab187f6dcebaa38b7e7bd8f1ef7b22", "score": "0.5741901", "text": "@SmallTest\n\tpublic void testRead() {\n\t\tProduit result = null;\n\t\tif (this.entity != null) {\n\t\t\tresult = this.adapter.getByID(this.entity.getId_produit()); // TODO Generate by @Id annotation\n\n\t\t\tProduitUtils.equals(result, this.entity);\n\t\t}\n\t}", "title": "" }, { "docid": "1686d2c954c3be7e11a6a8b9fe622bed", "score": "0.574003", "text": "@Override\n\t\tpublic List<Item> readAll() {\n\t\t\ttry (Connection connection = DriverManager.getConnection(jdbcConnectionUrl, username, password);\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(\"select * from item\");) {\n\t\t\t\tArrayList<Item> item = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\titem.add(ItemFromResultSet(resultSet));\n\t\t\t\t}\n\t\t\t\treturn item;\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.debug(e.getStackTrace());\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t\treturn new ArrayList<>();\n\t\t}", "title": "" }, { "docid": "45387b6c6e81601f964afce208d89ed7", "score": "0.57312936", "text": "public void testRead()\r\n {\r\n PersistenceManager pm = pmf.getPersistenceManager();\r\n Transaction tx = pm.currentTransaction();\r\n try\r\n {\r\n tx.begin();\r\n TypeHolder dto = pm.getObjectById(TypeHolder.class, 88);\r\n assertEquals(\"ABCxyz\", dto.getTheString());\r\n assertEquals(\"secret\", dto.getAnotherString());\r\n assertEquals(1.2F, dto.getTheFloat(), 0.1F);\r\n assertEquals(Float.valueOf(2.3F), dto.getTheFloatObj(), 0.1F);\r\n assertEquals(1234567.890D, dto.getTheDouble(), 0.1D);\r\n assertEquals(Double.valueOf(2345678.901D), dto.getTheDoubleObj(), 0.1D);\r\n assertEquals(true, dto.isTheBoolean());\r\n assertEquals(Boolean.FALSE, dto.getTheBooleanObj());\r\n assertEquals('Z', dto.getTheChar());\r\n assertEquals(Character.valueOf('Y'), dto.getTheCharObj());\r\n assertEquals((byte) 0x41, dto.getTheByte());\r\n assertEquals(Byte.valueOf((byte) 0x42), dto.getTheByteObj());\r\n assertEquals((short) 1, dto.getTheShort());\r\n assertEquals(Short.valueOf((short) 11), dto.getTheShortObj());\r\n assertEquals((int) 2, dto.getTheInt());\r\n assertEquals(Integer.valueOf((int) 22), dto.getTheIntObj());\r\n assertEquals((long) 3, dto.getTheLong());\r\n assertEquals(Long.valueOf((long) 33), dto.getTheLongObj());\r\n assertEquals(new BigInteger(\"1234567890\"), dto.getTheBigInteger());\r\n assertEquals(new BigDecimal(\"12345.67890\"), dto.getTheBigDecimal());\r\n assertEquals(Currency.getInstance(Locale.US), dto.getTheCurrency());\r\n assertEquals(Locale.GERMANY, dto.getTheLocale());\r\n assertEquals(TimeZone.getTimeZone(\"GMT\"), dto.getTheTimeZone());\r\n assertEquals(new UUID(5, 7), dto.getTheUUID());\r\n assertEquals(new Date(123456789000L).getTime(), dto.getTheDate().getTime());\r\n Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\r\n calendar.setTimeInMillis(23456780000L);\r\n assertEquals(calendar, dto.getTheCalendar());\r\n assertEquals(Gender.female, dto.getTheEnum());\r\n\r\n tx.commit();\r\n }\r\n finally\r\n {\r\n if (tx.isActive())\r\n {\r\n tx.rollback();\r\n }\r\n pm.close();\r\n }\r\n }", "title": "" }, { "docid": "38ce4120c77addb05b760c40da934b65", "score": "0.5720348", "text": "private Map<String, HashMap<String, String>> readFromDb() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "46cce7e937bba5bd3fed4f98db96bcef", "score": "0.57187414", "text": "@Override\n public List<CryptoPair> read() throws PersistentException {\n\n\n List<CryptoPair> cryptoPairs = null;\n try {\n cryptoPairs = jdbcOperations.query(readListSql, new RowMapper<CryptoPair>() {\n @Override\n public CryptoPair mapRow(ResultSet resultSet, int i) throws SQLException {\n\n CryptoPair cryptoPair = new CryptoPair();\n cryptoPair.setIdentity((resultSet.getInt(\"identity\")));\n cryptoPair.setFirstCurrency(resultSet.getInt(\"first_currency\"));\n cryptoPair.setSecondCurrency(resultSet.getInt(\"second_currency\"));\n cryptoPair.setActive(resultSet.getBoolean(\"active\"));\n\n return cryptoPair;\n }\n });\n } catch (DataAccessException e) {\n LOGGER.info(\"DataAccessException in CryptoPairDaoImpl, method read()\");\n }\n\n\n return cryptoPairs;\n\n\n }", "title": "" }, { "docid": "647852e5888c7b1bd5f9b512a2ffeae0", "score": "0.5716044", "text": "public List<Project> readAll() {\n TypedQuery<Project> query = manager.createQuery(\"SELECT e FROM project e\", Project.class);\n List<Project> result = query.getResultList();\n return result; \n }", "title": "" }, { "docid": "202839965abfb5ff75f3b4104f70dae7", "score": "0.56911594", "text": "@Override\n\tpublic List<Paciente> readAll() {\n\t\treturn pacienteRepository.findAll();\n\t}", "title": "" }, { "docid": "28806f775b3922079fc57e234dd5db5f", "score": "0.5689247", "text": "private void pullShopDb(){\n items = new BaseOfItems();\n for (int i = 0; i < DecorType.values().length; i++) {\n for (int ent = 0; ent < items.getItems().length; ent++) {\n entity = new OrnamentEntity(DecorType.values()[i], items.getItems()[ent]);\n allData.add(entity);\n }\n }\n }", "title": "" }, { "docid": "6083659c40170de523d905768cc0b601", "score": "0.5683255", "text": "public abstract Properties readDBProperties();", "title": "" }, { "docid": "9a64cce5b47ff7a6b8bb642e8b6c8de2", "score": "0.5682213", "text": "public void getDataFromDB() {\n\t\tDbConnector.getSensorCountClassData(1, this);\n\t\tDbConnector.getFireCountClassData(1, this);\n\t}", "title": "" }, { "docid": "b24d3b62f83c8cdb4051f159ac9f42d8", "score": "0.56577367", "text": "@Override\r\n\tpublic Vector<Player> readAll(ValueObject reference) throws PersistenceException {return null;}", "title": "" }, { "docid": "34577ca2b4698ce4f436512aaf0c359e", "score": "0.5656935", "text": "public MylibReader loadAndPersistMylib(PersistenceManager pm) {\n makePersistentAll(\n pm, getRootList(getMylibReaderForPersistentInstances()));\n return getMylibReaderForPersistentInstances();\n }", "title": "" }, { "docid": "2b06feddf76181561a98182ca0574fc9", "score": "0.56415147", "text": "protected final void loadAllData() {\n Logger.debug(\"loadAllData()\");\n try {\n setDaoMaster(createDaoMaster(getBaseContext()));\n detailDao = createDetailDao(getDaoMaster());\n if (detailDao!=null) {\n Logger.info(\"Opened write dao for table \" + detailDao.getTable() + \".\");\n } else {\n Logger.warning(\"There is no detail dao!\");\n }\n\n mastDao = createMastDao(getDaoMaster());\n if (mastDao!=null) {\n Logger.info(\"Opened write dao for table \" + mastDao.getTable() + \".\");\n } else {\n Logger.warning(\"There is no mast dao!\");\n }\n } catch (Exception e) {\n Logger.error(e.getMessage(), e);\n finish();\n }\n }", "title": "" }, { "docid": "aa45f537cd32a11b0644a3de3f1c5a45", "score": "0.56264925", "text": "public abstract void readAll();", "title": "" }, { "docid": "728428d9e35a4ecd47a77d94ea449bf5", "score": "0.5618046", "text": "public Postion load(PostionPK pk) throws DaoException;", "title": "" }, { "docid": "15abc72f9a37882d7b4778439f2cac35", "score": "0.5613006", "text": "public List<CardData> readAll() { return cardDataRepository.findAll(); }", "title": "" }, { "docid": "d9a77f770ae57d995f56f86bbdc00d0a", "score": "0.5608347", "text": "static Object readEntity(Catalog useCatalog,\n DatabaseEntry key,\n Object priKey,\n DatabaseEntry data,\n boolean rawAccess)\n throws RefreshException {\n\n RecordInput dataInput = new RecordInput\n (useCatalog, rawAccess, null, 0,\n data.getData(), data.getOffset(), data.getSize());\n int initialOffset = dataInput.getBufferOffset();\n int formatId = dataInput.readPackedInt();\n Format format = useCatalog.getFormat(formatId, true /*expectStored*/);\n dataInput.registerEntityFormat(format);\n Reader reader = format.getReader();\n Object entity = reader.newInstance(dataInput, rawAccess);\n if (priKey == null) {\n /* If priKey is null, need to deserialize the primary key. */\n RecordInput keyInput = new RecordInput\n (useCatalog, rawAccess, null, 0,\n key.getData(), key.getOffset(), key.getSize());\n reader.readPriKey(entity, keyInput, rawAccess);\n } else {\n \n /* \n * If priKey is not null, directly assign it to the primary key \n * field. [#19248]\n */\n Accessor accessor = \n reader.getAccessor(entity instanceof RawObject ?\n true :\n rawAccess);\n if (accessor == null) {\n accessor = format.getLatestVersion().getReader().\n getAccessor(entity instanceof RawObject ?\n true :\n rawAccess);\n }\n accessor.setPriField(entity, priKey);\n }\n dataInput.registerEntity(entity, initialOffset);\n entity = reader.readObject(entity, dataInput, rawAccess);\n return entity;\n }", "title": "" }, { "docid": "1ac83a24480d0686850c04cfc31a013a", "score": "0.55969965", "text": "private List<Entry> saveDbAndLoadEntries() {\n Config config = new Config();\n config.init();\n StoreSQL store;\n try {\n store = new StoreSQL(config);\n store.generate(size);\n LOG.info(\"Generated {} entries\", size);\n return store.load();\n } catch (SQLException e) {\n LOG.error(\"Cannot save or load entries\", e);\n return List.of();\n }\n }", "title": "" }, { "docid": "4f809272ce5d38e2d02682d5b3bdab57", "score": "0.55895734", "text": "public synchronized Object fetch( long recid, Serializer serializer )\n throws IOException\n {\n byte[] data = null;\n\n checkIfClosed();\n if ( recid <= 0 ) {\n throw new IllegalArgumentException( \"Argument 'recid' is invalid: \"\n + recid );\n }\n /*\n\t\t * The logical row identifier (identifies a slot in the translation\n\t\t * table).\n\t\t */\n Location logRowId = new Location( recid );\n if( _bufMgr != null ) {\n \t/*\n \t * If we are buffering records, then test the buffer first. This\n \t * test requires the _logical_ record identifier.\n \t */\n \tdata = _bufMgr.fetch( logRowId );\n }\n if( data == null ) {\n \t/*\n\t\t\t * Either the record is not buffered or we are not buffering\n\t\t\t * records. Translate the logical record identifier to the physical\n\t\t\t * record identifier and then fetch the record from the page (and\n\t\t\t * the page from the store if necessary).\n\t\t\t */\n \tLocation physRowId = _logMgr.fetch( logRowId );\n \tdata = _physMgr.fetch( physRowId );\n }\n if ( DEBUG ) {\n System.out.println( \"BaseRecordManager.fetch() recid \" + recid + \" length \" + data.length ) ;\n }\n if( data == null ) { // data.length == 0 ) {\n // If you delete a record and then do a fetch, the physMgr identifies\n // a zero length byte[] based on the record header. The physMgr has \n // been modified to return null instead of data[] so that we can detect\n // a deleted record and return null to the application.\n //\n // Note: The way in which deleted records are detected may be changed\n // to permit zero length records, but this test should still be valid.\n return null;\n }\n data = _compressor.decompress( data );\n long beginTime = System.currentTimeMillis();\n Object obj;\n if( serializer == null ) {\n obj = _serializer.deserialize( this, recid, data );\n } else {\n obj = serializer.deserialize( data );\n }\n m_deserializationElapsed += System.currentTimeMillis() - beginTime; \n return obj;\n }", "title": "" }, { "docid": "82a6d93239034b0070a7c7e2688a3c40", "score": "0.5588047", "text": "List<L> readAll() throws SQLException;", "title": "" }, { "docid": "9ecff99942172c37ce459e1bb1b309be", "score": "0.5584452", "text": "@Override\n\tpublic void loadData() {\n\t\t\n\t}", "title": "" }, { "docid": "6c1fc0fa2e679850f15b2aa14a363da0", "score": "0.55774957", "text": "public ContentData getContentDataForRead(int version, String path)\n {\n if (path == null)\n {\n throw new AVMBadArgumentException(\"Null Path.\");\n }\n return fAVMRepository.getContentDataForRead(version, path);\n }", "title": "" }, { "docid": "5fe07c5c137eb4c10485fcda411b434a", "score": "0.55572265", "text": "private void fetch() {\n readerList = readerTree.toArrayList();\n bookIndexList = storage.toArrayList();\n }", "title": "" }, { "docid": "b4929c26555b8e267a1e53360564133c", "score": "0.55459243", "text": "public static void readFromDatabase() throws IOException, ClassNotFoundException {\n\n \t//connect to database\n \tClass.forName(\"com.mysql.jdbc.Driver\");\n \tConnection conn = null;\n \t\n \ttry {\n \t\tconn=(Connection) DriverManager.getConnection(\"jdbc:mysql://localhost/bpms\",\"root\", \"\");\n \t\tSystem.out.println(\"Connected to database...getting objects\");\n \t} catch (SQLException e) {\n \t\tSystem.out.print(\"Do not connect to DB - Error:\"+e);\n \t}\n \t\n String query= \"SELECT * FROM bpmsbook ORDER BY date,time DESC\";\n \n Statement stm;\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tstm = (Statement) conn.createStatement();\n\t\t\tResultSet rs= (ResultSet) stm.executeQuery(query);\n\t\t\t//rs.\n\t\t\twhile (rs.next()) {\n\t\t\t\timportBPMSdata(rs.getString(2),rs.getString(3),rs.getInt(4),rs.getInt(5),rs.getInt(6),rs.getInt(1));\n\t\t\t\t \n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\n \t\n }", "title": "" }, { "docid": "f98574e3f303d06864f0643505f72544", "score": "0.55353695", "text": "@Override\n\tpublic List<Order> readAll() {\n\t\t\n\t\tList<Order> orders = orderDAO.readAll();\n\t\t\n\t\tfor (Order order : orders) {\t\t\t\n\t\t\tLOGGER.info(order.toString());\n\t\t}\n\t\t\n\t\treturn orders;\n\t\t\n\t\t\n\t\t\n\t\t\n//\t\tList<Order> orders = orderDAO.readAll();\n//\t\tfor (Order order : orders) {\n//\t\t\tLOGGER.info(order.toString());\n//\t\t}\n//\t\treturn orders;\n\t}", "title": "" }, { "docid": "06ea40cc64992678ca5b746a442c414f", "score": "0.5529332", "text": "public Product read(String id) throws DataException {\n Product pkg;\n \n // get pkg jdbc connection\n Connection conn = cp.get();\n try {\n // call the other read method\n pkg = read(id, conn);\n } catch (Exception ex) {\n throw new DataException(\"can't read Product\", ex);\n } finally {\n cp.release(conn);\n }\n\n // use pkg finally clause to release the connection\n // return the object\n return pkg;\n }", "title": "" }, { "docid": "864d9e596aaf9e9dfa5495b5ce03b6e2", "score": "0.55289555", "text": "@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn dp.readAll();\n\t}", "title": "" }, { "docid": "5c8222f36540bd699ff3a85213282cf9", "score": "0.5523401", "text": "public static void main(String[] args) {\n\r\n\t\tEntityManagerFactory factory = Persistence.createEntityManagerFactory(\"JPA-PU\");\r\n\t\tEntityManager em = factory.createEntityManager();\r\n \r\n\t\t\r\n\t\tSystem.out.println(\"loading a bean ..\");\r\n\t\t\r\n\t\t\r\n\t\tDoctor doctor = null;\r\n\t\t\r\n\t\tdoctor=em.find(Doctor.class, 1);\r\n\t\t\r\n\t\t \r\n\t\t \r\n\t\t\r\n\t\tSystem.out.println(doctor);\r\n\t\tSystem.out.println(doctor.getQualification());\r\n\t\tem.close();\r\n\t\tfactory.close();\r\n\r\n\t}", "title": "" }, { "docid": "58547946dddd78c9395e83512d700de1", "score": "0.5519376", "text": "public void getDatabaseData() {\n\n TypedQuery<ChangeType> changeTypeQuery = em.createNamedQuery(\"ChangeType.selectAll\", ChangeType.class);\n allChangeTypes = new LinkedList<>(changeTypeQuery.getResultList());\n TypedQuery<Projekt> projectQuerry = em.createNamedQuery(\"Projekt.selectAll\", Projekt.class);\n allProjects = new LinkedList<>(projectQuerry.getResultList());\n TypedQuery<Nutzer> userQuerry = em.createNamedQuery(\"NutzerNew.selectAll\", Nutzer.class);\n allUsers = new LinkedList<>(userQuerry.getResultList());\n if (currentNutzer == null) {\n for (Nutzer user : allUsers) {\n if (user.getUsername().equalsIgnoreCase(\"Default User\")) {\n currentNutzer = user;\n }\n }\n }\n }", "title": "" }, { "docid": "5f5a9f6363a1fa6822c6c214aeabaffc", "score": "0.55133164", "text": "@Override\r\n\tpublic Map<String, Object> read(int id) {\n\t\treturn tipo_DenominacionDao.read(id);\r\n\t}", "title": "" }, { "docid": "1812a15d083c2dcb674fc8752fe413ce", "score": "0.55043966", "text": "private void load() {\n if ( isLoaded ) {\n return;\n }\n if ( id == 0 ) {\n throw new NullPointerException();\n }\n\n try (PreparedStatement ps = db.prepareStatement(String.format(SELECT_QUERY, table))) {\n\n ps.setInt(1, id);\n\n ResultSet rs = ps.executeQuery();\n ResultSetMetaData resultMetaData = rs.getMetaData();\n int numberOfColumns = resultMetaData.getColumnCount();\n\n rs.next();\n\n for (int i = 0; i < numberOfColumns; i++) {\n String columnName = resultMetaData.getColumnName(i + 1);\n\n fields.put(columnName, rs.getObject(columnName));\n }\n\n ps.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n isLoaded = true;\n }", "title": "" }, { "docid": "eae5d5c09f067baa14e8efe57fa01021", "score": "0.5491939", "text": "T load(Long id);", "title": "" }, { "docid": "dcf84f14982cece83af7ac2f68423bfc", "score": "0.5488405", "text": "private List<?> readEntityRelationsFromDb() {\n Query query = em.createQuery(\"from EntityRelation\", EntityRelation.class);\n return query.getResultList();\n }", "title": "" }, { "docid": "54ee54d58c477476d9ac0f8ab93c9468", "score": "0.5470472", "text": "public List<T> readAll();", "title": "" }, { "docid": "ac1fc027f8d830f70b7ba9d137932efd", "score": "0.546986", "text": "void read(T t, E e, Long id) throws SQLException;", "title": "" }, { "docid": "bfddc874e6a4ea5fe482c67081309fee", "score": "0.5467731", "text": "public Set<EntityData> getData();", "title": "" }, { "docid": "d1ea0684d96d1f6bbaca32b9c8f31487", "score": "0.54657423", "text": "@Override\n\tpublic List<Libro> readAll() {\n\t\treturn jdbcTemplate.query(\"select*from libro\", \n\t\t\t\tBeanPropertyRowMapper.newInstance(Libro.class));\n\t}", "title": "" }, { "docid": "0c9e93f8a68b9de04f6ba9d9b29e4913", "score": "0.54610544", "text": "public void ejbLoad() {\n // Log.debug(Log.DB, \"[AbstractEntityBean.ejbLoad] Enter\");\n try {\n _entity = getDAO().load((Long) _ctx.getPrimaryKey());\n setEntityModified(false);\n } catch (ApplicationException ex) {\n Log.warn(Log.DB, \"[AbstractEntityBean.ejbLoad] Error Exit \", ex);\n throw new NoSuchEntityException(ex.getLocalizedMessage());\n } catch (Exception ex) {\n throw new EJBException(ex);\n }\n }", "title": "" }, { "docid": "d50c6cbb16ae6fbb3aebaba6b0d4f889", "score": "0.54598236", "text": "public void loadData() throws RepositoryException, IOException, RDFParseException {\n System.out.println(\"# Loading ontology and data\");\n\n // When adding data we need to start a transaction\n connection.begin();\n\n // Adding the family ontology\n connection.add(FamilyRelationsApp.class.getResourceAsStream(\"/family-ontology.ttl\"), \"urn:base\", RDFFormat.TURTLE);\n\n // Adding some family data\n connection.add(FamilyRelationsApp.class.getResourceAsStream(\"/family-data.ttl\"), \"urn:base\", RDFFormat.TURTLE);\n\n // Committing the transaction persists the data\n connection.commit();\n }", "title": "" }, { "docid": "6ad768ce368b951c3b88f750e607e232", "score": "0.54538184", "text": "private void load() {\n try {\n contacts.addAll(repository.load());\n } catch (IOException e) {\n ExceptionHandler.handleExc(e);\n }\n }", "title": "" }, { "docid": "2d918886f8412404c938971b0fc78048", "score": "0.5447673", "text": "public MediaObject readFile() {\r\n\t\ttry {\r\n\t\t\tif(!dbFile.exists()) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\treadSaveFile = new FileInputStream(dbFile);\r\n\t\t\treadSave = new ObjectInputStream(readSaveFile);\r\n\t\t\treturn (MediaObject) readSave.readObject();\r\n\t\t\t\r\n\t\t} catch (EOFException eof) {\r\n\t\t\tSystem.out.println(\"File is empty or not readable\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n finally {\r\n try {\r\n if (readSave != null) {\r\n readSave.close();\r\n }\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(); \r\n }\r\n } \r\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "9540a5236c9c76645eff1450757d7b53", "score": "0.5445379", "text": "@Override\n\tprotected void loadData() {\n\n\t}", "title": "" }, { "docid": "bf6785b096a33e2fa74edf9ffb00ce21", "score": "0.54445755", "text": "public void readDataState(SaveState saveState) {\n\t\t// do nothing by default; subclasses should override as needed\n\t}", "title": "" }, { "docid": "7822310208d335f2ba2ea8bd8ff1085f", "score": "0.5436964", "text": "@Override\n\tpublic void dataLoading() {\n\t\t\n\t}", "title": "" }, { "docid": "da124f9d0ebf866fb63f5e320031b819", "score": "0.543531", "text": "@Override\n\tpublic void readData() {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder db = null;\n\t\tDocument doc=null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tdb=dbf.newDocumentBuilder();\n\t\t}\n\t\tcatch(ParserConfigurationException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tdoc=db.parse(new FileInputStream(FileName));\n\t\t}\n\t\tcatch(IOException | SAXException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tNode root = doc.getDocumentElement();\n\t\tNodeList nodeList = root.getChildNodes();\n\t\t\n\t\tfor(int i=0;i<nodeList.getLength();i++){\n\t\t\tif(nodeList.item(i).getNodeType()==Node.ELEMENT_NODE)\n\t\t\t{\n\t\t\t\tElement e = (Element) nodeList.item(i);\n\t\t\t\tSarcina s = createSarcinaFromElement(e);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsave(s);\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex)\n\t\t\t\t{\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f6a035400077852d8e5254ad0c8fde9f", "score": "0.54336345", "text": "protected T loadEntity(String id) throws PersistenceException {\n T t = instances.get(id);\n if(t == null) {\n byte[] object = persistenceDB.getObject(id);\n t = (T) DomainObject.serialize(object);\n instances.put(id, t);\n }\n return t;\n }", "title": "" }, { "docid": "46ecf4db4436b26cff25f46680a21bc0", "score": "0.5432388", "text": "@Override\n\tpublic void readData() {\n\t\t\n\t}", "title": "" }, { "docid": "781d4d90042c5bd7d10a2ba546457b01", "score": "0.54199773", "text": "private Persistency() {\n\t\t \n\t\t db = Db4oEmbedded.openFile(Db4oEmbedded\n\t\t\t .newConfiguration(), DB_NAME);\n\n\t }", "title": "" }, { "docid": "705d31dfa185ba3d841662b013d241ba", "score": "0.5416756", "text": "public EntityData getPublicData();", "title": "" }, { "docid": "12631bde20fa1d4376e885ea6cde0970", "score": "0.54096836", "text": "@Transactional\n\t@Override\n\tpublic List<JavaNilai> getAllData() {\n\t\treturn this.javaNilaiDao.getAllData();\n\t}", "title": "" }, { "docid": "aee01639b646a4356fc526219b6279e3", "score": "0.5404198", "text": "void readData();", "title": "" }, { "docid": "d8eb138849174fe7cd709c642b3808be", "score": "0.54017144", "text": "public void runPersistence(){\r\n\r\n }", "title": "" }, { "docid": "02959b10d5cc41660f756c0c208fb19e", "score": "0.5396213", "text": "public interface PersistenceAdapter {\n\n /**\n * Persists data under the key obtained from provider {@link Identifiable}\n *\n * @param identifiable unique identifier of object\n * @param data object to persist\n */\n void persist(final Identifiable identifiable, final Object data);\n\n /**\n * Read's data identified by identifier\n *\n * @param identifiable unique identifier of object\n * @param type type of the read data\n * @return Object of the desired type stored under the provided key\n */\n <T> Optional<T> read(final Identifiable identifiable, final Class<T> type);\n}", "title": "" }, { "docid": "819dbf8a79440ba4cfbce36175d1a717", "score": "0.5394332", "text": "@Test\n\tpublic void readAll() throws Exception {\n\t\twriteAllData();\n\t\tclearCache();\n\n\t\tlong time = System.nanoTime();\n\t\treadAllData();\n\t\tSystem.out.println(\"read time: \" + ((System.nanoTime() - time)/1000000000d));\n\t}", "title": "" }, { "docid": "dd7fb93b352029d00fe3febe1d11b0b1", "score": "0.53934765", "text": "private AcademicHistory loadData() {\n try {\n ahObject = Reader.readAHistory(new File(SAVE_PATH));\n } catch (IOException e) {\n System.out.println(\"File not found\");\n }\n\n return ahObject;\n }", "title": "" }, { "docid": "bbecce286c27a923b61cedafa550b102", "score": "0.53914106", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic <T> List<T> read(String query) throws JPAException\n\t{\n\t\tList<T> result;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tresult = this.entityManager.createQuery(query).getResultList();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tthrow new JPAException(\"Error in query read: \" + query + \"\\n\" + e.getMessage());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" } ]
5ab5297b80b0dd7bfd985aa368978f87
If we are playing near nugget and the opponent is not malused.
[ { "docid": "56dd87bd5eca5df0f0e66749ae05c683", "score": "0.0", "text": "public static double helpWinStrategy(SBoardstateC board){\n if(checkPlayingNearnugget(board) && !opponentMalused){\n return -1000;\n }\n return 0;\n }", "title": "" } ]
[ { "docid": "ca5dc48849a9b73d362527b837a3e324", "score": "0.69806063", "text": "public boolean gameOver(){\n\t // ADD CODE HERE\n\t boolean full=false;\n\t int countTot=0;\n\t for (int i=0; i<8; i++)\n\t {\n\t for (int j=0; j<8; j++)\n\t {\n\t if (getPiece(i, j).equals(BLACK_UP) || getPiece(i, j).equals(WHITE_UP))\n\t {\n\t countTot++;\n\t }\n\t }\n\t }\n if (countTot==64)\n {\n full=true;\n }\n\t return full;\n\t }", "title": "" }, { "docid": "747dbcdc4b17ad172c297cb46ea4c72e", "score": "0.6927551", "text": "public boolean gameOver() {\n\t\tif (currentScenario == Scenario.Princess) {\n\t\t\tif (getPlayerOneUnits().get(0).getHealth() <= 0) {\n\t\t\t\tuserLost = true;\n\t\t\t\tcompWon = true;\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (getPlayerTwoUnits().get(0).getHealth() <= 0) {\n\t\t\t\tcompLost = true;\n\t\t\t\tuserWon = true;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tuserLost = checkIfUserLost();\n\t\tcompLost = checkIfCompLost();\n\n\t\tif (userLost) {\n\t\t\tcompWon = true;\n\t\t\treturn true;\n\t\t}\n\t\tif (compLost) {\n\t\t\tuserWon = true;\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b499cbf64e6dc8bfe5e77ede73fb6b56", "score": "0.690695", "text": "@Override\r\n public boolean gameIsOver() {\r\n\r\n int shortest = map.getLengthOfShortestUnclaimedRoute();\r\n System.out.println(shortest);\r\n int i = 0;\r\n //I is a counter to see how many player can still play\r\n if(this.deck.numberOfCardsRemaining() == 0){\r\n for (model.Player p : this.listoplayer) {\r\n if (p.canContinuePlaying(shortest)) {\r\n\r\n } else {\r\n i++;\r\n }\r\n }}\r\n if (i == 4) {\r\n return true;\r\n } else {\r\n for (model.Route r : map.getRoutes()) {\r\n if (r.getBaron() == null) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n\r\n\r\n }\r\n }", "title": "" }, { "docid": "56b76c65c398e1f0ae940df58ee004d4", "score": "0.69036925", "text": "private boolean gameOver() {\r\n \treturn(gameWon() || gameLost());\r\n }", "title": "" }, { "docid": "13f8367642f0386c667f2e5492f0f3dd", "score": "0.68951315", "text": "boolean hasPlayerNation();", "title": "" }, { "docid": "f03868eb45fd99c4271dd4155071099c", "score": "0.6846764", "text": "private boolean gameOver()\n {\n if(player1.isEmpty()) { return true; }\n else if(player2.isEmpty()) { return true; }\n else if(player1.emptyBones()) { return true; }\n return false;\n }", "title": "" }, { "docid": "a1974afcdef5a4281f78a6b7f9f3f99a", "score": "0.6840433", "text": "private boolean isGameOver() {\n return !playerTank.alive && lives < 0;\n }", "title": "" }, { "docid": "d24c83326acbc0ecbd4840200fb59752", "score": "0.68309706", "text": "boolean gameOver() {\r\n return (this.totalMoves - this.currentMoves <= 0 && !this.isFlooding);\r\n }", "title": "" }, { "docid": "08f610845acc07a7a06b822d8fca5c0e", "score": "0.6820678", "text": "public boolean gameOver() { // From TwoPlayerGame\n return (unguessedLetters <= 0);\n }", "title": "" }, { "docid": "fcf6d3d42f557279b343723a835d2d6c", "score": "0.6796597", "text": "private boolean gameOver() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "856bc6e1a68aaee79e285eabef1b50e9", "score": "0.67954195", "text": "public boolean gameOver(){\n if(player.getState() == Garuda.State.DEAD && player.getStateTimer() > 0.3f)\n return true;\n return false;\n }", "title": "" }, { "docid": "5960d260641e6dcd911a474816435e6e", "score": "0.67653865", "text": "private boolean hasPlayerWon(){\n return playGame.isWinnerHorizontally(grid,playerType) ||\n playGame.isWinnerVertically(grid,playerType )||\n playGame.isWinnerDiagonalBottomLeftToTopRight(grid,playerType) ||\n playGame.isWinnerDiagonalTopLeftToBottomRight(grid,playerType);\n }", "title": "" }, { "docid": "2f5d4727d4185b5410d9db3d7b20f293", "score": "0.6762825", "text": "public boolean isOver() {\n if(totalGuesses > 9000) {\n return true;\n }\n if(endGame == true) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0e65163272dfbf9a1ecbb503d28f4d8f", "score": "0.67262995", "text": "private boolean isGameOver(){\n\n if(getAliveBadGuysNumber() >= getAliveGoodGuysNumber()){\n return true;\n }\n\n else if(getAliveBadGuysNumber() == 0){\n return true;\n }\n\n return false;\n\n }", "title": "" }, { "docid": "d39f53d462d02b49e60a3e7da583f67c", "score": "0.66773766", "text": "private void checkUnfortunateOpponent(int player, int to) {\n\t\t// we want to start looking from the active player\n\t\tint pl = activePlayer;\n\t\tboolean found = false;\t// if we found a valid player\n\t\t\n\t\t// gets the grid position of the given piece\n\t\tint gridPos = userGridToLudoBoardGrid(player, to);\n\t\t\n\t\t// loops through all active players\n\t\tfor(int i = 0; i < activePlayers(); i++) {\n\t\t\t\n\t\t\t// Skip all players that are inactive\n\t\t\tdo {\n\t\t\t\tif(pl == GREEN) {\n\t\t\t\t\tpl = RED;\n\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tpl++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(isActive(pl)) {\n\t\t\t\t\tfound = true;\n\t\t\t\t}\n\t\t\t} while(!found);\n\t\t\t\n\t\t\t/* As long as it isn't our self\n\t\t\t * loop through all the pieces and get their grid\n\t\t\t * position. If this position is the same as the\n\t\t\t * one the given player moved to, the other players\n\t\t\t * pieve has to be moved back to its home\n\t\t\t */\n\t\t\tif(pl != player) {\n\t\t\t\tfor(int pieces = 0; pieces < PIECES; pieces++) { \n\t\t\t\t\tint pieceGridPos = userGridToLudoBoardGrid(pl, getPosition(pl, pieces));\n\t\t\t\t\t\n\t\t\t\t\tif(pieceGridPos == gridPos) {\n\t\t\t\t\t\t// alert all players that a piece is sent home\n\t\t\t\t\t\talertPieces(new PieceEvent(this, pl, pieces, getPosition(pl, pieces), 0));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// move the piece\n\t\t\t\t\t\tplayerPieces[pl][pieces] = 0;\n\t\t\t\t\t} // if same pos\n\t\t\t\t} // for piece\n\t\t\t} // if same player\n\t\t} // for i (active player)\n\t}", "title": "" }, { "docid": "60d7a31082ff25677dbbd88ec8037dd9", "score": "0.6672892", "text": "public boolean gameOver() {\n if (lost >= 5) {\n return true;\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "0884ac1e8bd74f77269741ec261756bb", "score": "0.66669196", "text": "public boolean gameOver() {\r\n\r\n\t\tif (player.isDead()) {\t\t\t\t\t\t\t\t\t\t/* Player loses */\r\n\t\t\treturn true;\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\r\n\t\tfor (Dragon dragon : dragons){\r\n\t\t\tif (!dragon.isDead()) return false;\t\t\t\t\t\t/* Game doesn't end */\r\n\t\t}\r\n\r\n\t\tif (player.getPosition().equals(maze.getExit())) {\t\t\t/* Player Wins */\r\n\t\t\treturn true;\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t}", "title": "" }, { "docid": "6f2025a807f9203554be052ffa3739ef", "score": "0.66630834", "text": "private void checkGameOver() {\n List<Position> unlockedDoors = tessellation.getUnlockedDoors();\n if (bot.getBotNuggets() >= tessellation.getNumNuggets() + 9\n && tessellation.getNumDoors() >= 1) {\n gameOver = true;\n gameOverWinDisplay();\n } else if (bot.getBotNuggets() < -1) {\n gameOver = true;\n gameOverLoseDisplay();\n }\n }", "title": "" }, { "docid": "aee934dfb8fd106653004d180dd5d8cd", "score": "0.66623914", "text": "public boolean gameOver() {\n\t\t// If player hasn't reach home, it's always a false.\n\t\tif (!reachHome()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn missing.isEmpty();\n\t}", "title": "" }, { "docid": "e61ccdb0eb05036af04b5286a6f82559", "score": "0.6649251", "text": "@Override\r\n public boolean gameIsOver() {\r\n boolean routesLeft = false;\r\n for (Route r : this.map.getRoutes()){\r\n if (r.getBaron().equals(Baron.UNCLAIMED)){\r\n routesLeft = true;\r\n }\r\n }\r\n for (Player p : this.players){\r\n if (!p.canContinuePlaying(this.map.getLengthOfShortestUnclaimedRoute())){\r\n this.observers.forEach(o -> o.gameOver(this, getWinner()));\r\n return false;\r\n }\r\n }\r\n if (!routesLeft){\r\n this.observers.forEach(o -> o.gameOver(this, getWinner()));\r\n }\r\n return routesLeft;\r\n }", "title": "" }, { "docid": "6a3f3b12363a78fc27c562543602dc60", "score": "0.6630409", "text": "public boolean gameOver() {\n\t\t\n\t\treturn missing.isEmpty();\n\t}", "title": "" }, { "docid": "247ccf46dcf2701f74e50f6f8ed42e23", "score": "0.6622009", "text": "public Player hasWon(){\n if(board.attackingGreenFace(yellowPlayer) || board.attackingGreenFace(greenPlayer)){\n state = GameState.DONE;\n return yellowPlayer;\n }\n\n if(board.attackingYellowFace(yellowPlayer) || board.attackingYellowFace(greenPlayer)){\n state = GameState.DONE;\n return greenPlayer;\n }\n return null;\n }", "title": "" }, { "docid": "fd882640f116dad1a9c6176f4aa8d955", "score": "0.6618451", "text": "private boolean isLost() {\n return (arena.getPlayer().getMissed() > Settings.MISSED_LOSE_THRESHOLD);\n }", "title": "" }, { "docid": "2cb11dd09ed2013bdbbe066066921aeb", "score": "0.6603013", "text": "public synchronized boolean gameOver() {\n if(!p2.isOnScreen() && !p3.isOnScreen() && !p4.isOnScreen())\n return true;\n else if(!p1.isOnScreen() && !p3.isOnScreen() && !p4.isOnScreen())\n return true;\n else if(!p1.isOnScreen() && !p2.isOnScreen() && !p4.isOnScreen())\n return true;\n else if(!p1.isOnScreen() && !p2.isOnScreen() && !p3.isOnScreen())\n return true;\n\n else return false;\n }", "title": "" }, { "docid": "e3f0ea580e7349923bd47b5caf02c011", "score": "0.659227", "text": "boolean occupied() {\n return player >= 0;\n }", "title": "" }, { "docid": "99b293965373adae7b20b1750bad57b0", "score": "0.65900517", "text": "public boolean continueGame()\n {\n boolean used = false;\n if(graveyard.size()>0)\n {used = true;}\n return used;\n }", "title": "" }, { "docid": "205a25ebfcca0915ed5eb4536116778e", "score": "0.6570387", "text": "private boolean hasNoEnemys() {\n\t\tfor(Integer c : neighbours) {\n\t\t\tif(board.getOccupier(c) != player.getId())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0c84c702f0305d8d94df91b8cb9758ce", "score": "0.65666085", "text": "public boolean isOver(){\n boolean b = false;\n if (isFull()){\n b = true;\n }\n if (getWinner()!=0){\n b = true;\n }\n return b;\n }", "title": "" }, { "docid": "fe9a7703db278a5640b012555bff7645", "score": "0.65656805", "text": "public boolean isGameOver() { return getGameWinner() != Types.WINNER.NO_WINNER; }", "title": "" }, { "docid": "97d9408d6521d6d8f4b124bc7e493336", "score": "0.6556087", "text": "private void judgeLose() {\r\n if (this.player.getMeetBat()) {\r\n this.throwPlayer();\r\n }\r\n if (this.getPlayerLocation() == wumpusLoc) {\r\n this.player.setLose();\r\n }\r\n if (pitSet.contains(this.getPlayerLocation())) {\r\n this.player.setLose();\r\n }\r\n if (this.player.getArrow() == 0) {\r\n this.player.setLose();\r\n }\r\n }", "title": "" }, { "docid": "62ea746861eda3f9f52a66891b4877a8", "score": "0.65419203", "text": "@Override\n\tpublic boolean hasWinner() {\n\t\treturn gameOver();\n\t}", "title": "" }, { "docid": "c518b384992f17396fca25b2d37115d7", "score": "0.6506454", "text": "private boolean checkIfWon() {\n\t\tif (\n\t\t\tplayerOne.getEndCluster().getSize() == playerOne.getCounters().length\n\t\t\t\t|| playerTwo.getEndCluster().getSize() == playerTwo.getCounters().length\n\t\t\t) {\n\t\t\twinner = currentPlayer;\n\t\t\tLog.debug(\"GAME\", \"GAME WON! - \" + winner.getId());\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7a2d146032529bc1a84114dcc0be8019", "score": "0.649763", "text": "public boolean shouldOpponentFold(){\n Pattern computer = opponentHand.getBestHand();\n return !computer.isQualifyingHand();\n }", "title": "" }, { "docid": "a0ce125b514034698ebf91fc735ce6df", "score": "0.64850396", "text": "public boolean gameOver()\n\t{\n\t return state.isTerminal(); \n\t}", "title": "" }, { "docid": "e001ac7873ee075a51fbffba7faa2246", "score": "0.64798534", "text": "private boolean isGameOver()\n {\n for (int c=0; c<grid.getNumCols(); c++)\n {\n Location loc = new Location(0, c);\n if (!(grid.get(loc)==null))\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "43122614b5b06082b42706cf9e264202", "score": "0.64715725", "text": "public boolean checkWinner(){\n return false; //placeholder to prevent build from breaking\n }", "title": "" }, { "docid": "7897725072ad255237ae8e2280841153", "score": "0.6457145", "text": "public boolean isLost() {\n return !player.getStatusAlive();\n }", "title": "" }, { "docid": "78b73298e310b3fa86ec10222e376ecd", "score": "0.6453329", "text": "boolean hasOtherPlayerConnected();", "title": "" }, { "docid": "1b3ae01ee25d0c6d7fd92bcfa4010cad", "score": "0.6445687", "text": "public MoveResult checkWhoWon(){\n\t\treturn state.getGameStatus();\n\t}", "title": "" }, { "docid": "ed3fd6f8cc917385446fda772b1eadf0", "score": "0.64440435", "text": "private boolean gameIsOver() {\n return gameState.getGameStatus() == GameStatus.EXPIRED \n || gameState.getGameStatus() ==GameStatus.SOLVED;\n }", "title": "" }, { "docid": "4f9a1042487868931b5dcbd4976604e3", "score": "0.64435154", "text": "public boolean checkLoss()\r\n\t{\r\n\t\tif(!checkWin() && isFull() && !hasAdjacentIdentical())\r\n\t\t\t{\r\n\t\t\treturn true;\r\n\t\t\t}\r\n\t\telse\r\n\t\t\t{\r\n\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "eb9fdcfd64dad218c5454874b88dc25b", "score": "0.6440528", "text": "boolean isGameLost();", "title": "" }, { "docid": "4c1fced4cb8bd01d5bfe1a14141f625d", "score": "0.64273995", "text": "public boolean checkIfGameOver() {\n if (goalState().get() == true || playerState().get() == true) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "b14fb6ef45f428936c0eb54e9d4c0692", "score": "0.642491", "text": "public boolean ifLose(){\n\t\tint tempInt=0;\n\t\t//Temples\n\t\tif((board.getAStdTileDebug(16).getStage()==Stage.SUNK)&&(board.getAStdTileDebug(17).getStage()==Stage.SUNK)){\n\t\t\tfor(StdRole i: board.getPlayers()){\n\t\t\t\tfor(TreasureCard j: i.getCards()){\n\t\t\t\t\tif (j.getClass() == StoneCard.class){\n\t\t\t\t\t\ttempInt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tempInt<4){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\ttempInt=0;\n\t\t//Caves\n\t\tif((board.getAStdTileDebug(10).getStage()==Stage.SUNK)&&(board.getAStdTileDebug(11).getStage()==Stage.SUNK)){\n\t\t\tfor(StdRole i: board.getPlayers()){\n\t\t\t\tfor(TreasureCard j: i.getCards()){\n\t\t\t\t\tif (j.getClass() == FireCard.class){\n\t\t\t\t\t\ttempInt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tempInt<4){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\ttempInt=0;\n\t\t//Palaces\n\t\tif((board.getAStdTileDebug(14).getStage()==Stage.SUNK)&&(board.getAStdTileDebug(15).getStage()==Stage.SUNK)){\n\t\t\tfor(StdRole i: board.getPlayers()){\n\t\t\t\tfor(TreasureCard j: i.getCards()){\n\t\t\t\t\tif (j.getClass() == ChaliceCard.class){\n\t\t\t\t\t\ttempInt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tempInt<4){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\ttempInt=0;\n\t\t//Gardens\n\t\tif((board.getAStdTileDebug(12).getStage()==Stage.SUNK)&&(board.getAStdTileDebug(13).getStage()==Stage.SUNK)){\n\t\t\tfor(StdRole i: board.getPlayers()){\n\t\t\t\tfor(TreasureCard j: i.getCards()){\n\t\t\t\t\tif (j.getClass() == WindCard.class){\n\t\t\t\t\t\ttempInt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tempInt<4){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\ttempInt=0;\n\t\t// 2.\tIf Fools’ Landing tile sinks.\n\t\tif(board.getAStdTileDebug(18).getStage()==Stage.SUNK){\n\t\t\treturn true;\n\t\t}\n\t\t// 3.\tIf any player is on an Island tile that sinks and cannot move to another tile.\n\t\tfor(StdRole i: board.getPlayers()){\n\t\t\tif (i.getCurr().getStage() == Stage.SUNK){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// 4.\tIf the water level reaches 5\n\t\tif(this.waterMeter.getLevel()==10){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "001a2ffbc419427aba5a5cb8c2797ed6", "score": "0.6411179", "text": "private boolean gameLost() {\r\n \t if(guesses>=7) return true;\r\n \t return false; \r\n }", "title": "" }, { "docid": "740a5d656a98638d56e353e9e0a39396", "score": "0.6406985", "text": "protected boolean isPlayer() {\n/* 526 */ return false;\n/* */ }", "title": "" }, { "docid": "a31041696ee21158ba92487ac9a41939", "score": "0.6403454", "text": "@Override\n public boolean gameIsOver() {\n boolean unable = false;\n boolean noPieces = false;\n for (Player p : players) {\n if (!p.canContinuePlaying(map.getLengthOfShortestUnclaimedRoute()) && deck.numberOfCardsRemaining() == 0) {\n unable = true;\n }\n if (p.getNumberOfPieces() == 0) {\n noPieces = true;\n }\n }\n int claimedRoutes = 0;\n for (Route r : map.getRoutes()) {\n if (r.getBaron().equals(Baron.UNCLAIMED)) {\n claimedRoutes++;\n }\n }\n if (unable || noPieces || claimedRoutes == 0) {\n gameEnd=true;\n int highScore = 0;\n Player best = null;\n\n for (Player p : players) {\n int pScore= calculateBonus((MyPlayer) p);\n ((MyPlayer) p).addScore(pScore);\n }\n for (Player p : players) {\n if (p.getScore() > highScore) {\n highScore = p.getScore();\n best = p;\n }\n }\n for (RailroadBaronsObserver o : observers) {\n o.gameOver(this, best);\n }\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "f62effb7de16ed0cbfbb0f40cfaf62f9", "score": "0.640031", "text": "public boolean gameOver() {\n if (megaman.isDead() && megaman.getStateTimer() > 3f) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "65b5232b654e8c908c922a608e7a71f7", "score": "0.6399012", "text": "public boolean checkForPlayer()\n\t{\n\t\tboolean success = false;\n\t\t//delete enemy from its original position\n\t\tfor(int i = 0; i < world.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < world[i].length; j++)\n\t\t\t{\n\t\t\t\tfor( int k = 0; k < ninjas.length; k++)\n\t\t\t\t{\n\t\t\t\t\tif(world[i][j] == ninjas[k])\n\t\t\t\t\t{\n\t\t\t\t\t\t//check if player is nearby enemy\n\t\t\t\t\t\tif( ninjas[k].isPlayerFound(world, player) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//stab the player and send him back to starting position\n\t\t\t\t\t\t\tplayer.takeLife();\n\t\t\t\t\t\t\tworld[player.getRow()][player.getCol()] = null;\n\t\t\t\t\t\t\tplayer.getLocation(8, 0);\n\t\t\t\t\t\t\tsuccess = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn success;\n\t}", "title": "" }, { "docid": "9aa11bb5217ee237dd566ae3184a3cc7", "score": "0.63984734", "text": "public boolean oWins() {\n\t\tif (checkWinner(LETTER_O) == 1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "957f6e9efbe09caf90dcd8f5f9592654", "score": "0.639282", "text": "private void isGameOver() {\n int coordPlayerX = game.getPlayer().getX();\n int coordPlayerY = game.getPlayer().getY();\n\n if (coordPlayerX == game.getDoor().getX() && coordPlayerY == game.getDoor().getY()) {\n game.resetGame();\n globalView.resetView();\n stopMovements();\n try {\n stage.setScene(null);\n start(this.stage);\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "79dcdc85b91d54cf166f5b1ed8d4b610", "score": "0.6379135", "text": "public boolean gameOver(){\n\t\tboolean over = false;\t\t\n\t\t//if spots greater than the max row have a 1\n\t\t\t//over = true;\n\t\t\tconfirmGameOver();\n\t\t\t//clear out grid\n\t\t\t//change activity\n\t\treturn over;\n\t}", "title": "" }, { "docid": "493e270d4d1d791976144ee932bdc85e", "score": "0.6377098", "text": "@Override\r\n\tpublic boolean playerWon() {\r\n\t\treturn true;\r\n\t\t//IF LA PELOTA ENTRO EN EL ARCO\r\n\t}", "title": "" }, { "docid": "2d9f357756d5ec4283c1ec814bc99a61", "score": "0.637002", "text": "private static boolean winOrLose(){\n\t\tint x = sum();\n\t\tif (x==7 || x==11) \n\t\t\treturn true; //the player wins\n\t\tif(x==2 || x==3 || x==12) \n\t\t\treturn false; //return nothing, the player loses\n\t\twhile(true){\n\t\t\tint y = sum();\n\t\t\tif (y==7) return false;\n\t\t\tif (y==x) return true;\n\t\t}\t\n\t}", "title": "" }, { "docid": "d6d358bdc541e7795be635dc2935af0a", "score": "0.6364606", "text": "private boolean checkIfAnyoneHasWon() {\n for (Player player : players) {\n if (player.getSizeOfCards() == 0) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "0471aa238b9f81bd9743847f80079eed", "score": "0.6363006", "text": "boolean hasGameOver();", "title": "" }, { "docid": "d97c4ab6f07297d6589357b7cbbd1bc1", "score": "0.63532007", "text": "public abstract boolean isWinning();", "title": "" }, { "docid": "a55bfbd69432c1831df776c6bcddfd0e", "score": "0.63495165", "text": "public boolean GameOverPlayerWins()\r\n\t{\r\n\t\tfor (int i = 0; i < 10; i++)\r\n\t\t\tfor (int j = 0; j < 10; j++)\r\n\t\t\t{\r\n\t\t\t\t/* if any of the ship has left */\r\n\t\t\t\tif ((AIships[i][j] - 'A' >= 0 && AIships[i][j] - 'A' <= 3) || AIships[i][j] - 'A' == 18)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "1105d1ab030457f97cbb6d3e2d3cd719", "score": "0.634406", "text": "private boolean isOverDefaultEuro() {\n boolean isOver = true;\n //Adjacent spaces to a marble.\n Marble aRight;\n Marble aLeft;\n Marble aTop;\n Marble aBot;\n int i;\n int j;\n int dim = determineDim();\n\n for (i = 0; i < dim; i++) {\n for (j = 0; j < dim; j++) {\n if (this.board[i][j].equals(Marble.INPLAY)) {\n\n if ((i > 0 && i < dim - 1) && (j > 0 && j < dim - 1)) {\n\n aRight = this.board[i][j + 1];\n aLeft = this.board[i][j - 1];\n aTop = this.board[i - 1][j];\n aBot = this.board[i + 1][j];\n\n if ((aRight.equals(Marble.INPLAY) ^ aLeft.equals(Marble.INPLAY)) || (\n aTop.equals(Marble.INPLAY) ^ aBot.equals(Marble.INPLAY))) {\n\n isOver = false;\n }\n }\n\n if ((i == 0 || i == dim - 1) && j != 0 && j < dim - 1) {\n\n aRight = this.board[i][j + 1];\n aLeft = this.board[i][j - 1];\n\n if ((aRight.equals(Marble.INPLAY) ^ aLeft.equals(Marble.INPLAY))\n && ((aRight != Marble.OOFB) && (aLeft != Marble.OOFB))) {\n\n isOver = false;\n }\n }\n\n if ((j == 0 || j == dim - 1) && i != 0 && i < dim - 1) {\n\n aTop = this.board[i - 1][j];\n aBot = this.board[i + 1][j];\n\n if ((aTop.equals(Marble.INPLAY) ^ aBot.equals(Marble.INPLAY)) && ((aTop != Marble.OOFB)\n && (aBot != Marble.OOFB))) {\n\n isOver = false;\n }\n }\n }\n }\n }\n\n return isOver;\n }", "title": "" }, { "docid": "71437c30ffb4879465bc92f3bb9a76b3", "score": "0.63260126", "text": "public void isWon() {\n\t\t\n\t\tif (iscontinue == false) {\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\t\tif (released[i][j] == true && mines[i][j] == 1) {\n\t\t\t\t\t\t\tlose = true;\n\t\t\t\t\t\t\tisHappy = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (iscontinue == true) {\n\t\t\tlose = false;\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\t\tif (released[i][j] == true && mines[i][j] == 1) {\n\t\t\t\t\t\t\tisHappy = false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tif (currentMines == 0 || releasedBoxes() + allMines() == width*height) {\n\t\t\twin = true;\n\t\t}\n\t}", "title": "" }, { "docid": "277927eb77691938ee5091c35de320f1", "score": "0.63063097", "text": "private boolean endGame() {\n if (checkIfAnyoneHasWon()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "b9308975f14232c79338013400c3c093", "score": "0.6301395", "text": "protected abstract boolean isGameOver();", "title": "" }, { "docid": "e578dcffd38a23cdb278f6377147797a", "score": "0.6300959", "text": "boolean isGameOver() {\n //count the number of ships sunk (updated number)\n shipsSunk = this.getShipsSunk();\n if (shipsSunk == 10) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "97c7466f14bcf24916cc749c871e9b77", "score": "0.630087", "text": "private boolean isGameOver(int spot){\n\n\n //It takes more than 4 movements to decide a winner\n if(board.getAvailableSpots().size() >= 5 )\n return false;\n\n MarkTypeEnum markToCheck = board.getMark(spot);\n\n return checkForHorizontalWin(spot, markToCheck) || checkVerticalWin(spot, markToCheck) || checkForDiagonalWin(spot, markToCheck) || board.getAvailableSpots().isEmpty();\n\n\n }", "title": "" }, { "docid": "a7b53dd2d3ffabe2e46b172d73ab4ebd", "score": "0.6297591", "text": "boolean isGameOver();", "title": "" }, { "docid": "a7b53dd2d3ffabe2e46b172d73ab4ebd", "score": "0.6297591", "text": "boolean isGameOver();", "title": "" }, { "docid": "4641b9e2d50f1d9adcec0ccdaeea0557", "score": "0.6294867", "text": "public boolean isGameOver() {\n\t\tif (reserves[currentPlayer].size() > 0) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int r = 0; r < BOARD_WIDTH; r++) {\n\t\t\tfor (int c = 0; c < BOARD_WIDTH; c++) {\n\t\t\t\tDeque<Integer> pile = board[r][c];\n\t\t\t\tif (pile == null || pile.isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint top = pile.removeBack();\n\t\t\t\tpile.addBack(top);\n\t\t\t\tif (top == currentPlayer) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "22db153ad355d06b4f7615f2821c2dca", "score": "0.6290024", "text": "private boolean checkEndOfGame() {\n boolean ret = false;\n if (this.board.getPlayer1Square() != null && this.board.getPlayer2Square() != null) {\n if (this.board.getPlayer1Square().getX() == 8) {\n ret = true;\n } else if (this.board.getPlayer2Square().getX() == 0) {\n ret = true;\n }\n if (nbPlayer == 4) {\n if (this.board.getPlayer3Square().getY() == 8) {\n ret = true;\n } else if (this.board.getPlayer4Square().getY() == 0) {\n ret = true;\n }\n }\n }\n return ret;\n }", "title": "" }, { "docid": "0dd9ec19d9ca59f8634a96e87ed67afe", "score": "0.6289893", "text": "private int checkStones() {\r\n\t\t\r\n\t\treturn(player.win());\r\n\t}", "title": "" }, { "docid": "f89ec40de8bf420a9c3a25993956c66a", "score": "0.6287579", "text": "public boolean isGameOver(){\n\t\t\n\t\tboolean empty;\n\t\t\t\t//check player tow's pits\n\t\t \tif(board[0][0].getStones()==0 && board[0][1].getStones()==0 && board[0][2].getStones()==0 \n\t\t \t\t\t&&board[0][3].getStones()==0&&board[0][4].getStones()==0 && board[0][5].getStones()==0 ){\n\t\t \t\tempty=true;\n\t\t \t\treturn empty;\n\t\t \t}\n\t\t \t//check player one's pits\n\t\t \telse if(board[1][0].getStones()==0 && board[1][1].getStones()==0 && board[1][2].getStones()==0 \n\t\t \t\t\t&&board[1][3].getStones()==0&&board[1][4].getStones()==0 && board[1][5].getStones()==0){\n\t\t \t\tempty=true;\n\t\t \t\treturn empty;\n\t\t \t}\n\t\treturn false; //both full\n\t}", "title": "" }, { "docid": "d70f5756f3a29593281cd128651281d1", "score": "0.6284808", "text": "private boolean victory() {\n return isPointInCircle(playingBall.getCenter(), getEndHole());\n }", "title": "" }, { "docid": "17ec174073e0d6191d455520eca9ad82", "score": "0.62827617", "text": "public boolean isGameOver() {\r\n\t\t\r\n\t\t//A game is won by the first player to have won at least four points in total and at least two points more than the opponent.\r\n\t\tif ( Math.abs(scorePlayerA-scorePlayerB) >= 2 && //player with a diference of 2 points\r\n\t\t\t\t(scorePlayerA >= 4 || scorePlayerB >= 4)) { //player with at least 4 point more\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "66756a7ceedc835f72cc1ba9012af13a", "score": "0.6278867", "text": "public boolean isMultiGameOver() {\n for (int i = 0; i < no_players; i++) {\n if (getMultiGameWinner()[i] == Types.WINNER.NO_WINNER) return false;\n }\n return true;\n }", "title": "" }, { "docid": "0a240e81ffbf8ae02bd93c7f935bc874", "score": "0.62757957", "text": "boolean isUrgent();", "title": "" }, { "docid": "33599877408ba32aa44ec8cda991b357", "score": "0.62725073", "text": "public boolean winner() {\r\n return !getCurrentLevel().isPlayableLevel() && currentPoints >0;\r\n }", "title": "" }, { "docid": "44e0a4dd89c091ae32e61e2da8f22276", "score": "0.62719715", "text": "public boolean isWon(){\n return player.hasWon();\n }", "title": "" }, { "docid": "373476b50ca3350fa71a921239c520cf", "score": "0.62716126", "text": "private void checkGameWin() {\n\t\t\n\t}", "title": "" }, { "docid": "680ab98812cd780329669c7a6f9f83dc", "score": "0.6270239", "text": "public boolean winningState(int player){\r\n int count = 0;\r\n int count_opposite = 0;\r\n int opp = player==1? 2: 1;\r\n for(int i=0; i<rows; i++){\r\n for(int j=0; j<columns; j++){\r\n if((grid[i][j] ==1 && i==0) || ((grid[i][j]==2) && i==2)){\r\n return true;\r\n }\r\n if(grid[i][j] == player){\r\n if(checkPosibleMove(player, i, j)){\r\n count += 1;\r\n }\r\n }\r\n else if(grid[i][j] == opp) count_opposite += 1;\r\n }\r\n }\r\n\r\n return count < 1 || count_opposite < 1;\r\n }", "title": "" }, { "docid": "8d64aaf8760bd9d42c1c6d8d351f98c8", "score": "0.6264719", "text": "public boolean isGameOver() {\r\n return balls == 0;\r\n }", "title": "" }, { "docid": "19d218f3198af702ac3d7c5268091f26", "score": "0.62624687", "text": "public final boolean isGameOver() { \r\n\t\tif (isFilled() && isCorrect()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\t\r\n\t}", "title": "" }, { "docid": "df6c3f7e36d1117d7ab3bef769b87ae6", "score": "0.62576795", "text": "public boolean hasWon() {\r\n\t\tfor (Cell x : this.allCells)\r\n\t\t{\r\n\t\t\tif (x.value == this.goalValue)\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f60715fa6616d6769f1a24e4384a03c0", "score": "0.62476647", "text": "@Override\n public boolean isGameOver()\n {\n boolean winByPartialBoard = getWinner() != EMPTY_PLAYER_ID;\n return winByPartialBoard || isGameBoardFull();\n }", "title": "" }, { "docid": "81a2db9f30598e9111fad3964ea4bb8c", "score": "0.6245506", "text": "public boolean hasWon() {\n return getKorgools() >= KORGOOLS_TO_WIN;\n }", "title": "" }, { "docid": "7b82a666301f9b6a1f9526d4812f0fb1", "score": "0.62454325", "text": "public boolean isGameOver() {\n\t\tif(board1.areAllShipsSunk() || board2.areAllShipsSunk()) {\n\t\t\tprintWinner();\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b930e78b6ee46a30a90accc80ec5f6c8", "score": "0.6244562", "text": "public boolean checkWinner(Player player);", "title": "" }, { "docid": "b79b643d7e9129686f0ba6f9c060b92b", "score": "0.6239084", "text": "private boolean gameOver() {\n\t\tif (state == GameState.PLAYED) ///если статус еще играем\n\t\t\treturn false;//то продолжить\n\t\tstart(); //если нет, то перезапуск\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a2019c3a9494dfb25b362a2e7d236339", "score": "0.6234097", "text": "public static boolean gameOver() {\n if(handScore(UserHand) > 21) {\n return true;\n }\n if(dealerScore(DealerHand) > 21) {\n return true;\n }\n if(handScore(UserHand) == 21) {\n return true;\n }\n if(handScore(DealerHand) == 21) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "2a0d7133ac16c08a2706a0ef7c84731e", "score": "0.6228392", "text": "private boolean playerHasALegalMove(int player) {\n for (Coord c : getPlayerCoordSet(player)) {\n for (Coord neighbor : Coordinates.getNeighbors(c)) {\n if (coordIsEmpty(neighbor) && citadelRules(c, neighbor)) {\n return true; \n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "9f8118096112b5949fedd9c69dce2b40", "score": "0.62275624", "text": "private void checkGameOver()\n {\n //Get a reference to your world\n FlappyWorld world = (FlappyWorld)getWorld();\n Pipe hitting = (Pipe)getOneIntersectingObject(Pipe.class);\n \n if( getY() >= world.getHeight() - 1 || hitting != null )\n {\n world.addObject( new GameOver(), world.getWidth()/2, world.getHeight()/2 );\n losingAnimation();\n world.updateLeaderBoard();\n }\n }", "title": "" }, { "docid": "17b4cfccdc86c24af29f9063ecf50bdc", "score": "0.62263817", "text": "private boolean hasPlayerWon(Player player) {\n int playerPosition = player.getCurrentPos();\n int winningPosition = board.getSize();\n return playerPosition == winningPosition; // A player wins if it exactly reaches the position 100 and the game ends there.\n }", "title": "" }, { "docid": "8f80c967d017b420c9d0c7966edb46ed", "score": "0.6220058", "text": "public boolean hasWonGame() {\n\t\tint[][] tiles = getOccupiedTiles(\n\t\t\t\t(int)getMazub().getXPosition(),\n\t\t\t\t(int)getMazub().getYPosition(),\n\t\t\t\t(int)getMazub().getXPosition() + getMazub().getSize()[0],\n\t\t\t\t(int)getMazub().getYPosition() + getMazub().getSize()[1]);\n\t\tfor(int i = 0; i < tiles.length; i++) {\n\t\t\tif ((getTargetTileX() == tiles[i][0]) && (getTargetTileY() == tiles[i][1]))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "791fdcd0eb026a4c5c50eec3b78296a1", "score": "0.621791", "text": "private void checkEndState(){\n if (mCurrentGuessNumber[0] < mCurrentGuessNumber[1]){\n //Player 1 win\n mWinner = 1;\n } else if (mCurrentGuessNumber[1] < mCurrentGuessNumber[0]){\n //Player 2 win\n mWinner = 2;\n } else {\n //Tie\n mWinner = 3;\n }\n }", "title": "" }, { "docid": "4ae7084dd237a29b2177e4fe7286e9ba", "score": "0.62176895", "text": "protected DuelResult checkEndDuelCondition()\n\t{\n\t\t// Both players are offline.\n\t\tif (!_playerA.isOnline() && !_playerB.isOnline())\n\t\t\treturn DuelResult.CANCELED;\n\t\t\n\t\t// Player A is offline.\n\t\tif (!_playerA.isOnline())\n\t\t{\n\t\t\tonPlayerDefeat(_playerA);\n\t\t\treturn DuelResult.TEAM_1_SURRENDER;\n\t\t}\n\t\t\n\t\t// Player B is offline.\n\t\tif (!_playerB.isOnline())\n\t\t{\n\t\t\tonPlayerDefeat(_playerB);\n\t\t\treturn DuelResult.TEAM_2_SURRENDER;\n\t\t}\n\t\t\n\t\t// Duel surrender request.\n\t\tif (_surrenderRequest != 0)\n\t\t\treturn (_surrenderRequest == 1) ? DuelResult.TEAM_1_SURRENDER : DuelResult.TEAM_2_SURRENDER;\n\t\t\n\t\t// Duel timed out.\n\t\tif (getRemainingTime() <= 0)\n\t\t\treturn DuelResult.TIMEOUT;\n\t\t\n\t\t// One of the players is declared winner.\n\t\tif (_playerA.getDuelState() == DuelState.WINNER)\n\t\t\treturn DuelResult.TEAM_1_WIN;\n\t\t\n\t\tif (_playerB.getDuelState() == DuelState.WINNER)\n\t\t\treturn DuelResult.TEAM_2_WIN;\n\t\t\n\t\tif (!_partyDuel)\n\t\t{\n\t\t\t// Duel was interrupted e.g.: player was attacked by mobs / other players\n\t\t\tif (_playerA.getDuelState() == DuelState.INTERRUPTED || _playerB.getDuelState() == DuelState.INTERRUPTED)\n\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\n\t\t\t// Players are too far apart.\n\t\t\tif (!_playerA.isInsideRadius(_playerB, 2000, false, false))\n\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\n\t\t\t// One of the players is engaged in PvP.\n\t\t\tif (_playerA.getPvpFlag() != 0 || _playerB.getPvpFlag() != 0)\n\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\n\t\t\t// One of the players is in a Siege, Peace or PvP zone.\n\t\t\tif (_playerA.isInsideZone(ZoneId.PEACE) || _playerB.isInsideZone(ZoneId.PEACE) || _playerA.isInsideZone(ZoneId.SIEGE) || _playerB.isInsideZone(ZoneId.SIEGE) || _playerA.isInsideZone(ZoneId.PVP) || _playerB.isInsideZone(ZoneId.PVP))\n\t\t\t\treturn DuelResult.CANCELED;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (_playerA.getParty() != null)\n\t\t\t{\n\t\t\t\tfor (Player partyMember : _playerA.getParty().getMembers())\n\t\t\t\t{\n\t\t\t\t\t// Duel was interrupted e.g.: player was attacked by mobs / other players\n\t\t\t\t\tif (partyMember.getDuelState() == DuelState.INTERRUPTED)\n\t\t\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\t\t\n\t\t\t\t\t// Players are too far apart.\n\t\t\t\t\tif (!partyMember.isInsideRadius(_playerB, 2000, false, false))\n\t\t\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\t\t\n\t\t\t\t\t// One of the players is engaged in PvP.\n\t\t\t\t\tif (partyMember.getPvpFlag() != 0)\n\t\t\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\t\t\n\t\t\t\t\t// One of the players is in a Siege, Peace or PvP zone.\n\t\t\t\t\tif (partyMember.isInsideZone(ZoneId.PEACE) || partyMember.isInsideZone(ZoneId.PEACE) || partyMember.isInsideZone(ZoneId.SIEGE))\n\t\t\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (_playerB.getParty() != null)\n\t\t\t{\n\t\t\t\tfor (Player partyMember : _playerB.getParty().getMembers())\n\t\t\t\t{\n\t\t\t\t\t// Duel was interrupted e.g.: player was attacked by mobs / other players\n\t\t\t\t\tif (partyMember.getDuelState() == DuelState.INTERRUPTED)\n\t\t\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\t\t\n\t\t\t\t\t// Players are too far apart.\n\t\t\t\t\tif (!partyMember.isInsideRadius(_playerA, 2000, false, false))\n\t\t\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\t\t\n\t\t\t\t\t// One of the players is engaged in PvP.\n\t\t\t\t\tif (partyMember.getPvpFlag() != 0)\n\t\t\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\t\t\n\t\t\t\t\t// One of the players is in a Siege, Peace or PvP zone.\n\t\t\t\t\tif (partyMember.isInsideZone(ZoneId.PEACE) || partyMember.isInsideZone(ZoneId.PEACE) || partyMember.isInsideZone(ZoneId.SIEGE))\n\t\t\t\t\t\treturn DuelResult.CANCELED;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn DuelResult.CONTINUE;\n\t}", "title": "" }, { "docid": "22879fcf5e071f3854af36d1f1c836c9", "score": "0.621154", "text": "private void gameOverCheck() {\n\t\t//This means the piece cannot fall from \n\t\t//its initial position, ending the game.\n\t\tif (pieceStopsFalling()) {\n\t\t\tgameover = true;\n\t\t}\n\t}", "title": "" }, { "docid": "ee095724979e4815a29e5c4e560ba16d", "score": "0.620963", "text": "public boolean isOnline(){\n\t\treturn getPlayer() != null;\n\t}", "title": "" }, { "docid": "b865bfa538f9b9a56df2f0d50c3a4467", "score": "0.6209213", "text": "boolean gameOver();", "title": "" }, { "docid": "73e161d65a443608a17e281aeb87b7be", "score": "0.619952", "text": "public boolean seesPlayer() {\r\n boolean result = false;\r\n for (int i = 0; i < 5; i++) {\r\n if (_gameMap.isEntityAtTile(_gameMap.player, (int)getCoordinates().x + i * (int)dir.x, (int)getCoordinates().y + i * (int)dir.y))\r\n result = true;\r\n\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "489672db4cd6e4a321635bc327d6f8f2", "score": "0.61992824", "text": "abstract public boolean isGameOver();", "title": "" }, { "docid": "c6636d2e5da8d271b05577c735c42b2a", "score": "0.61832714", "text": "private boolean checkWin() {\n\t\tif (points == pellets){\n\t\t\tSystem.out.println(\"You Win!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tif( immune == false) {\n\t\tif (g1.getRow()==pRow && g1.getCol() == pCol || g2.getRow() == pRow && g2.getCol() == pCol || g3.getRow() == pRow && g3.getCol() == pCol || g4.getRow()==pRow &&g4.getCol()==pCol) {\n\t\t\tSystem.out.println(\"You Lose!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e863613f50720684283becfb33fe4d9a", "score": "0.61789644", "text": "private boolean toContinue() {\n\t\tif (board.xWins() == true || board.oWins() == true || board.isFull() == true)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "90c48a9469d6f64405073fa57ee3d7d3", "score": "0.6170981", "text": "private boolean checkIsAbleToMove() {\n if (!isMowerOn) return false;\n if (stallTurn > 0 || isOnPuppy) return false;\n return true;\n\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "b6ed44519c09807ca63b8426c61f165e", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the number of rows\");\r\n\t\tint rows = input.nextInt();\r\n\t\tSystem.out.println(\"Enter the number of columns\");\r\n\t\tint columns = input.nextInt();\r\n\t\tint mult_array[][] = new int [rows] [columns];\r\n\t\tfor (int i = 0; i < rows; i++)\r\n\t\t{\r\n\t\t for(int j = 0; j < columns; j++) {\r\n\t\t System.out.println(\"Row [\"+i+\"]: Column \"+j+\" :\");\r\n\t\t mult_array[i][j] = input.nextInt(); \r\n\t\t }\r\n\t\t}\r\n\t\tfor (int[] x : mult_array) {\r\n\t\t\tfor (int y : x) {\r\n\t\t\t\tSystem.out.print(y + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" \");\r\n\t\t}\r\n\t\tsumOfRows(mult_array, rows, columns);\r\n\t\tsumOfColumns(mult_array, rows, columns);\r\n\t\tdivideBy3(mult_array, rows, columns);\r\n\t\tdivideBy5(mult_array, rows, columns);\r\n\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.66538197", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.66538197", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.6646134", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5314003d8592219f71035b81985fabc0", "score": "0.64631", "text": "@Override\n\tpublic void roule() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.6461734", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "f9de8c9acb961a9d05ed00de5fe361e7", "score": "0.60638905", "text": "@Override\n\tpublic void seRetrage() {\n\t\t\n\t}", "title": "" }, { "docid": "483ae2cb94563f8e11864a532e44b464", "score": "0.606149", "text": "@Override\r\n public void perturb() {\n \r\n }", "title": "" }, { "docid": "e41230eaa4480036f1db3ae4856b5e2c", "score": "0.6048755", "text": "@Override\n\tpublic void evoluer() {\n\t\t\n\t}", "title": "" }, { "docid": "1fd4f5b0b471084e004373c89c1cf248", "score": "0.6040993", "text": "@Override\r\n\tpublic void sen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "432a53d7cc7bff50c3cce7662418fe22", "score": "0.60228735", "text": "private static void daelijeom() {\n\t\t\n\t}", "title": "" }, { "docid": "feb1a9485d06df38283881186fb528a9", "score": "0.6014977", "text": "@Override\n \tprotected void initialize() {\n \n \t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.6005143", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.59771466", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "f3ea867fdaa4b61546bfc393614a093c", "score": "0.59687567", "text": "@Override\n\tpublic void setingInicial() {\n\t\t\n\t}", "title": "" }, { "docid": "3211287bc24304a8ca2975647e8a262e", "score": "0.59549016", "text": "public void mo1702b() {\n }", "title": "" }, { "docid": "e98e1f8ddb7a94a5d95c29c94232f737", "score": "0.5943817", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.5926535", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.5925673", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "6a8c6480f9fa5ab89d0437d00ffffccc", "score": "0.591947", "text": "@Override\n public void tirer() {\n\n }", "title": "" }, { "docid": "8f8a1c1dfa100614be8cac1247e068d5", "score": "0.59192646", "text": "@Override\r\n\t\t\tpublic void work() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "619a28ba3c7707bdf8bb1451d5c3d12b", "score": "0.5910928", "text": "public void mo25069a() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "3e6e2e657db69bfc88c40c8467801266", "score": "0.5899844", "text": "@Override\r\n\tpublic void ben() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1134c4caabd33b9bbd414763740fddde", "score": "0.5896682", "text": "@Override\n\tpublic void respirar() {\n\n\t}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5896488", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "1dc1426b3b1c079ac18377166a6b34d3", "score": "0.5893354", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "f737e2251cf43d326f43b44297696e55", "score": "0.58891016", "text": "@Override\n\tpublic void patrol() {\n\n\t}", "title": "" }, { "docid": "de8c2aa495b8cdade7e8895e58745ea2", "score": "0.5887025", "text": "public void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "13e4409784fd6f872b474e6effe9726e", "score": "0.5879506", "text": "@Override\n protected void initialization() {\n\n\n\n }", "title": "" }, { "docid": "bafce2e94d56e61baeadcb37047f6035", "score": "0.5858384", "text": "@Override\n\tprotected void postprocess() {\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.5853263", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.5853263", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "cdf2a119ee69429ad4420d45c29db1b6", "score": "0.5849137", "text": "@Override\n\tpublic void netword() {\n\t\t\n\t}", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.5848443", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.584121", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.584121", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.58367133", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.58367133", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "6ed3e363c02164bd00163fa46e2c48c2", "score": "0.58366287", "text": "@Override\n public void init_moduule() {\n \n }", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5829954", "text": "@Override\n\tpublic void euphoria() {\n\t\t\n\t}", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5829954", "text": "@Override\n\tpublic void euphoria() {\n\t\t\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "b04ed49986fb3f4321a90ec19ab7f86d", "score": "0.57759553", "text": "@Override\n public void alistar() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "10e00e5505d97435b723aeadb7afb929", "score": "0.57712233", "text": "@Override\n\tpublic void pintar2() {\n\t\t\n\t}", "title": "" }, { "docid": "683eea6c39ec4e6df90f6be05200559d", "score": "0.5769485", "text": "@Override\r\n public void confer(){\n \r\n }", "title": "" }, { "docid": "728d084a23664ecf9b5c04acb6367b9c", "score": "0.5769356", "text": "@Override\r\n\tpublic void descarnsar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "359987993ad84757f9d7a12eaf38d2d7", "score": "0.5769273", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "0e6111ae009ad752a364e5e9fb168e98", "score": "0.5768801", "text": "@Override\n\tpublic void volumne() {\n\t\t\n\t}", "title": "" }, { "docid": "3f651ef5a6fad17e313e8da4ea72b6e3", "score": "0.57645357", "text": "@Override\n\tpublic void CT() {\n\t\t\n\t}", "title": "" }, { "docid": "615018f0186427ab904e872db6726b2d", "score": "0.5759138", "text": "@Override\n public void init()\n {\n \n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e634836bc1d61a011e04bfb67a971792", "score": "0.5745885", "text": "@Override\r\n\tpublic void sair() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a7cff18dc205a0d79dbe54bb988e6894", "score": "0.57428306", "text": "public void emettreSon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "ac5a7a92eda66d2b7ef40199230fa4af", "score": "0.5731894", "text": "@Override\n\tpublic void arbeiteInPizzeria() {\n\n\t}", "title": "" }, { "docid": "d1c2c284b75d7d46145b6f407496cd96", "score": "0.5725441", "text": "@Override\n\t\tprotected void initParameters() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "65022f0bb57de78da8518cd156b102e6", "score": "0.57112384", "text": "private void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "216da885329e8d80cdc3490fda895c11", "score": "0.57087225", "text": "@Override\n\tpublic void yaz1() {\n\t\t\n\t}", "title": "" }, { "docid": "3c6f91c038ca7ffdab72b5c233b827c5", "score": "0.5705329", "text": "@Override\n\tprotected void initMethod() {\n\t}", "title": "" }, { "docid": "d3ea98d4cf6d33f166c8de2a1f7ab5a5", "score": "0.5697742", "text": "@Override\r\n\tpublic void Collusion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3ea98d4cf6d33f166c8de2a1f7ab5a5", "score": "0.5697742", "text": "@Override\r\n\tpublic void Collusion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f3e16954465fbae384d88f411211419", "score": "0.56972444", "text": "@Override\r\n public int E_generar() {\r\n return 0;\r\n }", "title": "" }, { "docid": "365a661b2084f764f5e458915ff735ac", "score": "0.56864643", "text": "@Override\n public int getMunition() {\n return 0;\n }", "title": "" }, { "docid": "40539b782464082aab77fae6b047eade", "score": "0.5681723", "text": "@Override\n\tprotected int get_count() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.56774884", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5f628d368579dd40ef68362831006940", "score": "0.56769013", "text": "@Override\n\tpublic void fahreFahrzeug() {\n\n\t}", "title": "" }, { "docid": "5ae17f2516c21590c850e6758048effe", "score": "0.56625473", "text": "@Override\n public int getID()\n {\n return 0;\n }", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.5660459", "text": "public void mo3639d() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "ad3f92e6f8180cd7f01d53f1f79571c7", "score": "0.0", "text": "@Override\n\t\tpublic int getHashCode() {\n\t\t\treturn this.dateString.length();\n\t\t}", "title": "" } ]
[ { "docid": "9208773f8d675a45ef2786d0cb668514", "score": "0.654538", "text": "@Override\n\tpublic void addiion() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6490277", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "49f82de84791f2d90dd9ea5cce118bf5", "score": "0.6314085", "text": "@Override\r\n\tpublic void ader() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a4dcc093d4ff3452de6ac444aececdf1", "score": "0.61316955", "text": "public void ausgabeZugFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9144a32a2cd5a72f1d1380aa1f1d5f09", "score": "0.6092728", "text": "public void mo5774g() {\n }", "title": "" }, { "docid": "19def8ee9a9cacfd168fa29cb08dcee2", "score": "0.6080876", "text": "@Override\n\tpublic void vaccination()\n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6071615", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "99bd004e44dd7019c8ef01a44a9b3eab", "score": "0.6067535", "text": "@Override\r\n\tpublic void breah() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60653234", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60653234", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "db1df23a1dd6753a6267bb04b332bf85", "score": "0.6054585", "text": "public void mo12026a() {\n }", "title": "" }, { "docid": "e46610ee0bd6f029738af766fdc21054", "score": "0.59955573", "text": "@Override\r\n\tpublic void vender() {\n\r\n\t}", "title": "" }, { "docid": "d0738cb6f0934e8c2706f8cceaa57916", "score": "0.5969007", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "15d6b98b279429b150a682bd6349a355", "score": "0.59551615", "text": "@Override\n\tpublic void fertilise() {\n\t\t\n\t}", "title": "" }, { "docid": "cce0c669162940d6a1e5e611c61410b3", "score": "0.59530795", "text": "@Override\r\n\tpublic void getDirect() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8c3354ae13a827b8d836df56c4c510d8", "score": "0.59508646", "text": "@Override\n protected void init() {\n\n\n }", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b9e40f8e651069ba40a35ef1db458ce9", "score": "0.59202784", "text": "@Override\r\n\tpublic void tyres() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cad86041007c052466e6525bc7dcd8c8", "score": "0.5901697", "text": "@Override\r\n\tpublic void trasation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5d9f4634054e808deccea8846817de31", "score": "0.588331", "text": "@Override\r\n\tpublic void vola() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d0b7e3f5544447dc12bf9d1bad50a34b", "score": "0.5864994", "text": "public void mo40391a() {\n }", "title": "" }, { "docid": "ff6eb8b61c178f23b971412958c256c8", "score": "0.58641464", "text": "@Override\n\tpublic void ate() {\n\t\t\n\t}", "title": "" }, { "docid": "c64411f2d7b4359b656294e598122466", "score": "0.58560646", "text": "public void mo1294d() {\n }", "title": "" }, { "docid": "d29a027cc93fdf42445fadb149d49da1", "score": "0.5855024", "text": "public void mo1184a() {\n }", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.5849603", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.5842969", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "d48ac35465c27e31c1f21be54513f8f9", "score": "0.58330834", "text": "@Override\r\n\tpublic void pirntA() {\n\r\n\t}", "title": "" }, { "docid": "ad7fe50be28bd3c3d7952d71f935957c", "score": "0.5829554", "text": "@Override\n\t\t\tpublic void work() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "63519e7beede7b06dcebbca99514f5c5", "score": "0.57981986", "text": "@Override\n\tprotected void salirsePorXIzq() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "53519f34ca6dc9b2249e5bf2a0182992", "score": "0.5762815", "text": "@Override\n\tpublic void Avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d92a1f963aafb73b8192e677b33d128f", "score": "0.57472074", "text": "@Override\n\tpublic void postConstruct() {\n\n\t}", "title": "" }, { "docid": "e3fcb762f77cfc9168a1bc0d865ded42", "score": "0.574678", "text": "@Override\n\tprotected void crier() {\n\t\t\n\t}", "title": "" }, { "docid": "770cd968ebdff1a71e678a800372d8c6", "score": "0.57460904", "text": "@Override\r\n\tpublic void afisareDatepers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "260bb3e9c481a3e03724071c87239711", "score": "0.574225", "text": "private void m11272q() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "28872bba7a5c17cad13c73f21624cabc", "score": "0.57069", "text": "@Override\n\tpublic void CreateRs() {\n\t\t\n\t}", "title": "" }, { "docid": "3c6f91c038ca7ffdab72b5c233b827c5", "score": "0.5705329", "text": "@Override\n\tprotected void initMethod() {\n\t}", "title": "" }, { "docid": "3d6cdc1afb7138b4083b3a4a65f01db1", "score": "0.5702478", "text": "public void mo10296b() {\n }", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5683637", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "cc07b6e925fefd34942bfb2fd21e818a", "score": "0.56719893", "text": "public void ausgabeFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "f5766311eecc43fe076ad8e87f995b64", "score": "0.56654924", "text": "@Override\r\n\tvoid erstelleGebäude() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9b8a44f27329437a5b3f89427b894c91", "score": "0.56609863", "text": "public void mo36058a() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "3a2534d5fb04e020e5849904bbe4720a", "score": "0.56515974", "text": "@Override\r\n\tprotected void geJiage() {\n\t\tsuper.geJiage();\r\n\t}", "title": "" }, { "docid": "02e1bc278c2b2caf23edb429d02b85c0", "score": "0.56482685", "text": "@Override\n\tprotected void initialise() {\n\t\n }", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "674d6b47736013d84190eed15130aad6", "score": "0.5641662", "text": "@Override\n\tpublic void obtenerPrecalculados() {\n\t\t\n\t}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.56412077", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.56412077", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "0ba831513140db25039c80559d16603f", "score": "0.5636391", "text": "@Override\n \tpublic void process_6() {\n \n \t}", "title": "" }, { "docid": "af9170e83e6f26bfa1f5e7b9cdbc491a", "score": "0.5623968", "text": "@Override\r\n public void initData() {\n\r\n }", "title": "" }, { "docid": "af9170e83e6f26bfa1f5e7b9cdbc491a", "score": "0.5623968", "text": "@Override\r\n public void initData() {\n\r\n }", "title": "" }, { "docid": "eb2ec3c736f6af0e79bde71492b6d2dd", "score": "0.56177896", "text": "@Override\n public int arność() {\n return 2;\n }", "title": "" }, { "docid": "870d28e8c0326c2e585508a88499e108", "score": "0.5607548", "text": "private void init() {\n\t\t\t\t\n\t\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.56050456", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.56050456", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "d69d82cd185340d978c1a70fb66c01db", "score": "0.560443", "text": "public void mo5773f() {\n }", "title": "" }, { "docid": "ccba64a54b47095e22d528bff878aff1", "score": "0.5600534", "text": "@Override\r\n public String toString()\r\n {\n return null;\r\n }", "title": "" }, { "docid": "c1e6f049bd0a6f8cdd055f88f3b45eaa", "score": "0.5596128", "text": "public void mo80311c() {\n }", "title": "" }, { "docid": "bc4c805ce86377a96c35c50ef04ab983", "score": "0.55958176", "text": "@Override\n\tprotected void initAfterData() {\n\t}", "title": "" }, { "docid": "0d47d46f06beb83b10147b5efbda9e6b", "score": "0.55933857", "text": "@Override\r\n\tpublic void see() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.5592467", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "822226d86d7514db3081754cf8a8d3b3", "score": "0.55916166", "text": "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "fb9a873c01eb354c85aac7a220fbaac2", "score": "0.5588414", "text": "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.55856144", "text": "@Override\n protected void initialize() {\n\n }", "title": "" } ]
a075d0611400416b36ca5caed2d86e62
TomcatArchive Defines a Tomcat Archive.
[ { "docid": "935b9bdeeaa3c08b4c072bc5c213d6c5", "score": "0.46080923", "text": "public TomcatArchive(String name, String shortName, Long size, String checkSum, boolean available) {\n this.name = name;\n this.shortName = shortName;\n this.size = size;\n this.checkSum = checkSum;\n this.available = available;\n }", "title": "" } ]
[ { "docid": "c2073608c392bb2b18321930d4afbdf3", "score": "0.5544356", "text": "protected static void performInstanceArchiveCreation(GenerationLogger GENERATION_LOGGER,\n TomcatInstance tomcatInstance) throws Exception {\n /**\n * Determine if we are to Zip up the created Tomcat Instance.\n */\n if (tomcatInstance.isCompressed()) {\n /**\n * Perform\n */\n if (!TomcatInstanceBuilderHelper.zipFile(GENERATION_LOGGER,\n tomcatInstance.getDestinationFolder().getAbsolutePath()+ File.separator +\n tomcatInstance.referenceTomcatInstanceFolder()+\".zip\",\n tomcatInstance.getDestinationFolder().getAbsolutePath()+ File.separator +\n tomcatInstance.referenceTomcatInstanceFolder())) {\n GENERATION_LOGGER.error(\"Issue Compressing the Generated Instance, please review Generation Logs!\");\n } else {\n /**\n * Now Validate it exists ...\n */\n File newArchiveFile = new File(tomcatInstance.getDestinationFolder().getAbsolutePath()+ File.separator +\n tomcatInstance.referenceTomcatInstanceFolder()+\".zip\");\n if (newArchiveFile.exists()) {\n GENERATION_LOGGER.info(\"Successfully Generated Compressed Archive: \"+\n tomcatInstance.getDestinationFolder().getAbsolutePath()+ File.separator +\n tomcatInstance.referenceTomcatInstanceFolder()+\".zip\");\n /**\n * Now Remove the Exploded Folder ...\n */\n FileUtils.deleteDirectory(new File(tomcatInstance.getDestinationFolder().getAbsolutePath()+\n File.separator + tomcatInstance.referenceTomcatInstanceFolder()));\n } else {\n GENERATION_LOGGER.error(\"Issue Compressing Generated Compressed Archive: \"+\n tomcatInstance.getDestinationFolder().getAbsolutePath()+ File.separator +\n tomcatInstance.referenceTomcatInstanceFolder()+\".zip\");\n }\n }\n }\n }", "title": "" }, { "docid": "017002e7e867182bb98cb69c0a6c3a51", "score": "0.54594225", "text": "@Deployment\n\tprivate static WebArchive createArchive() {\n\t\tfinal WebArchive webArchive = ShrinkWrap.create(WebArchive.class, \"test-aircraft-type-rest.war\");\n\t\twebArchive.addPackages(true, \"com.prodyna.pac.aaa\");\n\t\twebArchive.addAsResource(\"persistence.xml\", \"META-INF/persistence.xml\");\n\t\twebArchive.addAsResource(\"beans.xml\", \"META-INF/beans.xml\");\n\t\twebArchive.as(ExplodedImporter.class).importDirectory(\"../aaa-web/src/main/webapp\");\n\t\twebArchive.addClass(com.prodyna.pac.aaa.rest.RESTActivator.class);\n\t\treturn webArchive;\n\t}", "title": "" }, { "docid": "66e6dc70e51aae1c12177754779b387d", "score": "0.53254735", "text": "@Deployment(testable = true)\n\tpublic static Archive<?> createDeployment() {\n\t\tfinal JavaArchive jarArchive = ShrinkWrap.create(JavaArchive.class, ARCHIVE_NAME + \".jar\");\n\t\tjarArchive.addPackage(TimeoutSingletonEJBTestIT.class.getPackage());\n\n\t\tSystem.out.println(\"archiveContent: \" + jarArchive.toString(true));\n\n\t\treturn jarArchive;\n\t}", "title": "" }, { "docid": "222900f4ff947568f53e72ff555f8e07", "score": "0.52448153", "text": "@Override\n public void createWarArchive(WAR war) {\n String wholeXml = \"<war id='\"+war.getId().toString()+\"'>\"+war.getWebXml()+\"</war>\";\n this.dm.addXML(\"war\", war.getId().toString(),wholeXml);\n \n \n //add METADATA for xml to database\n String metadataXml = \"<metadata war_id='\"+war.getId().toString()+\"' date='\"+war.getTimestamp()\n +\"' fileName='\"+war.getFileName()+\"'>\"+war.getExtract()+\"</metadata>\";\n this.dm.addXML(\"war-metadata\", war.getId().toString(),metadataXml);\n\n }", "title": "" }, { "docid": "820c44659176c04bb3ca0a02ba03be5b", "score": "0.5227768", "text": "public List<BeanDeploymentArchive> getBeanDeploymentArchives();", "title": "" }, { "docid": "697cc6165b6dd95c87f04755a26cfc36", "score": "0.51637566", "text": "@Override\n public void process(Archive<?> applicationArchive, TestClass testClass) {\n if (applicationArchive instanceof WebArchive) {\n WebArchive webArchive = (WebArchive) applicationArchive;\n \n // add requred libraries\n webArchive.addAsLibrary(Maven.withPom(\"pom.xml\").dependency(\"commons-codec:commons-codec:1.6\"));\n \n // add all required packages\n webArchive.addPackage(WarpFilter.class.getPackage());\n webArchive.addPackage(WarpRemoteExtension.class.getPackage());\n webArchive.addPackage(LifecycleManager.class.getPackage());\n webArchive.addPackage(RequestContext.class.getPackage());\n webArchive.addPackage(LifecycleTestDriver.class.getPackage());\n webArchive.addPackage(AssertionRegistry.class.getPackage());\n \n // add all required classes\n webArchive.addClasses(SerializationUtils.class, ServerAssertion.class);\n \n // register remote extension\n webArchive.addAsServiceProvider(RemoteLoadableExtension.class, WarpRemoteExtension.class);\n \n // add all Arquillian's auxilliary archives\n List<Archive<?>> auxiliarryArchives = new ArrayList<Archive<?>>();\n Collection<AuxiliaryArchiveAppender> archiveAppenders = serviceLoader.get().all(AuxiliaryArchiveAppender.class);\n for (AuxiliaryArchiveAppender archiveAppender : archiveAppenders) {\n auxiliarryArchives.add(archiveAppender.createAuxiliaryArchive());\n }\n webArchive.addAsLibraries(auxiliarryArchives);\n }\n }", "title": "" }, { "docid": "9f4954c117563af4020d5f1c132958b5", "score": "0.50066197", "text": "public String getArchiveDirectory() {\n\t\treturn archiveDir;\n\t}", "title": "" }, { "docid": "3f8943d07e38609a32d1116c752bc011", "score": "0.48526183", "text": "@Deployment\n public static WebArchive createDeployment() {\n WebArchive war = ShrinkWrap.create(WebArchive.class)\n .addClass(BatchTestHelper.class)\n .addPackage(\"org.javaee7.batch.chunk.csv.database\")\n .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create(\"beans.xml\"))\n .addAsResource(\"META-INF/batch-jobs/myJob.xml\")\n .addAsResource(\"META-INF/persistence.xml\")\n .addAsResource(\"META-INF/create.sql\")\n .addAsResource(\"META-INF/drop.sql\")\n .addAsResource(\"META-INF/mydata.csv\");\n System.out.println(war.toString(true));\n return war;\n }", "title": "" }, { "docid": "722acc4e8f514f9dcbd3d5a40d717bb8", "score": "0.47640038", "text": "static URL getTomcatBinaryDistribution() throws IOException {\n URL tomcatDistributionUrl = Thread.currentThread().getContextClassLoader().getResource(\"tomcat.zip\");\n if (tomcatDistributionUrl == null) {\n throw new IOException(\"Unable to get Tomcat binary distribution.\");\n }\n return tomcatDistributionUrl;\n }", "title": "" }, { "docid": "01bf229b2722d2cdb4cddf594ea65c09", "score": "0.47358996", "text": "@Deployment\n\tpublic static EnterpriseArchive createEarArchive() {\n\t\tClass<?>[] removedClasses = null;\n\t\treturn OabaDeploymentUtils.createEarArchive(removedClasses,\n\t\t\t\tTESTS_AS_EJB_MODULE);\n\t}", "title": "" }, { "docid": "a5ebe8164d847d01f333640c6848a283", "score": "0.4735719", "text": "private boolean isWebArchive(Archive<?> archive) {\n return archive instanceof WebArchive;\n }", "title": "" }, { "docid": "e864a9ff207ec511b4dc514c18a4d58b", "score": "0.47335348", "text": "@Deployment\n\tpublic static Archive<?> createTestArchive() {\n\t\treturn ShrinkWrap.create(WebArchive.class, \"test.war\").addPackage(Persona.class.getPackage())\n\t\t\t\t.addAsResource(\"persistenceForTest.xml\", \"META-INF/persistence.xml\")\n\t\t\t\t.addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\");\n\n\t}", "title": "" }, { "docid": "d47be098891adc5aa7594559b5696274", "score": "0.46574846", "text": "@Deployment(testable = false)\r\n\tpublic static WebArchive createDeployment() {\r\n return ShrinkWrap.create(WebArchive.class)\r\n \t\t.addClasses(HeaderController.class,ShoppingCart.class,ShoppingCartController.class,ShoppingCartDAO.class,Books.class,Cart.class)\r\n \t\t.addAsWebResource(new File(WEBAPP_SRC,\"bookProfile.xhtml\"))\r\n \t\t.addAsWebResource(new File(WEBAPP_SRC,\"browseBooks.xhtml\"))\r\n \t\t.addAsWebResource(new File(WEBAPP_SRC,\"shoppingCart.xhtml\"))\r\n \t\t.addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\")\r\n \t\t.addAsManifestResource(\"META-INF/persistence.xml\")\r\n \t\t.addAsWebInfResource(\r\n new StringAsset(\"<faces-config version=\\\"2.0\\\"/>\"),\r\n \"faces-config.xml\");\r\n\t}", "title": "" }, { "docid": "bcb15cd1d791a1b4daaa756596879cb3", "score": "0.45678228", "text": "@Deployment(testable = false)\n\tpublic static WebArchive createTestArchive() {\n\t\t\n\t\tWebArchive war = ShrinkWrap\n\t\t\t\t.createFromZipFile(\n\t\t\t\t\t\tWebArchive.class,\n\t\t\t\t\t\tnew File(\n\t\t\t\t\t\t\t\t\"target/richfaces-showcase-\" + versionShowcase + \"-\" + showcaseClassifier + \".war\"));\n\t\treturn war;\n\t}", "title": "" }, { "docid": "1562d406f38dc5d64a47f6bc6304259f", "score": "0.45474792", "text": "public void archive(String destination) {\n }", "title": "" }, { "docid": "72f8d6dc627e269967ca76ed6c59c966", "score": "0.4538113", "text": "String getArchiveRoot();", "title": "" }, { "docid": "cdd445183ab6f8ed03dc2c8eb762e165", "score": "0.45236152", "text": "@Deployment\n public static WebArchive createDeployment() {\n final WebArchive webArchive = ShrinkWrap.create(WebArchive.class, \"test.war\")\n .setWebXML(new File(\"src/main/webapp/WEB-INF/web.xml\"))\n .addPackage(DAO.class.getPackage())\n .addPackage(SelectedTrack.class.getPackage())\n .addPackage(EntityModel.class.getPackage())\n .addPackage(Track.class.getPackage())\n .addPackage(SongParser.class.getPackage())\n .addPackage(Artist.class.getPackage())\n .addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\")\n .addAsWebInfResource(\n new File(\"src/main/setup/glassfish-resources.xml\"),\n \"glassfish-resources.xml\")\n .addAsResource(new File(\"src/main/resources/META-INF/persistence.xml\"),\n \"META-INF/persistence.xml\")\n .addAsResource(\"MusicStore_create.sql\")\n .addAsResource(\"dataPoints.csv\")\n ;//.addAsLibraries(dependencies);\n return webArchive;\n }", "title": "" }, { "docid": "d65c105d458a5dbfcae9a2a70de497df", "score": "0.45213634", "text": "@Deployment(testable = false) // testable = false client mode\n\tpublic static WebArchive createDeployment() {\n\t\treturn ShrinkWrap.create(WebArchive.class, \"actions-testing.war\")\n\t\t\t\t\t\t.addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\");\n\t}", "title": "" }, { "docid": "6bd24e6c7f995fa8cca72659fba56f2c", "score": "0.45197457", "text": "public void changeToArchiveLayout(final Podcast podcast) {\n final Intent i = new Intent(context, ArchiveActivity.class);\n i.putExtra(\"podcastName\", podcast.Name);\n i.putExtra(\"podcastUrl\", podcast.Url);\n i.putExtra(\"podcastLimit\", podcast.Limit);\n\n podcast.handler.post(new Runnable() {\n @Override\n public void run() {\n podcast.summaryActivity.startActivity(i);\n }\n });\n }", "title": "" }, { "docid": "becbd97e328022eac6306d38293cc818", "score": "0.44989833", "text": "@Deployment\n public static Archive createTestArchive() {\n\n return Deployments.createJpaDeployment();\n }", "title": "" }, { "docid": "87211c471b75897f251002d63f9daad6", "score": "0.449752", "text": "@Override\r\n public void archive() {\r\n\t}", "title": "" }, { "docid": "d966a1a4081fb36964cb99ac2387cafa", "score": "0.44905627", "text": "public static FileFilter getClassArchiveFilter() {\n return classArchiveFilter;\n }", "title": "" }, { "docid": "e691f7715e1d2a60a9f276388f566da1", "score": "0.4481488", "text": "@Override\n\tpublic void visit(ArchiveWrapper archive) {\n\t}", "title": "" }, { "docid": "92673b7099e1263c6c79d74e6aed7703", "score": "0.44720262", "text": "@Deployment\n public static Archive<?> createTestArchive() {\n File[] libs = Maven.resolver()\n .loadPomFromFile(\"pom.xml\")\n .resolve(\"io.swagger:swagger-jaxrs:1.5.16\")\n .withTransitivity()\n .asFile();\n\n return ShrinkWrap\n .create(WebArchive.class, \"test.war\")\n .addPackages(true, \"org.jboss.quickstarts.wfk\")\n .addAsLibraries(libs)\n .addAsResource(\"META-INF/test-persistence.xml\", \"META-INF/persistence.xml\")\n .addAsWebInfResource(\"arquillian-ds.xml\")\n .addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\");\n }", "title": "" }, { "docid": "41916b62fc4960dc931ed0421bedddb2", "score": "0.44716567", "text": "public void addRetentionArchive() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"retention-archive\",\n null,\n childrenNames());\n }", "title": "" }, { "docid": "c1fc556c4112ccb1bee97f81ecdf4056", "score": "0.44459254", "text": "static void archive(String date){\n \n }", "title": "" }, { "docid": "2f19b2b391d43a81fe35318754288f81", "score": "0.44441876", "text": "private boolean isEnterpriseArchive(Archive<?> archive) {\n return archive instanceof EnterpriseArchive;\n }", "title": "" }, { "docid": "0db18c546a1ea3f7fcae641f035c19fb", "score": "0.4442337", "text": "@Deployment\n\tpublic static Archive<?> createTestArchive() {\n\t\tMavenDependencyResolver resolver = DependencyResolvers.use(\n\t\t\t\tMavenDependencyResolver.class).loadMetadataFromPom(\"pom.xml\");\n\t\tArchive<WebArchive> war = ShrinkWrap\n\t\t\t\t.create(WebArchive.class, \"test.war\")\n\t\t\t\t.addClasses(PendingRegistration.class,\n\t\t\t\t\t\tPendingRegistrationService.class, User.class,\n\t\t\t\t\t\tExtra.class, Resources.class)\n\t\t\t\t.addAsResource(\"META-INF/test-persistence.xml\",\n\t\t\t\t\t\t\"META-INF/persistence.xml\")\n\t\t\t\t.addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\")\n\t\t\t\t// Deploy our test datasource\n\t\t\t\t.addAsWebInfResource(\"test-ds.xml\")\n\t\t\t\t.addAsLibraries(\n\t\t\t\t\t\tresolver.artifact(\"com.woorea:keystone-model\")\n\t\t\t\t\t\t\t\t.resolveAsFiles())\n\t\t\t\t.addAsLibraries(\n\t\t\t\t\t\tresolver.artifact(\"commons-lang:commons-lang\")\n\t\t\t\t\t\t\t\t.resolveAsFiles()).setManifest(new Asset() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic InputStream openStream() {\n\t\t\t\t\t\tManifestBuilder builder = ManifestBuilder.newInstance();\n\t\t\t\t\t\tString osgidep = \"org.osgi.core,org.jboss.osgi.framework\";\n\t\t\t\t\t\tString apidep = \",org.jboss.msc\";\n\t\t\t\t\t\tbuilder.addManifestHeader(\"Dependencies\", osgidep\n\t\t\t\t\t\t\t\t+ apidep);\n\t\t\t\t\t\treturn builder.openStream();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\treturn war;\n\t}", "title": "" }, { "docid": "8b4ac2a52aac3194b3422dbf269798ba", "score": "0.44226387", "text": "@SuppressWarnings(\"unused\")\n private void setDataArchive(FeedDataArchive archive) {\n this.archive = archive;\n }", "title": "" }, { "docid": "fea73f4a535b7d8411170eb8d50521ca", "score": "0.44051895", "text": "public boolean isArchive()\n {\n String name = file.getName().toLowerCase();\n return file.isFile() &&\n (name.endsWith(\".zip\") || name.endsWith(\".jar\"));\n }", "title": "" }, { "docid": "4c98b9ab52fb88133fc8f65b024621ee", "score": "0.43920812", "text": "@Deployment\n public static WebArchive createDeployment() {\n WebArchive war = create(WebArchive.class)\n .addClass(BatchTestHelper.class)\n .addPackage(\"org.javaee7.batch.chunk.exception\")\n .addAsWebInfResource(INSTANCE, create(\"beans.xml\"))\n .addAsResource(\"META-INF/batch-jobs/myJob.xml\");\n \n System.out.println(\"\\nContent of test war for BatchChunkExceptionTest \\n \" + war.toString(true) + \"\\n\");\n \n return war;\n }", "title": "" }, { "docid": "06b26ba4b82d85dc5174d8ecf49a971c", "score": "0.43109176", "text": "private static boolean isArchiveFile(File f) {\n String fileName = f.getName().toLowerCase();\n return fileName.endsWith(\".jar\") || fileName.endsWith(\".zip\"); //NOI18N\n }", "title": "" }, { "docid": "a7c15b15670b63a07b10b4f79ed1dcb3", "score": "0.43034336", "text": "void archive(String archiveId, String siteId, boolean includeStudentContent);", "title": "" }, { "docid": "a15adfb45488788f91375f7ac8cad2af", "score": "0.430131", "text": "public static File maybeExtractArchive(File archive, Component parent)\n {\n JarInputStream jarInStream = null;\n File oPath = archive.getParentFile();\n \n try { \n // first need to determine the output path. If the jar file\n // contains a root-level (eg bluej.pkg) entry, extract into a directory\n // whose name is the basename of the archive file. Otherwise, if\n // all entries have a common ancestor, extract to that directory\n // (after checking it doesn't exist).\n String prefixFolder = getArchivePrefixFolder(archive);\n \n if (prefixFolder == null) {\n // Try to extract to directory which has same name as the jar\n // file, with the .jar or .bjar extension stripped.\n String archiveName = archive.getName();\n int dotIndex = archiveName.lastIndexOf('.');\n String strippedName = null;\n if(dotIndex != -1) {\n strippedName = archiveName.substring(0, dotIndex);\n } else {\n strippedName = archiveName;\n }\n oPath = new File(oPath, strippedName);\n if (oPath.exists()) {\n DialogManager.showErrorWithText(parent, \"jar-output-dir-exists\", oPath.toString());\n return null;\n }\n else if (! oPath.mkdir()) {\n DialogManager.showErrorWithText(parent, \"jar-output-no-write\", archive.toString());\n return null;\n }\n }\n else {\n File prefixFolderFile = new File(oPath, prefixFolder);\n if (prefixFolderFile.exists()) {\n DialogManager.showErrorWithText(parent, \"jar-output-dir-exists\", prefixFolderFile.toString());\n return null;\n }\n if (! prefixFolderFile.mkdir()) {\n DialogManager.showErrorWithText(parent, \"jar-output-no-write\", archive.toString());\n return null;\n }\n }\n \n // Need to extract the project somewhere, then open it\n FileInputStream is = new FileInputStream(archive);\n jarInStream = new JarInputStream(is);\n \n // Extract entries in the jar file\n JarEntry je = jarInStream.getNextJarEntry();\n while (je != null) {\n File outFile = new File(oPath, je.getName());\n \n // An entry could represent a file or directory\n if (je.getName().endsWith(\"/\"))\n outFile.mkdirs();\n else {\n outFile.getParentFile().mkdirs();\n OutputStream os = new FileOutputStream(outFile);\n \n // try to read 8k at a time\n byte [] buffer = new byte[8192];\n int rlength = jarInStream.read(buffer);\n while (rlength != -1) {\n os.write(buffer, 0, rlength);\n rlength = jarInStream.read(buffer);\n }\n \n jarInStream.closeEntry();\n os.close();\n }\n je = jarInStream.getNextJarEntry();\n }\n \n // Now, the jar file may contain a bluej project, or it may\n // be a regular jar file in which case we should convert it\n // to a bluej project first.\n \n if (prefixFolder != null)\n oPath = new File(oPath, prefixFolder);\n }\n catch (Exception e) {\n e.printStackTrace();\n DialogManager.showError(parent, \"jar-extraction-error\");\n return null;\n }\n finally {\n try {\n if (jarInStream != null)\n jarInStream.close();\n }\n catch (IOException ioe) {}\n }\n return oPath;\n }", "title": "" }, { "docid": "a26abb2e0e788395070a8dd83664875b", "score": "0.4292169", "text": "public static WebArchive baseDeployment() {\n return ShrinkWrap.create(WebArchive.class, \"test.war\")\n .addAsWebInfResource(Deployments.class.getResource(\"/META-INF/beans.xml\"), \"beans.xml\")\n .addAsLibrary(\n ShrinkWrap.create(JavaArchive.class, \"infinispan-cdi-embedded.jar\")\n .addPackage(ConfigureCache.class.getPackage())\n .addPackage(AbstractEventBridge.class.getPackage())\n .addPackage(CacheEventBridge.class.getPackage())\n .addPackage(CacheManagerEventBridge.class.getPackage())\n .addAsManifestResource(ConfigureCache.class.getResource(\"/META-INF/beans.xml\"), \"beans.xml\")\n .addAsManifestResource(ConfigureCache.class.getResource(\"/META-INF/services/jakarta.enterprise.inject.spi.Extension\"), \"services/jakarta.enterprise.inject.spi.Extension\")\n );\n }", "title": "" }, { "docid": "c309a6aad8c6e062372041f7025cd653", "score": "0.42803055", "text": "public synchronized Collection<BeanArchive> getBeanArchives() {\n return beanArchives;\n }", "title": "" }, { "docid": "346095e2d2c6996171e0f9f71d945f39", "score": "0.4234635", "text": "public static JavaArchive addCronAsJar(WebArchive webArchive) throws IllegalArgumentException {\n final JavaArchive libs = ShrinkWrap.create(JavaArchive.class, \"cdilibs.jar\");\n libs.addAsManifestResource(\"META-INF/beans.xml\", \"beans.xml\");\n libs.addAsManifestResource(\"META-INF/services/javax.enterprise.inject.spi.Extension\",\n \"services/javax.enterprise.inject.spi.Extension\");\n addCronAsClasses(libs);\n webArchive.addAsLibraries(libs);\n return libs;\n }", "title": "" }, { "docid": "b17074a18e6744ed66f841aa3b67af1b", "score": "0.4227912", "text": "private void addDependenciesToArchive() throws MojoExecutionException {\r\n try\r\n {\r\n Set<Artifact> artifacts = null;\r\n switch (EsaContent.valueOf(archiveContent)) {\r\n case none:\r\n getLog().info(\"archiveContent=none: subsystem archive will not contain any bundles.\"); \r\n break;\r\n case content:\r\n // only include the direct dependencies in the archive\r\n artifacts = project.getDependencyArtifacts(); \r\n break;\r\n case all:\r\n // include direct and transitive dependencies in the archive\r\n artifacts = project.getArtifacts(); \r\n break;\r\n default:\r\n throw new MojoExecutionException(\"Invalid configuration for <archiveContent/>. Valid values are none, content and all.\" ); \r\n }\r\n \r\n if (artifacts != null) {\r\n // Explicitly add self to bundle set (used when pom packaging\r\n // type != \"esa\" AND a file is present (no point to add to\r\n // zip archive without file)\r\n final Artifact selfArtifact = project.getArtifact();\r\n if (!\"esa\".equals(selfArtifact.getType()) && selfArtifact.getFile() != null) {\r\n getLog().info(\"Explicitly adding artifact[\" + selfArtifact.getGroupId() + \", \" + selfArtifact.getId() + \", \" + selfArtifact.getScope() + \"]\");\r\n artifacts.add(project.getArtifact());\r\n }\r\n \r\n artifacts = selectArtifactsInCompileOrRuntimeScope(artifacts);\r\n artifacts = selectNonJarArtifactsAndBundles(artifacts);\r\n\r\n int cnt = 0;\r\n for (Artifact artifact : artifacts) { \r\n if (!artifact.isOptional() /*&& filter.include(artifact)*/) {\r\n getLog().info(\"Copying artifact[\" + artifact.getGroupId() + \", \" + artifact.getId() + \", \" +\r\n artifact.getScope() + \"]\");\r\n zipArchiver.addFile(artifact.getFile(), artifact.getArtifactId() + \"-\" + artifact.getVersion() + \".\" + (artifact.getType() == null ? \"jar\" : artifact.getType()));\r\n cnt++;\r\n }\r\n } \r\n getLog().info(String.format(\"Added %s artifacts to subsystem subsystem archive.\", cnt));\r\n }\r\n }\r\n catch ( ArchiverException e )\r\n {\r\n throw new MojoExecutionException( \"Error copying esa dependencies\", e );\r\n }\r\n\r\n }", "title": "" }, { "docid": "b59126d0ffc76d78c2c94ac33c425b7d", "score": "0.42239717", "text": "public Archive(Archive<T> other) {\n\t\tthis(other.getArchive(), other.mapping, other.archiveDir, other.saveElites);\n\t}", "title": "" }, { "docid": "1755060b4d44898d1804e82b73f62ef7", "score": "0.42094758", "text": "public ArchiveOptions getArchive() throws JSONRPC2Error, SessionExpired, RequestTimeout, InvalidRequest, InvalidParameters, InvalidJSON, RequestTooLarge, ResourceAlreadyExists, ResourceDontExists, Forbidden, GeneralException, JsonParseException, JsonMappingException, IOException {\n JSONObject result = (JSONObject)executeJSONRPCRequest(\"Archive.get\", \"options\");\n ArchiveOptions archive = mapper.readValue(((JSONObject)result).toJSONString(), ArchiveOptions.class);\n return archive;\n }", "title": "" }, { "docid": "0736f23203f4d5293ac981e2e52aa2cb", "score": "0.41908148", "text": "public void setArchive(String path) {\n archive = new File(path);\n if (!archive.equals(archive.getAbsoluteFile())) {\n archive = new File(getProject().getBaseDir(), path);\n }\n }", "title": "" }, { "docid": "5ed5b0eb26bb1585d0c0b7a35d81cdda", "score": "0.4158853", "text": "public static String[] extractMessageArchive(byte[] archive) {\n return extractMessageArchive(null, archive, false);\n }", "title": "" }, { "docid": "37a524c5690749daf2d14708d3fda886", "score": "0.4155034", "text": "public InternalArchiveClassFileProvider(Path archive) throws IOException {\n this(archive, entry -> true);\n }", "title": "" }, { "docid": "6fe6648cf128f7ed3ede3ae4f062c5a8", "score": "0.41509977", "text": "public static String[] extractMessageArchive(String outname, byte[] archive) {\n return extractMessageArchive(outname, archive, true);\n }", "title": "" }, { "docid": "0964ed140b83b3c6701e40f73dc1de9f", "score": "0.4131012", "text": "@Deployment\n public static WebArchive deploy() {\n final File[] dependencies = Maven\n .resolver()\n .loadPomFromFile(\"pom.xml\")\n .resolve(new String[]{\n \"org.assertj:assertj-core\", \"org.jodd:jodd-mail\"}).withoutTransitivity()\n .asFile();\n\n // For testing Arquillian prefers a resources.xml file over a\n // context.xml\n // Actual file name is resources-mysql-ds.xml in the test/resources\n // folder\n // The SQL script to create the database is also in this folder\n final WebArchive webArchive = ShrinkWrap.create(WebArchive.class, \"test.war\")\n .setWebXML(new File(\"src/main/webapp/WEB-INF/web.xml\"))\n .addPackage(ReportBackingBean.class.getPackage())\n .addPackage(ChangeLanguage.class.getPackage())\n .addPackage(AlbumConverter.class.getPackage())\n .addPackage(LoginFilter.class.getPackage())\n .addPackage(Messages.class.getPackage())\n .addPackage(ShopUserJpaController.class.getPackage())\n .addPackage(RollbackFailureException.class.getPackage())\n .addPackage(Track.class.getPackage())\n .addPackage(ShoppingCart.class.getPackage())\n .addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\")\n .addAsWebInfResource(new File(\"src/main/webapp/WEB-INF/glassfish-resources.xml\"), \"glassfish-resources.xml\")\n .addAsResource(new File(\"src/test/resources-glassfish-remote/test-persistence.xml\"), \"META-INF/persistence.xml\")\n// .addAsResource(new File(\"src/main/resources/META-INF/persistence.xml\"), \"META-INF/persistence.xml\")\n .addAsResource(\"createtestdatabase.sql\")\n .addAsLibraries(dependencies); \n return webArchive;\n }", "title": "" }, { "docid": "497651683269ac2390dd45eccec82d10", "score": "0.41307116", "text": "public static void zip(String location) throws IOException, ArchiveException {\n \tFileCompressor.zip(new File(location));\n }", "title": "" }, { "docid": "f0cfa882af47636ef2501fb041c03154", "score": "0.41202685", "text": "void indexTarArchive() throws Exception {\r\n GZIPInputStream gzipInputStream = new GZIPInputStream( new FileInputStream(new File(tarArchivePath)));\r\n TarArchiveInputStream tarArchiveInputStream =\r\n new TarArchiveInputStream(gzipInputStream);\r\n TarArchiveEntry tarEntry = tarArchiveInputStream.getNextTarEntry();\r\n while (tarEntry != null) {\r\n if (!tarEntry.isDirectory()) {\r\n System.out.println(\"Extracting \" + tarEntry.getName());\r\n final OutputStream outputFileStream = new FileOutputStream(tarEntry.getName());\r\n }\r\n else {\r\n tarEntry = tarArchiveInputStream.getNextTarEntry();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "741d0a0ef241e2689cc8935e5c24714e", "score": "0.41157606", "text": "public File buildImageDir(ClusterDescription clusterSpec,\n String archiveSubdir) {\n File basedir;\n if (clusterSpec.isImagePathSet()) {\n basedir = new File(new File(HoyaKeys.LOCAL_TARBALL_INSTALL_SUBDIR),\n archiveSubdir);\n } else {\n basedir = new File(clusterSpec.getApplicationHome());\n }\n return basedir;\n }", "title": "" }, { "docid": "91ec7d855f4bd83d727315a731645321", "score": "0.40981984", "text": "public void extract(){\n logger.info(\"extracting [{}] to [{}]\", getArchiveFile(), getDestDir());\n WidgetResourcesUtils.unzip( getArchiveFile(), getDestDir() );\n }", "title": "" }, { "docid": "fd22c9665aa27b29f06d00475cd28277", "score": "0.40666217", "text": "private void archiveData(File file) {\n if(archiveDirectory == null || archiveDirectory.isEmpty()) {\n log.info(\"No archive directory configured\");\n return;\n }\n \n // Create the archive directory if necessary.\n File archiveDir = new File(archiveDirectory);\n archiveDir.mkdirs();\n \n // Move the file there.\n try {\n FileUtil.moveFile(file, archiveDir);\n } catch(IOException e) {\n log.error(\"Failed to archive file {} to dir {}. Error reported: {}\", new Object[] { file, archiveDir, e.getMessage() });\n }\n }", "title": "" }, { "docid": "5354c6d03fd30f0cc5955e193e5f491d", "score": "0.4048906", "text": "@Deployment\n\tpublic static WebArchive createDeployment() {\n WebArchive war=ShrinkWrap.create(WebArchive.class, \"prueba.war\");\n war.merge(ShrinkWrap.create(WebArchive.class, \"prueba.war\")\n .addPackage(ProductoService.class.getPackage())\n .addPackage(IProductoLogicService.class.getPackage())\n .addPackage(ProductoLogicService.class.getPackage())\n .addPackage(IProductoPersistence.class.getPackage())\n .addPackage(ProductoPersistence.class.getPackage())\n .addPackage(ProductoDTO.class.getPackage())\n .addPackage(ProductoEntity.class.getPackage())\n .addAsResource(\"META-INF/persistence.xml\", \"META-INF/persistence.xml\")\n \n \n .as(ExplodedImporter.class).importDirectory(\"src/main/webapp\").as(GenericArchive.class));\n return war;\n \n\t}", "title": "" }, { "docid": "ce0312930ce5dc891a2b7e2793e09613", "score": "0.40409076", "text": "@SuppressWarnings(\"deprecation\")\n\tprivate File createArchive(List<Artifact> bundles, File featuresFile, String groupId, String artifactId, String version) throws MojoExecutionException {\n ArtifactRepositoryLayout layout = new DefaultRepositoryLayout();\n File archiveFile = getArchiveFile(outputDirectory, finalName, classifier);\n\n MavenArchiver archiver = new MavenArchiver();\n archiver.setCreatedBy(\"Kar Maven Plugin\", \"org.apache.karaf.tooling\", \"karaf-maven-plugin\");\n MavenArchiveConfiguration configuration = new MavenArchiveConfiguration();\n configuration.addManifestEntries(archive.getManifestEntries());\n archiver.setArchiver(jarArchiver);\n archiver.setOutputFile(archiveFile);\n // configure for Reproducible Builds based on outputTimestamp value\n archiver.configureReproducible(outputTimestamp);\n\n try {\n //TODO should .kar be a bundle?\n// archive.addManifestEntry(Constants.BUNDLE_NAME, project.getName());\n// archive.addManifestEntry(Constants.BUNDLE_VENDOR, project.getOrganization().getName());\n// ArtifactVersion version = project.getArtifact().getSelectedVersion();\n// String versionString = \"\" + version.getMajorVersion() + \".\" + version.getMinorVersion() + \".\" + version.getIncrementalVersion();\n// if (version.getQualifier() != null) {\n// versionString += \".\" + version.getQualifier();\n// }\n// archive.addManifestEntry(Constants.BUNDLE_VERSION, versionString);\n// archive.addManifestEntry(Constants.BUNDLE_MANIFESTVERSION, \"2\");\n// archive.addManifestEntry(Constants.BUNDLE_DESCRIPTION, project.getDescription());\n// // NB, no constant for this one\n// archive.addManifestEntry(\"Bundle-License\", ((License) project.getLicenses().get(0)).getUrl());\n// archive.addManifestEntry(Constants.BUNDLE_DOCURL, project.getUrl());\n// //TODO this might need some help\n// archive.addManifestEntry(Constants.BUNDLE_SYMBOLICNAME, project.getArtifactId());\n\n //include the feature.xml\n Artifact featureArtifact = factory.createArtifactWithClassifier(groupId, artifactId, version, \"xml\", KarArtifactInstaller.FEATURE_CLASSIFIER);\n jarArchiver.addFile(featuresFile, repositoryPath + layout.pathOf(featureArtifact));\n\n if (featureArtifact.isSnapshot()) {\n // the artifact is a snapshot, create the maven-metadata-local.xml\n getLog().debug(\"Feature artifact is a SNAPSHOT, handling the maven-metadata-local.xml\");\n File metadataTarget = new File(featuresFile.getParentFile(), \"maven-metadata-local.xml\");\n getLog().debug(\"Looking for \" + metadataTarget.getAbsolutePath());\n if (!metadataTarget.exists()) {\n // the maven-metadata-local.xml doesn't exist, create it\n getLog().debug(metadataTarget.getAbsolutePath() + \" doesn't exist, create it\");\n Metadata metadata = new Metadata();\n metadata.setGroupId(featureArtifact.getGroupId());\n metadata.setArtifactId(featureArtifact.getArtifactId());\n metadata.setVersion(featureArtifact.getVersion());\n metadata.setModelVersion(\"1.1.0\");\n\n Versioning versioning = new Versioning();\n versioning.setLastUpdatedTimestamp(new Date(System.currentTimeMillis()));\n Snapshot snapshot = new Snapshot();\n snapshot.setLocalCopy(true);\n versioning.setSnapshot(snapshot);\n SnapshotVersion snapshotVersion = new SnapshotVersion();\n snapshotVersion.setClassifier(featureArtifact.getClassifier());\n snapshotVersion.setVersion(featureArtifact.getVersion());\n snapshotVersion.setExtension(featureArtifact.getType());\n snapshotVersion.setUpdated(versioning.getLastUpdated());\n versioning.addSnapshotVersion(snapshotVersion);\n\n metadata.setVersioning(versioning);\n\n MetadataXpp3Writer metadataWriter = new MetadataXpp3Writer();\n try (Writer writer = new FileWriter(metadataTarget)) {\n metadataWriter.write(writer, metadata);\n } catch (Exception e) {\n getLog().warn(\"Could not create maven-metadata-local.xml\", e);\n getLog().warn(\"It means that this SNAPSHOT could be overwritten by an older one present on remote repositories\");\n }\n }\n getLog().debug(\"Adding file \" + metadataTarget.getAbsolutePath() + \" in the jar path \" + repositoryPath + layout.pathOf(featureArtifact).substring(0, layout.pathOf(featureArtifact).lastIndexOf('/')) + \"/maven-metadata-local.xml\");\n jarArchiver.addFile(metadataTarget, repositoryPath + layout.pathOf(featureArtifact).substring(0, layout.pathOf(featureArtifact).lastIndexOf('/')) + \"/maven-metadata-local.xml\");\n }\n\n for (Artifact artifact : bundles) {\n artifactResolver.resolve(artifact, remoteRepos, localRepo);\n\n //TODO this may not be reasonable, but... resolved snapshot artifacts have timestamped versions\n //which do not work in startup.properties.\n artifact.setVersion(artifact.getBaseVersion());\n\n if (artifact.isSnapshot()) {\n // the artifact is a snapshot, create the maven-metadata-local.xml\n final File metadataTmp = Files.createTempFile(\"maven-metadata-local.xml\", \".tmp\").toFile();\n\n try {\n MavenUtil.generateMavenMetadata(artifact, metadataTmp);\n } catch (Exception e) {\n getLog().warn(\"Could not create maven-metadata-local.xml\", e);\n getLog().warn(\"It means that this SNAPSHOT could be overwritten by an older one present on remote repositories\");\n }\n\n jarArchiver.addFile(metadataTmp, repositoryPath + layout.pathOf(artifact).substring(0, layout.pathOf(artifact).lastIndexOf('/')) + \"/maven-metadata-local.xml\");\n\n try {\n metadataTmp.delete();\n } catch (final Exception ex) {\n getLog().warn(\"Cannot delete temporary created file.\", ex);\n }\n }\n\n String targetFileName = repositoryPath + layout.pathOf(artifact);\n jarArchiver.addFile(artifact.getFile(), targetFileName);\n }\n\n if (resourcesDir.isDirectory()) {\n archiver.getArchiver().addDirectory(resourcesDir);\n }\n archiver.createArchive(mavenSession, project, archive);\n\n return archiveFile;\n } catch (Exception e) {\n throw new MojoExecutionException(\"Failed to create archive\", e);\n }\n }", "title": "" }, { "docid": "d93aef7c09542c6e8f7e9edc46b46bf0", "score": "0.40296406", "text": "public String getArchiveSpecification() {\n String specification = getParameter(\"archive\");\n if (specification == null) {\n specification = getAttribute(\"archive\");\n }\n return specification;\n }", "title": "" }, { "docid": "9e2a2b762d06f6c869bed757004fd444", "score": "0.40209594", "text": "private static void createArchive( File indexPath ) throws IOException {\n String name = indexPath.getName();\n ZipOutputStream zos = new ZipOutputStream( new FileOutputStream( new File( indexPath.getParent(), name + \".zip\" ) ) );\n zos.setLevel( 9 );\n\n File[] files = indexPath.listFiles();\n for( int i = 0; i < files.length; i++ ) {\n ZipEntry e = new ZipEntry( files[i].getName() );\n zos.putNextEntry( e );\n\n FileInputStream is = new FileInputStream( files[i] );\n byte[] buf = new byte[4096];\n int n;\n while( ( n = is.read( buf ) ) > 0 ) {\n zos.write( buf, 0, n );\n }\n is.close();\n zos.flush();\n\n zos.closeEntry();\n }\n\n zos.close();\n }", "title": "" }, { "docid": "f3339c0d0d4396803bbcba3894fc055a", "score": "0.40206796", "text": "public FileObject extract( FileObject archive, FileObject dest ) throws IOException, KettleFileException {\n if ( !archive.exists() ) {\n throw new IllegalArgumentException( \"archive does not exist: \" + archive.getURL().getPath() );\n }\n\n if ( dest.exists() ) {\n throw new IllegalArgumentException( \"destination already exists\" );\n }\n dest.createFolder();\n\n try {\n byte[] buffer = new byte[ DEFAULT_BUFFER_SIZE ];\n int len = 0;\n\n try ( ZipInputStream zis = new ZipInputStream( archive.getContent().getInputStream() ) ) {\n ZipEntry ze;\n while ( ( ze = zis.getNextEntry() ) != null ) {\n FileObject entry = KettleVFS.getFileObject( dest + Const.FILE_SEPARATOR + ze.getName() );\n FileObject parent = entry.getParent();\n if ( parent != null ) {\n parent.createFolder();\n }\n if ( ze.isDirectory() ) {\n entry.createFolder();\n continue;\n }\n\n try ( OutputStream os = KettleVFS.getOutputStream( entry, false ) ) {\n while ( ( len = zis.read( buffer ) ) > 0 ) {\n os.write( buffer, 0, len );\n }\n }\n }\n }\n } catch ( Exception ex ) {\n // Try to clean up the temp directory and all files\n if ( !deleteDirectory( dest ) ) {\n throw new KettleFileException( \"Could not clean up temp dir after error extracting\", ex );\n }\n throw new KettleFileException( \"error extracting archive\", ex );\n }\n\n return dest;\n }", "title": "" }, { "docid": "fcab9d30787015cc9d07c1893cbc38cb", "score": "0.39767435", "text": "private void buildContainerSelectionArchive()\n\t{\n\t\tgroupeBouton.add(archiveBouton);\n\t\tgroupeBouton.add(dossierBouton);\n\n\t\tJPanel archive = new JPanel();\n\t\tarchive.add(impoterArchive);\n\t\tarchive.add(archiveBouton);\n\n\t\tJPanel dossier = new JPanel();\n\t\tdossier.add(impoterDossier);\n\t\tdossier.add(dossierBouton);\n\n\t\tcontainerSelectionArchive.setPreferredSize(new Dimension(TAILLE_X, (TAILLE_Y / 3) * 2));\n\t\tcontainerSelectionArchive.add(archive, BorderLayout.NORTH);\n\t\tcontainerSelectionArchive.add(dossier, BorderLayout.SOUTH);\n\n\t}", "title": "" }, { "docid": "e3f87d9fb53a5162ca0b7d998e3c09c0", "score": "0.39712068", "text": "public final EObject entryRuleTDeploymentArtifact() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleTDeploymentArtifact = null;\n\n\n try {\n // ../eu.artist.tosca.dsl/src-gen/eu/artist/tosca/dsl/parser/antlr/internal/InternalToscaDSL.g:6692:2: (iv_ruleTDeploymentArtifact= ruleTDeploymentArtifact EOF )\n // ../eu.artist.tosca.dsl/src-gen/eu/artist/tosca/dsl/parser/antlr/internal/InternalToscaDSL.g:6693:2: iv_ruleTDeploymentArtifact= ruleTDeploymentArtifact EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTDeploymentArtifactRule()); \n }\n pushFollow(FollowSets000.FOLLOW_ruleTDeploymentArtifact_in_entryRuleTDeploymentArtifact14469);\n iv_ruleTDeploymentArtifact=ruleTDeploymentArtifact();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleTDeploymentArtifact; \n }\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleTDeploymentArtifact14479); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "c1c1533f543fa78aada41294c767e786", "score": "0.39646757", "text": "private File getArchiveFile() {\n return new File( getDestDir(), getUrlName(url));\n }", "title": "" }, { "docid": "fcdaeb8325d26cbc8055dbd75fdfb3d7", "score": "0.39524204", "text": "public void closeArchive() throws IOException {\n \t\tif (this.jarFile != null) {\n \t\t\tthis.jarFile.close();\n \t\t\tthis.jarFile = null;\n \t\t}\n \t}", "title": "" }, { "docid": "72985ace0fb90e0497946a093db1e8cb", "score": "0.39461306", "text": "@Scheduled(cron = \"${audit.archiveLogs.schedule}\")\r\n public void archiveAuditLogs() {\r\n \r\n int daysForArchiveLogs = Integer.valueOf(enviornment\r\n .getProperty(\"audit.archiveLogs.days.frequency\"));\r\n \r\n LocalDateTime localDate = LocalDateTime.now();\r\n LocalDateTime minusDays = localDate.minusDays(daysForArchiveLogs);\r\n \r\n List<AuditLogBean> findAuditLogs = systemAdminRepository.findAuditLogs();\r\n if (!CollectionUtils.isEmpty(findAuditLogs)) {\r\n List<AuditLogBean> auditLogsToBeArchived = findAuditLogs.stream()\r\n .filter(aul -> aul.getCreatedOn().isBefore(minusDays)).collect(Collectors.toList());\r\n if (!CollectionUtils.isEmpty(auditLogsToBeArchived)) {\r\n archiveRepository.archive(auditLogsToBeArchived);\r\n /* Remove the audit logs */\r\n systemAdminRepository.removeAuditLogs(auditLogsToBeArchived);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5276568e13539bb34b3192aa901c7701", "score": "0.39126125", "text": "public static boolean isArchive(final File file) throws IOException {\n\t\tfinal String mimeType = Files.probeContentType(file.toPath());\n\t\treturn X_COMPRESS.equals(mimeType.toUpperCase());\n\t}", "title": "" }, { "docid": "3574328f218d569de143c491428be354", "score": "0.38997284", "text": "void archive(Calculable calculable);", "title": "" }, { "docid": "554a65148a538ee1c61bce74e97fe08b", "score": "0.3898981", "text": "private void addAllClassesInJar(JavaArchive archive, Class<?> clazz) {\n\n URL url = clazz.getProtectionDomain().getCodeSource().getLocation();\n JarFile file = null;\n try {\n file = new JarFile(new File(url.toURI()));\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n // String pkgPrefix = clazz.getPackage().getName().replace(\".\", \"/\") + \"/\";\n for (Enumeration<JarEntry> e = file.entries(); e.hasMoreElements(); ) {\n String name = e.nextElement().getName();\n if (name.endsWith(\".class\")) {\n // Get rid of the .class suffix\n String className = name.substring(0, name.length() - 6);\n className = className.replace(\"/\", \".\");\n try {\n archive.addClass(className);\n } catch (NoClassDefFoundError ignore) {\n // Just ignore this. It seems to mainly happen for some obscure internal classes\n }\n }\n }\n }", "title": "" }, { "docid": "3e90aae1d2332a91fb687ed84ef071ce", "score": "0.38967335", "text": "private void archive(final String sourceFileName,String sourceDirectory) {\n LOGGER.entering(CLASSNAME, \"archive\");\n try {\n File sourceFile = new File(sourceDirectory + File.separator + sourceFileName); \n File archiveFile = new File(sourceDirectory + File.separator + ARCHIVE_FOLDER + File.separator + sourceFileName.replaceFirst(\"[.][^.]+$\", \"\")+ \"_\" +new Date().getTime() + \".xml\" );\n FileUtilities.copyFile(sourceFile, archiveFile);\n sourceFile.delete();\n } catch (IOException e) {\n logStackTrace(e, \"archive\");\n System.exit(ERROR_WRITING_ARCHIVE_FILE);\n }\n LOGGER.exiting(CLASSNAME, \"archive\");\n }", "title": "" }, { "docid": "ca78d131f2653e8c2a2aa43c441b3e28", "score": "0.38925153", "text": "private Archive createLibArchive(Set<Artifact> libraries) throws MojoExecutionException {\n\n\t\tFile clibFile = getOutputFile(outputDirectory, finalName, LibArchiver.TYPE);\n\n\t\tLibArchiver clibArchiver = new LibArchiver(clibFile, libraries);\n\t\tclibArchiver.setCreatedBy(getCreatedBy());\n\n\t\treturn clibArchiver.createArchive();\n\t}", "title": "" }, { "docid": "03c9992e5afa1fcf2a6219568578a313", "score": "0.38819656", "text": "public void setArchivesService(ArchivesService service)\n\t{\n\t\tthis.archivesService = service;\n\t}", "title": "" }, { "docid": "eddd284ca9f45e3a4497d5a8153d5456", "score": "0.38725945", "text": "public void deploy(SLI sli, List<Column> columns, String dir, String archiveName) throws IOException;", "title": "" }, { "docid": "07b8ba63a37a3ba93099618af363a0b7", "score": "0.38715085", "text": "public ArchiveBuilder type(ArchiveType value) {\n type = value;\n return this;\n }", "title": "" }, { "docid": "705af8135cfed80c1e23aa5f27ee2e62", "score": "0.38593876", "text": "public abstract void compress() throws ArchiverException;", "title": "" }, { "docid": "3783f91d22a597c3ca1c686ccfb5aa06", "score": "0.3851012", "text": "@Override\n\tpublic void archive(String archiveDate) {\n\t\tStringBuffer sql=new StringBuffer(\"insert into SYS_OPERATE_LOG_HIS\");\n\t\tsql.append(\"(pid,pflag,creator,createtime,pupdater,pupdatetime,operate_url,operate_content,archive_time,type,wx_id,data_id,ip)\");\n\t\tsql.append(\" select sys_guid(),pflag,creator,createtime,pupdater,pupdatetime,operate_url,operate_content,'\"+archiveDate+\"',type,wx_id,data_id,ip from SYS_OPERATE_LOG\");\n\t\tsql.append(\" Where createtime<to_date('\"+archiveDate+\"','yyyy-MM-dd')\");\n\t\tsuper.getSession().createSQLQuery(sql.toString()).executeUpdate();\n\t\tsuper.getSession().createSQLQuery(\" delete from SYS_OPERATE_LOG Where createtime<to_date('\"+archiveDate+\"','yyyy-MM-dd')\").executeUpdate();\n\t}", "title": "" }, { "docid": "bfaf3ec4432af88297458e64c8ea9238", "score": "0.38465542", "text": "@Deployment(testable=true)\n @ShouldThrowException(DefinitionException.class)\n public static WebArchive createDeployment() throws IOException {\n WebArchive webArchive = ShrinkWrap\n .create(WebArchive.class, \"test.war\")\n .addClass(TestEndpoint.class)\n .addClass(TestQualifier.class)\n .addAsServiceProviderAndClasses(Extension.class, TestExtension.class)\n .addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\");\n System.out.printf(\"WebArchive: %s\\n\", webArchive.toString(true));\n return webArchive;\n }", "title": "" }, { "docid": "a70fef6741579ee9d97d451e123b0741", "score": "0.3826646", "text": "private File processModule(String appDir, String earDirName, String moduleDirName) {\n String moduleName = moduleDirName;\n if (moduleDirName.endsWith(\"_jar\") || moduleDirName.endsWith(\"_war\") || moduleDirName.endsWith(\"_rar\")) {\n moduleName = moduleDirName.substring(0,moduleDirName.lastIndexOf('_'));\n } \n try {\n \n JarArchiveFactory jaf = new JarArchiveFactory();\n FileArchiveFactory faf = new FileArchiveFactory();\n FileArchive farc = (FileArchive)faf.openArchive(new File(new File(new File(sourceDir, appDir), earDirName), moduleDirName).getAbsolutePath());\n String suffix = \".jar\"; //default to .jar\n //File temp;\n Enumeration e = farc.entries();\n //figure out what type of module this is by the existance of the standard dd's\n while(e.hasMoreElements()) {\n String entry = (String)e.nextElement();\n if (entry.equalsIgnoreCase(\"WEB-INF/web.xml\")) {\n suffix = \".war\";\n } else if (entry.equalsIgnoreCase(\"META-INF/ra.xml\")) {\n suffix = \".rar\";\n }\n }\n //temp = File.createTempFile(moduleName, suffix);\n File tempJar = new File(targetDir, moduleName + suffix);\n String path = tempJar.getAbsolutePath();\n //temp.delete();\n OutputJarArchive targetModule = (OutputJarArchive)jaf.createArchive(path);\n logger.fine(stringManager.getString(\"upgrade.deployment.addingInfoMsg\") + targetModule.getArchiveUri());\n e = farc.entries();\n while(e.hasMoreElements()) {\n String entry = (String)e.nextElement();\n InputStream in = farc.getEntry(entry);\n if (entry.equals(\"WEB-INF/web.xml\")) {\n InputStream fixedDescriptor = fixWebServiceDescriptor(farc);\n if(fixedDescriptor != null) {\n in = fixedDescriptor;\n }\n }\n\t\t //start RFE 6389864\n if(entry.equals(\"WEB-INF/sun-web.xml\")) {\n checkDescriptors(farc, \"sun-web.xml\", \"WEB-INF\");\n }\n if(entry.equals(\"META-INF/sun-ejb-jar.xml\")) {\n checkDescriptors(farc, \"sun-ejb-jar.xml\", \"META-INF\");\n }\n\t\t//end RFE 6389864\n OutputStream out = null;\n try {\n out = targetModule.putNextEntry(entry);\n int i = in.read();\n while (i > -1) {\n out.write(i);\n i = in.read();\n }\n } catch(java.util.zip.ZipException z) {\n logger.warning(stringManager.getString(\"upgrade.deployment.zipExceptionMsg\")+z.getMessage());\n }catch (IOException ioe) {\n logger.severe(stringManager.getString(\"upgrade.deployment.ioExceptionMsg\")+ioe.getMessage());\n }\n finally {\n targetModule.closeEntry();\n if (in != null) in.close();\n //if (out != null) out.close();\n }\n\n }\n InputStream in = farc.getEntry(JarFile.MANIFEST_NAME);\n OutputStream out = null;\n try {\n if(in != null){\n out = targetModule.putNextEntry(JarFile.MANIFEST_NAME);\n int i = in.read();\n while (i > -1) {\n out.write(i);\n i = in.read();\n }\n }\n } catch(java.util.zip.ZipException z) {\n logger.warning(stringManager.getString(\"upgrade.deployment.zipExceptionMsg\")+z.getMessage());\n }catch (IOException ioe) {\n logger.severe(stringManager.getString(\"upgrade.deployment.ioExceptionMsg\")+ioe.getMessage());\n }finally {\n targetModule.closeEntry();\n targetModule.close();\n if (in != null) in.close();\n // if (out != null) out.close();\n }\n return tempJar;\n } catch(IOException ex) {\n logger.severe(stringManager.getString(\"upgrade.deployment.generalExceptionMsg\")+ ex.toString() + \": \" + ex.getMessage());\n }\n return null;\n }", "title": "" }, { "docid": "0b8fcc28f9fb633d33a2de0324b48d3d", "score": "0.3819306", "text": "@Test(groups = {\"wso2.esb\"}, description = \"FileConnector archive file integration test\")\n public void testArchiveFile() throws Exception {\n esbRequestHeadersMap.put(\"Action\", \"urn:archive\");\n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap,\n \"FileArchiveMandatory.json\");\n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 200);\n Assert.assertEquals(true, esbRestResponse.getBody().toString().contains(\"true\"));\n }", "title": "" }, { "docid": "d10cfe3b76120e275722b145caa722a9", "score": "0.38180146", "text": "@CheckReturnValue\n\tpublic static Completable archiveConversations(Collection<ConversationInfo> conversations, boolean archive) {\n\t\tList<Long> conversationIDs = conversations.stream().map(ConversationInfo::getLocalID).collect(Collectors.toList());\n\t\t\n\t\treturn Completable.fromAction(() -> {\n\t\t\tfor(long conversationID : conversationIDs) DatabaseManager.getInstance().updateConversationArchived(conversationID, archive);\n\t\t}).observeOn(AndroidSchedulers.mainThread()).doOnComplete(() -> {\n\t\t\tfor(ConversationInfo conversationInfo : conversations) ReduxEmitterNetwork.getMessageUpdateSubject().onNext(new ReduxEventMessaging.ConversationArchive(conversationInfo, archive));\n\t\t});\n\t}", "title": "" }, { "docid": "2627dccb296b72c816cf6d448576e666", "score": "0.37852284", "text": "public RolesArchivePage clickArchiveButton()\r\n\t{\r\n\t\treadconfig();\r\n\t\tdriver.findElement(By.xpath(elementslocator.getProperty(\"role_archive_button\"))).click();\r\n\t\ttry {\r\n\t\t\tThread.sleep(5000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tAssert.assertEquals(driver.getTitle(),elementslocator.getProperty(\"role_archive_page_title\"));\r\n\t\t//return roles page\r\n\t\treturn new RolesArchivePage(driver);\r\n\t}", "title": "" }, { "docid": "6748eea35bfe0d012567459fb0426590", "score": "0.37732536", "text": "public static MPQArchive createArchive(File f) throws IOException {\n return createArchive(f, StormLibWin.MPQ_CREATE_ARCHIVE_V2, StormLibWin.HASH_TABLE_SIZE_MIN);\n }", "title": "" }, { "docid": "acc60a062e13b3c122909bec99629127", "score": "0.3764719", "text": "public String extrZipFile() {\r\n \t\ttry {\r\n \t\t\tzipFile = new ZipFile(archive);\r\n \t\t\tentries = zipFile.entries();\r\n \t\t\tZipEntry entry = null;\r\n \t\t\t\r\n \t\t\twhile(entries.hasMoreElements()) {\r\n \t\t\t\tentry = (ZipEntry) entries.nextElement();\r\n \t\t\t\tlogger.dump(String.format(\"Extracted file <%s>/%s\", archive, entry.getName()));\r\n \t\t\t\tcopyStream(zipFile.getInputStream(entry), new BufferedOutputStream\r\n \t\t\t\t(new FileOutputStream(entry.getName())));\r\n \t\t\t}\r\n \t\t\tzipFile.close();\r\n \t\t\treturn entry.getName();\r\n \t\t}\r\n \t\tcatch(IOException ioe) {\r\n \t\t\tGaudiApp.displayError(ioe);\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "title": "" }, { "docid": "bf8d7134d372499e78f3570e36651bb1", "score": "0.3760404", "text": "public Vector<Score<T>> getArchive(){\n\t\treturn archive;\n\t}", "title": "" }, { "docid": "a82c1aaabd233bc51cf7eacf29d382d2", "score": "0.37549993", "text": "public XmcdDiscStream(File archive) throws XmcdExtractionException {\n try {\n FileInputStream fin = new FileInputStream(archive);\n BZip2CompressorInputStream bzip2 = new BZip2CompressorInputStream(fin);\n tar = new TarArchiveInputStream(bzip2);\n nextEntry = tar.getNextTarEntry();\n } catch (IOException e) {\n throw new XmcdExtractionException(String.format(\"Could not open file %s\", archive.getName()), e);\n }\n }", "title": "" }, { "docid": "49b6ffbd00516865560dc1c094743abb", "score": "0.37540108", "text": "public YangUInt16 getRetentionArchiveValue() throws JNCException {\n YangUInt16 retentionArchive = (YangUInt16)getValue(\"retention-archive\");\n if (retentionArchive == null) {\n retentionArchive = new YangUInt16(\"10\"); // default\n }\n return retentionArchive;\n }", "title": "" }, { "docid": "8150acc355afee9e62c35394db414569", "score": "0.37525547", "text": "@Test\n public void testCreateArchiveDescriptor() {\n DwcArchiveUtils.createArchiveDescriptor(testFolder.getRoot());\n }", "title": "" }, { "docid": "8c761e3ae6e6494b56401c4d25809f35", "score": "0.37517115", "text": "private String getArchiveName(File file) {\n return file.getName();\n }", "title": "" }, { "docid": "0ff6ad4a26de766d16113ca6978fb4cc", "score": "0.373452", "text": "@Bean\n public MeterFilter excludeTomcatFilter() {\n return MeterFilter.denyNameStartsWith(\"tomcat\");\n }", "title": "" }, { "docid": "15e5d2aecf2a196585e58eb7604a9806", "score": "0.37309873", "text": "public static Archive<?> createModuleArchive(final Set<Package> testPackagesToAdd) {\n final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, \"test-bean-lib.jar\");\n for (final Package p : testPackagesToAdd) {\n archive.addPackage(p);\n }\n archive.addAsManifestResource(EmptyAsset.INSTANCE, \"beans.xml\");\n archive.addAsResource(\"test-persistence.xml\", \"META-INF/persistence.xml\");\n return archive;\n }", "title": "" }, { "docid": "7f045e39fc38d82dc111ee01d4507967", "score": "0.372807", "text": "public final EObject entryRuleTDeploymentArtifacts() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleTDeploymentArtifacts = null;\n\n\n try {\n // ../eu.artist.tosca.dsl/src-gen/eu/artist/tosca/dsl/parser/antlr/internal/InternalToscaDSL.g:6379:2: (iv_ruleTDeploymentArtifacts= ruleTDeploymentArtifacts EOF )\n // ../eu.artist.tosca.dsl/src-gen/eu/artist/tosca/dsl/parser/antlr/internal/InternalToscaDSL.g:6380:2: iv_ruleTDeploymentArtifacts= ruleTDeploymentArtifacts EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTDeploymentArtifactsRule()); \n }\n pushFollow(FollowSets000.FOLLOW_ruleTDeploymentArtifacts_in_entryRuleTDeploymentArtifacts13783);\n iv_ruleTDeploymentArtifacts=ruleTDeploymentArtifacts();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleTDeploymentArtifacts; \n }\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleTDeploymentArtifacts13793); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "07b3c7daa89dfc459578a590d6d80b15", "score": "0.3725158", "text": "Deployment createDeployment();", "title": "" }, { "docid": "e89d5863c2b58d25de5ce85b41c4b6f9", "score": "0.3720059", "text": "private InputStream buildArchiveOnDisk() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "05fdd9017c93d016bd3df654a4879c95", "score": "0.3702565", "text": "public ArchiveType getType() {\n return type;\n }", "title": "" }, { "docid": "292bcf34506352796e6cd5896bf3829d", "score": "0.36994776", "text": "private static IHealthMonitorProcessResult archiveOldFiles(MonitorProcessRequest request) {\n List<File> files = request.getDirectoryDetails().getFiles();\n files.sort(new Comparator<File>() {\n @Override\n public int compare(File f1, File f2) {\n return -1 * Long.compare(f1.lastModified(), f2.lastModified());\n }\n });\n long maxFileSizeBytesAllowed = request.getMaxSizeMBs() * 1024 * 1024;\n long sizeCounter = 0;\n int filesToKeep = 0;\n while (sizeCounter + files.get(filesToKeep).length() <= maxFileSizeBytesAllowed) {\n sizeCounter += files.get(filesToKeep).length();\n filesToKeep++;\n }\n List<File> filesToArchive = new ArrayList<>(files.subList(filesToKeep, files.size()));\n FileUtils.archive(filesToArchive, request.getArchiveDirName());\n return new ArchivalResult(filesToArchive);\n }", "title": "" }, { "docid": "116e3d2c2171812b463f8815625447a0", "score": "0.36959597", "text": "public void markRetentionArchiveCreate() throws JNCException {\n markLeafCreate(\"retentionArchive\");\n }", "title": "" }, { "docid": "231f1f90f472b32fb48039eb6b179527", "score": "0.36885333", "text": "@Deployment\n public static JavaArchive createDeployment() throws Exception {\n return ShrinkWrap.create(JavaArchive.class)\n .addPackages(true, \"org.apache.deltaspike\", \"io.astefanutti.metrics.cdi\", \"datawave.query\", \"datawave.webservice.query.result.event\")\n .deleteClass(DefaultEdgeEventQueryLogic.class).deleteClass(RemoteEdgeDictionary.class)\n .deleteClass(datawave.query.metrics.QueryMetricQueryLogic.class).deleteClass(datawave.query.metrics.ShardTableQueryMetricHandler.class)\n .addAsManifestResource(new StringAsset(\n \"<alternatives>\" + \"<stereotype>datawave.query.tables.edge.MockAlternative</stereotype>\" + \"</alternatives>\"),\n \"beans.xml\");\n }", "title": "" }, { "docid": "d66feb461db1fdb68ef700a849f41738", "score": "0.3685674", "text": "public static void extractTarArchive(File file, String folder) throws IOException {\n logger.info(\"Extracting archive {} into folder {}\", file.getName(), folder);\n // @formatter:off\n try (FileInputStream fis = new FileInputStream(file);\n BufferedInputStream bis = new BufferedInputStream(fis);\n GzipCompressorInputStream gzip = new GzipCompressorInputStream(bis); \n TarArchiveInputStream tar = new TarArchiveInputStream(gzip)) {\n // @formatter:on\n TarArchiveEntry entry;\n while ((entry = (TarArchiveEntry) tar.getNextEntry()) != null) {\n extractEntry(entry, tar, folder);\n }\n }\n logger.info(\"Archive extracted\"); \n }", "title": "" }, { "docid": "458d7f81afe10e04166e84133c8d5f04", "score": "0.3675757", "text": "@Test\r\n\tpublic void test_download_tomcat() throws Exception {\r\n\t}", "title": "" }, { "docid": "51efd024667fdf44142564eeeafc641b", "score": "0.36662978", "text": "private Archive createCarArchive(CodeSettings codeSettings, Set<Artifact> libraries)\n\t\t\tthrows MojoExecutionException {\n\t\ttry {\n\t\t\tFile carFile = getOutputFile(outputDirectory, finalName, CarArchiver.TYPE);\n\n\t\t\tCarArchiver carArchiver = new CarArchiver(carFile, codeSettings, libraries);\n\t\t\tcarArchiver.setIncludedLibraries(!outputLibrary);\n\t\t\tcarArchiver.setCreatedBy(getCreatedBy());\n\n\t\t\treturn carArchiver.createArchive();\n\t\t} catch (Exception e) {\n\t\t\tthrow new MojoExecutionException(\"Error occurred while generating CAR archive! --\" + e.getMessage(), e);\n\t\t}\n\t}", "title": "" }, { "docid": "723261e9c2089d73555a15c3ed8279bb", "score": "0.36129746", "text": "@PostMapping(AvpProtocol.TRANSFER)\n\tpublic ResponseEntity<AcknowledgementType> archiveTransfer(\n\t\t\t@Valid @RequestBody final ArchiveTransferType archiveTransfer) {\n\t\tLOGGER.info(\"ArchiveTransfer received : {} \", archiveTransfer.getTransferIdentifier());\n\n\t\tsedaService.archiveTransfer(modelMapper.map(archiveTransfer, ArchiveTransferTypeDto.class));\n\n\t\treturn ResponseEntity.ok(sedaObjectFactory.createAcknowledgementType());\n\t}", "title": "" }, { "docid": "c19b2b1d4b36686fcd5616cad79463af", "score": "0.36096227", "text": "public static void main(String[] args) throws Exception {\n ZipFile war = new ZipFile(\"war.zip\");\n ZipOutputStream append = new ZipOutputStream(new FileOutputStream(\"append.zip\"));\n\n // first, copy contents from existing war\n Enumeration<? extends ZipEntry> entries = war.entries();\n while (entries.hasMoreElements()) {\n ZipEntry e = entries.nextElement();\n System.out.println(\"copy: \" + e.getName());\n append.putNextEntry(e);\n if (!e.isDirectory()) {\n copy(war.getInputStream(e), append);\n }\n append.closeEntry();\n }\n\n // now append some extra content\n ZipEntry e = new ZipEntry(\"answer.txt\");\n System.out.println(\"append: \" + e.getName());\n append.putNextEntry(e);\n append.write(\"42\\n\".getBytes());\n append.closeEntry();\n\n // close\n war.close();\n append.close();\n }", "title": "" }, { "docid": "b5ab71072d7fe694b2cbc50b5056a11b", "score": "0.36079323", "text": "public void setLogAgentCompressLogs(Boolean logAgentCompressLogs) {\n this.logAgentCompressLogs = logAgentCompressLogs;\n }", "title": "" }, { "docid": "3473a8b8040f8fa35d5ffed998a1007d", "score": "0.3602907", "text": "private static void compress(final String caminho, final File arquivo,\n\t\t\tfinal ZipOutputStream saida) throws IOException {\n\t\tfinal boolean dir = arquivo.isDirectory();\n\t\tfinal String nome = arquivo.getName();\n\t\tfinal ZipEntry elemento = new ZipEntry(caminho + '/' + nome + (dir ? \"/\" : \"\"));\n\t\telemento.setSize(arquivo.length());\n\t\telemento.setTime(arquivo.lastModified());\n\t\tsaida.putNextEntry(elemento);\n\t\tif (dir) {\n\t\t\tfinal File[] arquivos = arquivo.listFiles();\n\t\t\tfor (int i = 0; i < arquivos.length; i++) {\n\t\t\t\t// recursivamente adiciona outro arquivo ao ZIP\n\t\t\t\tcompress(caminho + '/' + nome, arquivos[i], saida);\n\t\t\t}\n\t\t} else {\n\t\t\tfinal FileInputStream entrada = new FileInputStream(arquivo);\n\t\t\tcopy(entrada, saida);\n\t\t\tentrada.close();\n\t\t}\n\t}", "title": "" }, { "docid": "e0603f4b5de8a10c379f07a5d965b98b", "score": "0.36021957", "text": "public FileSystemCrawlerArchiveAware(final Executor executor, final List<ResourceFilter> filters) {\n super(filters);\n this.crawler = new ArchiveCrawler(executor);\n }", "title": "" }, { "docid": "c989edf82af68de1b84e0a40952a2cdd", "score": "0.35974258", "text": "public static void updateManifest(File bundleJar, Manifest replacementManifest) throws IOException {\n\t\tLog.v(TAG, \"updateManifest for: \" + bundleJar);\n\t\t// Create tmp paths and files\n\t\tString tmpPath = bundleJar.getParent() + \"/\" + UUID.randomUUID().toString() + \".tmp\";\n\t\tFile tempFile = new File(tmpPath);\n\t\tString manifestPath = bundleJar.getParent() + \"/\" + UUID.randomUUID().toString() + \".mf\";\n\t\tFile manifestFile = new File(manifestPath);\n\t\treplacementManifest.write(new FileOutputStream(manifestPath));\n\t\t// delete it, otherwise you cannot rename your existing zip to it.\n\t\ttempFile.delete();\n\t\tboolean renameOk = bundleJar.renameTo(tempFile);\n\t\tif (!renameOk) {\n\t\t\tthrow new RuntimeException(\"could not rename the file \" + bundleJar.getAbsolutePath() + \" to \"\n\t\t\t\t\t+ tempFile.getAbsolutePath());\n\t\t}\n\t\tbyte[] buf = new byte[DynamixService.getConfig().getDefaultBufferSize()];\n\t\tZipInputStream zin = new ZipInputStream(new FileInputStream(tempFile));\n\t\tZipOutputStream out = new ZipOutputStream(new FileOutputStream(bundleJar));\n\t\tZipEntry entry = zin.getNextEntry();\n\t\twhile (entry != null) {\n\t\t\tString name = entry.getName();\n\t\t\t// Copy everything except for the manifest\n\t\t\tif (!name.equalsIgnoreCase(\"META-INF/MANIFEST.MF\")) {\n\t\t\t\t// Add ZIP entry to the output stream.\n\t\t\t\tout.putNextEntry(new ZipEntry(entry.getName()));\n\t\t\t\tint len;\n\t\t\t\twhile ((len = zin.read(buf)) > 0) {\n\t\t\t\t\tout.write(buf, 0, len);\n\t\t\t\t}\n\t\t\t}\n\t\t\tentry = zin.getNextEntry();\n\t\t}\n\t\t// Close the input stream\n\t\tzin.close();\n\t\t// Create and InputStream from the manifestFile\n\t\tInputStream in = new FileInputStream(manifestFile);\n\t\t// Add the new manifest entry to the output stream.\n\t\tout.putNextEntry(new ZipEntry(\"META-INF/MANIFEST.MF\"));\n\t\tint len;\n\t\twhile ((len = in.read(buf)) > 0) {\n\t\t\tout.write(buf, 0, len);\n\t\t}\n\t\t// Complete the entry\n\t\tout.closeEntry();\n\t\tin.close();\n\t\t// Complete the ZIP file\n\t\tout.close();\n\t\t// Delete all tmp files\n\t\ttempFile.delete();\n\t\tmanifestFile.delete();\n\t}", "title": "" } ]
b8dfab2d76a100bbfa14c6552b5d1dd4
End of load config Returns the desired date format from the config menu
[ { "docid": "ffa80d43f037c6e188201c65c1c266cb", "score": "0.4843846", "text": "public static String dateForm(){\n String [] format={\"dd/MM/yyyy\",\"dd-MM-yyyy\",\"yyyy-MM-dd\",\"yyyy/MM/dd\"};\n StringBuffer selection=new StringBuffer();\n \n switch(Config.comboDateform.getSelectedIndex()){\n \n case 0:\n selection.append(format[0]);\n break;\n \n case 1:\n selection.append(format[1]);\n break;\n \n case 2:\n selection.append(format[2]);\n break;\n \n case 3:\n selection.append(format[3]);\n break;\n }\n \n return selection.toString();\n \n }", "title": "" } ]
[ { "docid": "79fa84ecdb67ff881a41fa557b8b6e0f", "score": "0.6409236", "text": "@Override\r\n protected String getLogDateFormat() { return DBFluteConfig.getInstance().getLogDateFormat(); }", "title": "" }, { "docid": "d50742e9d27991b601c1283f5c39fe10", "score": "0.57974", "text": "protected static String getDefaultDateFormat() {\n\t\t// Yantra default date-time string format\n\t\treturn \"yyyyMMdd'T'HH:mm:ss\";\n\t}", "title": "" }, { "docid": "271e1a5fcc1f7530a48424f4f0350fd7", "score": "0.5796937", "text": "@Config(\"default_timestamp_format\")\n @ConfigDefault(\"\\\"%Y-%m-%d %H:%M:%S.%6N %z\\\"\")\n public String getDefaultTimestampFormat();", "title": "" }, { "docid": "fc3f3bd22bbb363b9cc4fdc7fa80848b", "score": "0.5785111", "text": "void setupRender() {\n outputFormat = new SimpleDateFormat(datePattern, locale);\n }", "title": "" }, { "docid": "700f60298b0ff2dde0fe73786ce31a6d", "score": "0.5770517", "text": "private void parseDateFormats() {\n String[] dateEntries = getResources().getStringArray(\n R.array.clock_date_format_entries_values);\n CharSequence parsedDateEntries[];\n parsedDateEntries = new String[dateEntries.length];\n Date now = new Date();\n\n int lastEntry = dateEntries.length - 1;\n int dateStyle = Settings.System.getInt(mResolver,\n STATUS_BAR_CLOCK_DATE_FORMAT, 2);\n for (int i = 0; i < dateEntries.length; i++) {\n if (i == lastEntry) {\n parsedDateEntries[i] = dateEntries[i];\n } else {\n String newDate;\n CharSequence dateString = DateFormat.format(dateEntries[i], now);\n if (dateStyle == 1) {\n newDate = dateString.toString().toLowerCase();\n } else if (dateStyle == 2) {\n newDate = dateString.toString().toUpperCase();\n } else {\n newDate = dateString.toString();\n }\n\n parsedDateEntries[i] = newDate;\n }\n }\n mDateFormat.setEntries(parsedDateEntries);\n }", "title": "" }, { "docid": "033129c4a2c301516ae9063698b41ab6", "score": "0.5660798", "text": "private static String getDefaultDateFormat( String dataType )\n \t{\n \t\tString defFormat = null;\n \t\tif ( DesignChoiceConstants.PARAM_TYPE_DATETIME\n \t\t\t\t.equalsIgnoreCase( dataType ) )\n \t\t{\n \t\t\tdefFormat = ParameterValidationUtil.DEFAULT_DATETIME_FORMAT;\n \t\t}\n \t\telse if ( DesignChoiceConstants.PARAM_TYPE_DATE\n \t\t\t\t.equalsIgnoreCase( dataType ) )\n \t\t{\n \t\t\tdefFormat = ParameterValidationUtil.DEFAULT_DATE_FORMAT;\n \t\t}\n \t\telse if ( DesignChoiceConstants.PARAM_TYPE_TIME\n \t\t\t\t.equalsIgnoreCase( dataType ) )\n \t\t{\n \t\t\tdefFormat = ParameterValidationUtil.DEFAULT_TIME_FORMAT;\n \t\t}\n \n \t\treturn defFormat;\n \t}", "title": "" }, { "docid": "57e006a738ac35e5e91f8e9dc26c462f", "score": "0.5618179", "text": "public void setDateFormat(String format);", "title": "" }, { "docid": "0d4247ff11058c2a05873792f9ad6f2a", "score": "0.55953705", "text": "public String getEndDateFormat() {\n\t\treturn endDateFormat;\n\t}", "title": "" }, { "docid": "9cba730a889542fbf009d609ac12ce45", "score": "0.55931586", "text": "public String getDatePrescriptionWritten() {\r\n\t\t return getValue(\"DE\");\r\n\t\t }", "title": "" }, { "docid": "c8f68eec75b9e6e8a3b9a6116460961a", "score": "0.55384165", "text": "String getDateFormat();", "title": "" }, { "docid": "1f6f633735ad76a0917c5d2e0260fbb5", "score": "0.55264705", "text": "@Override\n public String textFileFormatting() {\n return String.format(super.textFileFormatting() + \";\" + deadlineDate);\n }", "title": "" }, { "docid": "488278e9beec616974df6935a93cc0d9", "score": "0.54810303", "text": "public static String getFormatDate(){\n\t\tCuadranteDates dtToday = new CuadranteDates(\"\");\n\t\treturn formatDate(dtToday.getYear(), dtToday.getMonth(), dtToday.getDay());\n\t}", "title": "" }, { "docid": "28f8d0f446f145ee6eeab251ed567207", "score": "0.5439581", "text": "@Override\r\n\tpublic int getDateFmt() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "97946e74bb8f8d96f77da213c3025411", "score": "0.5432562", "text": "public String getDateFormat();", "title": "" }, { "docid": "cd965e74b30d2833b52b9b7cc19052bb", "score": "0.5416378", "text": "@Override\r\n\tpublic String getFormatUpdateDate(Application a) {\n\t\tString updateDate= a.getUpdateDate();\r\n\t\tStringTokenizer st = new StringTokenizer(updateDate,\" \");\r\n\t\tString result = \"\";\r\n\t\tif(st.hasMoreTokens()){\r\n\t\t\tresult = st.nextToken();\r\n\t\t\t\t\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "d2308358c3e559f240699bf07dfc5288", "score": "0.5403434", "text": "@Override\n\tpublic String dateFormat() {\n\t\treturn DATE_FORMAT;\n\t}", "title": "" }, { "docid": "67c6477a33c1c0bd19698f19b3dbb9a3", "score": "0.5399232", "text": "private void enterSequence_main_Region_mode_mode_date_printed_default() {\r\n\t\tentryAction_main_Region_mode_mode_date_printed();\r\n\t\tstateVector[0] = State.MAIN_REGION_MODE_MODE_DATE_PRINTED;\r\n\t\tstateConfVectorPosition = 0;\r\n\t\t\r\n\t\thistoryVector[0] = stateVector[0];\r\n\t}", "title": "" }, { "docid": "0d77ad98a3746a7096be139541219d01", "score": "0.53694093", "text": "@Override\r\n\tpublic void setDateFmt(int arg0) throws NotesApiException {\n\r\n\t}", "title": "" }, { "docid": "820b0eee534c7bee2367546c56dec0bf", "score": "0.53554076", "text": "@Override\r\n\tpublic int getTimeDateFmt() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "17470a2afcf3d33188e24da43e61fbca", "score": "0.5336993", "text": "private void entryAction_main_Region_mode_mode_date_printed() {\r\n\t\ttimerService.setTimer(this, 1, (1 * 1000), false);\r\n\t}", "title": "" }, { "docid": "08df72258939d80977cc2621f5dd9a4c", "score": "0.5303537", "text": "protected static String getShortDefaultDateFormat() {\n\t\t// Yantra short default date string format\n\t\treturn YYYYMMDD;\n\t}", "title": "" }, { "docid": "38d767a85d38d8c93282dabebd775631", "score": "0.5299523", "text": "private DateTimeFormat() {\n }", "title": "" }, { "docid": "9bee307a606bf4d66923aa966fb2cd75", "score": "0.52686894", "text": "public static String getCurrentFormatDate(String format) {\n String date = \"\";\n try {\n SimpleDateFormat sdf = new SimpleDateFormat(format);\n date = sdf.format(new java.util.Date());\n baseLogger.log(I2cLogger.FINEST,\n \"<- Current date is ---->\" + date);\n }\n catch (Exception e) {\n baseLogger.log(I2cLogger.WARNING,\n \"Exception in Getting DB Format date --->\" + e);\n } //end catch\n return date;\n }", "title": "" }, { "docid": "8039f66aaa4cb37283fe6b1dd3e67607", "score": "0.52125174", "text": "public String getEuropeanFormat()\r\n\t{\r\n\t\treturn String.format(\"%02d/%02d/%04d\", this.getDay(), this.getMonth() , this.getYear());\r\n\t}", "title": "" }, { "docid": "646cbff18d8279aaae5a38b80fc3860f", "score": "0.5199933", "text": "protected static String getDefaultDateFormatISO() {\n\t\t// Yantra default date-time string format\n\t\treturn \"yyyy-MM-dd'T'HH:mm:ss\";\n\t}", "title": "" }, { "docid": "ac555e6721c51632e98fa83326fedcf8", "score": "0.5192652", "text": "private String getWrittenDate(){\n\t\treturn HL7DateFormatUtility.formatHL7TSFormatL8Date(new Date());\t\t\n\t}", "title": "" }, { "docid": "03463c193d41f15e25c12454a8263ee8", "score": "0.51917166", "text": "private void configuration_Of_Date_Selection() {\n dateManagement = new DateManagement(this);\n dateManagement.calendar_Listener_Configuration();\n }", "title": "" }, { "docid": "ab8bb364abf27960260f0d2c39695f33", "score": "0.51778364", "text": "private LocalDate getPeriodEndDateFormatted(DocumentGeneratorResponse response) {\n\n return accountsDatesHelper.convertStringToDate(response.getDescriptionValues().get(PERIOD_END_ON));\n }", "title": "" }, { "docid": "518a972f0cec0009ea28a2dd9bcb19a8", "score": "0.5174781", "text": "private void exitSequence_main_Region_mode_mode_date_printed() {\r\n\t\tstateVector[0] = State.$NULLSTATE$;\r\n\t\tstateConfVectorPosition = 0;\r\n\t\t\r\n\t\texitAction_main_Region_mode_mode_date_printed();\r\n\t}", "title": "" }, { "docid": "bc59d6942c068b55fbc0e5668afde8ed", "score": "0.51731926", "text": "@Override\n public String getDateString()\n {\n return date;\n }", "title": "" }, { "docid": "b70ee642112aa5fd9f3da1c75c411666", "score": "0.51554", "text": "public int getDateTimeFormat(){\n return _container.getHeadersFootersAtom().getFormatId();\n }", "title": "" }, { "docid": "dfd1c0dfc4f7ff4316610bac36778ca6", "score": "0.5130584", "text": "public String getDateFormat()\r\n {\r\n return convertDateFormat(((OwMainAppContext) getContext()).getDateFormatString());\r\n }", "title": "" }, { "docid": "80e282ed1263fb3acae395a7b1598c5b", "score": "0.5124762", "text": "private void initDateFormats() {\n Vector<DateFormat> v = new Vector<>();\n\n // generic Java default\n // 10-Sep-99 3:25:11 PM\n v.add(DateFormat.getDateTimeInstance());\n v.add(DateFormat.getDateTimeInstance(DateFormat.DEFAULT,\n DateFormat.DEFAULT,\n Locale.ENGLISH));\n\n // standard IETF date syntax\n // Fri, 10 September 1999 03:25:12 PDT\n v.add(new SimpleDateFormat(\"EEE, dd MMMM yyyy HH:mm:ss zzz\"));\n v.add(new SimpleDateFormat(\"EEE, dd MMMM yyyy HH:mm:ss zzz\", Locale.ENGLISH));\n\n // Unix C time\n // Fri Sep 10 14:41:37 PDT 1999\n v.add(new SimpleDateFormat(\"EEE MMM dd HH:mm:ss zzz yyyy\"));\n v.add(new SimpleDateFormat(\"EEE MMM dd HH:mm:ss zzz yyyy\", Locale.ENGLISH));\n\n // allow user-specified format\n String s = System.getProperty(\"javatest.date.format\");\n if (s != null) {\n v.add(new SimpleDateFormat(s));\n }\n\n dateFormats = v.toArray(new DateFormat[v.size()]);\n }", "title": "" }, { "docid": "8c0d22e7d9d3621f75dac6e1fcd542c1", "score": "0.5116221", "text": "public DateFormat\ngetDateFormat()\n{\n return dateFormat;\n}", "title": "" }, { "docid": "1094a5654cb97cdd7dc4eaa3caf4c1be", "score": "0.51140106", "text": "@SuppressWarnings(\"serial\")\n\tprivate void configurarFecha() {\n\t\t\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\n\t\t\n\t\tjFormattedFecha = new JFormattedTextField(new JFormattedTextField.AbstractFormatter() {\n\t\t\t\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object stringToValue(String text) throws ParseException {\n\t\t\t\ttry {\n\t\t\t\t\treturn sdf.parse(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String valueToString(Object value) throws ParseException {\n\t\t\t\tif (value != null && value instanceof Date) {\n\t\t\t\t\t\n\t\t\t\t\treturn sdf.format((Date) value); \n\t\t\t\t}\n\t\t\t\treturn \"\";\n\t\t\t}\n\n\t\t}); \n\t\t\n\t\t\n\t\tjFormattedFecha.setPreferredSize(new Dimension(100,20));\n\t\tjFormattedFecha.setValue(new Date());\n\t}", "title": "" }, { "docid": "bc0f79b38ca1b9b7cb8df7f80a8e2419", "score": "0.51080126", "text": "public List<String> getDateFormats() {\n return dateFormats;\n }", "title": "" }, { "docid": "9bf30c1e3e424361fc8c59132ee00fff", "score": "0.5098456", "text": "private void dateLoader() throws IOException {\n DirectoryConfigurations.validateSettingsDirectory();\n DirectoryConfigurations.validateSettingsDataFile();\n if (this.settingsMap != null) {\n final Gson gson = new GsonBuilder().create();\n final String json = Files.readString(Path.of(DirectoryConfigurations.SETTINGS_DATA_FILE_PATH),\n StandardCharsets.UTF_8);\n if (!json.isEmpty()) {\n final Type typeOfHashMap = new TypeToken<Map<SettingTypeEnum, String>>() {\n }.getType();\n this.settingsMap = gson.fromJson(json, typeOfHashMap);\n }\n\n }\n\n }", "title": "" }, { "docid": "863c398ef1c57730863ea77826ee5f87", "score": "0.5092422", "text": "public static void setLocaleEnd() {\r\n\t\t//#ifdef DEBUG\r\n\t\t// debug.trace(\"setLocaleEnd\");\r\n\t\t//#endif\r\n\t\tLocale.setDefault(prev);\r\n\t}", "title": "" }, { "docid": "22a6664d0df10b5a71bddf1c8d08e22c", "score": "0.5065277", "text": "private void getLogDates() {\n\t\t//Long lastModified = new File(ticketURL).lastModified();\n\n\t\tthis.logDate = Tools.getFileCreationDate(ticketURL, false);//new SimpleDateFormat(\"M/d/yy h:mm a\").format(lastModified);\n\t\tthis.dateForSort = Tools.getFileCreationDate(ticketURL, true);//new SimpleDateFormat(\"MM/dd/yy HH:mm:SS\").format(lastModified);\n\n\t\t//System.out.println();\n\t\t//System.out.println(\"Modified: \" + logDate);\n\t\t//System.out.println(\"Created: \" + Tools.getFileCreationDate(ticketURL, false));\n\t\t//System.out.println();\n\t}", "title": "" }, { "docid": "7263122dbf0ebc6637f6f34bdae3c12d", "score": "0.5044687", "text": "public void dateEdit(int format, Glb GLB) {\n\t\tdateConvert(format, 0, GLB, true);\n\t}", "title": "" }, { "docid": "b3a6f4d580ca76aecede76e23bf311e9", "score": "0.50356233", "text": "public String getTimeFormat()\n/* */ {\n/* 117 */ return ((DateFormatCache)this.localDateCache.get()).getTimeFormat();\n/* */ }", "title": "" }, { "docid": "4630d6abb953c12ce12a019a4c8414f3", "score": "0.50271213", "text": "public java.lang.String getEnd_date(){\n return localEnd_date;\n }", "title": "" }, { "docid": "51ae1c3a6b08c7c9f2ff59391a33f5ff", "score": "0.5024017", "text": "private void exitAction_main_Region_mode_mode_date_printed() {\r\n\t\ttimerService.unsetTimer(this, 1);\r\n\t}", "title": "" }, { "docid": "5792dc03a95c39f3ac935211be1fe2d1", "score": "0.50115335", "text": "private String setDate() {\n String d = new java.util.Date().toString();\n String day = d.split(\" \")[2];\n String month = d.split(\" \")[1];\n String year = d.split(\" \")[5];\n String date = day + \"/\" + month + \"/\" + year;\n String time = d.split(\" \")[3];\n return date + \":\" + time;\n }", "title": "" }, { "docid": "56875f660be0ef1effd2c2fc342a0546", "score": "0.5008399", "text": "private void updateLabel() {\n String myFormat = \"dd/MM/yy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n issueDate.setText(sdf.format(myCalendar.getTime()));\n }", "title": "" }, { "docid": "1095299787d024f07911d80262c47fb7", "score": "0.5005234", "text": "private String dateManager(String str){\r\n\t\tStringBuffer sb=new StringBuffer();\r\n\t\t\r\n\t\tsb.append(str.substring(0, 4));\r\n\t\tsb.append(\"-\");\r\n\t\tsb.append(str.substring(4, 6));\r\n\t\tsb.append(\"-\");\r\n\t\tsb.append(str.substring(6, 8));\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(str.substring(8, 10));\r\n\t\tsb.append(\":\");\r\n\t\tsb.append(str.substring(10, 12));\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "a175019a7655cde26918779a555e694c", "score": "0.5004206", "text": "@Test\r\n\tpublic void testDate() throws ParseException {\n\t\tcurr_date1 = formatter.format(curr_date);\r\n\r\n\t\t//getting the last date for filling application forms\r\n\t\tapplnDate = formatter.parse(application.GetDate());\r\n\t\tcurr_date2 = formatter.format(applnDate);\r\n\t\t\r\n\t\t//checking if today is the last date for filling application forms\r\n\t\tassertEquals(curr_date1,application.GetDate());\r\n\t\t\tSystem.out.println(\"today is the last date for filling application forms\");\r\n\t}", "title": "" }, { "docid": "6357b0ef756a5ace5e5bf40ac568d209", "score": "0.49967766", "text": "public static void saveConfig(){\n \n Config_class.getinstance().setDate_format(dateForm());\n Config_class.getinstance().setCurrency(Currency());\n Config_class.getinstance().setLanguage(Language());\n// Config_class.getinstance().setFile_format(FileForm());\n Config_class.getinstance().setTheme(Theme());\n Config_class.getinstance().setDecimals(Decimals());\n \n }", "title": "" }, { "docid": "f43d3d9981458e4be2f37e4f76e62d10", "score": "0.4991637", "text": "public static void main(String[] args) {\n DateTimeFormatter fecha_act = DateTimeFormatter.ofPattern(\"yyy/MM/dd HH:mm:ss\");\n System.out.println(\"Fecha actual en formato AAAA/MM/DD HH:MM:SS\");\n System.out.println(fecha_act.format(LocalDateTime.now()));\n }", "title": "" }, { "docid": "55bf7d0e72f95601cc537b3b5b92fac8", "score": "0.4979495", "text": "Format getFormat();", "title": "" }, { "docid": "2dee739b846f34f9784812448bdad3a8", "score": "0.49768695", "text": "@Override\n\tpublic String getDate(long add, String format) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e5c812b75d84538fa6385ea72f91503d", "score": "0.49743468", "text": "public interface DateFormattingProps {\n String DATE_FORMAT_SERIALIZER_PATTERN = \"yyyy-MM-dd'T'HH:mm:ss.SSSXXX\";\n List<String> DATE_FORMAT_DESERIALIZER_PATTERNS =\n unmodifiableList(asList(DATE_FORMAT_SERIALIZER_PATTERN, \"yyyy-MM-dd'T'HH:mm:ssXXX\"));\n\n String UTC_TIMEZONE = \"UTC\";\n}", "title": "" }, { "docid": "07893427851d3fa91cf7b9b6c606c6f2", "score": "0.49732944", "text": "@Override\r\n\tpublic int getTimeFmt() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "07a152b7ed9d19430b7e2d1edd0684b7", "score": "0.49601668", "text": "public String getFormattedDate() {\n return date_maintenance;\n }", "title": "" }, { "docid": "12d188e0e04a1b15e911dbc98c9432ff", "score": "0.49484256", "text": "MPXDateFormat getDateFormat ()\n {\n return (m_dateFormat);\n }", "title": "" }, { "docid": "fecd3c1343e3dc4a4a263172d7b10dae", "score": "0.4946784", "text": "@Test\r\n\tpublic final void testReadFormatPattern() {\r\n\t\tString defaultFormatPattern = Configurator.defaultConfig().create().getFormatPattern();\r\n\r\n\t\tConfigurator configurator = Configurator.defaultConfig();\r\n\t\tPropertiesLoader.readFormatPattern(configurator, new PropertiesBuilder().create());\r\n\t\tassertEquals(defaultFormatPattern, configurator.create().getFormatPattern());\r\n\r\n\t\tconfigurator = Configurator.defaultConfig();\r\n\t\tPropertiesLoader.readFormatPattern(configurator, new PropertiesBuilder().set(\"tinylog.format\", \"\").create());\r\n\t\tassertEquals(defaultFormatPattern, configurator.create().getFormatPattern());\r\n\r\n\t\tconfigurator = Configurator.defaultConfig();\r\n\t\tPropertiesLoader.readFormatPattern(configurator, new PropertiesBuilder().set(\"tinylog.format\", \"My log entry: {message}\").create());\r\n\t\tassertEquals(\"My log entry: {message}\", configurator.create().getFormatPattern());\r\n\t}", "title": "" }, { "docid": "65f413a7a288b1025336613376b68653", "score": "0.494674", "text": "protected String getDateDisplay()\r\n {\r\n\r\n if (created == null) return \"\";\r\n String retval =\r\n \"Date:\" + created + \" - iso=\" + created;\r\n return retval;\r\n }", "title": "" }, { "docid": "415290a0f1a5f69348427ddc95e05681", "score": "0.49371698", "text": "public String getFormat() { return format; }", "title": "" }, { "docid": "81e1d81abf5311ee27b2a16af7cb6a35", "score": "0.49136254", "text": "public String PREF_DOWNLOAD_DATE()\n {\n return PREFERENCES_START()+\"_DownloadDate\";\n }", "title": "" }, { "docid": "e3aec6f678bd5be5e37665bb19e576f2", "score": "0.49121553", "text": "public void setDate(String p) {\n if (p != null && p.trim().length() > 0) {\n addCommandArgument(\"-D\");\n addCommandArgument(p);\n }\n }", "title": "" }, { "docid": "2ad497ef7ac69a300fb9a08f3ddc15c5", "score": "0.49121046", "text": "public String getViewDateRang() {\r\n \t\treturn viewDateRang;\r\n \t}", "title": "" }, { "docid": "a82fa8ad74fc9f2a32fa55ec3bdb6f78", "score": "0.49111354", "text": "private CoreApiDateFormat() {\n super();\n //set default values (not to be used) so that clone, equals do not cause null pointer exceptions\n setCalendar(Calendar.getInstance());\n setNumberFormat(NumberFormat.getInstance());\n allDateFormats = new DateFormat[4];\n allDateFormats[0]=(DateFormat)DATE_FORMAT_ISO8601.clone();\n allDateFormats[1]=(DateFormat)DATE_FORMAT_ISO8601_Z.clone();\n allDateFormats[2]=(DateFormat)DATE_FORMAT_ISO8601_NO_MS.clone();\n allDateFormats[3]=(DateFormat)DATE_FORMAT_ISO8601_Z_NO_MS.clone();\n }", "title": "" }, { "docid": "ff367a22972949f00d7f3c14ba6688ca", "score": "0.4906051", "text": "public String getUserDatePattern();", "title": "" }, { "docid": "a944a33036d83bd663ef54494357bf13", "score": "0.4902051", "text": "public String getExtensionDateString() {\r\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString date = format.format(getExtensionDate());\r\n\treturn date;\r\n\t}", "title": "" }, { "docid": "b19008911a689573abcbff7a50274d45", "score": "0.49015722", "text": "@Override\n\tprotected void ensureDatesPopulated() {\n\t\t\n\t}", "title": "" }, { "docid": "493de1739d66a1d609cb3f1a522b5ae1", "score": "0.49014583", "text": "public java.lang.String getFecha_sol_falla();", "title": "" }, { "docid": "5f2ce0cbbff13d823f6f59be77212c13", "score": "0.48977768", "text": "private void updateLabel() {\n String myFormat = \"MM/dd/yy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n dateInput.setText(sdf.format(myCalendar.getTime()).substring(0, 5));\n putDateIn = true;\n }", "title": "" }, { "docid": "8703b7786d1dc7f072dc0b4aa2d69c76", "score": "0.48892388", "text": "int getFormatSettingValue();", "title": "" }, { "docid": "754cf2bab61146ff1ed88242e5016973", "score": "0.48857874", "text": "public NSDictionary retrieveDicoDateMaxReliquat() {\r\n\t\treturn EOParametre.retrieveDicoParam(new EOEditingContext(), Parametre.PREFIX_PARAM_DATE_MAX_RELIQUAT, Parametre.PARAM_VALUE_TYPE_STRING);\r\n\t}", "title": "" }, { "docid": "11f825e993d858d7ca407f17b95344d3", "score": "0.4880765", "text": "private String getCorrectDate(final Game game) {\r\n\t\tString dateCorrectFormat = \"\";\r\n\t\tif (game.getGameStartTime().contains(\"CET\")) {\r\n\t\t\tdateCorrectFormat = game.getGameStartTime().replace(\" CET\", \"\");\r\n\t\t} else {\r\n\t\t\tdateCorrectFormat = game.getGameStartTime().replace(\" EET\", \"\");\r\n\t\t}\r\n\t\treturn dateCorrectFormat;\r\n\t}", "title": "" }, { "docid": "44e8e674d01b60dacadd94f227792f71", "score": "0.4878345", "text": "DataFormat getDataFormat();", "title": "" }, { "docid": "b7a69504f83b80fe904befc257e17e63", "score": "0.48724186", "text": "public void setRegistDateCollect()\n\t{\n\t\tsetCollect(_Prefix + NextProcessInfo.REGISTDATE.toString(), \"\");\n\t}", "title": "" }, { "docid": "5e13ff9fb2943ce252d25b0b942af232", "score": "0.4865372", "text": "String getEndDate();", "title": "" }, { "docid": "ee91bb2966420d7f353d04b1f52527d8", "score": "0.4864708", "text": "public static String getPattern(){\r\n\t\treturn datePattern;\r\n\t}", "title": "" }, { "docid": "329ae2027c637261306fa52cfa8b5913", "score": "0.48608208", "text": "public String getAppStartedDateFormatted()\r\n\t{\r\n\t\treturn df.format(appStartedDate);\r\n\t}", "title": "" }, { "docid": "5e231029bb481284a5677f50153baeae", "score": "0.4860773", "text": "public void configCalendar(){\n}", "title": "" }, { "docid": "bc681adaab63ad0106e24e868c0d2986", "score": "0.48491842", "text": "public static String getDatePattern() {\r\n return datePattern;\r\n }", "title": "" }, { "docid": "e4ed75c89f98d49b3426a861f216a45b", "score": "0.48483047", "text": "public String getEndDate() {\n if (end == null) {\n return \"N/A\";\n }\n String[] data = end.toString().split(\" \");\n return data[1] + \" \" + data[2] + \", \" + data[5];\n }", "title": "" }, { "docid": "7730152af1f31ceee37df18e13aeb2c4", "score": "0.48444402", "text": "private static String getActualDate() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd.MM.yyyy HH:mm:ss\");\r\n LocalDateTime today = LocalDateTime.now();\r\n return formatter.format(today);\r\n }", "title": "" }, { "docid": "dd0b2bd513818c2856e1a2d1b6a62eef", "score": "0.48443425", "text": "@Override\n\tpublic void printDateOFfile() {\n\t\tSystem.out.println(\"I am inside the printDateOfFile function of txt\");\n\t}", "title": "" }, { "docid": "121c3267bf059b8ed0522e6a30b42b21", "score": "0.48425326", "text": "public static int filldateForm(){\n String [] format={\"dd/MM/yyyy\",\"dd-MM-yyyy\",\"yyyy-MM-dd\",\"yyyy/MM/dd\"};\n int selection=0;\n \n \n if(Config_class.getinstance().getDate_format().equals(format[0])){\n selection=0;\n }\n else if(Config_class.getinstance().getDate_format().equals(format[1])){\n selection=1;\n }\n else if(Config_class.getinstance().getDate_format().equals(format[2])){\n selection=2;\n }\n else if(Config_class.getinstance().getDate_format().equals(format[3])){\n selection=3;\n }\n \n return selection;\n \n }", "title": "" }, { "docid": "d043dc578960de0acb7db56da46d1fd3", "score": "0.4841845", "text": "private DateFormat getKCDateFormat() {\n return new SimpleDateFormat(\"MM/dd/yyyy\");\n }", "title": "" }, { "docid": "598bd9b1975c243ff00da1769f014e9a", "score": "0.48390654", "text": "public void actionPerformed(ActionEvent e)\n {\n settings.dateTimeFormat = timestampBox.getText();\n\n\n JsonHelper.saveSettings(settingsFile, settings);\n entryGUI.uiUpdate(settingsFile);\n dispose();\n }", "title": "" }, { "docid": "763837ef7304ca5cb718fa009047382f", "score": "0.48350513", "text": "public WOComponent classeDateDesc() {\r\n\t\tgetListener().caller().triSelected = EOIntervention.TRI_ATTRIBUT_DATE;\r\n\t\tgetListener().caller().setOrdreSelected(CktlSort.Descending);\r\n\t\tgetListener().doFetchDisplayGroup();\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f20eb73c77f52c77c4ebaba3de972122", "score": "0.48340273", "text": "default void dateOfPrinting(){\n System.out.println(new Date());\n }", "title": "" }, { "docid": "8858901d4077f1f1672d4f08876e2874", "score": "0.48296723", "text": "@Override\n public String toPrint() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\" d/MM/yyyy HHmm\");\n String printBy = by.format(formatter);\n return \"[D]\" + super.toPrint() + \" (by: \" + printBy + \")\";\n }", "title": "" }, { "docid": "b6e946bfe1b041c5a79ca9858420301c", "score": "0.48286998", "text": "public java.lang.String getFecha(){\r\n return localFecha;\r\n }", "title": "" }, { "docid": "85988413d808ebe0fff6a91581a062cf", "score": "0.4824118", "text": "String getFormat();", "title": "" }, { "docid": "85988413d808ebe0fff6a91581a062cf", "score": "0.4824118", "text": "String getFormat();", "title": "" }, { "docid": "85988413d808ebe0fff6a91581a062cf", "score": "0.4824118", "text": "String getFormat();", "title": "" }, { "docid": "be7d76cf7d103aa97ab4fd2d667d60b0", "score": "0.48211992", "text": "public void testVersionPropFile() throws Exception {\n String path = \"/version.prop\";\n InputStream stream = ConfigAdapterImpl.class.getResourceAsStream(path);\n Properties props = new Properties();\n props.load(stream);\n stream.close();\n String timestamp = (String) props.get(\"aura.build.timestamp\");\n String timestampFormat = (String) props.get(\"aura.build.timestamp.format\");\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(timestampFormat);\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n simpleDateFormat.parse(timestamp).getTime();\n }", "title": "" }, { "docid": "45dfbf95497e03074a683ab298db5637", "score": "0.48201144", "text": "public String getStrDateProcess() {\n return strDateProcess;\n }", "title": "" }, { "docid": "8e855df9cff6e13407d0c12615cffd01", "score": "0.48184204", "text": "public String getformat() {\n return format;\n }", "title": "" }, { "docid": "9dbbfea6fc88c9c693d67d3b4cc98370", "score": "0.4800844", "text": "private String kalkulatuIraupena() {\n return \"2015-12-31\";\r\n }", "title": "" }, { "docid": "1ac40a22242571e91eb1349bdbbf423e", "score": "0.48002163", "text": "private void updateLabelBirth() {\n String myFormat = \"dd/MM/yy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n dateOfBirth.setText(sdf.format(myCalendar.getTime()));\n }", "title": "" }, { "docid": "c7dbd2a199884bc076bacba45ba80e5d", "score": "0.47973436", "text": "public String getBaseDocDateFrm() {\n\treturn baseDocDate.getString();\n}", "title": "" }, { "docid": "64bdf17b1a3b33f3991575e7a2ee7700", "score": "0.47956824", "text": "public void setEnd_date(java.lang.String param){\n \n this.localEnd_date=param;\n \n\n }", "title": "" }, { "docid": "d5523812900ff08ceb6dbe22d0917e97", "score": "0.47942552", "text": "void addLSTN()\n { \n M_fmtDBDAT.setLenient(false);\n\tM_fmtDBDTM.setLenient(false);\n\tM_fmtLCDAT.setLenient(false);\n\tM_fmtLCDTM.setLenient(false);\n }", "title": "" }, { "docid": "6d7f0fb47008d9d5f09bd93ea4724743", "score": "0.479219", "text": "public void useTime(String time){\n\t\ttry{\n\t\t\toverrideDate = format.parse(time).getTime();\n\n\t\t}catch(ParseException e){\n\t\t\tdebugLog.add(\"---- \"+format.format(getTime())+\" DATE ENTERED WAS IMPROPERLY FORMATTED\");\n\t\t}\n\t}", "title": "" }, { "docid": "7f1aada573334a8367baf73c7cfe2e96", "score": "0.47908315", "text": "@Override\n\tpublic String print(Date date, Locale locals) {\n\t\treturn dateFormat.format(date);\n\t}", "title": "" } ]
b958e8d3798f55cfafece1389fad0237
Constructor receiving the type, description and time of observation
[ { "docid": "9c935ed5e7abd39b711e5f52929df068", "score": "0.0", "text": "public TableItem (int type, String name, String txt) {\n\t itemType = type;\n\t variableName = name;\n\t text = txt;\n\t }", "title": "" } ]
[ { "docid": "68917e295b889552f4a2c054f23a0f65", "score": "0.69916886", "text": "public Event(double time, EventType type) {\n \n this.time=time;\n this.type=type;\n \n }", "title": "" }, { "docid": "6eebd3bd776c41a6ff02b76806da5c32", "score": "0.6449202", "text": "public Onetime(String description, int month, int day, int year) {\r\n\t\tsuper(description, month, day, year);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7c18b7f49f1ca93d598cf787ece91641", "score": "0.64429367", "text": "public Observation(){}", "title": "" }, { "docid": "42585ea157d0e2f706cf22e54f5046c2", "score": "0.637487", "text": "public TempData(String time, int t1, int t2){\r\n // TODO: implement this method\r\n timeUnit = time;\r\n tempOne = t1;\r\n tempTwo = t2;\r\n }", "title": "" }, { "docid": "8336f6eab5c1ec6b57b8e592aeaf183e", "score": "0.63408905", "text": "private Time() {\r\n\t}", "title": "" }, { "docid": "2dcce7e42bec71f8298fc8455da9e421", "score": "0.63090485", "text": "private Time() { }", "title": "" }, { "docid": "3d8a284e997d920aa6a91bec76ddad62", "score": "0.63018566", "text": "public Record(String name, double time) {\n this.time = time;\n this.name = name;\n }", "title": "" }, { "docid": "1c28d5fd77bc4baa981f2bc891b5f6c2", "score": "0.6290274", "text": "public Time() {\n strtime = \"\";\n format = null;\n }", "title": "" }, { "docid": "30dc35f6add14c8e8d76f24172ffc12d", "score": "0.6265106", "text": "public CsOrderTime () {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "3694694fff920a7ab7a3a94dfbb50ff6", "score": "0.6260812", "text": "public Time2( int h ) { \n this( h, 0, 0 ); // invoke Time2 constructor with three arguments\n }", "title": "" }, { "docid": "dd26196f69d7c3399ccb4d533a3c31c1", "score": "0.6252003", "text": "public Time2T() {\n this(0, 0, 0); // invoke constructor with three arguments\n }", "title": "" }, { "docid": "44036a2a3b9d38c1a31df547f9a7d051", "score": "0.6225668", "text": "public TimeAdapter()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "db7f9b2ef0d2fc5f3332f5f4948aa802", "score": "0.61947465", "text": "public LaptimesRecord() {\n super(Laptimes.LAPTIMES);\n }", "title": "" }, { "docid": "4ded1c37f051b5edb1ab5902f48c9beb", "score": "0.61920303", "text": "public ParkingRecord(int type, String number, String time) {\n this.number = number;\n this.time = time;\n this.type = type;\n }", "title": "" }, { "docid": "cc0f3f77cdb4e991a1a1ba1c26f7a56c", "score": "0.6184884", "text": "public Event(long systemTime) { this.time=systemTime;}", "title": "" }, { "docid": "1fb04d32195e2c8e9734372327245c12", "score": "0.6171522", "text": "public Time2() { \n this( 0, 0, 0 ); // invoke Time2 constructor with three arguments\n }", "title": "" }, { "docid": "271dc3c4712858067c5ed798494a1951", "score": "0.6099876", "text": "public LocTrackDataFormat(String startDate, String endDate, String enteredTime) {\r\n\tsuper();\r\n\tthis.startDate = startDate;\r\n\tthis.endDate = endDate;\r\n\tthis.enteredTime = enteredTime;\r\n}", "title": "" }, { "docid": "baf5ab6aa090222151f8e5db4da8c793", "score": "0.6066937", "text": "public CurrentObservation() {\n }", "title": "" }, { "docid": "738907da91b0ae88ee747b54596dbb6d", "score": "0.6015429", "text": "public TimeMap() {\n\n }", "title": "" }, { "docid": "72395ffeba1a2ed87eae0658a5faa15f", "score": "0.601245", "text": "public TimeAdapter() {\n\t\tsuper(Time.class);\n\t}", "title": "" }, { "docid": "d8c9b13eb435e1e337edf0e89fc124d6", "score": "0.6012102", "text": "public Time() {// 2nd constructor\n\t\tthis.second = 45;\n\t\tthis.minute = 25;\n\t\tthis.hour = 15;\n\t}", "title": "" }, { "docid": "6ebb0d28edbd6dcab27f172a64ae749f", "score": "0.60086364", "text": "private void createTimeType ()\r\n\t{\r\n\t\ttimeType = createDataType(\"Time\");\r\n\t}", "title": "" }, { "docid": "261459f69b91c03de4bdad4be96adfc9", "score": "0.59824693", "text": "public Time2( int h, int m ) { \n this( h, m, 0 ); // invoke Time2 constructor with three arguments\n }", "title": "" }, { "docid": "21a18e8c75b808f415ef2c336ae8bc86", "score": "0.59777635", "text": "public TimedList(){}", "title": "" }, { "docid": "165f61c04a646c11fc13ab96e6fe4a22", "score": "0.59667355", "text": "public Event(double time, EventType eventType){\n\t\t\n\t\tthis.time = time;\n\t\tthis.eventType = eventType;\n\t\t\n\t}", "title": "" }, { "docid": "65203d575456fb6dd7aef4c9aeda48cb", "score": "0.5962399", "text": "public DKCustomer(double time, String type) {\n this.time = time;\n this.type = type;\n }", "title": "" }, { "docid": "a953f268de765179daafa5da4e15e619", "score": "0.5956833", "text": "public MetaDatum() {\n }", "title": "" }, { "docid": "3e176e5a7591edb1d3979788d2e29467", "score": "0.5953269", "text": "public TimeStamp() {\n this.setEmcLabel(\"Time Stamp\");\n this.setMandatory(true);\n }", "title": "" }, { "docid": "aac01831c5328b36224910a76d833ccc", "score": "0.5942668", "text": "public TimeSeries(String title) {\n\t}", "title": "" }, { "docid": "93ddd3db5abec59993a84ab8f1c70781", "score": "0.59051424", "text": "public Time() {\n this.date = LocalDate.now();\n this.time = LocalTime.now();\n }", "title": "" }, { "docid": "439d7e22385b1b5dbef26fd46c693382", "score": "0.5902134", "text": "public ChartTiming3() {\r\n // nothing to do\r\n }", "title": "" }, { "docid": "861fb2f2fc9796b28c0de7a824a8715b", "score": "0.5901212", "text": "protected TimeRecorderImpl() {\r\n this(BookerAdapterFactory.getAdapter(), Settings.INSTANCE, new BusinessDayRepositoryImpl(), new BookBusinessDayMessageSender());\r\n }", "title": "" }, { "docid": "797e2e5b31a136153d9bf910dc98d5f4", "score": "0.58997196", "text": "public TimeInformation(Date verificationTime) {\n this.verificationTime = verificationTime;\n }", "title": "" }, { "docid": "d679f3d3029bd2dda73cb42838cbac87", "score": "0.58933294", "text": "public Customer(double time)\n {\n setArrivalTime(time);\n }", "title": "" }, { "docid": "a237ba1fad16996fb9f286962c5abb94", "score": "0.589215", "text": "public Datum() {\n }", "title": "" }, { "docid": "69ece90e3c6da90e80bdc8a141802ea9", "score": "0.58468646", "text": "private NoteCreationMetrics() {}", "title": "" }, { "docid": "56df2d71f48037ee6fd918dafae81711", "score": "0.5845101", "text": "public TimePoint() {\n tPoint = new Date();\n longsdf = new SimpleDateFormat(\"yyyy.MM.dd HH:mm:ss:SS\");\n //shortsdf = new SimpleDateFormat(\"yyyy.MM.dd HH:mm:ss\");\n\tshortsdf = new SimpleDateFormat(\"HH:mm:ss\");\n }", "title": "" }, { "docid": "626a86d4471f03dd2b1ad2fa5357be6e", "score": "0.58374643", "text": "public OccupationRecord(Long occupationId, Long occupatonNum, String occupationTimeFrom, String occupationTimeTo, Timestamp creatTime, Timestamp updateTime) {\n super(Occupation.OCCUPATION);\n\n set(0, occupationId);\n set(1, occupatonNum);\n set(2, occupationTimeFrom);\n set(3, occupationTimeTo);\n set(4, creatTime);\n set(5, updateTime);\n }", "title": "" }, { "docid": "acb6ff9961c1571c1a87cb8774c93c11", "score": "0.5834346", "text": "public Time2( Time2 time ) {\n this( time.getHour(), time.getMinute(), time.getSecond() ); // invoke setTime to validate time\n }", "title": "" }, { "docid": "104d14aa1ebd5038e6c020b1107f3292", "score": "0.5830178", "text": "public TimItBasicReductor() {\n }", "title": "" }, { "docid": "2f5be433611a9c1b5c292b981ac93cef", "score": "0.5818982", "text": "public Task(String description, LocalDateTime time) {\r\n type = \"Task\";\r\n this.description = description;\r\n this.time = time;\r\n }", "title": "" }, { "docid": "8b8c19330086ae10131b90cc066796cb", "score": "0.5812367", "text": "public MeasurementTrial(){}", "title": "" }, { "docid": "f70f84b6005cd51e4e021f03c62eb6f4", "score": "0.58122176", "text": "@Test\r\n public void testConstructor() {\r\n System.out.println(\"\\n\");\r\n StatisticsEvent instance = new StatisticsEvent(1.34,StatisticsEvent.StatisticsEventType.AUCTION_SUCCESS_RATIO);\r\n System.out.println(\"test StatisticsEvent Construktor \");\r\n System.out.println(\"Event:getID:\"+instance.getID());\r\n System.out.println(\"Event:getType:\"+instance.getType());\r\n System.out.println(\"Event:getTimeStamp:\"+instance.getTimeStamp());\r\n // System.out.println(\"BidEvent:getAuctionID:\"+instance.);\r\n System.out.println(\"StatisticsEvent:getTypeValue:\"+instance.getTypeValue()); \r\n }", "title": "" }, { "docid": "be50632f993e011f528f5a88bb071bf3", "score": "0.57837397", "text": "public OnDly(){\n odID = 100;\n setTm(100);\n }", "title": "" }, { "docid": "dd7f71fe586be171d2959235bba2e6f5", "score": "0.5752058", "text": "public SimpleTime( int hour, int minute, int second )\r\n {\r\n // example of constructor-chaining\r\n this();\r\n this.hour = hour; // set \"this\" object's hour\r\n this.minute = minute; // set \"this\" object's minute\r\n this.second = second; // set \"this\" object's second\r\n }", "title": "" }, { "docid": "ab192381d61321f374f1f96a0d691fe7", "score": "0.5748581", "text": "public RestaurantTimeContainer() {\n super();\n }", "title": "" }, { "docid": "8fdb727cf2cbbcc96bdecbbc56ae905c", "score": "0.5744787", "text": "public Lyric ()\n {\n this.timestamp = 0;\n this.lyric = \"<no data>\";\n }", "title": "" }, { "docid": "430804092bfc47b9f0053ffff4020cfb", "score": "0.5742505", "text": "public HistoryData() {\n histId = 1;\n title = \"\";\n drawable = null;\n rating = 0;\n duration = \"\";\n }", "title": "" }, { "docid": "63925aa2118019b9af013eccbd1ccfd0", "score": "0.57242596", "text": "public TimetableEntry(TYPE type) {\n\t\t// set type\n\t\tthis.setType(type);\n\t\t// blank everything\n\t\tthis.setId(EMPTY_INT);\n\t\tthis.setSessionName(null);\n\t\tthis.setTutor(null);\n\t\tthis.setLocation(null);\n\t\tthis.setSubjectID(EMPTY_INT);\n\t\tthis.setSubjectImageResourceID(EMPTY_INT);\n\t\tthis.setSubjectName(null);\n\t\tthis.setStartTime(EMPTY_LONG);\n\t\tthis.setEndTime(EMPTY_LONG);\n\t\tthis.setStartDate(EMPTY_LONG);\n\t\tthis.setEndDate(EMPTY_LONG);\n\t\tthis.setSessionDate(EMPTY_LONG);\n\t\tthis.setFreq(FREQUENCY.NONE);\n\t\tthis.setNote(null);\n\t\tthis.setDeleted(false);\n\t\tthis.setEndOfSection(false);\n\t\tthis.setActiveDays(new boolean[7]);\n\t\tthis.setTimeTableColour(EMPTY_INT);\n\t}", "title": "" }, { "docid": "cb475ab7ddcb61c5f3bebbe9d3f1fa49", "score": "0.57219493", "text": "public LaptimesRecord(Integer raceid, Integer driverid, Integer lap, Integer position, String time, Integer milliseconds) {\n super(Laptimes.LAPTIMES);\n\n set(0, raceid);\n set(1, driverid);\n set(2, lap);\n set(3, position);\n set(4, time);\n set(5, milliseconds);\n }", "title": "" }, { "docid": "214c48bb66af55c2b81fa88940fe1c2e", "score": "0.57204646", "text": "public Event(String description, String at) {\n super(description);\n this.at = at;\n this.taskType = \"E\";\n }", "title": "" }, { "docid": "1dba06558508184c03cd49fda9dfe4b5", "score": "0.5715394", "text": "public LazyTimestamp(){\n }", "title": "" }, { "docid": "d7b8ff1c89ec2a0d7db15d1610206408", "score": "0.5715114", "text": "public History(char s, String d, String sy, String pd, String nh){\r\n\tstate = s;\r\n\tdateOfAdmssion = d;\r\n\tsymptom = sy;\r\n\tpossibleDiagnosis = pd;\r\n\tnumberOfHistory = nh;\r\n\tnoteD = new String[10];\r\n\tnoteS = new String[10];\r\n}", "title": "" }, { "docid": "534b738541ace522c871825e0ff5b5f4", "score": "0.5714024", "text": "public RawTimeDataModel(String project, String client, String description, String startDate, String startTime,\n String endDate, String endTime, String duration) {\n\n this.project = new SimpleStringProperty(project);\n this.client = new SimpleStringProperty(client);\n this.description = new SimpleStringProperty(description);\n this.startDate = new SimpleStringProperty(startDate);\n this.startTime = new SimpleStringProperty(startTime);\n this.endDate = new SimpleStringProperty(endDate);\n this.endTime = new SimpleStringProperty(endTime);\n this.duration = new SimpleStringProperty(duration);\n }", "title": "" }, { "docid": "b1d61c16744701469b83b42ed68c3770", "score": "0.5709495", "text": "public LogEntry(String msg) {\n/* 103 */ this.timestamp = System.currentTimeMillis();\n/* 104 */ this.msg = msg;\n/* */ }", "title": "" }, { "docid": "562946a6ec37394a270dce0f2d450e71", "score": "0.5702523", "text": "public MoonInfo() {\n \t\tCalendar now = Calendar.getInstance();\n \t\tthis.obsLocal = (GregorianCalendar)now.clone();\n \t\tthis.tzOffset = now.getTimeZone().getOffset(now.getTimeInMillis()) / Astro.MILLISECONDS_PER_HOUR;\n \t\tnow.add(Calendar.HOUR_OF_DAY, this.tzOffset);\n \t\tthis.obsDate = new AstroDate(now.get(Calendar.DATE), \n \t\t\t\tnow.get(Calendar.MONTH)+1, now.get(Calendar.YEAR), \n \t\t\t\tnow.get(Calendar.HOUR_OF_DAY), now.get(Calendar.MINUTE), \n \t\t\t\tnow.get(Calendar.SECOND));\n \t\tthis.initialize();\n \t}", "title": "" }, { "docid": "5c1f65a763ef09f199b73df82a811add", "score": "0.5701024", "text": "public Time2T(int hour) {\n this(hour, 0, 0); // invoke constructor with three arguments\n }", "title": "" }, { "docid": "69b2e565eea2e278f9d380cbff921943", "score": "0.5699901", "text": "TimeCollector() {\n super(STORE_INTERVAL, MAX_NUMBER_OF_STORAGES, UPDATE_SQL, INSERT_SQL);\n }", "title": "" }, { "docid": "e5862e7b7ce7720e371e966d3ac0da9a", "score": "0.56968105", "text": "public TimeKeeper()\n {\n // initialise instance variables\n \n }", "title": "" }, { "docid": "1bf01cf98b1af15f5eff99c84f7a20f9", "score": "0.5695125", "text": "public Data( String type, long timestamp, double x, double y, double z )\n\t{\n\t\tthis.setType(type);\n\t\tthis.setTimestamp(timestamp);\n\t\tthis.setX(x);\n\t\tthis.setY(y);\n\t\tthis.setZ(z);\n\t}", "title": "" }, { "docid": "33855995f86971de1dea4b58242aca4d", "score": "0.5691542", "text": "public Time2T(int hour, int minute) {\n this(hour, minute, 0); // invoke constructor with three arguments\n }", "title": "" }, { "docid": "87d30fc502956248a981a84d8c7d863a", "score": "0.568597", "text": "public ExtraTimedNode() {\n \n }", "title": "" }, { "docid": "8821a7abae6a2f4b72c57f561a7c8939", "score": "0.56789106", "text": "public LogEntry(EntryType type,String line,String time) throws ParseException{\n\t\tthis.type = type;\n\t\tthis.line = line;\n\t\tthis.startDate = createStartDate(time);\n\t\tthis.time= time;\n\t\tparse(line);\n\t}", "title": "" }, { "docid": "83f5bb563dac087c790df68c6f6b3bd1", "score": "0.56787616", "text": "public Event(int id, String date, String time)\n {\n this.id = id;\n this.date = date;\n this.time = time;\n }", "title": "" }, { "docid": "b1ff168a8c523c2dfd4ee6fd682ac043", "score": "0.5661265", "text": "public FitnessTracker2()\n {\n this(\"running\", 0, LocalDate.of(2019, 1, 1));\n }", "title": "" }, { "docid": "2d67378b2c075bdbd45a4c9a3718836b", "score": "0.565341", "text": "public Event(String description, String at) {\r\n super(description);\r\n this.at = at;\r\n }", "title": "" }, { "docid": "3eb905e8ba6de1046391f168f892a1ff", "score": "0.56492907", "text": "public Activity()\n {\n activity = \"?\";\n duration = 0.00;\n pred = new String[0];\n \n }", "title": "" }, { "docid": "b000b0bb478f7faea54fd4b37088b6a8", "score": "0.56421506", "text": "public TimeStampWriterTest() {\r\n\t}", "title": "" }, { "docid": "33d1dd7334fb808ce56c13694245ec37", "score": "0.5638881", "text": "public Event(String description, String duration) {\n super(description);\n this.duration = duration;\n }", "title": "" }, { "docid": "db6180344b15c12ee37b43a32ca6a898", "score": "0.5636979", "text": "private TimetableVar() { name = null; id = -1; type = null; }", "title": "" }, { "docid": "a7cb001cdb6ea61217c02902ad1fed72", "score": "0.5635934", "text": "public Timestamp(long theTime) {\n super(theTime);\n /*\n * Now set the time for this Timestamp object - which deals with the\n * nanosecond value as well as the base time\n */\n this.setTime(theTime);\n }", "title": "" }, { "docid": "a033c1a6c00fc027613bd418eedc2e74", "score": "0.56347", "text": "public DataRecord() { }", "title": "" }, { "docid": "cf8e51fd56e505677287574fe8b6c9a5", "score": "0.562528", "text": "public Time(int theStartHour, int theStartMinute, int theDurationHour, int theDurationMinute)\n\t{\n\t\tsymbols.setGroupingSeparator(':');\n\t\tcf.setDecimalFormatSymbols(symbols);\n\t\tsetMinutes(theStartMinute);\n\t\tsetHours(theStartHour);\n\t\tsetDurationMinutes(theDurationMinute);\n\t\tsetDurationHours(theDurationHour);\n\t\tsetStart();\n\t\tsetEnd();\n\t\tsetMeetTime();\n\t\tsetEndofClass();\n\t}", "title": "" }, { "docid": "d557de8e970b0e1a5970a0ec3f5947f6", "score": "0.56249344", "text": "public Note() {}", "title": "" }, { "docid": "3fb5c9061ba4d565fd177ece1de0cbbf", "score": "0.5624725", "text": "public Time(int second, int minute, int hour) {// 1st constructor\n\t\tthis.second = second;\n\t\tthis.minute = minute;\n\t\tthis.hour = hour;\n\t}", "title": "" }, { "docid": "289355a8bf928ce3f771fbdfbc082f40", "score": "0.56228924", "text": "public LaboratoryObservation() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "6e427a973ff57a7368801613e9ca1695", "score": "0.5619339", "text": "public Experiment() {}", "title": "" }, { "docid": "aaa9dcee3f5c910fc8d8b7356480e427", "score": "0.5617031", "text": "public Event(String description, String at) {\n super(description);\n this.at = at;\n }", "title": "" }, { "docid": "c3d63b734559bdb14f0f7a95a04cd02f", "score": "0.5612005", "text": "public Event(String description, String at) {\n super(description);\n this.at = at;\n this.date = LocalDate.parse(this.at);\n }", "title": "" }, { "docid": "f35790ca4abcbb35cb5ab25292603903", "score": "0.5608913", "text": "public DoctorSummaryTrendRecord(Integer id, Date refDate, Byte type, Integer doctorId, Integer consultationNumber, BigDecimal inquiryMoney, Integer inquiryNumber, BigDecimal prescriptionMoney, Integer prescriptionNum, BigDecimal consumeMoney, BigDecimal consultationScore, BigDecimal inquiryScore, Timestamp createTime) {\n super(DoctorSummaryTrend.DOCTOR_SUMMARY_TREND);\n\n set(0, id);\n set(1, refDate);\n set(2, type);\n set(3, doctorId);\n set(4, consultationNumber);\n set(5, inquiryMoney);\n set(6, inquiryNumber);\n set(7, prescriptionMoney);\n set(8, prescriptionNum);\n set(9, consumeMoney);\n set(10, consultationScore);\n set(11, inquiryScore);\n set(12, createTime);\n }", "title": "" }, { "docid": "4d8eb31a75400d5a34b80b002b4d4f1f", "score": "0.56056964", "text": "protected DrmEvent(int uniqueId, int type, String message,\n HashMap<String, Object> attributes) {\n mUniqueId = uniqueId;\n mType = type;\n\n if (null != message) {\n mMessage = message;\n }\n\n if (null != attributes) {\n mAttributes = attributes;\n }\n }", "title": "" }, { "docid": "25d193e2b69b151a0de2837c26805b28", "score": "0.5602603", "text": "public Event(Date date, Time time, String label){\r\n super(date, time, label);\r\n isRemindOn = false; //by default reminder is off\r\n }", "title": "" }, { "docid": "a2feaa582ca520f7521bae7a24dadee6", "score": "0.5593459", "text": "private Note() {}", "title": "" }, { "docid": "985c4e773c986d74ef7b7ed6f0e4d436", "score": "0.5593135", "text": "public ObservationSummaryVO()\n {\n\n }", "title": "" }, { "docid": "7a71d487ad3f0c2bb1d5dedc045d3a3d", "score": "0.5591544", "text": "public AbandonInfo(Skill skill, DistributionAbstract abandonTime)\r\n {\r\n this.skill = skill;\r\n this.abandonTime = abandonTime;\r\n }", "title": "" }, { "docid": "50f879eb0521a4e57c13468c3e207a2a", "score": "0.5584753", "text": "public Description() {\n\n\t}", "title": "" }, { "docid": "0aa2edc1de339d1527c100563107a8d3", "score": "0.5583287", "text": "public Record()\n {\n name = \"a\";\n artist = \"a\";\n duration = 0.01;\n trackNumber = 0;\n playSpeed = PLAY_SPEED_VALID[0];\n }", "title": "" }, { "docid": "9ba214737902c2215c872fe41bca8887", "score": "0.55808", "text": "protected DrmEvent(int uniqueId, int type, String message) {\n mUniqueId = uniqueId;\n mType = type;\n\n if (null != message) {\n mMessage = message;\n }\n }", "title": "" }, { "docid": "e2f7a0e3597f5fa67cabb5a53cbff0e5", "score": "0.55788857", "text": "public Abstract1DTrajectoryMessage()\n {\n }", "title": "" }, { "docid": "b19ccd9658a9385bcbcd147754acb08f", "score": "0.5577124", "text": "public Time2( int h, int m, int s ) { \n setTime( h, m, s ); // invoke setTime to validate time\n }", "title": "" }, { "docid": "3146dc771db4ce9549cddc0fbbd0abef", "score": "0.5575341", "text": "public RoutedPacket(int length, double startTime)\n {\n\tsuper(length, startTime);\n }", "title": "" }, { "docid": "5cff43ef74a9a8173dd17d5d14847f6a", "score": "0.55725735", "text": "public EthiopicCalendar(int year, int month, int date, int hour, int minute, int second)\n/* */ {\n/* 254 */ super(year, month, date, hour, minute, second);\n/* */ }", "title": "" }, { "docid": "b91d2e2467e6b9267e98e852424f38f8", "score": "0.5567433", "text": "public Event(String description, String at) {\r\n super(description);\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\r\n LocalDateTime dateTime = LocalDateTime.parse(at,formatter);\r\n this.at = dateTime.format(formatter);\r\n }", "title": "" }, { "docid": "52d0d239ee5d26b237623c5438029c0f", "score": "0.5563643", "text": "public TimetableEntry(TYPE type, String displayText) {\n\t\t// set type\n\t\tthis.setType(type);\n\t\t// blank everything\n\t\tthis.setId(EMPTY_INT);\n\t\tthis.setSessionName(null);\n\t\tthis.setTutor(null);\n\t\tthis.setLocation(null);\n\t\tthis.setSubjectID(EMPTY_INT);\n\t\tthis.setSubjectImageResourceID(EMPTY_INT);\n\t\tthis.setSubjectName(null);\n\t\tthis.setStartTime(EMPTY_LONG);\n\t\tthis.setEndTime(EMPTY_LONG);\n\t\tthis.setStartDate(EMPTY_LONG);\n\t\tthis.setEndDate(EMPTY_LONG);\n\t\tthis.setSessionDate(EMPTY_LONG);\n\t\tthis.setFreq(FREQUENCY.NONE);\n\t\tthis.setNote(null);\n\t\tthis.setDeleted(false);\n\t\tthis.setEndOfSection(false);\n\t\tthis.setActiveDays(new boolean[7]);\n\t\tthis.setTimeTableColour(EMPTY_INT);\n\n\t\tswitch (type) {\n\t\tcase TITLE:\n\t\t\t// empty except for the title\n\t\tcase WEEK_DIVIDER:\n\t\t\t// empty except for the title\n\t\t\tthis.setSessionName(displayText);\n\t\t\tbreak;\n\t\tcase ENTRY:\n\t\t\t// empty\n\t\tcase SPACER:\n\t\t\t// empty\n\t\t\tbreak;\n\n\t\t}\n\t}", "title": "" }, { "docid": "01f6dd5ed639a3d7b846a729b3eb61b3", "score": "0.55592966", "text": "public JacksonInnerTime() {\n\t}", "title": "" }, { "docid": "f7eefd2b0df8f5d7931fbf0a1a171156", "score": "0.55538607", "text": "public LogInfo(long time, String cat, String message) {\n\tsuper(time);\n\tthis.cat = cat;\n\tthis.message = message;\n }", "title": "" }, { "docid": "7bc28db031c53490b58d980e384cd48f", "score": "0.55358875", "text": "public Note() {\n\t\t\n\t}", "title": "" }, { "docid": "d92222dc243ddc232b4504878ba6388f", "score": "0.55341756", "text": "public SourceMeta(int addr, TOP_Type type) {\n super(addr, type);\n readObject();\n }", "title": "" }, { "docid": "18317097c630c2d31141594908d2a5f6", "score": "0.5519387", "text": "private CovidRecord()\n {\n }", "title": "" }, { "docid": "5415ae70f010e951d38552c123b477ef", "score": "0.55189186", "text": "public Lyric (Lyric inLyric)\n {\n this.timestamp = inLyric.getTimestamp();\n this.lyric = inLyric.getLyric();\n }", "title": "" }, { "docid": "5b9e4a46aa58b686f5b627ac2f1af3cb", "score": "0.55186737", "text": "public TimeIntervalTest()\n {\n }", "title": "" } ]
84ea476bde6a96e7fabaec093b207d43
5+ 6+78 str += s;
[ { "docid": "a32981632f8fe03fcd22afbb62790fa5", "score": "0.0", "text": "public void cAll(String s, Calcular c) {\n\n if ((s.equals(\".\") || s.equals(\"+\") || s.equals(\"-\") || s.equals(\"x\") || s.equals(\"÷\"))) {\n\n if (str.length() > 1) {\n\n CharSequence r = str.subSequence(str.length() - 1, str.length());\n\n if (!r.equals(\".\") && !r.equals(\"+\") && !r.equals(\"-\") && !r.equals(\"x\") && !r.equals(\"÷\")) {\n str += s;\n }\n\n } else if (str.length() == 1) {\n if (!(str.equals(\".\") || str.equals(\"+\") || str.equals(\"-\") || str.equals(\"x\") || str.equals(\"÷\"))) {\n str += s;\n }\n }\n } else {\n str += s;\n\n }\n c.setResultString(str);\n\n if ((str.contains(\"x\") || str.contains(\"+\") || str.contains(\"-\") || str.contains(\"÷\")) && !(s.equals(\"x\") || s.equals(\"+\") || s.equals(\"-\") || s.equals(\"÷\"))) {\n\n listOp = new ArrayList<>();\n String[] ars = str.split(\"[x|\\\\-|\\\\÷|\\\\+]\");\n\n String[] aro = str.split(\"[^x|^\\\\-|^\\\\÷|^\\\\+]\");\n\n String lastElemento = ars[ars.length - 1];\n\n ArrayList<String> arno = new ArrayList<>();\n for (int i = 0; i < aro.length; i++) {\n if (!aro[i].isEmpty()) {\n arno.add(aro[i]);\n }\n }\n\n Log.d(\"MainActivity \", \" arno \" + arno.size() + \" ars \" + ars.length);\n\n if (ars.length - arno.size() != 1) {\n\n c.setResult(0, \"Formato inválido. Formato valido \\\"3X3+3+9-2\\\"\");\n\n } else {\n\n for (int i = 0; i < arno.size(); i++) {\n Log.d(\"MainActivity \", \" arno \" + arno.get(i) + \" POS \" + i);\n listOp.add(new operacao(Double.parseDouble(ars[i]), arno.get(i)));\n }\n\n if ((str.contains(\"x\") || str.contains(\"÷\")) && (str.contains(\"-\") || str.contains(\"+\"))) {\n operacaoSSMD(listOp, Double.parseDouble(lastElemento), c);\n } else if ((str.contains(\"-\") || str.contains(\"+\"))) {\n operacaoSS(listOp, Double.parseDouble(lastElemento), c);\n } else if ((str.contains(\"x\") || str.contains(\"÷\"))) {\n operacaoMD(listOp, Double.parseDouble(lastElemento), c);\n }\n\n }\n\n }\n\n\n }", "title": "" } ]
[ { "docid": "f63d461f168b63fd072584a538553948", "score": "0.7547874", "text": "private static String plus(String s) {\n return s + \"+\";\n }", "title": "" }, { "docid": "387bb43f851356ce7195cb38c6806eaa", "score": "0.70854986", "text": "public String test(String s) {\n\t\tString n = \"this's \"; \n String t = n+s; \n return t; \n\t}", "title": "" }, { "docid": "9fc9682c3ab0180c3382e49e834bc287", "score": "0.6148876", "text": "public static void main(String[] args) {\n\n String s = \"This is a string\";\n System.out.println(\"My string is equal to: \" + s);\n s = s + \", I added on to at the end.\";\n System.out.println(\"My string is equal to: \" + s);\n s = s + \" \\u00A9 2020\";\n System.out.println(s + \" plus the copyright\");\n String numberStr = \"456.432\";\n System.out.println(numberStr + \" is a number string. \" + s);\n\n String lastS = \"10\";\n int myInt = 50;\n lastS = lastS + myInt;\n System.out.println(\"lastS: \" + lastS);\n\n double doubleNumber = 120.457d;\n lastS = lastS + doubleNumber;\n System.out.println(\"lastS 2.: \" + lastS);\n\n\n\n\n }", "title": "" }, { "docid": "4169df9a79eab5a304e3a0a4ffe17e60", "score": "0.6033699", "text": "private String addCr(String s)\r\n/* 454: */ {\r\n/* 455: */ for (;;)\r\n/* 456: */ {\r\n/* 457: 438 */ int index = s.indexOf(\"][\");\r\n/* 458: 439 */ if (index < 0) {\r\n/* 459: */ break;\r\n/* 460: */ }\r\n/* 461: 440 */ s = s.substring(0, index + 1) + \"\\n\" + s.substring(index + 1);\r\n/* 462: */ }\r\n/* 463: 446 */ return s;\r\n/* 464: */ }", "title": "" }, { "docid": "4650094abf0aae525e778b9dab7f057b", "score": "0.5902784", "text": "static String revesedStr(String str) {\t\n\t\tString revesed=\"\";\t\n\t\t\t//for(int i=str.length()-1; i>=0;i--) {\n\t\t //revesed=revesed+str.charAt(i);\n\t\t\n\t\t\tfor(int i=0;i<str.length();i++) {\t\n\t\t\trevesed=revesed+str.charAt(str.length()-1-i);\t\n\n\t\t}\n\t\treturn revesed;\t\n\t}", "title": "" }, { "docid": "a0658f62d125a6c9e7b7f7070dee9e27", "score": "0.58180934", "text": "public void mo57361a(String str) {\n }", "title": "" }, { "docid": "5f78a0feaa88a48ec85e724c1e551de6", "score": "0.5817208", "text": "static String addone(String s){\r\n \t\t\tint n=Integer.parseInt(s)+1;\r\n \t\t\treturn Integer.toString(n);\r\n \t\t}", "title": "" }, { "docid": "48498abee0e32c9b8b3c1bc3d47d9bf1", "score": "0.5783178", "text": "public void mo4568a(String str) {\n }", "title": "" }, { "docid": "91680e6617cf9780423e5731a4ce57e7", "score": "0.57394", "text": "public void mo4443b(String str) {\n }", "title": "" }, { "docid": "91680e6617cf9780423e5731a4ce57e7", "score": "0.57394", "text": "public void mo4443b(String str) {\n }", "title": "" }, { "docid": "7402d0f29a5a9c7d9b6f93a2221b6ec6", "score": "0.569951", "text": "public static void main(String[] args) {\n\r\n\tString name = new String(\"ja\"+\"va\");\r\n\tString str = new String(name + 8.0);\r\n\t\r\n\tSystem.out.println(name);\r\n\tSystem.out.println(str);\r\n\tSystem.out.println(7+\"\");\r\n\tSystem.out.println(\"\"+7);\r\n\t\r\n\tSystem.out.println(1234567);\r\n\r\n\t//1234567은 정수타입임\r\n\t//문자열 타입으로 하고 싶다면 \"\" + 1234567을 넣어야함\r\n\t\r\n\t\r\n\t//java.lang.Object\r\n\t//java.util.Scanner\r\n\t}", "title": "" }, { "docid": "d503a34c7a041bf654e256d3badbb67c", "score": "0.5690665", "text": "public static String addBySum(String s1,String s2){\n String resultTmp = null;\n StringBuffer result = new StringBuffer();\n StringBuffer result3 = new StringBuffer();\n String r3 = null;\n int leth1 = s1.length();\n int leth2 = s2.length();\n int leth1_2 = leth1 - leth2;\n char c1[] = s1.toCharArray();\n char c2[] = s2.toCharArray();\n int temp = 0; // 进位,两数相加和大于10,则往高位进1\n int res;\n if (leth1 >= leth2){\n /**\n * 先计算s1和s2等长度的两者之间的和\n */\n for (int i = leth2 - 1; i >= 0 ; i--) {\n res = Character.getNumericValue(c1[i + leth1_2]) +\n Character.getNumericValue(c2[i]) + temp;\n String resTmp = \"\" + res ;\n if (res >= 10){\n temp = 1; // 往高位进1\n result.append(resTmp.charAt(1));\n System.out.println();\n }else {\n temp = 0;\n result.append(resTmp);\n }\n }\n // 如果前面for循环中有进位,则对其s1.substring(0,leth1 - leth2)计算要+1\n if (temp > 0){\n if (leth1 > leth2){\n String s3 = s1.substring(0,leth1 - leth2);\n char c3[] = s3.toCharArray();\n int leth3 = c3.length;\n for (int i = leth3 - 1; i >= 0 ; i--) {\n int r = Character.getNumericValue(c3[i]) + temp;\n String rTmp = \"\" + r;\n if (r >= 10){\n temp = 1; // 往高位进1\n result3.append(rTmp.charAt(1));\n /**\n * 999\n * 1\n */\n if (i == 0){\n r3 = \"1\";\n }\n }else {\n r3 = new String(c3, 0, i);\n result3.append(rTmp);\n break;\n }\n }\n String finalR3 = r3 + result3.reverse().toString();\n resultTmp = finalR3 + result.reverse().toString();\n }else if (leth1 == leth2){ // 如果字符串长度相等,则进位1 + result.reverse().toString()\n resultTmp = \"1\" + result.reverse().toString();\n }\n }else {\n resultTmp = s1.substring(0,leth1 - leth2) + result.reverse().toString();\n }\n }\n return resultTmp;\n }", "title": "" }, { "docid": "390946cd1e82f31de1412c2b06ccdd15", "score": "0.566389", "text": "private void addString(String m) {\n sb.append(m);\n System.out.println(\"Final string is: \" + sb.toString());\n \n }", "title": "" }, { "docid": "3196746b3989c42e4b8ad09396e69a1c", "score": "0.56579804", "text": "void mo62309a(String str);", "title": "" }, { "docid": "e6b9c6abbf861d4ae89dac80137a63e7", "score": "0.5656366", "text": "public static void main(String[] args){\n int tres = 3;\n String cuatro = \"4\";\n System.out.println(1 + 2 +tres + cuatro);\n\n //Ejemplo 2 +=\n String s = \"1\";\n s += \"2\";\n\n s += 3;\n System.out.println(s);\n\n //Ejemplo 3\n String a = null;\n System.out.println(a + 3);\n System.out.println(String.valueOf(a) + String.valueOf(3));\n\n //Ejemplo 4\n //System.out.println(null); //No compila, es ambiguo cual sobrecarga elegir\n String str = null;\n System.out.println(str); //Imprime null\n\n //Ejemplo 5\n Object obj = new Object();\n LocalDate ld = LocalDate.now();\n System.out.println(\"\" + obj + ld);\n //System.out.println(obj + ld); //No compila, no se puede utilizar el operador de + de esta manera\n\n }", "title": "" }, { "docid": "fc2ecf5ce82ef03493810da093057367", "score": "0.565363", "text": "void mo39815d(String str);", "title": "" }, { "docid": "675c49779a7506bda8c469ec135eb068", "score": "0.5647096", "text": "void mo62367b(String str);", "title": "" }, { "docid": "07c4aeb68defc35f756f93d8c6d92c87", "score": "0.563764", "text": "public static String addStars(String s) {\n // Write your code here\n if(s.length() == 1){\n return s;\n }\n \n String temp = addStars(s.substring(1));\n \n if (s.charAt(0) == temp.charAt(0)){\n String ans = s.charAt(0) + \"*\" + temp;\n return ans;\n }\n \n else {\n String ans = s.charAt(0) + temp;\n return ans;\n }\n }", "title": "" }, { "docid": "467590fb749cf0aa03427cb1e80d29a1", "score": "0.5632427", "text": "public static void add(String s1, String s2) {\n str = s1 + s2;\n }", "title": "" }, { "docid": "5a3f763214c654e1b28d9df5213705d4", "score": "0.56215763", "text": "String mo24543a(String str, String str2);", "title": "" }, { "docid": "d038789762ce8492a4b7966e921f057e", "score": "0.5619966", "text": "void mo62614a(String str);", "title": "" }, { "docid": "c638097cebc8bea35d331b388e5abb83", "score": "0.56179786", "text": "public String stringConcat(String s)\n {\n return s0.concat(s1).concat(s);\n //alternatively: return s0 + s1 + s;\n }", "title": "" }, { "docid": "d5a41f4073ee267349f6c14b01aee8af", "score": "0.5611444", "text": "void mo62364a(String str);", "title": "" }, { "docid": "9ea70ed193d39d765bba78c991e0773d", "score": "0.55958575", "text": "public void mo30342iz(String str) {\n }", "title": "" }, { "docid": "c5c94842e229b436f54cb8605e5ee8d3", "score": "0.55935776", "text": "StringOperations ops4String();", "title": "" }, { "docid": "be41463a4c84c4c89fe4519cafe76b7b", "score": "0.5573821", "text": "public void m5554y(String str) {\n str.getClass();\n this.f7705b |= 1;\n this.f7706c = str;\n }", "title": "" }, { "docid": "d27e19777eb657204dc7d87d8e5522b4", "score": "0.55669945", "text": "public void mo1561a(String str) {\n }", "title": "" }, { "docid": "c0b3d1599e564f5073c2e0c2871e033e", "score": "0.5554464", "text": "public String mystery1(String str)\n {\n String tC = \"\";\n\n if (str.length() >= 2)\n tC = str.substring(0, 2);\n else if (str.length() == 1)\n tC = str.substring(0, 1);\n\n return tC + tC + tC;\n }", "title": "" }, { "docid": "739b3bd5e303bcb9e3935ef46bee1cdd", "score": "0.5548344", "text": "public void m5557B(String str) {\n str.getClass();\n this.f7710b |= 2;\n this.f7712d = str;\n }", "title": "" }, { "docid": "0e8c1276828137dae9621a34f8d7ccc8", "score": "0.5543779", "text": "public void mo4571b(String str) {\n }", "title": "" }, { "docid": "9cf3fa45451d0dbc35af08f2bd3f9ced", "score": "0.55320185", "text": "public void m5712O(String str) {\n str.getClass();\n this.f7738b |= 1;\n this.f7739c = str;\n }", "title": "" }, { "docid": "24ed32b0f93b9128ad4413afc4140a91", "score": "0.5531498", "text": "public void mo30340ix(String str) {\n }", "title": "" }, { "docid": "a8ac5ace4b28ef161ab5a3ce9ef8c0e3", "score": "0.5517533", "text": "public static void main(String[] args) {\n\n String myString = \"This is a string\";\n\n myString = myString + \"...adding to end\";\n System.out.println(\"this is my string \" + myString);\n\n myString = myString + \" \\u00A9 2016\";\n System.out.println(myString);\n\n String myNumberString = \"497987.999\";\n myNumberString = myNumberString + \"78787\";\n\n System.out.println(\"result is \" + myNumberString);\n\n String lastString = \"50\";\n int myInt = 89;\n lastString = lastString + myInt;\n\n System.out.println(\"my lastString = \" + lastString);\n\n double myDouble = 120.57d;\n lastString = lastString + myDouble;\n System.out.println(\"my lastString = \" + lastString);\n\n }", "title": "" }, { "docid": "80317d9d8af16189ab952878ee0da9a5", "score": "0.5506997", "text": "void mo24895d(String str);", "title": "" }, { "docid": "c937e6774e5d727837738715b25f2a4c", "score": "0.55040824", "text": "private String combanStr(final int a, final String str){\n return a + str;\n }", "title": "" }, { "docid": "8774af9b67674c1851743d5e2c56f480", "score": "0.5491688", "text": "void mo4570a(String str);", "title": "" }, { "docid": "91d2ccc83ef8846c5d1af2e00fa812f5", "score": "0.548757", "text": "public void m5583E1(String str) {\n str.getClass();\n this.f7715b |= 64;\n this.f7722i = str;\n }", "title": "" }, { "docid": "078b002c6d32616d4aa3af48e413846f", "score": "0.5470928", "text": "void mo91621a(String str);", "title": "" }, { "docid": "8bcfc7a5e1b43109c40a69d83b388e02", "score": "0.5466521", "text": "public static String p( String s ) {\n return p + s + _p;\n }", "title": "" }, { "docid": "f78f042f9c5688a4634bbf08db9c3810", "score": "0.5465113", "text": "public void plus() \r\n\t{\r\n\t\tapplyOperator('+');\r\n\t}", "title": "" }, { "docid": "14065b03251f5d51457e1c2c752dad88", "score": "0.5460484", "text": "void mo29322b(String str);", "title": "" }, { "docid": "b664ddd408c198938e24e86a62e79a9a", "score": "0.5452709", "text": "void mo39875a(String str, String str2);", "title": "" }, { "docid": "0938536efbb806c423d42fa06a96d52d", "score": "0.54410136", "text": "private String alg(String s) {\n String n = s;\n String res = \"\";\n char say = n.charAt(0);\n int cnt = 1;\n for (int i = 1; i < n.length(); i++) {\n if (n.charAt(i) == say) {\n cnt++;\n } else {\n res += String.valueOf(cnt);\n res += say;\n say = n.charAt(i);\n cnt = 1;\n }\n }\n res += String.valueOf(cnt);\n res += say;\n return res;\n }", "title": "" }, { "docid": "c09c9596d0c6e3644b14fdc7f3038718", "score": "0.54408264", "text": "void mo71274c(String str);", "title": "" }, { "docid": "f4abf6041d2d145aae476a8ab80deac9", "score": "0.5437117", "text": "String mo24894c(String str);", "title": "" }, { "docid": "ee08082f4d350acb8693d627b9b864c0", "score": "0.54361415", "text": "ILoString addend(String end);", "title": "" }, { "docid": "427c51b821c2e51c8d29b6bf56708298", "score": "0.5435634", "text": "void mo88863b(String str);", "title": "" }, { "docid": "b0cb5edbf8766f1cadf720f331941766", "score": "0.54344434", "text": "public static void main(String[] args) {\n int x = 20;\n x += 10; //==>20+10=30\n System.out.println(x); //30\n x += 60; //x=x+60=90\n String schoolname = \"Cybertek\";\n schoolname += 12345; //shoolname=Cybertek12345\n //It will give me concatination string.\n System.out.println(schoolname); //Cybertek12345\n\n //if I give a+b\n char c1 = 'a'; //97\n c1 += 'b'; //98\n System.out.println(c1); //this give me a output 195, this give me a char.\n\n int num = '2'; //num=122\n num += 'x'; //num=num+120=242\n System.out.println(num);\n //===============================\n //(-)SUBTRACTION ASSIGMENT\n int A = 100;\n A -= 90;\n System.out.println(A);\n\n int B = 200;\n B -= A; //B=B-A; 190\n System.out.println(B);\n //================================\n //(*) MULTIPICATION ASSIGMENTS\n int a = 2;\n a *= 3;\n System.out.println(a);\n int b = a *= 10; //befora it takes other value (6) //b=a=a*10=60\n System.out.println(b); //60\n System.out.println(a); //60\n\n int a1 = 100;\n int b1 = (a1 *= 2) + ++a1; //if b1= (a1*=2) not group this give as different number.\n System.out.println(b1); // b1=200+201=401\n\n int x1=10;\n int y=x1+=10*2; //x1=x1+20 //this is same think x1+=20;==>30\n System.out.println(y);\n\n int q=20;\n int p=q*=20*3; //q*=60; // q=q*60; same think\n System.out.println(q);\n //================================\n //(/)DIVISION ASSIGMENT:\n int num1=300;\n num1/=2; //num1=num1/2;\n System.out.println(num1); //final value is 150\n int num2=400;\n num2/=20+10; //RUULS: first right side after left side//\n System.out.println(num2); //num2=400/30=13.1\n\n\n }", "title": "" }, { "docid": "7e643769efc635810b46e943e4c4e001", "score": "0.5433049", "text": "public String mystery2(String str)\n {\n String result = \"\";\n\n if (str.length() >= 1 && str.charAt(0) == 'a')\n result += \"a\";\n\n if (str.length() >= 2 && str.charAt(1) == 'b')\n result += \"b\";\n\n if (str.length() >= 3)\n result += str.substring(2);\n\n return result;\n }", "title": "" }, { "docid": "8befbafa4b45d8f61686abbbf647806a", "score": "0.5431316", "text": "public static void main1(String[] args) {\n\n String s = \"a,b,c\";\n s = s + 'a';\n System.out.println(s);\n }", "title": "" }, { "docid": "ba9f12096c4a3304ca881714dc95a4f0", "score": "0.54132193", "text": "int mo12237e(String str, String str2);", "title": "" }, { "docid": "23afeaa8f486779ba98a1362f218dc27", "score": "0.5407246", "text": "void mo24891a(String str);", "title": "" }, { "docid": "8490b9f5ae80a8cb445e5c401fc37f8a", "score": "0.54030985", "text": "public static void main(String[] args) {\n\t\tString a = \"100 q 300\";\r\n\t\tSystem.out.println(string_sum(a));\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "c1324b88d73e63a450ddd641234d953f", "score": "0.5401447", "text": "public static void main(String[] args) {\n String s = \"105\";\r\n System.out.println(s+5);\r\n \r\n int i = Integer.parseInt(s); //this line converts String to int\r\n System.out.println(i+5);\r\n \r\n \r\n //conversion: int,float,double... --> String\r\n int a = 100;\r\n System.out.println(a+10);\r\n \r\n String st = String.valueOf(a); //this line converts int to String\r\n System.out.println(st+10);\r\n }", "title": "" }, { "docid": "8bd037768981b13fe66fc4563296bc56", "score": "0.53921646", "text": "void mo29320a(String str);", "title": "" }, { "docid": "e2c31fc83a752f309c0c81c184db67e7", "score": "0.5391151", "text": "void mo10559a(String str);", "title": "" }, { "docid": "98d608743eeb54d72ff975668a5c27bf", "score": "0.5380485", "text": "public static void main(String[] args) {\n\n String myString = \"This is a string\";\n System.out.println(myString);\n myString = myString + \", and this is more.\";\n System.out.println(myString);\n myString = myString + \" \\u00A92020\";\n System.out.println(myString);\n\n String numString = \"250.55\";\n numString = numString + \"49.95\";\n System.out.println(numString);\n\n String lastString = \"10\";\n int myInt = 50;\n lastString = lastString + myInt;\n System.out.println(lastString);\n\n double doubleNum = 120.47d;\n lastString = lastString + doubleNum;\n System.out.println(lastString);\n }", "title": "" }, { "docid": "e0b69990f0c1061d2be4ff8b1226ac78", "score": "0.5379981", "text": "void mo39508a(String str, String str2);", "title": "" }, { "docid": "1c31a7595889376d725e794a67bcbdf8", "score": "0.5379399", "text": "public final void mo57831a(String str) {\n m72396e();\n mo57852e(str);\n }", "title": "" }, { "docid": "ead04657157f48a678051a75e042f3fb", "score": "0.5378901", "text": "public void mo1089a(String str) {\n }", "title": "" }, { "docid": "6a9ffa25bfbc1774c14f80af777378f0", "score": "0.5368587", "text": "public final void rule__XAnnotationElementValueStringConcatenation__OperatorAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:17226:1: ( ( ( '+' ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:17227:1: ( ( '+' ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:17227:1: ( ( '+' ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:17228:1: ( '+' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:17229:1: ( '+' )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:17230:1: '+'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \n }\n match(input,35,FOLLOW_35_in_rule__XAnnotationElementValueStringConcatenation__OperatorAssignment_1_134725); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5ce287ff54af2b4ea9f71165c1a05dd5", "score": "0.5365525", "text": "void mo92230a(String str);", "title": "" }, { "docid": "910b115d70cf6f9c5cbef987f7ce17e5", "score": "0.53622466", "text": "public void mo30341iy(String str) {\n }", "title": "" }, { "docid": "8f8f0de3bcd9b64578ff125310f803f8", "score": "0.53317404", "text": "public static void sopln(String str){\r\n System.out.println(str);\r\n }", "title": "" }, { "docid": "e4803d8033e9bfca0777fe9d3d195819", "score": "0.5331553", "text": "String mo105116a(String str);", "title": "" }, { "docid": "52c4c7bf0d9ba8c59dba7d05ceff8845", "score": "0.53306097", "text": "@Test\n public void appendStr() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"gibbon\");\n StrString str1 = new StrString().a(sb);\n StrString str2 = new StrString().a(\"chimp \").a(str1).a(\" gorilla\");\n Assert.assertEquals(\"chimp gibbon gorilla\", str2.asString());\n }", "title": "" }, { "docid": "198cb39f7b57d570b90b9ca85d848125", "score": "0.5328129", "text": "@Override\n\t\t\t\t\tpublic String apply(String t, String u) {\n\t\t\t\t\t\treturn t+u;\n\t\t\t\t\t}", "title": "" }, { "docid": "564661513079acb3917035d6ef9078d3", "score": "0.53230727", "text": "void mo62368c(String str);", "title": "" }, { "docid": "4777f82107935e8c5150fb7963e22228", "score": "0.53224295", "text": "public void m5673r1(String str) {\n str.getClass();\n this.f7715b |= 1024;\n this.f7728o = str;\n }", "title": "" }, { "docid": "06b5f8e1d8823667a6cd9d7605063f54", "score": "0.5312106", "text": "private String repeatString(String s, int p){\r\n String o = \"\";\r\n while(p-- > 0) o += s;\r\n return o;\r\n }", "title": "" }, { "docid": "46662eca240e67065d3594cecd0db756", "score": "0.5306826", "text": "void mo71268a(String str);", "title": "" }, { "docid": "b49553c508f0e3c9c921d03bf046d00b", "score": "0.53011596", "text": "public int calculate2(String s) {\n if (s.length() >= 209079) return 199;\n\n int answer = 0;\n char sign = '+';\n int[] stack = new int[s.length()];\n int top = -1, currNum = 0;\n\n for (int i = 0; i < s.length(); i++) {\n char ch = s.charAt(i);\n if (ch >= '0') {\n currNum = currNum * 10 - '0' + ch;\n }\n if (i == s.length() - 1 || (ch < '0' && ch != ' ')) {\n if (sign == '+') {\n stack[++top] = currNum;\n } else if (sign == '-') {\n stack[++top] = -currNum;\n } else {\n int temp = (sign == '*') ? stack[top] * currNum : stack[top] / currNum;\n stack[top] = temp;\n }\n currNum = 0;\n sign = ch;\n }\n }\n while (top != -1) {\n answer += stack[top--];\n }\n return answer;\n }", "title": "" }, { "docid": "91a83719a50e398423d22931db713c87", "score": "0.5299079", "text": "private void m7582a(String str) {\n this.f7457j = str;\n }", "title": "" }, { "docid": "b7b21c0e4f06c82f96af7fadff99d641", "score": "0.52972203", "text": "public static void stringConcatenation() {\n\t}", "title": "" }, { "docid": "1be75ca174503a19e54f663728ee948d", "score": "0.52935636", "text": "public void m5405O(String str) {\n str.getClass();\n this.f7666b |= 2;\n this.f7668d = str;\n }", "title": "" }, { "docid": "c3cb36e2be72039cb521e28ee1956e4e", "score": "0.5292764", "text": "int mo12235d(String str, String str2);", "title": "" }, { "docid": "f20839ec963153182e4d4cd89a339a96", "score": "0.52837175", "text": "public void m5697z1(String str) {\n str.getClass();\n this.f7715b |= 8;\n this.f7719f = str;\n }", "title": "" }, { "docid": "4142ec2dce19adb77e83f4c961658977", "score": "0.5276843", "text": "public String compreeBad(String str)\n{\n\tString mystr = \"\";\n\tchar last = str.charAt(0);\n\tint count = 1;\n\tfor(int i=1; i<str.length();++i)\n\t{\n\t\tif(str.charAt(i) == last)\n\t\t{\n\t\t\tcount++;\n\t\t}else{\n\t\t\tmystr + = last + \"\" + count;\n\t\t\t//when update the var use +=\n\t\t\tlast = str.charAt(i);\n\t\t\t//we must reset the count every time\n\t\t\tcount = 1;\n\t\t}\n\t}\n\n\t//do not forget that go through the iteration yourself\n\t//because we did not add the very last part of the string\n\treturn mystr + last + count;\n}", "title": "" }, { "docid": "fa0bf78ef49ad009b47b912880d599e5", "score": "0.52629936", "text": "private static String addCharAt(String s, char c, int pos){\n\t\treturn new String(s.substring(0,pos) + c + s.substring(pos));\n\t}", "title": "" }, { "docid": "fa9b65544fc90f00a02e2eabcc8dd724", "score": "0.52585447", "text": "private int eval(String s, int[] p){\n int val = 0;\n int i = p[0]; \n int oper = 1; //1:+ -1:-\n int num = 0;\n while(i < s.length()){\n char c = s.charAt(i);\n switch(c){\n case '+': val = val + oper * num; num = 0; oper = 1; i++; break;// end of number and set operator\n case '-': val = val + oper * num; num = 0; oper = -1; i++; break;// end of number and set operator\n case '(': p[0] = i + 1; val = val + oper * eval(s, p); i = p[0]; break; // start a new eval\n case ')': p[0] = i + 1; return val + oper * num; // end current eval and return. Note that we need to deal with the last num\n case ' ': i++; continue;\n default : num = num * 10 + c - '0'; i++;\n }\n }\n return val;\n}", "title": "" }, { "docid": "801de8e888448a803b208452d685c24b", "score": "0.5247303", "text": "private String incrementNumericalString (String numberString) {\n\t\ttry {\n\t\t\tBigInteger bigNum = new BigInteger(numberString);\n\t\t\tString numberPlusOne = bigNum.add(BigInteger.ONE).toString();\n\t\t\treturn numberPlusOne;\n\t\t} catch (Exception e) {\n\t\t\treturn \"1\";\n\t\t}\n\t}", "title": "" }, { "docid": "a65d4a361101906b053ea0640d5bf49d", "score": "0.5226935", "text": "public void m5408R(String str) {\n str.getClass();\n this.f7666b |= 1;\n this.f7667c = str;\n }", "title": "" }, { "docid": "ebc71a5f3e85f95b634abb594328afdf", "score": "0.5222074", "text": "public static void main(String[] args) {\ndouble d=10.5;\r\nString x=String.valueOf(d);\r\nSystem.out.println(d+10.5);//concat\r\nSystem.out.println(x+10.5);//add\r\n\r\n//Char to String\r\nchar c='j';\r\nString s=String.valueOf(c);\r\nSystem.out.print(c);\r\n\r\n//String to Integer\r\nString s1=\"100\";\r\nint i=Integer.parseInt(s1);\r\nSystem.out.println(s1+10);//concat\r\nSystem.out.println(i+10);//add\r\n\r\n//String to double\r\nString s2=\"100.5\";\r\ndouble d1=Double.parseDouble(s2);\r\nSystem.out.println(s2+100.5);//Concat\r\nSystem.out.println(d1+100.5);//add\r\n\r\n//String to char\r\nString s3=\"sandy\";\r\nchar c1=s3.charAt(3);\r\nSystem.out.println(c1);\r\n\t}", "title": "" }, { "docid": "fd7446a4c2194317d590eb92a7529083", "score": "0.5220143", "text": "public static void main(String[] args) {\n\t\tint suma;\r\n\r\n\t\t// initializare - pasul 2\r\n\t\tsuma = 0;\r\n\r\n\t\t// declararea unei variabile - varianta 2, intr-un singur pas\r\n\r\n\t\t// declaratie + initializare\r\n\t\tint Suma = 6;\r\n\r\n\t\t// suma si suma1 sunt parametri pentru metoda println()\r\n\t\tSystem.out.println(suma);\r\n\t\tSystem.out.println(Suma);\r\n\r\n\t\t// -------------------------------------------------------------------------------------\r\n\r\n\t\tbyte b = 6;\r\n\t\tshort s = -32767;\r\n\t\tchar c = 65;\r\n\t\tchar cAsCharLiteral = 'r';\r\n\t\tint i = 543;\r\n\t\tlong lo = 1;\r\n\t\tlong lo1 = 1L;\r\n\t\tfloat f = 5;\r\n\t\tfloat f1 = 5.0f;\r\n\t\tfloat f2 = 5.23232332f;\r\n\t\tdouble d = 16;\r\n\t\tdouble d1 = 19.3f;\r\n\t\tdouble d2 = 19.3d;\r\n\t\tdouble d3 = 19.3;\r\n\t\tboolean b1 = true;\r\n\t\tboolean b2 = false;\r\n\t\tString str = \"This is+a string, ~it can have spaces and other33stuff\\n\";\r\n\r\n\t\tSystem.out.println(b);\r\n\t\tSystem.out.println(s);\r\n\t\tSystem.out.println(c);\r\n\t\tSystem.out.println(cAsCharLiteral);\r\n\t\tSystem.out.println(i);\r\n\t\tSystem.out.println(lo);\r\n\t\tSystem.out.println(lo1);\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f1);\r\n\t\tSystem.out.println(f2);\r\n\t\tSystem.out.println(d);\r\n\t\tSystem.out.println(d1);\r\n\t\tSystem.out.println(d2);\r\n\t\tSystem.out.println(d3);\r\n\t\tSystem.out.println(b1);\r\n\t\tSystem.out.println(b2);\r\n\t\tSystem.out.print(str);\r\n\t\tSystem.out.println(\"demo\");\r\n\r\n\t\t// ---------------------------------------------------------------------------\r\n\t\t// aceste operatii se numesc concatenari de stringuri\r\n\t\tSystem.out.println(\"ceva\" + b);\r\n\t\tSystem.out.println(\"ceva\" + \" altceva\");\r\n\t\tSystem.out.println(i + 2 + str); // echivalent cu (i + 2) + str\r\n\r\n\t\t// --------------------------------------------------------------------------\r\n\t\tint x = 7;\r\n\t\tx = 10;\r\n\r\n\t\t// constanta -> odata initializata, nu ii mai putem schimba valoarea\r\n\t\tfinal float PI = 3.14f;\r\n\t\t// PI = 5.0f;\r\n\t}", "title": "" }, { "docid": "9500b9b666418e62bb83b7e774e97a2f", "score": "0.52149475", "text": "@Override\n\tpublic void addToGrill(String s, int pos) {\n\t\t\n\t}", "title": "" }, { "docid": "d7db872072c1ad76fcaed9a7cd5a1071", "score": "0.52110696", "text": "void mo71271b(String str);", "title": "" }, { "docid": "560121cb4b7453badf0eac55563d30a3", "score": "0.5210873", "text": "int mo12244w(String str, String str2);", "title": "" }, { "docid": "bd5d26553a8d9cadf33a5836bf3efecb", "score": "0.52086854", "text": "String mo14420a(String str) throws Exception;", "title": "" }, { "docid": "8ff953203e0800424713416ea741703d", "score": "0.52077353", "text": "public void m5603L0(String str) {\n str.getClass();\n m5657k1();\n this.f7730q.add(str);\n }", "title": "" }, { "docid": "6e0df3e13924897cf13e5b9cdf2507dc", "score": "0.52071303", "text": "public String fractionAddition(String expression) {\n// String[] nums = expression.split(\"(?=[-,+])\");\n \tList<String> nums = new ArrayList<>();\n int prev = 0, cur = 0, len = expression.length();\n for (cur = 0; cur < len; cur++) {\n \tif (expression.charAt(cur) == '-' || expression.charAt(cur) == '+') {\n \t\tString tmp = expression.substring(prev, cur);\n \t\tif (tmp.compareTo(\"\") != 0) nums.add(tmp);\n \t\tprev = cur;\n \t}\n }\n \n String tmp = expression.substring(prev, cur);\n \tif (tmp.compareTo(\"\") != 0) nums.add(tmp);\n \t\n String sln = \"0/1\";\n for (String num : nums) {\n sln = add(sln, num);\n }\n return sln;\n }", "title": "" }, { "docid": "ae5464d523eb21f7e37ac8b19f9ab239", "score": "0.5206063", "text": "public void m5568z(String str) {\n str.getClass();\n this.f7710b |= 1;\n this.f7711c = str;\n }", "title": "" }, { "docid": "94779bfdd4a6eb7cddda09cf7ba4dd40", "score": "0.519387", "text": "public static void main(String[] args) {\n\t\t\n\t\tString s = \"abc\";\n\t\tString s2 = s;\n\t\ts+= \"d\";\n\t\tSystem.out.println(\"S value: \"+s +\" s1 value: \"+s2+\"and\"+ s==s2);\n\n\t}", "title": "" }, { "docid": "42a149b830b7ccecc741ebeb87c7ff67", "score": "0.51929176", "text": "public static String compress(String s) {\n StringBuilder out = new StringBuilder();\n int sum = 1;\n for (int i = 0; i < s.length() - 1; i++) {\n if (s.charAt(i) == s.charAt(i + 1)) {\n sum++;\n } else {\n out.append(s.charAt(i)).append(sum);\n sum = 1;\n }\n }\n out.append(s.charAt(s.length() - 1)).append(sum);\n return out.toString().length() < s.length() ? out.toString() : s;\n }", "title": "" }, { "docid": "1251ede5e0b8adabe920bef180f6e0ee", "score": "0.5191061", "text": "public void m5589G1(String str) {\n str.getClass();\n this.f7715b |= 32;\n this.f7721h = str;\n }", "title": "" }, { "docid": "500647b4249c9cabd4b1e34ff8caddb3", "score": "0.51721525", "text": "public void m5709L(String str) {\n str.getClass();\n this.f7738b |= 2;\n this.f7741e = str;\n }", "title": "" }, { "docid": "007e6dec56a54511f50bd96188958294", "score": "0.5168879", "text": "private static void m3850e(String str) {\n C1070t.m3845b(str);\n }", "title": "" }, { "docid": "3084471223071fe16132f4f7ac8fb946", "score": "0.51687473", "text": "protected void addString(String s) {\r\n curText += s;\r\n }", "title": "" }, { "docid": "6fe3b9378ddcc30026d6dcbae28f250f", "score": "0.5166109", "text": "private @NotNull TString concat(final @NotNull TString s)\n {\n assert ( getValue() != null ) : \"Assert: TString.concat, getValue() is NULL\";\n assert ( s.getValue() != null ) : \"Assert: TString.concat, s.getValue is NULL\";\n final String s1 = getValue();\n final String s2 = s.getValue();\n return new TString( s1.concat(s2), false );\n }", "title": "" }, { "docid": "143f2155efa8d4a0d1e1ecc575d879bf", "score": "0.5165798", "text": "public static String infixToPostfixOLD(String s) {\n Stack<String> stack = new Stack<String>();\n\n for (int i = 0; i < s.length(); i++)\n {\n System.out.println(\"next\");\n\n if (isOperand(s.charAt(i)) || s.charAt(i) != ' ' || s.charAt(i) != '(' || s.charAt(i) != ')') {\n stack.push(s.charAt(i) + \"\");\n System.out.println(\"match found\");\n } else {\n System.out.println(\"oof\");\n\n String op1 = stack.peek();\n stack.pop();\n String op2 = stack.peek();\n stack.pop();\n stack.push(\"(\" + op2 + s.charAt(i) + op1 + \")\");\n }\n }\n return stack.toString();\n }", "title": "" }, { "docid": "e2d921944564bda951d88c8a8b262284", "score": "0.5155791", "text": "void mo17689a(String str);", "title": "" }, { "docid": "2e87090026bbc225f271d29704e716d4", "score": "0.51549137", "text": "public void m5598J1(String str) {\n str.getClass();\n this.f7715b |= 16;\n this.f7720g = str;\n }", "title": "" } ]
6bddb764ea63e12f026e4b177baf2842
Define el valor de la propiedad id.
[ { "docid": "be8c607127da0adf013faa73892a0bd3", "score": "0.74344826", "text": "public void setId(int value) {\r\n this.id = value;\r\n }", "title": "" } ]
[ { "docid": "e0a48d763c64445de504666cf016ba52", "score": "0.78635436", "text": "public void setId(String value) {\n this.id = value;\n }", "title": "" }, { "docid": "5186e1ce01315036681f78aee861b407", "score": "0.75515753", "text": "public void setId() {\n this.id = id;\r\n }", "title": "" }, { "docid": "be75f8a5f4bef4a6831a2b43fdf321f7", "score": "0.75244606", "text": "public void setId(String value) {\n id = value;\n }", "title": "" }, { "docid": "be61a06bd9418dd678f25642f5ddfa42", "score": "0.747199", "text": "public void setId(long id) {this.id = id; }", "title": "" }, { "docid": "cb7878360ea0f28ae5871125e9671228", "score": "0.7459153", "text": "public void setId (Long pId)\n {\n this.id=pId;\n }", "title": "" }, { "docid": "9d7fb22024c179e95b78681d00925a85", "score": "0.74582654", "text": "public void iniciaid() {\n\t\tString id = Integer.toString(this.fachada.geraid());\n\t\t// JOptionPane.showMessageDialog(null, id); Mostra o id gerado no metódo\n\t\t// lá no repositório\n\t\ttxtID.setText(id);\n\t}", "title": "" }, { "docid": "be5850996f4de94ca7fd9440f2fbf9db", "score": "0.74534994", "text": "public void setId(int id){\r\n this.id = id;\r\n }", "title": "" }, { "docid": "105ffc02caa97ef4fee33dd49c182adc", "score": "0.74339336", "text": "public void setId(final String value) {\n this.id = value;\n }", "title": "" }, { "docid": "acbd0bddab8af4d4cc7fb60a2792e8ed", "score": "0.74288803", "text": "public void setId(long value) {\n this.id = value;\n }", "title": "" }, { "docid": "4346e5a854bafebc22dbca1980d8631f", "score": "0.74236846", "text": "public void setId(String id) { this.id = id; }", "title": "" }, { "docid": "cddc448f6c241d14e71dfc60e45cc114", "score": "0.7418915", "text": "public void setId(long value) {\n this.id = value;\n }", "title": "" }, { "docid": "64dc1df658a5c8677407b96a0af51e2f", "score": "0.7417508", "text": "public void setID(int id) { \r\n this.id = id; \r\n }", "title": "" }, { "docid": "1f0e142fea21d963bf589694fe09e359", "score": "0.74122703", "text": "void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "a603ab2be3abb5139dbc9b57bd52dd22", "score": "0.74103606", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "2ea3f646855a4de84777156e9d69a012", "score": "0.74040216", "text": "private int getId(){\n\t\t return id;\n\t }", "title": "" }, { "docid": "60d9eee31087a33ef9148d2e8731f8a2", "score": "0.73939437", "text": "void setId(String id){\n this.id = id;\n }", "title": "" }, { "docid": "45d95b1e4ff8c2de3d9f58d7a5909ce9", "score": "0.7391049", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e5e40506424a106f08233550ccf6c471", "score": "0.73731697", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "e5e40506424a106f08233550ccf6c471", "score": "0.73731697", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "594ddd406b432223ead8ff843dc4df9e", "score": "0.7368555", "text": "public void setID(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "7b447daab654954f7d70b4d98ca40312", "score": "0.735919", "text": "public void setId(String id) {\n \tthis.id = id;\n }", "title": "" }, { "docid": "64c56a74bdbd19dbf63b0275a2a74209", "score": "0.73586875", "text": "public void setId(long value) {\n this.id = value;\n }", "title": "" }, { "docid": "64c56a74bdbd19dbf63b0275a2a74209", "score": "0.73586875", "text": "public void setId(long value) {\n this.id = value;\n }", "title": "" }, { "docid": "64c56a74bdbd19dbf63b0275a2a74209", "score": "0.73586875", "text": "public void setId(long value) {\n this.id = value;\n }", "title": "" }, { "docid": "64c56a74bdbd19dbf63b0275a2a74209", "score": "0.73586875", "text": "public void setId(long value) {\n this.id = value;\n }", "title": "" }, { "docid": "34f045641c8a043f7fab0a39729a6601", "score": "0.7350165", "text": "public void setId(Integer id) { this.id = id; }", "title": "" }, { "docid": "e919e2c8c824b470b1e0e653ca675406", "score": "0.7346508", "text": "public void setId(String id) {\n this.id= id;\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.73390156", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.73390156", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a7581a7298386eaae3e1d5363790d56", "score": "0.73390156", "text": "public void setId(String id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "d780338f207855a82c75adaaef8eb893", "score": "0.7336551", "text": "public void setId(long value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "d780338f207855a82c75adaaef8eb893", "score": "0.7336551", "text": "public void setId(long value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "3ddb4437d6057385e9fdd6f6202b3379", "score": "0.7329117", "text": "public void setId(String i) {\n this.id = i;\n }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.7326411", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.732487", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.732487", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.732487", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.732487", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.732487", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.732487", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.732487", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.732487", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "475f503d7832c2c08479aedbf5c8f9be", "score": "0.73203254", "text": "public void setId(Long value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "70916f9e9eaec608faa71f4d1e5fa8a3", "score": "0.7314159", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "70916f9e9eaec608faa71f4d1e5fa8a3", "score": "0.7314159", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "70916f9e9eaec608faa71f4d1e5fa8a3", "score": "0.7314159", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "70916f9e9eaec608faa71f4d1e5fa8a3", "score": "0.7314159", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "605caa4cb7aea4133af9d212d98594d3", "score": "0.73056567", "text": "public void setId(java.lang.Integer id) { \n this.id = id; \n }", "title": "" }, { "docid": "61e8667c1e6a8fe1660705de0a34d386", "score": "0.7304435", "text": "void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.73034924", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.73034924", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "0b5efb3b2f3903903b39cebe346319a1", "score": "0.73031396", "text": "public void setId( Integer id )\n {\n this.id = id ;\n }", "title": "" }, { "docid": "0b5efb3b2f3903903b39cebe346319a1", "score": "0.73031396", "text": "public void setId( Integer id )\n {\n this.id = id ;\n }", "title": "" }, { "docid": "0b6af422c6f9f19672436d5e9d929e56", "score": "0.7302176", "text": "public void setId( Integer id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "0b6af422c6f9f19672436d5e9d929e56", "score": "0.7302176", "text": "public void setId( Integer id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "0b6af422c6f9f19672436d5e9d929e56", "score": "0.7302176", "text": "public void setId( Integer id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "0b6af422c6f9f19672436d5e9d929e56", "score": "0.7302176", "text": "public void setId( Integer id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "0b6af422c6f9f19672436d5e9d929e56", "score": "0.7302176", "text": "public void setId( Integer id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "0b6af422c6f9f19672436d5e9d929e56", "score": "0.7302176", "text": "public void setId( Integer id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "0b6af422c6f9f19672436d5e9d929e56", "score": "0.7302176", "text": "public void setId( Integer id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "0b6af422c6f9f19672436d5e9d929e56", "score": "0.7302176", "text": "public void setId( Integer id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "35249bf391fea8600bb0250421f4aa28", "score": "0.7299649", "text": "public void setId( Long id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "35249bf391fea8600bb0250421f4aa28", "score": "0.7299649", "text": "public void setId( Long id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "35249bf391fea8600bb0250421f4aa28", "score": "0.7299649", "text": "public void setId( Long id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "2d17438af68a3d87b698a1613dc7e1a8", "score": "0.72961426", "text": "public void setIdPoruka(Integer value) {\r\n this.idPoruka = value;\r\n }", "title": "" }, { "docid": "cd2d0d0c9b31ceaea7289e225b24bac9", "score": "0.72881484", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "d6b272e38ec0d861eb9bd0737c930167", "score": "0.72869855", "text": "public void setId(Long value)\n {\n this.id = value;\n }", "title": "" }, { "docid": "3dddca82fd66f4a487892d2bed923579", "score": "0.72864985", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "208e4d7cf1a7558fa2061bd02111ccf0", "score": "0.72798514", "text": "public void setId(long value) {\n this.id = value;\n }", "title": "" }, { "docid": "e9da5e0151fe21ad9f88df3ab629911b", "score": "0.727886", "text": "public void setId(long value) {\n this.id = value;\n }", "title": "" }, { "docid": "fa393105f4332dd55915506ec3ef2615", "score": "0.72784907", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "ee23435e45c4d49fc05370ad9033cdde", "score": "0.72742724", "text": "public void setId(Integer id) {\r\n\tthis.id = id;\r\n }", "title": "" }, { "docid": "53aca266ba958f03e2e7794c6bdd431a", "score": "0.7270394", "text": "public void setId(String value) {\n value.getClass();\n this.id_ = value;\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "459fe6614e7d5c4d7f21c5f894264736", "score": "0.7268836", "text": "public void setId(Integer id) {\r\n this.id = id;\r\n }", "title": "" } ]
54dd2a428372f1db6c79d78b86c74652
Get the appropriate ValueGetter for my endianness
[ { "docid": "1481113e2844f23bf5a6f3702f12ee72", "score": "0.7162886", "text": "public static ValueGetter valueGetterForEndian(ByteGetter bytes) {\n if (bytes.get(0) == ValueGetter.XDR.NUMBER) { // XDR\n return new ValueGetter.XDR(bytes);\n } else if (bytes.get(0) == ValueGetter.NDR.NUMBER) {\n return new ValueGetter.NDR(bytes);\n } else {\n throw new IllegalArgumentException(\"Unknown Endian type:\" + bytes.get(0));\n }\n }", "title": "" } ]
[ { "docid": "07dbd700a021304bc1691ee9994e2454", "score": "0.61671144", "text": "public int getEndian()\n {\n return _endian;\n }", "title": "" }, { "docid": "5818c09e507eb096727d11d0ce6025bd", "score": "0.6052488", "text": "public StrColumn getEndianType() {\n return delegate.getColumn(\"endian_type\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "d74cd33667989359df3f4b7ad02eafab", "score": "0.56102", "text": "public byte getVal();", "title": "" }, { "docid": "c79a14e023705f793cf0900f0c8ffa59", "score": "0.5455251", "text": "public void testConverterGetData_BitfieldId() throws Exception\n {\n\n BitFieldId idOne;\n BitfieldDataConverter converter;\n ByteBuffer buff;\n\n //test Byte Converter with int inputs\n idOne = BitFieldId.FAN_SPEED;\n buff = ByteBuffer.allocate(1);\n buff.order(ByteOrder.LITTLE_ENDIAN);\n\n // Test all unsigned Byte values\n for(int i = Byte.MIN_VALUE; i < Byte.MAX_VALUE; i++)\n {\n buff.clear();\n buff.put((byte) i);\n converter = idOne.getData(buff);\n assertEquals(ByteConverter.class, converter.getClass());//should be the same class\n assertEquals(((byte)i & 0xFF), ((ByteConverter)converter).getValue());\n }\n\n //test Incline Converter\n idOne = BitFieldId.GRADE;\n buff = ByteBuffer.allocate(2);\n buff.order(ByteOrder.LITTLE_ENDIAN);\n\n // Test all unsigned short values\n for(int i = Short.MIN_VALUE; i < Short.MAX_VALUE; i++)\n {\n double expectResult;\n buff.clear();\n buff.putShort((short) i);\n expectResult = (i + 0.0) / 100;\n converter = idOne.getData(buff);\n assertEquals(GradeConverter.class, converter.getClass());//should be the same class\n assertEquals(expectResult, ((GradeConverter)converter).getIncline());\n }\n\n //test Key object converter\n idOne = BitFieldId.KEY_OBJECT;\n buff = ByteBuffer.allocate(14);\n buff.order(ByteOrder.LITTLE_ENDIAN);\n\n //Test all the keycodes\n for(KeyCodes code : KeyCodes.values())\n {\n buff.clear();\n buff.putShort((short) code.getVal());\n buff.putLong(0xFFFFFFFFFFFFFFFCL);\n buff.putShort((short) 1234);\n buff.putShort((short) 4321);\n converter = idOne.getData(buff);\n assertEquals(KeyObjectConverter.class, converter.getClass());//should be the same class\n assertEquals(code, ((KeyObjectConverter)converter).getKeyObject().getCookedKeyCode());\n assertEquals(0xFFFFFFFC, ((KeyObjectConverter)converter).getKeyObject().getRawKeyCode());\n assertEquals(1234, ((KeyObjectConverter)converter).getKeyObject().getTimePressed());\n assertEquals(4321, ((KeyObjectConverter)converter).getKeyObject().getTimeHeld());\n }\n //test Long Converter\n idOne = BitFieldId.DISTANCE;\n buff = ByteBuffer.allocate(4);\n buff.order(ByteOrder.LITTLE_ENDIAN);\n\n //test limits only, anything above short is to big.\n //min\n buff.clear();\n buff.putInt(Integer.MIN_VALUE);\n converter = idOne.getData(buff);\n assertEquals(LongConverter.class, converter.getClass());//should be the same class\n assertEquals(Integer.MIN_VALUE , ((LongConverter)converter).getValue());\n\n //0\n buff.clear();\n buff.putInt(0);\n converter = idOne.getData(buff);\n assertEquals(LongConverter.class, converter.getClass());//should be the same class\n assertEquals(0, ((LongConverter)converter).getValue());\n\n //max\n buff.clear();\n buff.putInt(Integer.MAX_VALUE);\n converter = idOne.getData(buff);\n assertEquals(LongConverter.class, converter.getClass());//should be the same class\n assertEquals(Integer.MAX_VALUE, ((LongConverter)converter).getValue());\n\n //test Resistance Converter\n idOne = BitFieldId.RESISTANCE;\n buff = ByteBuffer.allocate(2);\n buff.order(ByteOrder.LITTLE_ENDIAN);\n\n // Test all unsigned short values\n for(int i = Short.MIN_VALUE; i < Short.MAX_VALUE; i++)\n {\n double expectResult;\n buff.clear();\n buff.putShort((short) i);\n expectResult = (((short)i & 0xFFFF) + 0.0) / 100;\n converter = idOne.getData(buff);\n assertEquals(ResistanceConverter.class, converter.getClass());//should be the same class\n assertEquals(expectResult, ((ResistanceConverter)converter).getResistance());\n }\n\n //test Short Converter with int inputs we want this to be unsigned\n idOne = BitFieldId.WATTS;\n buff = ByteBuffer.allocate(2);\n buff.order(ByteOrder.LITTLE_ENDIAN);\n\n // Test all unsigned short values\n for(int i = Short.MIN_VALUE; i < Short.MAX_VALUE; i++)\n {\n buff.clear();\n buff.putShort((short) i);\n converter = idOne.getData(buff);\n assertEquals(ShortConverter.class, converter.getClass());//should be the same class\n assertEquals(((short)i & 0xFFFF), ((ShortConverter)converter).getValue());\n }\n\n //test Speed Converter\n buff = ByteBuffer.allocate(2);\n buff.order(ByteOrder.LITTLE_ENDIAN);\n idOne = BitFieldId.KPH;\n\n // Test all unsigned short values\n for(int i = 0; i < 65536; i++)\n {\n double expectResult;\n buff.clear();\n buff.putShort((short)i);\n expectResult = (i + 0.0) / 100;\n converter = idOne.getData(buff);\n assertEquals(SpeedConverter.class, converter.getClass());//should be the same class\n assertEquals(expectResult, ((SpeedConverter)converter).getSpeed());\n }\n\n //test Mode Converter\n buff = ByteBuffer.allocate(1);\n buff.order(ByteOrder.LITTLE_ENDIAN);\n idOne = BitFieldId.WORKOUT_MODE;\n\n // Test all unsigned short values\n for (ModeId id : ModeId.values()) {\n\n ModeId expectResult;\n buff.clear();\n buff.put((byte) id.getValue());\n expectResult = id;\n converter = idOne.getData(buff);\n assertEquals(ModeConverter.class, converter.getClass());//should be the same class\n assertEquals(expectResult, ((ModeConverter)converter).getMode());\n }\n\n //test Workout Converter\n buff = ByteBuffer.allocate(1);\n buff.order(ByteOrder.LITTLE_ENDIAN);\n idOne = BitFieldId.WORKOUT;\n\n // Test all unsigned short values\n for (WorkoutId id : WorkoutId.values()) {\n\n WorkoutId expectResult;\n buff.clear();\n buff.put((byte)id.getValue());\n expectResult = id;\n converter = idOne.getData(buff);\n assertEquals(WorkoutConverter.class, converter.getClass());//should be the same class\n assertEquals(expectResult, ((WorkoutConverter)converter).getWorkout());\n }\n\n }", "title": "" }, { "docid": "07aaff2f289111ce495e8dd687e5751d", "score": "0.54116", "text": "int getInt32Value();", "title": "" }, { "docid": "831fe7f8180e03e4872e10354ff0e6af", "score": "0.54050726", "text": "@Override\n public int getInt() {\n return getInt(getByteOrder());\n }", "title": "" }, { "docid": "8432bee17135ddfa20dc9dbc068b8328", "score": "0.53897595", "text": "@java.lang.Override\n public int getInt32Value() {\n return int32Value_;\n }", "title": "" }, { "docid": "d9d101e589de38745f79f253f404b2ad", "score": "0.5388746", "text": "public V get(byte key)\r\n/* 79: */ {\r\n/* 80:114 */ int index = indexOf(key);\r\n/* 81:115 */ return index == -1 ? null : toExternal(this.values[index]);\r\n/* 82: */ }", "title": "" }, { "docid": "d2d6db3d9a22512220f9fa94f330c62d", "score": "0.53860974", "text": "@Override\n\tpublic Object getFieldValue()\n\t{\n\t\treturn byteValue;\n\t}", "title": "" }, { "docid": "cd3fbc9036e18803c08e0619789d7d94", "score": "0.5330293", "text": "public IPrimitiveType getByte();", "title": "" }, { "docid": "c35d0f18c531becb424fa0b1390ad1be", "score": "0.5318812", "text": "int getDataTypeValueValue();", "title": "" }, { "docid": "eb8eca82d3ee87ba51b2b7b066d97fef", "score": "0.52981263", "text": "public byte get();", "title": "" }, { "docid": "6efa21d63aee24e6edd21fb52816f531", "score": "0.5236711", "text": "int getProtocolValue();", "title": "" }, { "docid": "7351223230b925f8cca1454303c45cb7", "score": "0.5233247", "text": "byte get();", "title": "" }, { "docid": "bf896631f93c29c9fa43f90e3aa8d359", "score": "0.5231393", "text": "@java.lang.Override\n public int getInt32Value() {\n return int32Value_;\n }", "title": "" }, { "docid": "79ce3a82c1c67c03ee00295b6be4efd9", "score": "0.5221897", "text": "public VType read();", "title": "" }, { "docid": "3653aa1ebce3031b5e3473cace1567cd", "score": "0.5217442", "text": "@Override\n public T unmarshal(ByteBuffer byteBuffer) {\n int n = this.mNativeType;\n if (n != 0) {\n if (n != 1) throw new AssertionError((Object)\"Unexpected native type; impossible since its not supported\");\n n = byteBuffer.getInt();\n return (T)MarshalQueryableEnum.getEnumFromValue(this.mClass, n);\n } else {\n n = byteBuffer.get() & 255;\n }\n return (T)MarshalQueryableEnum.getEnumFromValue(this.mClass, n);\n }", "title": "" }, { "docid": "895827cebb6c1c9239b0188c09a92912", "score": "0.5204566", "text": "byte value();", "title": "" }, { "docid": "01e9da53339fdc6fcce3bc0e464e5581", "score": "0.52038497", "text": "public interface SerialConversionUtil {\n\n static int get32Int(byte[] bytes,int start){\n return (bytes[start+3] << (Byte.SIZE * 3))\n | ((bytes[start+2] & 0xFF) << (Byte.SIZE * 2))\n | ((bytes[start+1] & 0xFF) << (Byte.SIZE))\n | (bytes[start] & 0xFF);\n }\n\n static long getU32Int(byte[] bytes,int start){\n return (((long)(bytes[start+3]& 0xFF) << (Byte.SIZE * 3))\n | ((bytes[start+2] & 0xFF) << (Byte.SIZE * 2))\n | ((bytes[start+1] & 0xFF) << (Byte.SIZE))\n | (bytes[start] & 0xFF)\n ) & 0xFFFFFFFFL;\n }\n\n static long get64Int(byte[] bytes,int start){\n return (bytes[start+7] << (Byte.SIZE * 7))|((bytes[start+6] & 0xFF) << (Byte.SIZE * 6))\n | ((bytes[start+5] & 0xFF) << (Byte.SIZE * 5))\n | ((bytes[start+4] & 0xFF) << (Byte.SIZE * 4))\n | ((bytes[start+3] & 0xFF) << (Byte.SIZE * 3))\n | ((bytes[start+2] & 0xFF) << (Byte.SIZE * 2))\n | ((bytes[start+1] & 0xFF) << (Byte.SIZE))\n | (bytes[start] & 0xFF);\n }\n\n static int getU16Int(byte[] bytes,int start){\n return (((bytes[start+1] & 0xFF) << (Byte.SIZE))\n | (bytes[start] & 0xFF)\n )& 0xFFFF;\n }\n\n static void getU16IntArray(byte[] bytes, int start, int[] dest){\n for (int i = 0 ; i < dest.length ; i ++){\n dest[i] = getU16Int(bytes,start+i*2);\n }\n }\n\n static int get16Int(byte[] bytes,int start){\n return ( ((bytes[start+1] & 0xFF) << (Byte.SIZE))\n | (bytes[start] & 0xFF));\n }\n\n static void get16IntArray(byte[] bytes, int start, int[] dest){\n for (int i = 0 ; i < dest.length ; i ++){\n dest[i] = get16Int(bytes,start+i*2);\n }\n }\n\n static int getU8Int(byte[] bytes,int start){\n return (bytes[start] & 0xFF);\n }\n\n static byte get8Int(byte[] bytes,int start){\n return (bytes[start]);\n }\n\n static float getFloat(byte[] bytes,int start){\n float val = Float.intBitsToFloat(get32Int(bytes,start));\n return val;\n }\n\n static double getDouble(byte[] bytes,int start){\n double val = Double.longBitsToDouble(get64Int(bytes,start));\n return val;\n }\n}", "title": "" }, { "docid": "e9cb6af39ceb0c768b0a97b535c0415d", "score": "0.5168465", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return uuid;\n case 1: return baseObject;\n case 2: return srcAddress;\n case 3: return srcPort;\n case 4: return destAddress;\n case 5: return destPort;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "fdf4721a2332de0dd036cdea38db6e33", "score": "0.5166421", "text": "private int getBytesValue() {\n int msB =\n (int) (0xFF & PatchBytes.getSysexByte(patch.sysex, 9, offset - 2));\n int midB =\n (int) (0xFF & PatchBytes.getSysexByte(patch.sysex, 9, offset - 1));\n int lsB = (int) (0xFF & PatchBytes.getSysexByte(patch.sysex, 9, offset));\n\n int bytesValue = msB << 16;\n bytesValue = bytesValue | midB << 8;\n bytesValue = bytesValue | lsB;\n return bytesValue;\n }", "title": "" }, { "docid": "c67aafb808ea26ab41dfa8a9dbfd0ef7", "score": "0.5160333", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return uuid;\n case 1: return hostName;\n case 2: return hostIdentifiers;\n case 3: return osDetails;\n case 4: return hostType;\n case 5: return interfaces;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "6de68461bf6e5e1331ae1fcea47d4961", "score": "0.5159969", "text": "public int getDecoderValue() {\n return _decoderValue;\n }", "title": "" }, { "docid": "8f28eb1ce24fcadb772895cd057f4311", "score": "0.512721", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return _2300HI0601CodeListQualifierCode;\n case 1: return _2300HI0602TreatmentCode;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "4bb04884f9fea0236887ab77b107a8bf", "score": "0.51265234", "text": "short getValue();", "title": "" }, { "docid": "65816bccfa5c0b85e4528ce03c860dba", "score": "0.51094043", "text": "int getFieldTypeValue();", "title": "" }, { "docid": "855b0fc3bf945f574ecad3cbafcbe452", "score": "0.5098889", "text": "private byte detectEndianness(byte[] magicNumber) {\n if (UtilFunctions.compare32Bytes(MagicNumber.MAGIC_NUMBER_BIG_ENDIAN, magicNumber, isBigEndian)) {\n return Endianess.BIG_ENDIAN;\n } else if (UtilFunctions.compare32Bytes(MagicNumber.MAGIC_NUMBER_LITTLE_ENDIAN, magicNumber, isBigEndian)) {\n return Endianess.LITTLE_ENDIAN;\n } else {\n return Endianess.NO_ENDIANESS;\n }\n }", "title": "" }, { "docid": "73051273a8022f21d3f3319db3a4d6cf", "score": "0.50802994", "text": "public void determineEndianness(com.earthview.world.graphic.AnimationBaseSerializer.Endian requestedEndian)\n\t{\n\t\tsuper.determineEndianness_NoVirtual(requestedEndian);\n\t}", "title": "" }, { "docid": "73051273a8022f21d3f3319db3a4d6cf", "score": "0.50802994", "text": "public void determineEndianness(com.earthview.world.graphic.AnimationBaseSerializer.Endian requestedEndian)\n\t{\n\t\tsuper.determineEndianness_NoVirtual(requestedEndian);\n\t}", "title": "" }, { "docid": "7e5c4c4186e43688732e48dfadd2aeef", "score": "0.50628537", "text": "public abstract int readUnsignedMediumLE();", "title": "" }, { "docid": "cfb9a43515555982415db7931ece912a", "score": "0.50564766", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return _2420BREF01ReferenceIdentificationQualifier;\n case 1: return _2420BREF02OperatingPhysicianSecondaryIdentifier;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "68bc27d9aa97474da119dba3e78c1668", "score": "0.5040727", "text": "ByteOrder order();", "title": "" }, { "docid": "27b3115dc3199b8c2965958a18eb9165", "score": "0.5033393", "text": "protected Object readResolve() {\n \treturn valueOf(this.enumValue);\n }", "title": "" }, { "docid": "9c3e24e9e7a46362f658dca1224fa4e9", "score": "0.5032924", "text": "public Byte getOrd() ;", "title": "" }, { "docid": "ff17503821ee74462b07f0f414ef0672", "score": "0.5025789", "text": "io.dstore.values.StringValue getBinaryCharacValue();", "title": "" }, { "docid": "f04b73a77dc883968cad6d3c21df48d8", "score": "0.50255674", "text": "public T8 t8Value()\n {\n return this.object8;\n }", "title": "" }, { "docid": "854d28e3dcda290914570ddeadd6f3bc", "score": "0.50239456", "text": "public byte byteValue() {\n/* 49 */ return this.b;\n/* */ }", "title": "" }, { "docid": "27d8363fddfb725b49dd17a4394906e7", "score": "0.5022253", "text": "public byte getValue() {\n return value;\n }", "title": "" }, { "docid": "c844d071168044852ea680d1e27cea22", "score": "0.50217146", "text": "public void testEnum() throws Exception{\n\n BitFieldId idOne;\n BitFieldId idTwo;\n BitfieldDataConverter converterOne;\n ByteBuffer rawData = ByteBuffer.allocate(2);\n rawData.order(ByteOrder.LITTLE_ENDIAN);\n Byte b1;\n Byte b2;\n\n idOne = BitFieldId.KPH;\n idTwo = BitFieldId.GRADE;\n b1 = 0x0B;\n b2 = 0x01;\n rawData.put(b1);\n rawData.put(b2);\n\n assertEquals(BitFieldId.KPH, idOne);\n assertEquals(0, idOne.getVal());\n assertEquals(0, idOne.getSection());\n assertEquals(0, idOne.getBit());\n assertEquals(2, idOne.getSize());\n assertEquals(false, idOne.getReadOnly());\n assertNotNull(idOne.getDescription());\n\n assertEquals(BitFieldId.GRADE, idTwo);\n assertEquals(1, idTwo.getVal());\n assertEquals(0, idTwo.getSection());\n assertEquals(1, idTwo.getBit());\n assertEquals(2, idTwo.getSize());\n assertEquals(false, idTwo.getReadOnly());\n assertNotNull(idTwo.getDescription());\n\n //test changes in the converter behind the seen to make sure it still matches\n converterOne =idOne.getData(rawData);\n\n assertEquals(2.67, ((SpeedConverter)converterOne).getSpeed());\n assertEquals(BitFieldId.KPH, idOne);\n\n }", "title": "" }, { "docid": "c989748011b05272050bfbe906b0ca57", "score": "0.4996586", "text": "int getCodecType();", "title": "" }, { "docid": "3c67c03a05bfccf3608196880bec1ae9", "score": "0.4980844", "text": "public byte getFieldAsByte(int tag) {\n/* 430 */ return getFieldAsByte(tag, 0);\n/* */ }", "title": "" }, { "docid": "b8d57addc8d840d842e9b5157aff32aa", "score": "0.4974764", "text": "public Object\n toVal() throws DerDecodingException\n {\n return encode();\n }", "title": "" }, { "docid": "4f3916b95fc4402a39776719da10a9de", "score": "0.49386406", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return descriptor_type;\n case 1: return src_date;\n case 2: return network_status_version;\n case 3: return vote_status;\n case 4: return consensus_methods;\n case 5: return published;\n case 6: return valid_after;\n case 7: return flag_tresholds;\n case 8: return fresh_until;\n case 9: return valid_until;\n case 10: return voting_delay;\n case 11: return client_versions;\n case 12: return server_versions;\n case 13: return package$;\n case 14: return known_flags;\n case 15: return params;\n case 16: return dir_source;\n case 17: return contact;\n case 18: return legacy_dir_key;\n case 19: return directory_key;\n case 20: return status;\n case 21: return directory_footer;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "7fcb7f222be62e58ec7df2e59c3e4efb", "score": "0.4928951", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return appBuild;\n case 1: return device;\n case 2: return locale;\n case 3: return location;\n case 4: return telephone;\n case 5: return wifi;\n case 6: return bluetoothInfo;\n case 7: return availableMemoryInfo;\n case 8: return cpuInfo;\n case 9: return USER_AGENT_ACTION;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "caf923453fc2647961ee8e03135a09a3", "score": "0.49251395", "text": "private static double getReal(byte[] b, int pos, int len, boolean little_endian) {\n double u = 0;\n if (len == 4) {\n int u4 = 0;\n for (int i=0; i<4; i++) {\n u4 = (u4 << 8) |\n (((int)(b[pos + ((little_endian) ? len-1-i : i)] & 0xff)));\n }\n u = Float.intBitsToFloat(u4);\n } else if (len == 8) {\n long u8 = 0;\n for (int i=0; i<8; i++) {\n u8 = (u8 << 8) |\n (((long)(b[pos + ((little_endian) ? len-1-i : i)] & 0xff)));\n }\n u = Double.longBitsToDouble(u8);\n }\n return u;\n }", "title": "" }, { "docid": "5094bf14f6bfd1d13ebd12474f4438f5", "score": "0.49194312", "text": "public abstract int readUnsignedShortLE();", "title": "" }, { "docid": "e88820f650d8e980ef4b82b1f8af5702", "score": "0.49021003", "text": "T readValue (RawValueReader reader) throws IOException;", "title": "" }, { "docid": "f8446cea826d1352a25a94056920b36a", "score": "0.48820356", "text": "io.dstore.values.IntegerValue getBinaryValueId();", "title": "" }, { "docid": "cee7a4ed614207e076ca280e49e1cb65", "score": "0.4869807", "text": "public BytesRef getBinaryValue(String name);", "title": "" }, { "docid": "11b9c58c94f6805a581ddc722c59e9bd", "score": "0.4866634", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return pseudo;\n case 1: return salt;\n case 2: return birthDate;\n case 3: return profilePicturePath;\n case 4: return createDate;\n case 5: return updateDate;\n case 6: return ipAddress;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "385445a2a77fcc0c61cab33462d21b23", "score": "0.4866203", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return ipadress;\n case 2: return port;\n case 3: return type;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "4f622977137541b31891f4e4365440c0", "score": "0.48618567", "text": "public abstract short readUnsignedByte();", "title": "" }, { "docid": "33c5f0bacd8f48527b2cca2a2c1961a4", "score": "0.4856731", "text": "public byte byteValue()\n {\n return (byte) type;\n }", "title": "" }, { "docid": "3cc5d1e992612403e03e69cd15bd21a1", "score": "0.48482862", "text": "@Test\n public void testDeserializeWithClassField() throws Exception {\n byte[] int32ValueBytes =\n new byte[] {\n -84, -19, 0, 5, 115, 114, 0, 55, 99, 111, 109, 46, 103, 111, 111, 103, 108, 101, 46, 112,\n 114, 111, 116, 111, 98, 117, 102, 46, 71, 101, 110, 101, 114, 97, 116, 101, 100, 77, 101,\n 115, 115, 97, 103, 101, 76, 105, 116, 101, 36, 83, 101, 114, 105, 97, 108, 105, 122, 101,\n 100, 70, 111, 114, 109, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 3, 91, 0, 7, 97, 115, 66, 121, 116,\n 101, 115, 116, 0, 2, 91, 66, 76, 0, 12, 109, 101, 115, 115, 97, 103, 101, 67, 108, 97,\n 115, 115, 116, 0, 17, 76, 106, 97, 118, 97, 47, 108, 97, 110, 103, 47, 67, 108, 97, 115,\n 115, 59, 76, 0, 16, 109, 101, 115, 115, 97, 103, 101, 67, 108, 97, 115, 115, 78, 97, 109,\n 101, 116, 0, 18, 76, 106, 97, 118, 97, 47, 108, 97, 110, 103, 47, 83, 116, 114, 105, 110,\n 103, 59, 120, 112, 117, 114, 0, 2, 91, 66, -84, -13, 23, -8, 6, 8, 84, -32, 2, 0, 0, 120,\n 112, 0, 0, 0, 2, 8, 123, 118, 114, 0, 30, 99, 111, 109, 46, 103, 111, 111, 103, 108, 101,\n 46, 112, 114, 111, 116, 111, 98, 117, 102, 46, 73, 110, 116, 51, 50, 86, 97, 108, 117,\n 101, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 66, 0, 21, 109, 101, 109, 111, 105, 122, 101, 100,\n 73, 115, 73, 110, 105, 116, 105, 97, 108, 105, 122, 101, 100, 73, 0, 6, 118, 97, 108, 117,\n 101, 95, 120, 114, 0, 38, 99, 111, 109, 46, 103, 111, 111, 103, 108, 101, 46, 112, 114,\n 111, 116, 111, 98, 117, 102, 46, 71, 101, 110, 101, 114, 97, 116, 101, 100, 77, 101, 115,\n 115, 97, 103, 101, 86, 51, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 1, 76, 0, 13, 117, 110, 107, 110,\n 111, 119, 110, 70, 105, 101, 108, 100, 115, 116, 0, 37, 76, 99, 111, 109, 47, 103, 111,\n 111, 103, 108, 101, 47, 112, 114, 111, 116, 111, 98, 117, 102, 47, 85, 110, 107, 110, 111,\n 119, 110, 70, 105, 101, 108, 100, 83, 101, 116, 59, 120, 112, 116, 0, 30, 99, 111, 109,\n 46, 103, 111, 111, 103, 108, 101, 46, 112, 114, 111, 116, 111, 98, 117, 102, 46, 73, 110,\n 116, 51, 50, 86, 97, 108, 117, 101\n };\n\n ByteArrayInputStream bais = new ByteArrayInputStream(int32ValueBytes);\n ObjectInputStream in = new ObjectInputStream(bais);\n Int32Value int32Value = (Int32Value) in.readObject();\n assertThat(int32Value.getValue()).isEqualTo(123);\n }", "title": "" }, { "docid": "cbdd1707b4eef6caf97c925acd10061e", "score": "0.48463443", "text": "IntegerValueType getIntegerValue();", "title": "" }, { "docid": "2a5a69998f63464cdc354cf9f23a7841", "score": "0.4844875", "text": "public Object\n toVal() throws DerDecodingException\n {\n int offset = 0;\n ArrayList components = new ArrayList(); // of Integer.\n\n while (offset < payload_.position()) {\n int[] skip = new int[1];\n int nextVal = decode128(offset, skip);\n offset += skip[0];\n components.add(nextVal);\n }\n\n // for some odd reason, the first digits are represented in one byte\n int firstByte = (Integer)components.get(0);\n int firstDigit = firstByte / 40;\n int secondDigit = firstByte % 40;\n\n String result = firstDigit + \".\" + secondDigit;\n for (int i = 1; i < components.size(); ++i)\n result += \".\" + components.get(i);\n\n return result;\n }", "title": "" }, { "docid": "916e2461e161bb1e34d3d801245df9c4", "score": "0.48374322", "text": "public abstract int readUnsignedShort();", "title": "" }, { "docid": "550c28f1814cc4c11ae5a84c8850baef", "score": "0.48362115", "text": "private InstructionTypes decodeInstructionHelper(byte instructionVal) {\n\t\tswitch (instructionVal) {\n\t\tcase 0b00000000:\n\t\t\treturn InstructionTypes.NOP;\n\t\tcase 0b00010000:\n\t\t\treturn InstructionTypes.LDA;\n\t\tcase 0b00100000:\n\t\t\treturn InstructionTypes.ADD;\n\t\tcase 0b00110000:\n\t\t\treturn InstructionTypes.SUB;\n\t\tcase 0b01000000:\n\t\t\treturn InstructionTypes.STA;\n\t\tcase 0b01010000:\n\t\t\treturn InstructionTypes.LDI;\n\t\tcase 0b01100000:\n\t\t\treturn InstructionTypes.JMP;\n\t\tcase 0b01110000:\n\t\t\treturn InstructionTypes.JC;\n\t\tcase (byte) 0b10000000:\n\t\t\treturn InstructionTypes.JZ;\n\t\tcase (byte) 0b11100000:\n\t\t\treturn InstructionTypes.OUT;\n\t\tcase (byte) 0b11110000:\n\t\t\treturn InstructionTypes.HLT;\n\t\tdefault:\n\t\t\treturn InstructionTypes.INVALID;\n\t\t}\n\t}", "title": "" }, { "docid": "498c603524d4408910f64a67f9e665e0", "score": "0.48333678", "text": "public IPrimitiveType getInt();", "title": "" }, { "docid": "b6554a7a740e6fee30e3778fcf1d0ad7", "score": "0.4830932", "text": "public byte[] getValue();", "title": "" }, { "docid": "089c03942349bf01f63f5dddd51292dd", "score": "0.4817936", "text": "MetaTypeRef getEnum_();", "title": "" }, { "docid": "96dd91bc8ffaad621e18014ad063b731", "score": "0.4803637", "text": "private MappingJacksonValue adapt(Order order) {\n return adapterMap\n .getOrDefault(getProtocolVersion(), MappingJacksonValue::new)\n .apply(order);\n }", "title": "" }, { "docid": "60f937189771e76f6ebcca7b06479dda", "score": "0.48005193", "text": "byte getFbyte(short value) {\n byte temp = (byte)(value >> 8);\n return temp;\n}", "title": "" }, { "docid": "0c7823896b712ec6c1f43845105a6b94", "score": "0.4799257", "text": "value_type getValue();", "title": "" }, { "docid": "b486c93c32b8dd487479310ef04b4a73", "score": "0.47760138", "text": "int getInt() {\n return native_integer;\n }", "title": "" }, { "docid": "e66e0be14134115699088fa82d888104", "score": "0.47744584", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return _2300DTP01DateTimeQualifier;\n case 1: return _2300DTP02DateTimePeriodFormatQualifier;\n case 2: return _2300DTP03DisabilityFromDate;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "6f0208996fb6fdb60d239d890dfd216c", "score": "0.4766336", "text": "public int getDataType();", "title": "" }, { "docid": "2d8204641f6b9957bc2b020310b45f4d", "score": "0.4763713", "text": "public com.tangosol.util.Converter getValueToInternalConverter()\n {\n // import com.tangosol.util.NullImplementation;\n \n return NullImplementation.getConverter();\n }", "title": "" }, { "docid": "228825be77fbf983b59d6ab11b0e4848", "score": "0.47613716", "text": "public int switchEndian(int value)\n {\n int b1 = value & 0xff;\n int b2 = (value >> 8) & 0xff;\n int b3 = (value >> 16) & 0xff;\n int b4 = (value >> 24) & 0xff;\n return b1 << 24 | b2 << 16 | b3 << 8 | b4;\n }", "title": "" }, { "docid": "3a908c5ddad1d44bcd8c377ea7dcfd47", "score": "0.47565785", "text": "protected Object convert(byte[] barray, DataType dataType, int byteOrder) {\n\n if (dataType == DataType.BYTE) {\n return barray[0];\n }\n\n if (dataType == DataType.CHAR) {\n return (char) barray[0];\n }\n\n ByteBuffer bbuff = ByteBuffer.wrap(barray);\n if (byteOrder >= 0) {\n bbuff.order(\n byteOrder == ucar.unidata.io.RandomAccessFile.LITTLE_ENDIAN ? ByteOrder.LITTLE_ENDIAN : ByteOrder.BIG_ENDIAN);\n }\n\n if (dataType == DataType.SHORT) {\n ShortBuffer tbuff = bbuff.asShortBuffer();\n return tbuff.get();\n\n } else if (dataType == DataType.INT) {\n IntBuffer tbuff = bbuff.asIntBuffer();\n return tbuff.get();\n\n } else if (dataType == DataType.LONG) {\n LongBuffer tbuff = bbuff.asLongBuffer();\n return tbuff.get();\n\n } else if (dataType == DataType.FLOAT) {\n FloatBuffer tbuff = bbuff.asFloatBuffer();\n return tbuff.get();\n\n } else if (dataType == DataType.DOUBLE) {\n DoubleBuffer tbuff = bbuff.asDoubleBuffer();\n return tbuff.get();\n }\n\n throw new IllegalStateException();\n }", "title": "" }, { "docid": "eea5b3ca7683e654990383148d29e3ad", "score": "0.47523686", "text": "private native Integer getIntegerObject(int number);", "title": "" }, { "docid": "80211f6ece61da116cf8f360d86cc1f8", "score": "0.4751417", "text": "public abstract int readUnsignedMedium();", "title": "" }, { "docid": "7deb12f26ddf16868e2898102bb83eac", "score": "0.47500688", "text": "public interface MeasurementValueParser {\n MeasurementValue parseBytes(int[] bytes); // we use int because of wonder, wonderful signed bytes\n}", "title": "" }, { "docid": "c5d57c20e459ec1716e9b632c1287bf8", "score": "0.4746454", "text": "@Override\n public ByteBuffer get(ByteBuffer src) throws JED2KException {\n for (short i = 0; i < value.length; ++i) {\n try {\n byte b = src.get();\n value[(i / 4)*4 + 3 - (i % 4)] = b;\n } catch(BufferUnderflowException e) {\n throw new JED2KException(ErrorCode.BUFFER_UNDERFLOW_EXCEPTION);\n } catch(Exception e) {\n throw new JED2KException(ErrorCode.BUFFER_GET_EXCEPTION);\n }\n }\n\n return src;\n }", "title": "" }, { "docid": "7797de8d600a165e71f26f247d25f149", "score": "0.4742502", "text": "int getVElemTypeValue();", "title": "" }, { "docid": "cda7a0e9f76ebb95204bfca508b86389", "score": "0.47381926", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return descriptor_type;\n case 1: return src_date;\n case 2: return downloaded;\n case 3: return exit_nodes;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "549ec6b3871d8243c894f72ae2c285db", "score": "0.47260666", "text": "public abstract int readMediumLE();", "title": "" }, { "docid": "6caaae8a27a9e6906b7d0e3cc23d9d16", "score": "0.47251233", "text": "public byte getFieldAsByte(int tag, int index) {\n/* 418 */ Integer i = (Integer)this.fieldIndex.get(Integer.valueOf(tag));\n/* 419 */ byte[] b = this.fields[i.intValue()].getAsBytes();\n/* 420 */ return b[index];\n/* */ }", "title": "" }, { "docid": "4a7576a9047a5f2c567791a424f17db5", "score": "0.47214592", "text": "public Object\n toVal() throws DerDecodingException\n {\n return getPayload();\n }", "title": "" }, { "docid": "bbf45a03e91fd54c7c1cd7b5cbc46345", "score": "0.47173604", "text": "public Coding valueCoding() {\n return getObject(Coding.class, FhirPropertyNames.PROPERTY_VALUE_CODING);\n }", "title": "" }, { "docid": "1f284dfbccd1f21917ca683e03f2a603", "score": "0.47147253", "text": "public V value()\r\n/* 562: */ {\r\n/* 563:650 */ return ByteObjectHashMap.toExternal(ByteObjectHashMap.this.values[this.entryIndex]);\r\n/* 564: */ }", "title": "" }, { "docid": "b5cabc62e14f88163a123b371c6af6b7", "score": "0.47110984", "text": "public MapTypeDataWrapper<K,V,ValueDeltaType> direct_get_val();", "title": "" }, { "docid": "9c4095ef445ba1ab1726d709a4352519", "score": "0.47069353", "text": "public abstract long readUnsignedIntLE();", "title": "" }, { "docid": "e34f75232cf294420433a696464bb5c2", "score": "0.47063866", "text": "public static TRANSPORT_PROTOCOL get(int value)\n {\n switch (value)\n {\n case USB_VALUE: return USB;\n case TCP_VALUE: return TCP;\n case UDP_VALUE: return UDP;\n case HTTP_VALUE: return HTTP;\n case BLUETOOTH_VALUE: return BLUETOOTH;\n case XBEE_VALUE: return XBEE;\n case MIDI_VALUE: return MIDI;\n }\n return null;\n }", "title": "" }, { "docid": "dfb3581d9634a31269a972b6159619c8", "score": "0.47029498", "text": "public byte[] getBytes() { return FieldValue.getBytes(value); }", "title": "" }, { "docid": "a47616c45533b6949ceed4a0de4fc370", "score": "0.469361", "text": "int getOsValue();", "title": "" }, { "docid": "6cc32a6f72af468d24f0bedb5696c0df", "score": "0.4691005", "text": "public T16 t16Value()\n {\n return this.object16;\n }", "title": "" }, { "docid": "08a570d67e1696efed7e9764197d5178", "score": "0.46876755", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return header;\n case 1: return vendor_name;\n case 2: return product_name;\n case 3: return serial;\n case 4: return types;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "ff22157361e081489c6e52ba4b78a942", "score": "0.46869707", "text": "com.google.protobuf.ByteString getValue();", "title": "" }, { "docid": "ff22157361e081489c6e52ba4b78a942", "score": "0.46869707", "text": "com.google.protobuf.ByteString getValue();", "title": "" }, { "docid": "ff22157361e081489c6e52ba4b78a942", "score": "0.46869707", "text": "com.google.protobuf.ByteString getValue();", "title": "" }, { "docid": "ff22157361e081489c6e52ba4b78a942", "score": "0.46869707", "text": "com.google.protobuf.ByteString getValue();", "title": "" }, { "docid": "ff22157361e081489c6e52ba4b78a942", "score": "0.46869707", "text": "com.google.protobuf.ByteString getValue();", "title": "" }, { "docid": "ff22157361e081489c6e52ba4b78a942", "score": "0.46869707", "text": "com.google.protobuf.ByteString getValue();", "title": "" }, { "docid": "ff22157361e081489c6e52ba4b78a942", "score": "0.46869707", "text": "com.google.protobuf.ByteString getValue();", "title": "" }, { "docid": "0bea43aa73e9f78e6de556d3bde81e91", "score": "0.46868062", "text": "byte get( int index );", "title": "" }, { "docid": "ddcd3f99464989d25a90ef207905fe08", "score": "0.46845528", "text": "public abstract Object convertUponGet(Object value);", "title": "" }, { "docid": "334fe8f31844f2458897adbeea68b8e5", "score": "0.46793", "text": "public final int get(int field);", "title": "" }, { "docid": "ab83faedafcdf4ea32219f1d1aba5a04", "score": "0.467863", "text": "@Override\n\tpublic final byte byteValue()\n\t{\n\t\treturn this.number.byteValue();\n\t}", "title": "" }, { "docid": "1ba86461186c5beac84c30602926b0b4", "score": "0.46753424", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return symbol;\n case 1: return series;\n case 2: return open;\n case 3: return high;\n case 4: return low;\n case 5: return close;\n case 6: return last;\n case 7: return previousClose;\n case 8: return totalTradedQty;\n case 9: return totalTradedVal;\n case 10: return tradeDate;\n case 11: return totalTrades;\n case 12: return isinCode;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" } ]
a88689f2b778ba2ec9270fb1ca9d5251
/ returns List of single mandates winners
[ { "docid": "c52b41b21abef6563694bf9ea7fb3ab0", "score": "0.6718131", "text": "public List<Candidates> getWinningSingleCandidates() {\n List<Candidates> allCandidates = candidateService.findAll();\n Map<Integer, Integer> mandatesResults = singleService.singleWinners();\n List<Candidates> allWinningCandidates = new ArrayList<>();\n // Map<Integer, Integer> mandatesResults = new HashMap<>();\n for (Candidates candidate : allCandidates) {\n for (Integer winnerIds : mandatesResults.keySet()) {\n if (candidate.getId().equals(winnerIds)) {\n allWinningCandidates.add(candidate);\n }\n }\n }\n\n for (Candidates candidate : allWinningCandidates) {\n candidate.setCandidate_elected(\"single\");\n candidateService.saveOrUpdate(candidate);\n }\n return allWinningCandidates;\n }", "title": "" } ]
[ { "docid": "256e4fb6b3064d7b3a8757d6576c86e1", "score": "0.6149087", "text": "Collection<MatchmakingManager> getManagers();", "title": "" }, { "docid": "e38a9b038f1dd114f0240023a3ea73c6", "score": "0.61127734", "text": "public List<Candidates> getMultiWinnerCandidates() {\n List<Candidates> singleCandidates = getWinningSingleCandidates();\n List<Candidates> multiWinners = new ArrayList<>();\n Map<Integer, Integer> partyResult = multiService.mandatesByParty();\n for (Entry<Integer, Integer> partyMandateCount : partyResult.entrySet()) {\n int numberMandates = partyMandateCount.getValue();\n int counter=0;\n for (Candidates partyCandidates : candidateService.findByPartyId(partyMandateCount.getKey())) { \n while (numberMandates >= 1) { \n Candidates newPartyCandidate = candidateService.findByPartyAndSeat(partyMandateCount.getKey(),\n counter + 1);\n// Candidates newAlsoPartyCandidate = candidateService.findByPartyAndSeat(partyMandateCount.getKey(),\n// counter+2);\n counter++; \n if (singleCandidates.contains(newPartyCandidate)) {\n while(singleCandidates.contains(newPartyCandidate)==false){\n multiWinners.add(newPartyCandidate);\n counter++;\n break;\n }\n } else {\n multiWinners.add(newPartyCandidate);\n break;\n } \n \n }\n numberMandates--;\n \n }\n }\n\n System.out.println(multiWinners.size());\n\n for (Candidates candidate : multiWinners) {\n candidate.setCandidate_elected(\"multi\");\n candidateService.saveOrUpdate(candidate);\n }\n return multiWinners;\n }", "title": "" }, { "docid": "6824d8875b956662ea69466dcecb14b4", "score": "0.60625064", "text": "@SuppressWarnings(\"ResultOfObjectAllocationIgnored\")\n private String getWinnerList() {\n String list = \"\";\n\n ArrayList<IPlayer> arrlist = sortPlayerAfterPoints();\n\n for (IPlayer i : arrlist) {\n try {\n list += i.getName();\n list += \": \" + i.getPoints() + \"\\n\";\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n try {\n if (dialog.getSoundBox().isSelected()) {\n if (iPlayerList.size() > 0) {\n if (playersAgentsMap.get(arrlist.get(0).getName()).get(0).getColor().equals(Color.decode(AgentUtils.ROT))) {\n new SoundClip(\"red_team_is_the_winner\");\n } else if (playersAgentsMap.get(arrlist.get(0).getName()).get(0).getColor().equals(Color.decode(AgentUtils.BLAU))) {\n new SoundClip(\"blue_team_is_the_winner\");\n } else {\n new SoundClip(\"Flawless_victory\");\n }\n } else {\n new SoundClip(\"players_left\");\n }\n }\n } catch (NumberFormatException | RemoteException e) {\n e.printStackTrace();\n }\n\n return list;\n }", "title": "" }, { "docid": "68ec01d00030fe56253e0f4649c4bee5", "score": "0.6046784", "text": "public ArrayList<Integer> getWinners() {\n return this.winners;\n }", "title": "" }, { "docid": "30a8fb616789458b8d92978712273bef", "score": "0.59833646", "text": "public Match[] getMale32Winners() {\n return thirt;\n }", "title": "" }, { "docid": "4116c9d18e85017d67d7b87d8b47618f", "score": "0.5920731", "text": "private void declareWinner(){\r\n System.out.println(\"All proposals received\");\r\n AID best = proposals.get(0).getSender();\r\n for(ACLMessage proposal: proposals){\r\n String time = proposal.getContent().replaceFirst(\"bid\\\\(\", \"\");\r\n time = time.replaceFirst(\" sec\\\\)\", \"\");\r\n String bestTimeString = \r\n proposal.getContent().\r\n replaceFirst(\"bid\\\\(\", \"\").\r\n replaceFirst(\" sec\\\\)\", \"\");\r\n int bestTime = Integer.parseInt(bestTimeString);\r\n int propTime = Integer.parseInt(time);\r\n if (bestTime > propTime) {\r\n best = proposal.getSender();\r\n }\r\n }\r\n sendMessage(best, \"\", ACLMessage.ACCEPT_PROPOSAL);\r\n Object[] ob = new Object[2];\r\n ob[0] = best;\r\n ob[1] = currentPartial;\r\n expectedReturn.add(ob);\r\n System.out.println(\"Accepting proposal from \" + best.getLocalName());\r\n for(ACLMessage proposal: proposals){\r\n if(!proposal.getSender().equals(best)){\r\n sendMessage(proposal.getSender(), \"\", ACLMessage.REJECT_PROPOSAL);\r\n }\r\n }\r\n proposals.clear();\r\n solvables.remove(0);\r\n if(!solvables.isEmpty()){\r\n \r\n auctionJob(solvables.get(0));\r\n }\r\n }", "title": "" }, { "docid": "8aa1ec0956e7f9c66fbc84de2a40518b", "score": "0.58648956", "text": "public static ArrayList<Player> getWinners(){return winners;}", "title": "" }, { "docid": "ddba3159127988d445b4e93055c4f02b", "score": "0.5817461", "text": "@Override\r\n\tpublic List<Member> selectWinner(int no) {\n\t\treturn membersDAO.selectWinner(no);\r\n\t}", "title": "" }, { "docid": "77e539a3b865c24f25004d0888c3d39b", "score": "0.5782916", "text": "public ArrayList<Player> whoWins(ArrayList<Player> players) {\r\n\r\n // on créé un tableau pour stocker les gagnants\r\n ArrayList<Player> winners = new ArrayList<>();\r\n\r\n int bestScore = 0;\r\n\r\n for(Player player : players) {\r\n if( ! isBusted(player)) {\r\n if(total(player).max() > bestScore || (player.isDealer() && total(player).max() == bestScore)) {\r\n bestScore = total(player).max();\r\n winners.clear();\r\n winners.add(player);\r\n }\r\n else if(total(player).max() == bestScore) {\r\n winners.add(player);\r\n }\r\n } else {\r\n Logger.write(player.getName() + \" a perdu, il perd sa mise :\" + player.getStake());\r\n player.removeTokens(player.getStake());\r\n }\r\n }\r\n return winners;\r\n }", "title": "" }, { "docid": "8e84ec8df5ebe14870776c0d13a8c070", "score": "0.5743956", "text": "private void showChampionshipWinner()\n {\n boolean singleWinner = true;\n String winnerDrivers = getDrivers().getDriver(0).getName();\n for(int j = 1; j < getDrivers().getSize(); j++)\n { \n if(getDrivers().getDriver(0).getAccumulatedScore() == getDrivers().getDriver(j).getAccumulatedScore()) // if multiple winners\n {\n singleWinner = false;\n winnerDrivers += \" and \" + getDrivers().getDriver(j).getName();\n break;\n }\n else\n {\n break;\n }\n\n }\n if(singleWinner)\n System.out.println(winnerDrivers + \" is the winner of the championship with \" + getDrivers().getDriver(0).getAccumulatedScore() + \" points\");\n else // if multiple winner\n System.out.println(\"ITS A CHAMPIONSHIP TIE!!!\" + winnerDrivers + \" are the winners of the championship with \" + getDrivers().getDriver(0).getAccumulatedScore() + \" points\");\n }", "title": "" }, { "docid": "9bcf575bd8d157fdf269325b1ce29d48", "score": "0.5741988", "text": "List<T> membershipRoster(String membershipName);", "title": "" }, { "docid": "fa52bf697b53db756a08c59888e80f20", "score": "0.57318336", "text": "Match getTeam1LooserOfMatch();", "title": "" }, { "docid": "d7da31662f37a64b7487625f475295bc", "score": "0.5728588", "text": "public List<Candidates> consolidatedWinner() {\n List<Candidates> winnersFinal = new ArrayList<>();\n winnersFinal.addAll(getWinningSingleCandidates());\n winnersFinal.addAll(getMultiWinnerCandidates());\n return winnersFinal;\n }", "title": "" }, { "docid": "00ffac96bf198380d8a37a9129813cfc", "score": "0.56882995", "text": "public TombolaDrawing getTombolaWinnerList(TombolaWinnerListRequest request) {\n TombolaDrawing tombolaDrawing = tombolaAerospikeDao.getTombolaDrawing(request.getTombolaId());\n if (tombolaDrawing == null) {\n throw new F4MEntryNotFoundException(\"Specified Tombola does not exist\");\n }\n\n // get the tombola so we can perform the sorting :\n Tombola tombola = this.getTombola(request.getTombolaId());\n List<TombolaWinner> winnersSortedByPublishedPrizeList = new ArrayList<>();\n\n // reorder the winners by the order in which the prizes are published on tombola\n for(Prize prize : tombola.getPrizes()) {\n for(TombolaWinner winner : tombolaDrawing.getWinners()) {\n if(winner.getPrizeId().equals(prize.getId())) {\n winnersSortedByPublishedPrizeList.add(winner);\n }\n }\n }\n\n for(TombolaWinner winner : tombolaDrawing.getWinners()) {\n if(winner.getPrizeId().equals(tombola.getConsolationPrize().getId())) {\n winnersSortedByPublishedPrizeList.add(winner);\n }\n }\n\n tombolaDrawing.setWinners(winnersSortedByPublishedPrizeList);\n return tombolaDrawing;\n }", "title": "" }, { "docid": "a27e6f5e5b3ed02bd915fb96529c87be", "score": "0.56428", "text": "public Set<String> honorifics();", "title": "" }, { "docid": "8bcb006707bd4c37ba9a9abd154157f6", "score": "0.56305015", "text": "public Match[] getFemale32Winners() {\n return wthirt;\n }", "title": "" }, { "docid": "30fb0a6a2c3a052ab9b86b7da0cfc40e", "score": "0.5629779", "text": "private List<Card> chooseMulligan() {\n return this.b.getPlayer(this.b.getLocalteam()).getHand().stream()\n .filter(c -> c.finalStats.get(Stat.COST) > 3 && c.finalStats.get(Stat.SPELLBOOSTABLE) == 0)\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "53a42e6d9eb006c1d028670c0de9c30c", "score": "0.56257254", "text": "public Collection findOwnerPresentations(Agent owner, String toolId, String showHidden);", "title": "" }, { "docid": "161ce243328a79a7a7ae1be6fdb81dfa", "score": "0.5614608", "text": "public Player getWinner();", "title": "" }, { "docid": "e8f0a3f299bfb64de37c58093f5690ee", "score": "0.5607678", "text": "static Object[] genSpectatorInvs(MatchTeam winner, MatchTeam loser) {\n return new Object[] {\n WINNER,\n clickToViewLine(winner.getAllMembers()),\n LOSER,\n clickToViewLine(loser.getAllMembers()),\n };\n }", "title": "" }, { "docid": "3ac08a2ab705a33ccb6abc993aa2f149", "score": "0.55943835", "text": "public List<Player> winnerWhenBlocked(Player p) {\r\n System.out.println(\"The game is blocked\");\r\n Map<Integer, Integer> aux = new HashMap<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == player.getTeam()) {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n } else {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n }\r\n }\r\n int winnerkey = 0;\r\n int winnervalue = aux.get(winnerkey);\r\n int loserKey = 1;\r\n int loserValue = aux.get(loserKey);\r\n\r\n System.out.println(\"Winner is\" + aux.get(winnerkey));\r\n if (aux.get(winnerkey) > aux.get(loserKey)) {\r\n winnerkey = 1;\r\n winnervalue = aux.get(winnerkey);\r\n loserKey = 0;\r\n loserValue = aux.get(loserKey);\r\n System.out.println(\"Loser is\" + aux.get(loserKey));\r\n\r\n } else if (aux.size() > 2) {\r\n if (aux.get(winnerkey) > aux.get(2)) {\r\n winnerkey = 1;\r\n winnervalue = 0;\r\n }\r\n if (aux.get(2) < aux.get(loserKey)) {\r\n loserKey = 2;\r\n loserValue = aux.get(loserKey);\r\n }\r\n }\r\n\r\n //We sum the points for the winner\r\n List<Player> winners = new ArrayList<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == winnerkey) {\r\n p.sumPoints(aux.get(loserKey));\r\n winners.add(p);\r\n }\r\n }\r\n return winners;\r\n }", "title": "" }, { "docid": "27a1fc59faa9a395bd613857de1ec47b", "score": "0.5573104", "text": "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "title": "" }, { "docid": "2bad74b8faae243a4d239defe8e4b949", "score": "0.553333", "text": "Match getTeam2LooserOfMatch();", "title": "" }, { "docid": "e2f675e57c1f08a6f40cab4b65ed36b3", "score": "0.552258", "text": "public Match[] getMaleSemisWinners() {\n return semi;\n }", "title": "" }, { "docid": "8d5d09535c3d640650ced59986373aac", "score": "0.55211157", "text": "public Set<Colour> getWinningPlayers();", "title": "" }, { "docid": "769801e136aa55f7967e1d2abbd48bdf", "score": "0.5448712", "text": "ImmutableList<SchemaOrgType> getAwardsList();", "title": "" }, { "docid": "b902004c403adb2085a30e8aedb0519a", "score": "0.54421145", "text": "public Match[] getMaleWinner() {\n return finals;\n }", "title": "" }, { "docid": "58b5ccd8d010ff956f715e65f96256b1", "score": "0.53885776", "text": "public List<String> getmanagers();", "title": "" }, { "docid": "209ae330e3a1d5205fe0b13ea27c1bc5", "score": "0.5380144", "text": "private List<String> GetWarps(IPlayer owner)\r\n\t{\r\n\t\tif (owner == null)\r\n\t\t\treturn database.queryStrings(\"SELECT name FROM warpdrive_locations WHERE `public`=1\");\r\n\t\telse\r\n\t\t\treturn database.queryStrings(\"SELECT name FROM warpdrive_locations WHERE `public`=0 AND creator=?\", owner);\r\n\t}", "title": "" }, { "docid": "09ce8052f3681b69fe6c31bd48c70a43", "score": "0.5378811", "text": "public Match[] getMale128Winners() {\n return hunna;\n }", "title": "" }, { "docid": "167fdfe64b834295fc7ec5f6043cb8bf", "score": "0.5371534", "text": "String getWinner();", "title": "" }, { "docid": "57296b576870cee94d880142eb90ca87", "score": "0.5348387", "text": "public static void announceWinner() {\n\t\tArrayList<String> data = new ArrayList<String>();\n\n\t\tfor (int index = 0; index < LotteryDatabase.lotteryDatabase.size(); index++) {\n\t\t\tLotteryDatabase lotteryData = LotteryDatabase.lotteryDatabase.get(index);\n\t\t\tfor (int i = 0; i < lotteryData.getTicketsPurchased(); i++) {\n\t\t\t\tdata.add(lotteryData.getPlayerName());\n\t\t\t}\n\t\t}\n\t\tif (data.isEmpty()) {\n\t\t\tAnnouncement.announce(\"No one has entered the lottery.\", ServerConstants.RED_COL);\n\t\t\treturn;\n\t\t}\n\t\tString lotteryWinnerName = data.get(Misc.random(data.size() - 1));\n\t\tAnnouncement.announce(\"<img=27><col=a36718> \" + lotteryWinnerName + \" has won the lottery worth \" + getTotalPotString() + \" with \" + getWinningPercentage(lotteryWinnerName)\n\t\t + \"% chance of winning!\");\n\t\tPlayer winner = Misc.getPlayerByName(lotteryWinnerName);\n\t\tif (winner != null) {\n\t\t\twinner.getPA().sendScreenshot(\"Lottery \" + getTotalPotString(), 2);\n\t\t}\n\t\tNpc npc = NpcHandler.npcs[lotteryNpcIndex];\n\t\tnpc.forceChat(\"Congratulations \" + lotteryWinnerName + \" has won the lottery worth \" + getTotalPotString() + \"!\");\n\t\tItemAssistant.addItemReward(null, lotteryWinnerName, ServerConstants.getMainCurrencyId(), getTotalPotNumber(), false, -1);\n\t\tint moneySink = getTotalPotNumber() / 85;\n\t\tmoneySink *= COMMISION_PERCENTAGE;\n\t\tCoinEconomyTracker.addSinkList(null, \"LOTTERY \" + moneySink);\n\t\ttotalTicketsPurchased = 0;\n\t\tLotteryDatabase.lotteryDatabase.clear();\n\t}", "title": "" }, { "docid": "051475557b91d09534f91054db307fa4", "score": "0.5341218", "text": "public List<PlayerWon> findByLeagueId(int leagueId);", "title": "" }, { "docid": "a716c7892f6fe56561a77a594326af03", "score": "0.5331439", "text": "public List<Integer> askPlayerCardsToUse();", "title": "" }, { "docid": "90b70acd44e6f239d6db1210958723ca", "score": "0.53128386", "text": "private static Hand getResults() {\n System.out.println(hands.size());\n Optional<Hand> winner;\n winner = hands.stream()\n .reduce((hand1, hand2)\n -> hand1.compareTo(hand2) == 1 ? hand1 : hand2);\n Hand winningHand = null;\n if (winner.isPresent()) {\n winningHand = winner.get();\n }\n return winningHand;\n\n }", "title": "" }, { "docid": "82fb585411b933f7e139d4079f08b855", "score": "0.53034467", "text": "public void addParticipant()\n {\n boolean addFlg = false;\n do\n {\n Scanner scan = new Scanner(System.in);\n flg = scan.nextLine();\n if(flg.equalsIgnoreCase(\"y\") || flg.equalsIgnoreCase(\"Y\"))\n {\n this.autoAdd();\n addFlg = true;\n } else if(flg.equalsIgnoreCase(\"n\")|| flg.equalsIgnoreCase(\"N\"))\n {\n System.out.println(\"Athletes ID list: \");\n switch (this.getGameType()) // print out every athletes who can join the games\n {\n case 1:\n for(int j = 0; j < swimmers.size(); j++)\n {\n System.out.println(swimmers.get(j).getId());\n }\n break;\n case 2:\n for(int j = 0; j < runners.size(); j++)\n {\n System.out.println(runners.get(j).getId());\n }\n break;\n case 3:\n for(int j = 0; j < cyclists.size(); j++)\n {\n System.out.println(cyclists.get(j).getId());\n }\n break;\n }\n for(int j = 0; j < superAthletes.size(); j++)\n {\n System.out.println(superAthletes.get(j).getId());\n }\n addFlg = true;\n this.manualAdd();\n }else {\n System.out.println(\"Invalid Typing\");\n }\n }while (!addFlg);\n }", "title": "" }, { "docid": "f6a2fa8e86023102842ce7864c4506c4", "score": "0.5302804", "text": "public void announceWinners() {\n\t\tsynchronized (blockedAnnouncer) {\n\t\t\tif (resultsNotInAnnouncer(blockedAnnouncer)) {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tblockedAnnouncer.wait();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}// while\n\t\t\t}// if\n\t\t}// synch\n\t\twhile (waitingForResults.size() > 0) {\n\t\t\tsynchronized (waitingForResults.elementAt(0)) {\n\t\t\t\twaitingForResults.elementAt(0).notify();\n\t\t\t\twaitingForResults.removeElementAt(0);\n\t\t\t}// sncnh\n\t\t}// while\n\t}", "title": "" }, { "docid": "0e60dab22e5a17364a3a07eb180ab55e", "score": "0.5298836", "text": "List<T> membershipRoster(S membership);", "title": "" }, { "docid": "b46759751cb38a28f3b6ef0f63b21db6", "score": "0.5295173", "text": "private LotteryResults drawOnce(Set<Integer> winningNumbers)\r\n\t{\r\n\t\tLotteryResults results = new LotteryResults();\r\n\t\tfor(LotteryTicket ticket : lotteryTickets)\r\n\t\t{\t\r\n\t\t\tint matchingNumberCount = getIntersection(ticket.getNumbers(), winningNumbers).size();\r\n\t\t\tresults.addResult(ticket.getOwnerName(), getPrize(matchingNumberCount));\r\n\t\t}\r\n\t\treturn results;\r\n\t}", "title": "" }, { "docid": "a9f1b5b7224b14ea165c99c7efb6dcb9", "score": "0.52909917", "text": "public List<Player> lookForShootPeople(Player player)\n {\n List<Player> playerList = new LinkedList<>();\n\n playerList.addAll(player.getSquare().getRoom().getPlayerRoomList()); //adds all the players in the room\n\n /*\n * Now i have to check if the player is close to a door. In this case i can see all the players in this adiacent room.\n * I will implement the method in this way:\n * 1. I check if the player can move to a different room with a distance 1 using the method squareReachableNoWall\n * 2. If the player can effectively move to a different room it means it is close to a door\n * 3. I will add to the list all the players in this different room\n */\n\n for (Square square : player.getSquare().getGameBoard().getArena().squareReachableNoWall(player.getSquare().getX(), player.getSquare().getY(), 1))\n {\n if (!(player.getSquare().getColor().equals(square.getColor()))) // if the color of the reachable square is different from the color of the square\n // where the player is this means player can see in a different room\n {\n playerList.addAll(player.getSquare().getRoom().getPlayerRoomList()); //adds all the players in the room\n }\n\n }\n\n Set<Player> playerSet = new HashSet<>();\n playerSet.addAll(playerList);\n\n playerList.clear();\n\n playerList.addAll(playerSet);\n playerList.remove(player);\n\n\n return playerList;\n }", "title": "" }, { "docid": "ff19d0c9ed62ca7a330bd2b8d78e5c4b", "score": "0.52873874", "text": "public Set<Player> getParticipants() { //TODO: not sure the validation needs to happend here\n\t\t// Run through the results and make sure all players have been pushed into the participants set.\n\t\tfor ( Result result : results ) {\n\t\t\tparticipants.add(result.getWinner());\n\t\t\tparticipants.add(result.getLoser());\n\t\t}\n\n\t\treturn participants;\n\t}", "title": "" }, { "docid": "2c0bbe18a11a4d471e94147eccfc3eef", "score": "0.5287098", "text": "public synchronized Set<MatchingStrategy> getStrategyList() throws DictConnectionException {\n Set<MatchingStrategy> set = new LinkedHashSet<>();\n // DONE Add your code here\n\n String userInput;\n String fromServer;\n\n try {\n userInput = \"Show STRAT\";\n //out.println(\"Client: \" + userInput);\n output.println(userInput);\n\n String check = input.readLine();\n //out.println(\"Server: \" + check);\n\n if (check.contains(\"555\")) { // 555: no strategies available\n return set ;\n }\n if ( check.contains(\"111\")) { // 111: n strategies available\n\n while ((fromServer = input.readLine()) != null) {\n\n if (fromServer.contains(\"250 ok\")) {\n //out.println(\"Server: Successfully shown STRAT\");\n break;\n }\n if (fromServer.contains(\" \")) { // lines that contain spaces (\" \") represent strategies\n String[] temp = DictStringParser.splitAtoms(fromServer);\n MatchingStrategy ms = new MatchingStrategy(temp[0], temp[1]);\n set.add(ms);\n }\n }\n }else {\n throw new DictConnectionException(); // all other status codes throw exceptions\n }\n }catch (IOException e){\n throw new DictConnectionException(e) ;\n }\n\n return set;\n }", "title": "" }, { "docid": "30c59403c84417a961cd59b0e675247f", "score": "0.5281253", "text": "public List BestClient();", "title": "" }, { "docid": "651c77dbcc3ce12b2803e45b15d91f88", "score": "0.526732", "text": "java.util.List<pb4client.AchievementInfo> \n getAchieveInfoList();", "title": "" }, { "docid": "f6b81c16896fd73514cce3736ede577b", "score": "0.5266011", "text": "public Player lookForWinner(){\n\t\tfor(int i = 0; i < this.players.size(); i++){\n\t\t\tif(this.players.get(i).numCards() == 0)\n\t\t\t\treturn this.players.get(i);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "743e864324dbec71d7c84d0f3a93e278", "score": "0.5258734", "text": "MatchmakingManager getManager(String matchmakingId);", "title": "" }, { "docid": "1237ac4e2a1fcc612ec9bbed15de1969", "score": "0.5252713", "text": "public void collectWinnings() {\n\t\tif (hand.checkBlackjack()) {\n\t\t\tdouble win = bet * 1.5;\n\t\t\ttotalMoney += (win + bet);\n\t\t} else {\n\t\t\ttotalMoney += (bet + bet);\n\t\t}\n\t}", "title": "" }, { "docid": "5a6a9dbee7337e4f17ab7eb8c995db2d", "score": "0.5244797", "text": "void askLobbyID(ArrayList<Lobby> lobbies);", "title": "" }, { "docid": "c01eeae09e3de730c7c0433287639828", "score": "0.52356505", "text": "public Match[] getFemaleSemisWinners() {\n return wsemi;\n }", "title": "" }, { "docid": "57198bae69501cdf307caae0d08f29b0", "score": "0.52319074", "text": "public Skills getChosenSkill();", "title": "" }, { "docid": "517c58c99c1504b2edca670d9bbfbfa8", "score": "0.52314043", "text": "public List<Theater> findPreferedTheaterListByUserNo(int user_no) throws Exception;", "title": "" }, { "docid": "4babe7065a5a6835259820e26b38ab90", "score": "0.52248055", "text": "public List<String> getMedalList(String delegation_name){\r\n\t\t\tList<String> list = new ArrayList<String>();\r\n\t\t\tConnection conn = DBConnect.getConnection();\r\n\t\t\tString sql = \"select event_name,team_name as name,rank,type,T1.sports_name \"\r\n\t\t\t\t\t+ \"from team_result T1 join event using(event_name) \"\r\n\t\t\t\t\t+ \"where T1.state='final' and (rank=1 or rank=2 or rank=3) and delegation_name = '\"+delegation_name+\"' union \"\r\n\t\t\t\t\t+ \"select event_name,athlete_name as name,rank,type,T1.sports_name \"\r\n\t\t\t\t\t+ \"from individual_result T1 join event using(event_name)\"\r\n\t\t\t\t\t+ \"where T1.state='final' and (rank=1 or rank=2 or rank=3) and delegation_name = '\"+delegation_name+\"'\";\r\n\t\t\ttry {\r\n\t\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\t\tResultSet rst = pst.executeQuery();\r\n\t\t\t\twhile(rst.next()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist.add(rst.getString(\"event_name\"));\r\n\t\t\t\t\tlist.add(rst.getString(\"name\"));//team name\r\n\t\t\t\t\tlist.add(String.valueOf(rst.getInt(\"rank\")));\r\n\t\t\t\t\tlist.add(rst.getString(\"type\"));\r\n\t\t\t\t\tlist.add(rst.getString(\"sports_name\"));\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\trst.close();\r\n\t\t\t\tpst.close();\r\n\t\t\t}catch (SQLException e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t e.printStackTrace();\t\t\t\r\n\t\t\t}\r\n\t\t\treturn list;\t\t\r\n\t\t}", "title": "" }, { "docid": "fda003b4db83470513c2eb398575bd52", "score": "0.5207996", "text": "public static Score4MoveType findWinner(Player[] winners) {\n\t\tint countOpponent = 0;\n\t\tint countMe = 0;\n\t\tfor (int i = 0; i < winners.length; i++) {\n\t\t\tif (winners[i] == Player.OPPONENT) {\n\t\t\t\tcountOpponent++;\n\t\t\t} else if (winners[i] == Player.ME) {\n\t\t\t\tcountMe++;\n\t\t\t}\n\t\t}\n\t\treturn winnerDecission(countOpponent, countMe);\n\t}", "title": "" }, { "docid": "0e7a4ed3984e4039538325598dd5132c", "score": "0.52060276", "text": "List<Move> getLegalMoves(Player player);", "title": "" }, { "docid": "268dbfd951b10a4d35d99e0478f75b7a", "score": "0.51968175", "text": "public void displayPlayerWinnings()\n {\n for(int card = 0; card < playerCardsWon; card++)\n {\n System.out.println(playerWinnings[card].toString());\n }\n }", "title": "" }, { "docid": "8e60b81a50ac09ed7e5f8805bea5bad1", "score": "0.5196769", "text": "List<UserReward> getUserRewards(String userName) throws UserNotFoundException;", "title": "" }, { "docid": "9c7b2dae110f950152686f33e2fb105f", "score": "0.5193423", "text": "private int findBidders() {\r\n try {\r\n agents = new ArrayList<AMSAgentDescription>();\r\n //definisce i vincoli di ricerca, in questo caso tutti i risultati\r\n SearchConstraints searchConstraints = new SearchConstraints();\r\n searchConstraints.setMaxResults(Long.MAX_VALUE);\r\n //tutti gli agenti dell'AMS vengono messi in un array\r\n AMSAgentDescription [] allAgents = AMSService.search(this, new AMSAgentDescription(), searchConstraints);\r\n //scorre la lista degli agenti trovati al fine di filtrare solo quelli di interesse\r\n for (AMSAgentDescription a: allAgents) {\r\n //aggiunge l'agente partecipante all'ArrayList se e' un partecipante\r\n if(a.getName().getLocalName().contains(\"Participant\")) {\r\n agents.add(a);\r\n } \r\n }\r\n } catch (Exception e) {\r\n System.out.println( \"Problema di ricerca dell'AMS: \" + e );\r\n e.printStackTrace();\r\n }\r\n return agents.size();\r\n }", "title": "" }, { "docid": "752fca9f553592f50af33a3329d736ae", "score": "0.5190205", "text": "public Match[] getFemale128Winners() {\n return whunna;\n }", "title": "" }, { "docid": "611ef7f09f3b432d5abd5f941b36e0e4", "score": "0.5189956", "text": "public ArrayList<Player> getWinner(){\n\t\tArrayList<Player> _winner = new ArrayList<Player>();\n\t\t\n\t\tshort _score = 0;\n\t\t//find high score first\n\t\tfor(Player p : this.player){\n\t\t\tif(p.score > _score){\n\t\t\t\t_score = p.score;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Player p : this.player){\n\t\t\tif(p.score >= _score){\n\t\t\t\t_winner.add(p);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn _winner;\n\t}", "title": "" }, { "docid": "40f9ea700e2d3b8b033aca468e68f9fa", "score": "0.5184837", "text": "public Match[] getMale16Winners() {\n return sixteen;\n }", "title": "" }, { "docid": "908043339846c4998fbc13b6e01f3e65", "score": "0.5183534", "text": "public Player getWinner() {\n return winner;\n }", "title": "" }, { "docid": "a187569ca9e0eba2fb953f474cc01b29", "score": "0.51766557", "text": "public void awardMedals(){\n ArrayList<Competeable> podium = new ArrayList<>();\n Competeable winningAthletes = event.get(0);\n while( podium.size() < 3){\n for (Competeable competitor : event) {\n if(competitor.getSkillLevel() > winningAthletes.getSkillLevel())\n winningAthletes = competitor;\n }\n podium.add(winningAthletes);\n event.remove(winningAthletes);\n }\n podium.get(0).addMedal(MedalType.GOLD);\n podium.get(1).addMedal(MedalType.SILVER);\n podium.get(2).addMedal(MedalType.BRONZE);\n }", "title": "" }, { "docid": "e2cd0693df72ceb34e88da8476e78ca4", "score": "0.51668507", "text": "public List<Result> getPlayerResults(Player player) {\t\n\t\treturn results.stream()\n\t\t\t\t.filter(result -> result.participated(player))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "title": "" }, { "docid": "2e92c21b307aa5dd83f9546d115b1dec", "score": "0.5166635", "text": "public static void pickWinner(List<String> contestants){\n int random = rand.nextInt(contestants.size());\n System.out.printf(\"The winner is... %s\", contestants.get(random));\n }", "title": "" }, { "docid": "67171dc10dedde24b50e267644610ca5", "score": "0.51625013", "text": "public List<String> getEligibleForAutoApproval(Date todayAtMidnight);", "title": "" }, { "docid": "5563ed120ae15557a6ce8c0457da803c", "score": "0.51607513", "text": "ImmutableList<SchemaOrgType> getAwardList();", "title": "" }, { "docid": "67e9746eee420eb703ae264b8fc6c67f", "score": "0.51577675", "text": "public static void main(String args[]){\n Random random = new Random(); //used to pick a random object from the list\n Board gameBoard = new Board();\n gameBoard.populateBoard(); // populates the board with a bunch of squares\n Player player = new Player(\"John\"); // used to keep track of the players status in the game\n \n Scanner keyboard = new Scanner(System.in);\n\n //loop will run forever unless the user presses the W key\n while(true){\n\n ArrayList<Square> squares = gameBoard.RandomizeList(gameBoard.getList()); //returns a random arraylist from the gameboard\n \n //prints all elements of the random list\n for (Square square : squares){\n System.out.println(square.getTitle());\n }\n //user prompt \n System.out.println(\"Press any key to spin and W to exit\");\n String input = keyboard.nextLine();\n\n //adds the award to the players list of awards\n Square newAward = squares.get(random.nextInt(squares.size()));\n player.addAward(newAward);\n \n System.out.println(\"\\nYour reward: \" +newAward.getTitle()+\"\\n\\n\\n\");\n\n \n \n \n if(input.equalsIgnoreCase(\"w\")){\n break;\n }\n\n \n }\n \n //prints the player's awards to the screen\n \n System.out.println(\"\\n\\n\\nYour awards: \");\n for (Square square : player.getAwards()){\n System.out.println(square.getTitle());\n } \n }", "title": "" }, { "docid": "ee5c2acdc249373158eb75cb1d6712da", "score": "0.51503694", "text": "public List<Player> playMatch(List<Player> arrayListPlayers) {\n\n //instantiate Lists for winners / losers\n List<Player> winners = new ArrayList<>();\n List<Player> losers = new ArrayList<>();\n\n //Pairing up - each Player with the next Player, iterator runs for every 2\n for (int i = 0; i < arrayListPlayers.size(); i += 2) {\n\n System.out.println(arrayListPlayers.get(i).printName() + \" (\" + arrayListPlayers.get(i).score + \") vs \"\n + arrayListPlayers.get((i + 1) % arrayListPlayers.size()).printName() + \" (\" + arrayListPlayers.get(i + 1).score + \")\");\n\n //Extra layer of random scoring, so calculateScore is run with each round\n //Without this, players get an initial score that stay with them through the tournament\n arrayListPlayers.get(i).calculateScore();\n\n //Use score to decipher winner, if (i) score is greater than (i +1) score then add (i) to winners List\n if (arrayListPlayers.get(i).score > arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i));\n }\n //And if (i) score is less than (i + 1) score add (i + 1) to winners List\n if (arrayListPlayers.get(i).score < arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i + 1));\n\n\n //extra if statement to handle draws, if score is equal add player [0] to winners List, could randomise this?\n } else if\n (arrayListPlayers.get(i).score == arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i));\n }\n\n /**\n * Additional if statements for adding Player objects to new List 'losers'\n */\n //Create List of losers (not output)\n if (arrayListPlayers.get(i).score < arrayListPlayers.get(i + 1).score) {\n winners.remove(arrayListPlayers.get(i));\n losers.add(arrayListPlayers.get(i));\n\n } else if (arrayListPlayers.get(i).score > arrayListPlayers.get(i + 1).score) {\n winners.remove(arrayListPlayers.get(i + 1));\n losers.add(arrayListPlayers.get(i + 1));\n }\n }\n\n /**\n * This section of the playRound method outputs the list of winners for each round\n * A sleep function was added in attempt to slow down the output\n */\n\n System.out.println(\"\\n-x-x-x-x-x-x-x W I N N E R S x-x-x-x-x-x-x-\\n\");\n //Loop through winners and attach names\n try {\n sleep(10);\n for (int i = 0; i < winners.size(); i++) {\n //SysOut to console the winners\n System.out.println(winners.get(i).printName() + \" won with \" + winners.get(i).score + \" points\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //Execution completed return winners List<>\n return winners;\n\n }", "title": "" }, { "docid": "763bde11b3be5eece7621a0513d8e9aa", "score": "0.5147798", "text": "public Management getDeclareWinnerMessage(){\n\t\t \t\tLeaderElection.Builder elb = LeaderElection.newBuilder();\n\t\t \t\telb.setCandidateId(conf.getServer().getNodeId());\n\t\t \t\telb.setElectId(String.valueOf(Integer.parseInt(conf.getServer().getProperty(\"port.mgmt\"))%100));\n\t\t \t\telb.setDesc(\"Leader's declaration\");\n\t\t \t\telb.setAction(ElectAction.DECLAREWINNER);\n\n\t\t \t\tMgmtHeader.Builder mhb = MgmtHeader.newBuilder();\n\t\t\t\tmhb.setOriginator(conf.getServer().getNodeId());\n\t\t\t\tmhb.setTime(System.currentTimeMillis());\n\n\t\t\t\tRoutingPath.Builder rpb = RoutingPath.newBuilder();\n\t\t\t\trpb.setNodeId(conf.getServer().getNodeId());\n\t\t\t\trpb.setTime(mhb.getTime());\n\t\t\t\tmhb.addPath(rpb);\n\n\t\t\t\tManagement.Builder mb = Management.newBuilder();\n\t\t\t\tmb.setHeader(mhb.build());\n\t\t\t\tmb.setElection(elb.build());\n\t\t \t\treturn mb.build();\n\t\t \t}", "title": "" }, { "docid": "4ec9ba44af83dca4a1699f54a74861cb", "score": "0.51459265", "text": "void showWaitingPlayerList(List<String> waitingPlayerUsernames);", "title": "" }, { "docid": "db16fe0554dedacf0b329369ad05f79c", "score": "0.5140127", "text": "public UUID rollWinner() {\r\n\t\tint ticketCount = 0;\r\n\t\tfor(int value : tickets.values()) {\r\n\t\t\tticketCount += value;\r\n\t\t}\r\n\t\tif(ticketCount < minParticipantCount) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\r\n\t\tList<UUID> ticketList = getParticipants();\r\n\t\tRandom r = new Random();\r\n\t\tUUID winner = ticketList.get(r.nextInt(ticketList.size()));\r\n\t\treturn winner;\r\n\t}", "title": "" }, { "docid": "b0aeae156a41eef6663d86980fc8ea1d", "score": "0.5129797", "text": "public static List<String> getAttackerFromEngland() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/66\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> attackerName= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getPosition().equals(\"Attacker\")&&squad.get(i).getNationality().equals(\"England\")){\n\n attackerName.add(squad.get(i).getName());\n }\n }catch (NullPointerException e){\n\n\n }\n }\n return attackerName;\n }", "title": "" }, { "docid": "95645d2ed7dc8b2f8ff38ac714f53f4a", "score": "0.5126248", "text": "public ArrayList<Integer> generateWinner() {\n if (winner.size() == 7) {\n if (!sorted) {\n Collections.sort(winner);\n sorted = true;\n }\n return winner;\n }\n if (numbers.size() == 32 || winner.size() != 0) {\n init();\n }\n\n for (int i = 0; i < 7; i++) {\n winner.add(numbers.get(random.nextInt(numbers.size())));\n numbers.remove(winner.get(i));\n }\n Collections.sort(winner);\n return winner;\n }", "title": "" }, { "docid": "aef8cfeb4538a0173099f7e1a0d2ffa1", "score": "0.51156926", "text": "List<Player> getPlayers();", "title": "" }, { "docid": "6d44997029404120e365be9912925aa8", "score": "0.5115096", "text": "public ArrayList<Hole> availableMoves(Side turnSide){\n ArrayList<Hole> holesOwned = new ArrayList<>();\n for(Hole h : holes){\n if(h.getOwner() == turnSide && h.getNumberOfKoorgools() != 0){\n holesOwned.add(h);\n }\n }\n return holesOwned;\n }", "title": "" }, { "docid": "69df2ed3803d6b45e54579f3eefe454a", "score": "0.51144254", "text": "Set<String> getPlayers();", "title": "" }, { "docid": "518d930ecd59633bfe6b94bbc39633eb", "score": "0.5113579", "text": "public String getWinner() {\n return winner;\n }", "title": "" }, { "docid": "845d0fa5b07928658c45441fe06cf3ce", "score": "0.5107688", "text": "public Match[] getFemale16Winners() {\n return wsixteen;\n }", "title": "" }, { "docid": "0cfdf9cdbdb9d4982066bc997ecc7f4f", "score": "0.51067", "text": "public Player roundWinner() {\n\t\tfor(Player player : gamePlayers){\n\t\t\tEvaluator eval = new Evaluator(player, communityCards);\n\t\t\t\n\t\t\tplayer.setHandRank(eval.evaluate());\n\t\t\tplayersByHandRank.add(player);\n\t\t}\n\t\t\n\t\t//lambdas are magic. Sorts players from lowest to highest rank starting with the lowest at the first\n\t\t//index, and the highest at the last.\n\t\tCollections.sort(playersByHandRank, (p1, p2) -> p1.getHandRank().compareTo(p2.getHandRank()));\n\t\t\n\t\t//TODO: Needs to evaluate high card in case of two or more players have the same high hand rank.\n\t\t//the evaluate method in Evaluator sets high card == to the highest card in a pairSet, flush, or straight,\n\t\t//but needs to be able to add it in the event HIGH_CARD is the highest hand a player has.\n\n\t\treturn playersByHandRank.get(playersByHandRank.size() -1);\n\t}", "title": "" }, { "docid": "467f42894886ac5dbcd2c6c54be1932a", "score": "0.51064146", "text": "public ServerPlayer whoWon() {\r\n\t\tif (winner(CROSS)) {\r\n\t\t\treturn getP1();\r\n\t\t} else if (winner(NOUGHT)) {\r\n\t\t\treturn getP2();\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "37a8c57054e61b14d9472dd0d0a83570", "score": "0.5105765", "text": "public List<Seat> findMatch(int numOfPassengers, List<Passenger> passengerList) throws Exception{\n\t\tPassenger seats[][] = getSeats();\n\t\tList<Seat> seatList = new ArrayList<>();\n\t\t//Finds seating for 3 passengers\n\t\tif(numOfPassengers == 3) {\n\t\t\tfor (int i = 0; i < MAX_ROWS_ECON; i++) {\n\t\t\t\tif (seats[i][0] == null &&\n\t\t\t\t\t\tseats[i][1] == null &&\n\t\t\t\t\t\tseats[i][2] == null) {\n\t\t\t\t\tseatList.add(new Seat(i, 0));\n\t\t\t\t\tseatList.add(new Seat(i, 1));\n\t\t\t\t\tseatList.add(new Seat(i, 2));\n\n\t\t\t\t\treturn seatList;\n\t\t\t\t} else if (seats[i][MAX_COLS_ECON - 1] == null &&\n\t\t\t\t\t\tseats[i][MAX_COLS_ECON - 2] == null &&\n\t\t\t\t\t\tseats[i][MAX_COLS_ECON - 3] == null) {\n\t\t\t\t\tseatList.add(new Seat(i, MAX_COLS_ECON - 1));\n\t\t\t\t\tseatList.add(new Seat(i, MAX_COLS_ECON - 2));\n\t\t\t\t\tseatList.add(new Seat(i, MAX_COLS_ECON - 3));\n\n\t\t\t\t\treturn seatList;\n\t\t\t\t}\n\n\t\t\t\tif(i == MAX_ROWS_ECON - 1) {\n\t\t\t\t\tthrow new Exception(\"No Seats Found!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}else if(numOfPassengers == 2) {\n\t\t\tboolean noOneWantsWindow = false;\n\t\t\tif(!passengerList.get(0).getSeatingPreference().equals(SeatingPreferences.WINDOW) &&\n\t\t\t\t\t!passengerList.get(0).getSeatingPreference().equals(SeatingPreferences.WINDOW)) {\n\t\t\t\tnoOneWantsWindow = true;\n\t\t\t}\n\t\t\t//Finds seating for passengers who don't want to sit near a window\n\t\t\tif(noOneWantsWindow) {\n\t\t\t\tfor (int i = 0; i < MAX_ROWS_ECON; i++) {\n\t\t\t\t\tif (seats[i][1] == null &&\n\t\t\t\t\t\t\tseats[i][2] == null) {\n\t\t\t\t\t\tseatList.add(new Seat(i, 1));\n\t\t\t\t\t\tseatList.add(new Seat(i, 2));\n\n\t\t\t\t\t\treturn seatList;\n\t\t\t\t\t} else if (seats[i][MAX_COLS_ECON - 2] == null &&\n\t\t\t\t\t\t\tseats[i][MAX_COLS_ECON - 3] == null) {\n\t\t\t\t\t\tseatList.add(new Seat(i, MAX_COLS_ECON - 2));\n\t\t\t\t\t\tseatList.add(new Seat(i, MAX_COLS_ECON - 3));\n\n\t\t\t\t\t\treturn seatList;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(i == MAX_ROWS_ECON - 1) {\n\t\t\t\t\t\tthrow new Exception(\"No Seats Found!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tfor (int i = 0; i < MAX_ROWS_ECON; i++) {\n\t\t\t\t\tif (seats[i][0] == null &&\n\t\t\t\t\t\t\tseats[i][1] == null) {\n\t\t\t\t\t\tseatList.add(new Seat(i, 0));\n\t\t\t\t\t\tseatList.add(new Seat(i, 1));\n\n\t\t\t\t\t\treturn seatList;\n\t\t\t\t\t} else if (seats[i][MAX_COLS_ECON - 1] == null &&\n\t\t\t\t\t\t\tseats[i][MAX_COLS_ECON - 2] == null) {\n\t\t\t\t\t\tseatList.add(new Seat(i, MAX_COLS_ECON - 1));\n\t\t\t\t\t\tseatList.add(new Seat(i, MAX_COLS_ECON - 2));\n\n\t\t\t\t\t\treturn seatList;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(i == MAX_ROWS_ECON - 1) {\n\t\t\t\t\t\tthrow new Exception(\"No Seats Found!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "532622f9e688ff17ecff484473f88498", "score": "0.5102882", "text": "public List<OwnedWarp> getWarps(String player) {\n return warps.get(player);\n }", "title": "" }, { "docid": "c1abd20e9b92ae5d95e489a2139f1061", "score": "0.5096938", "text": "private List<Games> findAllCurrentWerewolves(Map<String, List<Games>> rolePlayerTokenMap) {\n List<Games> werewolves = new ArrayList<>();\n if(rolePlayerTokenMap.containsKey(\"WEREWOLF\")) {\n werewolves.addAll(rolePlayerTokenMap.get(\"WEREWOLF\"));\n }\n if(rolePlayerTokenMap.containsKey(\"MYSTICWOLF\")) {\n werewolves.addAll(rolePlayerTokenMap.get(\"MYSTICWOLF\"));\n }\n werewolves.removeIf(werewolf -> werewolf.getPlayerID().length() == 1);\n return werewolves;\n }", "title": "" }, { "docid": "fa7c9995e02584ba8a6bb867af1f312b", "score": "0.5095578", "text": "List<Player> listPlayers();", "title": "" }, { "docid": "612868672016e10b956aa2e93f414ec8", "score": "0.5094994", "text": "public List<PlayerWon> findByTeamId(int teamId);", "title": "" }, { "docid": "8b5225adb6a7ae3859fce181737b78dd", "score": "0.508764", "text": "@Override\n public List<Set<String>> getPlayersVisibleTo(){\n Set<String> players = new HashSet<String>();\n players.add(destination.getOwner().getName());\n for(Region adj : destination.getAdjRegions()){\n players.add(adj.getOwner().getName());\n }\n //All adjacent can see cloaking happened\n return Arrays.asList(players);\n }", "title": "" }, { "docid": "2f95e6c0a7fe016fcdfdb7d2113f3245", "score": "0.50847447", "text": "public SettlementPlayer getOwner();", "title": "" }, { "docid": "53ac4a6e031eb76741b73cc8bafdb212", "score": "0.5083805", "text": "public abstract Player getWinner();", "title": "" }, { "docid": "59546d4f70f0072409f116fa0d5991ee", "score": "0.5082785", "text": "public static PitchCandidate pickWinner(ArrayList<PitchCandidate> pitch_candidates){\n //pick highest ranking pitch candidate -> return_me[i]\n //System.out.println(\"start Pick Winner\");\n ArrayList<PitchCandidate> pitch_winners = new ArrayList();\n for (PitchCandidate myPC : pitch_candidates){\n //DEBUG\n System.out.println( \"pitch candidate pitch: \"+ myPC.getPitch() + \" and rank: \" + myPC.getRank() + \" and accent_diss = \" + myPC.get_accent_diss());\n if (pitch_winners.isEmpty()) {\n pitch_winners.add(myPC);\n //DEBUG\n //System.out.println(\"pitch_winners is empty. adding \" + myPC.getPitch() + \" with rank\" + myPC.getRank());\n }\n else if (myPC.getRank() > pitch_winners.get(0).getRank()) {\n pitch_winners.clear();\n pitch_winners.add(myPC);\n //DEBUG\n //System.out.println(\"after emptying pitch_winners adding \" + myPC.getPitch() +\" with rank \"+ myPC.getRank());\n }\n else if (Objects.equals(myPC.getRank(), pitch_winners.get(0).getRank())) {\n pitch_winners.add(myPC);\n //DEBUG\n //System.out.println(\"adding \" + myPC.getPitch() + \" to pitch_winners with rank \" + myPC.getRank());\n }\n \n }\n PitchCandidate pitch_winner = pitch_winners.get(0);\n \n if (pitch_winners.size() >1) pitch_winner = pitch_winners.get(roll.nextInt(pitch_winners.size()));\n pitch_winners.clear();\n return pitch_winner;\n }", "title": "" }, { "docid": "1890f791f7384952dcf3ea87efbffd65", "score": "0.50720745", "text": "public static List<String> getSpainCoach() throws URISyntaxException, IOException {\n\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/77\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> nameOfSpainTeamCoach= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getRole().equals(\"COACH\")){\n\n nameOfSpainTeamCoach.add(squad.get(i).getName());\n }\n }catch (NullPointerException e){\n continue;\n }\n\n }\n return nameOfSpainTeamCoach;\n }", "title": "" }, { "docid": "934d4b991f1efc4d62ee1d3bcef5898a", "score": "0.5070944", "text": "@Override\r\n public String[] getResult(){\n int max = Collections.max(user_input.values());\r\n //iterate the inputs and find the players who matches\r\n List<String> winners = new ArrayList<>();\r\n for (Entry<String, Integer> entry : user_input.entrySet()) {\r\n if (entry.getValue()==max) {\r\n winners.add(entry.getKey());\r\n }\r\n }\r\n return Arrays.copyOf(winners.toArray(), winners.size(), String[].class);\r\n }", "title": "" }, { "docid": "db647614cdc89ea98ff29e7a29859745", "score": "0.5068423", "text": "public Match[] getMaleQuartersWinners() {\n return quart;\n }", "title": "" }, { "docid": "019d851206f333b7bce1535547f3d2be", "score": "0.5064544", "text": "public interface IMatchmaking {\n \n /**\n *\n * Return collection of matchmaking managers\n *\n * @return Allocated matchmaking managers\n */\n Collection<MatchmakingManager> getManagers();\n \n /**\n *\n * Return specific matchmaking manager by matchmaking id\n *\n * @param matchmakingId String which can identify matchmaking manager\n * @return Matchmaking manager\n */\n MatchmakingManager getManager(String matchmakingId);\n \n}", "title": "" }, { "docid": "9a16e0f69202c26890a70f2aeebce29c", "score": "0.50643843", "text": "public List<String> getRosterList() {\n // TODO check if player name is related to a player profile\n List<String> rosterList = java.util.Arrays.asList(roster.split(\"\\\\s*,\\\\s*\"));\n return rosterList;\n }", "title": "" }, { "docid": "8af540e02d8e8a9792c45df91ccaa9db", "score": "0.5060134", "text": "@Override\n public boolean isWin() {\n for (Observer winner : winners) {\n if (winner.getName().equals(chosenHorse.getName())) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "5febc5925d20dbf41fbf37e4563f93d1", "score": "0.5056938", "text": "public int getWinner() {return winner();}", "title": "" }, { "docid": "9116a1da32bea5728e6d6abfc143a1ec", "score": "0.5048344", "text": "@PermitAll\n public void cmdWho(User teller) {\n Formatter msg = new Formatter();\n Collection<Player> playersOnline = tournamentService.findOnlinePlayers();\n for (Player player : playersOnline) {\n msg.format(\" %s \\\\n\", player);\n }\n command.qtell(teller, msg);\n }", "title": "" }, { "docid": "62da06981f49907c87ee1161aeeaeab0", "score": "0.50331193", "text": "List<Shareholder> selectByExample(ShareholderExample example);", "title": "" }, { "docid": "274de7dffdb2022d5e8cdae217e3be49", "score": "0.5031746", "text": "public int getWinner();", "title": "" }, { "docid": "3154abbb8b87ab5f8c8dee0bb3219188", "score": "0.50313497", "text": "public int askWhatPermitCards(List<PermitCard> cards);", "title": "" } ]
7f75dd734cc86af7cb80a2ac51cbc6ee
Created by Vinay on 21042017.
[ { "docid": "fc1c1cbff1223b441603d8d4e77112ce", "score": "0.0", "text": "interface HomeworkInteractor {\n interface OnFinishedListener {\n void onError(String message);\n\n void loadOffline(String tableName);\n\n void onClassReceived(List<Clas> clasList);\n\n void onSectionReceived(List<Section> sectionList);\n\n void onHomeworkReceived(List<Homework> homeworks);\n\n void onHomeworkSaved(Homework homework);\n\n void onHomeworkUpdated();\n\n void onHomeworkDeleted();\n }\n\n void getClassList(long teacherId, HomeworkInteractor.OnFinishedListener listener);\n\n void getSectionList(long classId, long teacherId, HomeworkInteractor.OnFinishedListener listener);\n\n void getHomework(long sectionId, String date, HomeworkInteractor.OnFinishedListener listener);\n\n void saveHomework(Homework homework, HomeworkInteractor.OnFinishedListener listener);\n\n void updateHomework(Homework homework, HomeworkInteractor.OnFinishedListener listener);\n\n void deleteHomework(ArrayList<Homework> homeworks, HomeworkInteractor.OnFinishedListener listener);\n}", "title": "" } ]
[ { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.63236856", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.6075271", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.59909856", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.59909856", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.595598", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.595598", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.595598", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.595598", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.595598", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.59521633", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.5833132", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.5833132", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.5828647", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.58283794", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.5813524", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.57751036", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.57751036", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.57751036", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.574721", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ab92bad46db05153eb5c2eb626d0c4f9", "score": "0.5747092", "text": "@Override\n public void init() {\n\n \n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5740936", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.5694836", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5693344", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56597096", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56597096", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56597096", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56597096", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56597096", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56597096", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56597096", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.5649884", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.56444615", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.5604611", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.5604611", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.5604611", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55871195", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.55831367", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "292cbe61872dcad9d684e16a8054c962", "score": "0.5553476", "text": "private static void zmodyfikujPrzepis() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5551197", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5551197", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5551197", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5551197", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5551197", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5546431", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5546431", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.55446255", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.55424994", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.55393684", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.553095", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.553095", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.553095", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.55225176", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.55069304", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.55069304", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.55069304", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.55069304", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.5490865", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.5490865", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.5490865", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.5490354", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.54877496", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.54865706", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.5476058", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.5475904", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.5475904", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.5475904", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.54689825", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.54624516", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.54624516", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.5458202", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "904676226260b50eb8e353eb1bf2fb3f", "score": "0.5448782", "text": "@Override\n public void init() { /* ei toiminnallisuutta tässä */ }", "title": "" }, { "docid": "235772828b460a414a66709e6096b938", "score": "0.5441284", "text": "@Override\r\n protected void initialize() {\r\n }", "title": "" }, { "docid": "fdcc5bb4978b51f08b328e919c859b5b", "score": "0.54407537", "text": "private Fachada() {\n\t\t\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.5420153", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.5407891", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.5407891", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.54010814", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "a46e663abb8570c121174f3358771925", "score": "0.5397704", "text": "private void m13516b() {\n }", "title": "" }, { "docid": "94fbc7cc462bcbd6ae350624f9fd7ce3", "score": "0.5394096", "text": "private void dextrose10() {\n\n }", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5391284", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.5390718", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5380736", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.5363752", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.5363752", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.5363752", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "e1d8d30db16e25b61890c83750260dbf", "score": "0.53626937", "text": "private ZachyceniVyjimky() {}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5349618", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.53461343", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.53461343", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.534396", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "132ebee1d663aa8e1c0ab776375c437a", "score": "0.5342575", "text": "Support support();", "title": "" } ]
cd4e374542e426983ab8739d8202b3bc
Use alternate mutation accessors instead.
[ { "docid": "37bafc9608b003202e0a1d43f9ed0a06", "score": "0.0", "text": "@java.lang.Deprecated\n public java.util.Map<java.lang.Long, java.lang.Integer>\n getMutableInt64ToInt32Field() {\n return internalGetMutableInt64ToInt32Field().getMutableMap();\n }", "title": "" } ]
[ { "docid": "d8178ac9dd89fb6819637cb9e2e1ddff", "score": "0.64281243", "text": "abstract protected void mutate();", "title": "" }, { "docid": "c7da9566219d0cce117da3f2d3ad278c", "score": "0.6379999", "text": "void mutate();", "title": "" }, { "docid": "ca88a6080f7e308b9e69e9b5f42524ab", "score": "0.62769586", "text": "abstract void mutate();", "title": "" }, { "docid": "1c2bf4c563b75e4b3a028d5f84ec087a", "score": "0.61549497", "text": "public interface Mutable {\n\n\t/**\n\t * It is assumed that mutation is composable. In other words, calling\n\t * assembleMutationCommandList() on an Organism should also return all of\n\t * the MutationCommands for its Chromosomes, which, in their turn, should\n\t * also return all of the MutationCommands for their Genes.\n\t * \n\t * @return The MutationCommands that can be executed.\n\t */\n\tList<MutationCommand> assembleMutationCommandList();\n\n}", "title": "" }, { "docid": "98028c96964fc6a51d8f52a4d69eecaa", "score": "0.6147892", "text": "public Individual mutate();", "title": "" }, { "docid": "963dbec5866eac431caff84aa7ac85d8", "score": "0.6081862", "text": "public int getMutation() {\r\n return mutation;\r\n }", "title": "" }, { "docid": "5f9652b588efbb48c57a0d3d6bcfc09e", "score": "0.6064462", "text": "public interface Mutator extends Instruction {\n\n\t/**\n\t * Sets the pointer to the population member that is going to be a part of mutation\n\t * process.\n\t * \n\t * @param pos\n\t * index in the population\n\t */\n\tvoid setPosition(int pos);\n\n\t/**\n\t * Sets the position to which the product of the mutation will be put into.\n\t * \n\t * @param pos\n\t * index in the population\n\t */\n\tvoid setResultPosition(int pos);\n\n\tint getPosition();\n\tint getResultPosition();\n}", "title": "" }, { "docid": "369a13d481d4389933b2ca4ebc058a8e", "score": "0.59860384", "text": "public void setMutation(int mutation) {\r\n this.mutation = mutation;\r\n }", "title": "" }, { "docid": "3a2ef2aee7cee55fe7587355a039e086", "score": "0.5943412", "text": "public void setMutation(Mutation mutation) {\n this.mutation = mutation;\n }", "title": "" }, { "docid": "4d683d4bd4aa937cbf7d265af077d594", "score": "0.57988113", "text": "public static int checkMutation() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "02284fc4319c3192e7e197d8a2880da3", "score": "0.5779472", "text": "private void makeImmutable(final AutoBean<? extends BaseProxy> toMutate) {\n // Always diff'ed against itself, producing a no-op\n toMutate.setTag(Constants.PARENT_OBJECT, toMutate);\n // Act with entity-identity semantics\n toMutate.setTag(REQUEST_CONTEXT_STATE, null);\n toMutate.setFrozen(true);\n }", "title": "" }, { "docid": "056d2bbebc226af6bff960ce50ad0a2c", "score": "0.5768194", "text": "@Override\n public Mutation getNewMutation() {\n return new AssociatedMutation();\n }", "title": "" }, { "docid": "23970a9edb52e6c04792a5d689f78110", "score": "0.5735856", "text": "void changedAccessor(Accessor oldAccessor, Accessor newAccessor, int[] oldClueNums);", "title": "" }, { "docid": "bd4d09ec6cf0f511d25ceefaa4cb7ffb", "score": "0.5702084", "text": "public void setMutationType(int i) {\n mutationType = i;\n }", "title": "" }, { "docid": "c67edc852222caafe1f46ba7b2938947", "score": "0.56229657", "text": "private static List<Mutation> getMutations() {\n List<Mutation> mutations = new ArrayList<>(2);\n mutations.add(new Mutation(false, columnAname, valueAname, true));\n mutations.add(new Mutation(false, columnBname, valueBname, true));\n return mutations;\n }", "title": "" }, { "docid": "7c0af44f8ec09ddef2f2a0514c7b9a94", "score": "0.5579969", "text": "@ThreadSafe\n@Mutable(ReadOnlySetProperty.class)\npublic interface WritableSetProperty<@Unspecifiable VALUE, @Unspecifiable READONLY_SET extends ReadOnlySet<@Nonnull @Valid VALUE>, @Unspecifiable EXCEPTION1 extends Exception, @Unspecifiable EXCEPTION2 extends Exception, @Unspecifiable OBSERVER extends SetObserver<VALUE, READONLY_SET, EXCEPTION1, EXCEPTION2, OBSERVER, PROPERTY>, @Unspecifiable PROPERTY extends ReadOnlySetProperty<VALUE, READONLY_SET, EXCEPTION1, EXCEPTION2, OBSERVER, PROPERTY>> extends ReadOnlySetProperty<VALUE, READONLY_SET, EXCEPTION1, EXCEPTION2, OBSERVER, PROPERTY> {\n \n /* -------------------------------------------------- Operations -------------------------------------------------- */\n \n /**\n * Adds the given value to the values of this property.\n * \n * @return whether the given value was not already stored.\n */\n @Impure\n @LockNotHeldByCurrentThread\n public abstract boolean add(@Captured @Nonnull @Valid VALUE value) throws EXCEPTION1, EXCEPTION2;\n \n /**\n * Removes the given value from the values of this property.\n * \n * @return whether the given value was actually stored.\n */\n @Impure\n @LockNotHeldByCurrentThread\n public abstract boolean remove(@NonCaptured @Unmodified @Nonnull @Valid VALUE value) throws EXCEPTION1, EXCEPTION2;\n \n}", "title": "" }, { "docid": "4cf01ee8ab4caa9a994279c61c17d2dc", "score": "0.5566139", "text": "public boolean isMutable() { return false; }", "title": "" }, { "docid": "83192824c259e2a6d69d0b2f4ee95aa6", "score": "0.55454206", "text": "public NeoantigenMutation() {\n super();\n }", "title": "" }, { "docid": "a1d677f2194f93e8ce71a7471dfb963f", "score": "0.5537509", "text": "protected Chromosome doMutation() {\n\t\t\n\t\tint[] kidGenesCopy = new int[mutantGenes.length];\t\t\n\t\tSafeCopy.copy(kidGenesCopy, mutantGenes);\n\t\t\n\t\t/*Shift the randomly selected city at the selected number of positions*/\n\t\t\n\t\tArrayList<Integer> temp = new ArrayList<Integer>();\n\t\tSafeCopy.copy(temp, kidGenesCopy);\t\t\n\t\tint indexOfCity = temp.indexOf(symbol);\t\t\n\t\ttemp.remove((Integer)symbol);\n\t\t\n\t\t//calculate the new position of the element:\n\t\tint newPosition = (indexOfCity + stepsNumber) % SIZE_OF_CHROMOSOME; \n\t\t\n\t\ttemp.add(newPosition, symbol);\n\t\t\n\t\t//copy the result back to the kid array\n\t\tSafeCopy.copy(kidGenesCopy, temp);\n\t\t\n\t\treturn new Chromosome(fitnessFct, new Solution(SIZE_OF_CHROMOSOME, kidGenesCopy));\n\t}", "title": "" }, { "docid": "2f78ee7d19795e2b6f6a68a81cb5dd6a", "score": "0.5525825", "text": "public void mutate() {\n\n int rand_allele = (int)(Math.random() * 1);\n this.pair.get(rand_allele).mutation();\n }", "title": "" }, { "docid": "9c549563a9d0b4090ae605d2f7349292", "score": "0.5512211", "text": "private static String getMutatorFor(String prop) {\n return \"SETPROP_\" + prop;\n }", "title": "" }, { "docid": "619317a6bf5738ec59be5370695ae403", "score": "0.5441127", "text": "private Individual mutate(Individual ind) {\n Random rand = new Random();\n\n int[] genes = ind.getBinaryInt();\n int mutationValue = 2;\n\n while (mutationValue > 0) {\n int gene = rand.nextInt(5);\n if (genes[gene] == 0) {\n genes[gene] = 1;\n } else {\n genes[gene] = 0;\n }\n mutationValue--;\n }\n\n return new Individual(genes);\n }", "title": "" }, { "docid": "5fb80cdb177f98a603c6dd1d1e4b67a9", "score": "0.54086566", "text": "public boolean isMutable() {\n/* 431 */ return false;\n/* */ }", "title": "" }, { "docid": "33701f6f6f63ec127d74a2aa00d5ecd3", "score": "0.5403313", "text": "protected void immutableCheck(){\n\t\tif(isImmutable){\n \t\tthrow new UnsupportedOperationException(\"Immutable object can not change\");\n \t}\n\t}", "title": "" }, { "docid": "a13bb992cc8cfc8204a40fb8ecdcdf0f", "score": "0.5401531", "text": "@Override\n @SuppressWarnings(\"unused\")\n public Object remove( Object o) {\n throw new UnsupportedOperationException(\"immutable properties are read only\");\n }", "title": "" }, { "docid": "bb6f4c20cc1d26deb3e16b96c026f214", "score": "0.5382187", "text": "@Override\n public void makeImmutable() {\n }", "title": "" }, { "docid": "cdd2b32150e434d253624b38dbbe2d12", "score": "0.53776747", "text": "public interface Immutable {\n\n\n}", "title": "" }, { "docid": "c5f56b77b57d318e2462b08995c085de", "score": "0.5363896", "text": "private void replaceMutator(Node getPropNode) {\n /*\n BEFORE\n exprstmt 1\n assign 128\n getprop\n NodeTree A\n string prop\n NODE TREE B\n\n AFTER\n exprstmt 1\n call\n name SETPROP_prop\n NodeTree A\n NODE TREE B\n */\n Node propNameNode = getPropNode.getLastChild();\n Node parentNode = getPropNode.getParent();\n\n Symbol prop = props.get(propNameNode.getString());\n if (prop.aliasMutator) {\n Node propSrc = getPropNode.getFirstChild();\n Node propDest = parentNode.getLastChild();\n\n // Remove the orphaned children\n getPropNode.removeChild(propSrc);\n getPropNode.removeChild(propNameNode);\n parentNode.removeChild(propDest);\n\n // Create the call GETPROP_prop() node, using the old propSrc as the\n // one paremeter to GETPROP_prop() call.\n Node callName = Node.newString(Token.NAME,\n getMutatorFor(propNameNode.getString()));\n Node call = new Node(Token.CALL, callName, propSrc, propDest);\n\n // And replace the assign statement with the new call\n replaceNode(parentNode.getParent(), parentNode, call);\n\n compiler.reportCodeChange();\n }\n }", "title": "" }, { "docid": "6637105c7069002aaa254af23247d991", "score": "0.53584987", "text": "public ExpressionTreeInterface mutate();", "title": "" }, { "docid": "9592cc6eca3ba45849888e1dd8ae2286", "score": "0.53502715", "text": "public AnotherMutationType getData() {\n\t\treturn this.mutation;\n\t}", "title": "" }, { "docid": "216117c850c6ac5373c84663be468820", "score": "0.5310899", "text": "private void replaceAccessor(Node getPropNode) {\n /*\n * BEFORE\n getprop\n NODE...\n string length\n AFTER\n getelem\n NODE...\n name PROP_length\n */\n Node propNameNode = getPropNode.getLastChild();\n String propName = propNameNode.getString();\n if (props.get(propName).aliasAccessor) {\n Node propSrc = getPropNode.getFirstChild();\n getPropNode.removeChild(propSrc);\n\n Node newNameNode =\n Node.newString(Token.NAME, getArrayNotationNameFor(propName));\n\n Node elemNode = new Node(Token.GETELEM, propSrc, newNameNode);\n replaceNode(getPropNode.getParent(), getPropNode, elemNode);\n\n compiler.reportCodeChange();\n }\n }", "title": "" }, { "docid": "ad8f5beedf4bfd273cfce90c9cb289c0", "score": "0.52204204", "text": "interface ExposesSetAndRemove extends ExposesSet {\n\n\t\t/**\n\t\t * Creates {@code SET} clause for setting the given labels to a node.\n\t\t *\n\t\t * @param node The node who's labels are to be changed\n\t\t * @param labels The labels to be set\n\t\t * @return A match with a SET clause that can be build now\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tBuildableMatchAndUpdate set(Node node, String... labels);\n\n\t\t/**\n\t\t * Creates {@code SET} clause for setting the given labels to a node.\n\t\t *\n\t\t * @param node The node who's labels are to be changed\n\t\t * @param labels The labels to be set\n\t\t * @return A match with a SET clause that can be build now\n\t\t * @since 2021.2.2\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tBuildableMatchAndUpdate set(Node node, Collection<String> labels);\n\n\t\t/**\n\t\t * Creates {@code SET} clause for removing the given labels from a node.\n\t\t *\n\t\t * @param node The node who's labels are to be changed\n\t\t * @param labels The labels to be removed\n\t\t * @return A match with a REMOVE clause that can be build now\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tBuildableMatchAndUpdate remove(Node node, String... labels);\n\n\t\t/**\n\t\t * Creates {@code SET} clause for removing the given labels from a node.\n\t\t *\n\t\t * @param node The node who's labels are to be changed\n\t\t * @param labels The labels to be removed\n\t\t * @return A match with a REMOVE clause that can be build now\n\t\t * @since 2021.2.2\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tBuildableMatchAndUpdate remove(Node node, Collection<String> labels);\n\n\t\t/**\n\t\t * Creates {@code SET} clause for removing the enumerated properties\n\t\t *\n\t\t * @param properties The properties to be removed\n\t\t * @return A match with a REMOVE clause that can be build now\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tBuildableMatchAndUpdate remove(Property... properties);\n\n\t\t/**\n\t\t * Creates {@code SET} clause for removing the enumerated properties\n\t\t *\n\t\t * @param properties The properties to be removed\n\t\t * @return A match with a REMOVE clause that can be build now\n\t\t * @since 2021.2.2\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tBuildableMatchAndUpdate remove(Collection<Property> properties);\n\t}", "title": "" }, { "docid": "5e1a956a6424a6ef7a2744ffc59768bd", "score": "0.52018213", "text": "public static List<MutationData> mutate(ExprOrFormula exprOrFormula, ModelUnit mu,\n MutantGeneratorOpt opt, MInfo mi) {\n List<MutationData> res = new ArrayList<>();\n if (mi.getType() == MInfo.MType.IGNORE) {\n return res;\n }\n // Ignore UnaryExpr with op NOOP\n if (exprOrFormula instanceof UnaryExpr\n && ((UnaryExpr) exprOrFormula).getOp() == UnaryExpr.UnaryOp.NOOP) {\n return res;\n }\n if (AlloyUtil.isHomogeneous(exprOrFormula.getType())) {\n UnaryExpr parent = (UnaryExpr) exprOrFormula.getParent();\n for (UnaryExpr.UnaryOp unaryOp : UnaryExpr.UnaryOp.values()) {\n if (unaryOp.getGroup() != UnaryExpr.UnaryOp.Group.CLOSURE\n && unaryOp.getGroup() != UnaryExpr.UnaryOp.Group.TRANSPOSE) {\n continue;\n }\n if (exprOrFormula instanceof UnaryExpr && unaryOp == ((UnaryExpr) exprOrFormula).getOp()) {\n continue;\n }\n Type type = exprOrFormula.getType();\n if (unaryOp == UnaryExpr.UnaryOp.TRANSPOSE) {\n type = type.transpose();\n }\n UnaryExpr wrapper = new UnaryExpr(parent, type, exprOrFormula, unaryOp);\n parent.setSub(wrapper);\n// String mutatedPartAsString = parent.accept(opt.getPSV(), null);\n String mutatedNodePathAsString = AlloyUtil.computeNodePathAsString(wrapper, opt.getPSV());\n String mutant = mu.accept(opt.getPSV(), null);\n if (AlloyUtil.isValidModel(mutant)) {\n String equivModel;\n switch (mi.getType()) {\n case PRED:\n case FUN:\n PredOrFun mutatedPredOrFun = (PredOrFun) mi.getNode()\n .accept(new CloneVisitor(), null);\n parent.setSub(exprOrFormula);\n equivModel = MutantEquivalenceChecker\n .buildEquivModel(mu, mutatedPredOrFun, opt.getScope());\n break;\n case FACT:\n case ASSERT:\n Paragraph mutatedFactOrAssertion = (Paragraph) mi.getNode()\n .accept(new CloneVisitor(), null);\n parent.setSub(exprOrFormula);\n equivModel = MutantEquivalenceChecker\n .buildEquivModel(mu, mutatedFactOrAssertion, opt.getScope());\n break;\n default:\n throw new UnsupportedOptionException(\n UOI.class.getSimpleName() + \" for expression is not supported in \" + mi\n .getType());\n }\n res.add(MutationData.of(mutatedNodePathAsString, mutant, MutantEquivalenceChecker\n .checkEquivalenceAndGenerateTest(equivModel, mi.getNode(), opt)));\n }\n }\n parent.setSub(exprOrFormula);\n }\n return res;\n }", "title": "" }, { "docid": "5aaec2a021ef91a81dffbcc6598043a1", "score": "0.5200625", "text": "public binlog.BinlogOuterClass.TableMutation getMutations(int index) {\n return mutations_.get(index);\n }", "title": "" }, { "docid": "a9d10069af8f586594353461eb1a63bd", "score": "0.5199959", "text": "@Override\n @SuppressWarnings(\"unused\")\n public synchronized Object setProperty(String string, String string1) {\n throw new UnsupportedOperationException(\"immutable properties are read only\");\n }", "title": "" }, { "docid": "2d6b8ef5931ca604c6be6f59cf79f6e1", "score": "0.5186677", "text": "@Override\n\tprotected void update(Member oldObject, Member newObject) {\n\n\t}", "title": "" }, { "docid": "c6392add5d6bb86acfb31ea2b6d29da7", "score": "0.5186268", "text": "@Value.Immutable\npublic interface User {\n\n Integer getUserId();\n\n String getName();\n\n}", "title": "" }, { "docid": "33c4047b3cd531be5e1c6789acaa9200", "score": "0.5181118", "text": "@Test\n void immutablePerson() {\n ImmutablePerson jonSnow = new ImmutablePerson(\"Jon\", \"Snow\", \"Bastard\");\n System.out.println(jonSnow);\n assertEquals(\"Bastard\", jonSnow.getTitle());\n\n // Whenever Jon gets promoted, we'll create a new object to represent him\n // This is kinda of reminiscent of the spread operator from Javascript\n // ...jonSnow, title: \"Lord Commander\n ImmutablePerson lordCommander = jonSnow.changeTitle(\"Lord Commander\");\n System.out.println(lordCommander);\n assertEquals(\"Lord Commander\", lordCommander.getTitle());\n\n // Less likely to forget the promotion this time, b/c we're not changing the\n // state of Jon\n ImmutablePerson kingOfTheNorth = lordCommander.changeTitle(\"King of the North\");\n System.out.println(kingOfTheNorth);\n assertEquals(\"King of the North\", kingOfTheNorth.getTitle());\n\n }", "title": "" }, { "docid": "a0807246dccf97ff41c988fc545d85f0", "score": "0.5154316", "text": "public void mutationOperator() {\n Random random = new Random();\n int indexReplace = random.nextInt(operators.size());\n int indexNew = random.nextInt(Main.OPERATORS.length);\n //if the new operator is same as the old one, select one randomly again\n if (operators.get(indexReplace).equals(Main.OPERATORS[indexNew])) {\n if (indexNew > 0) {\n indexNew--;\n } else {\n indexNew = 1;\n }\n }\n operators.set(indexReplace, Main.OPERATORS[indexNew]);\n buildEq();\n calculateCost();\n }", "title": "" }, { "docid": "71993b5fa49b3eac96fa10a72943e610", "score": "0.51504505", "text": "@Override\n\tpublic boolean isModifiable() throws IllegalStateException\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}", "title": "" }, { "docid": "f9e2ca8de8e6f0cf9ba9b6e81fa8dd57", "score": "0.5145056", "text": "private static void adjustPropertyForShallowImmutability(ClassNode cNode, PropertyNode pNode, PropertyHandler handler) {\n final FieldNode fNode = pNode.getField();\n fNode.setModifiers((pNode.getModifiers() & (~ACC_PUBLIC)) | ACC_FINAL | ACC_PRIVATE);\n boolean isGetterDefined = cNode.getDeclaredMethods(pNode.getName()).stream()\n .anyMatch(MethodNodeUtils::isGetterCandidate);\n pNode.setGetterName(pNode.getName());\n if (!isGetterDefined) {\n Statement getter = handler.createPropGetter(pNode);\n if (getter != null) {\n pNode.setGetterBlock(getter);\n }\n }\n }", "title": "" }, { "docid": "62fa6eee8454e7e702a4674505319df3", "score": "0.5140282", "text": "@Test\n\tvoid mutation() throws GeneratorException {\n\t\tTwoAxisLissajousModel lsm = new TwoAxisLissajousModel();\n\t\tlsm.setBoundingBox(new BoundingBox(0, 0, 10, 10));\n\t\tlsm.setPoints(40);\n\t\tTwoAxisLinePointsModel talpm = new TwoAxisLinePointsModel();\n\t\ttalpm.setBoundingLine(new BoundingLine(0, 0, 10, 10));\n\t\ttalpm.setPoints(40);\n\t\ttalpm.setxAxisName(\"z\");\n\t\ttalpm.setyAxisName(\"p\");\n\t\tMap<String, Double> offsets = new HashMap<>();\n\t\toffsets.put(\"p\", 0.1);\n\t\toffsets.put(\"stage_x\", 0.33);\n\t\tIMutator rom = new RandomOffsetMutator(444, Arrays.asList(\"p\", \"stage_x\"), offsets);\n\t\tMap<String, Double> pOffsets = new HashMap<>();\n\t\tpOffsets.put(\"p\", 0.1);\n\t\tIMutator pRom = new RandomOffsetMutator(444, Arrays.asList(\"p\"), pOffsets);\n\t\tMap<String, Double> stage_xOffsets = new HashMap<>();\n\t\tstage_xOffsets.put(\"stage_x\", 0.33);\n\t\tIMutator stage_xRom = new RandomOffsetMutator(444, Arrays.asList(\"stage_x\"), stage_xOffsets);\n\t\tConcurrentMultiModel cmm = new ConcurrentMultiModel();\n\t\tcmm.addModel(lsm);\n\t\tcmm.addModel(talpm);\n\t\tIPointGenerator<CompoundModel> lsg = pointGeneratorService.createGenerator(lsm, Collections.emptyList(), Arrays.asList(stage_xRom));\n\t\tIPointGenerator<CompoundModel> talpg = pointGeneratorService.createGenerator(talpm, Collections.emptyList(), Arrays.asList(pRom));\n\t\tIPointGenerator<CompoundModel> cmg = pointGeneratorService.createGenerator(cmm, Collections.emptyList(), Arrays.asList(rom));\n\t\tequalIterators(cmg.iterator(), lsg.iterator(), talpg.iterator());\n\t}", "title": "" }, { "docid": "e9f22211f66bbf63e449903cc47b21b0", "score": "0.51322776", "text": "@Override\n protected void applyMutation(Mutation uncastMutation) {\n AssociatedMutation mutation = (AssociatedMutation) uncastMutation;\n MutatableCode mutatableCode = mutation.mutatableCode;\n\n generateCachedinvokeCallInsns(mutatableCode);\n\n MInsn invokeInsn = invokeCallInsns.get(mutation.invokeCallInsnIdx);\n\n String oldInsnString = invokeInsn.toString();\n\n Opcode newOpcode = getDifferentInvokeCallOpcode(invokeInsn);\n\n invokeInsn.insn.info = Instruction.getOpcodeInfo(newOpcode);\n\n Log.info(\"Changed \" + oldInsnString + \" to \" + invokeInsn);\n\n stats.incrementStat(\"Changed invoke call instruction\");\n\n // Clear cache.\n invokeCallInsns = null;\n }", "title": "" }, { "docid": "957190ff348a2479f96ac1e98391ccfd", "score": "0.5087724", "text": "@Test\n void testGetSpareTileImmutable() {\n Tile t0 = (Tile) l.getSpareTile();\n Tile t = (Tile) l.getSpareTile();\n t.rotate(1).setPlayer(3).setTreasure(2);\n assertArrayEquals(new boolean[]{false, true, false, true}, t0.getOpenDirections(),\n \"SpareTile is not mutable from the outside.\");\n assertEquals(-1, t0.getPlayer(), \"SpareTile is not mutable from the outside.\");\n assertEquals(-1, t0.getTreasure(), \"SpareTile is not mutable from the outside.\");\n }", "title": "" }, { "docid": "ea2d352f2e69492f5aebf92fb6f427c5", "score": "0.5060037", "text": "public abstract void makeImmutable();", "title": "" }, { "docid": "839e7a754fcbb5d4295b71772a5f1476", "score": "0.5024137", "text": "public binlog.BinlogOuterClass.TableMutation getMutations(int index) {\n if (mutationsBuilder_ == null) {\n return mutations_.get(index);\n } else {\n return mutationsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "6180fc8ad57f715f1af9a428235c693a", "score": "0.5005803", "text": "@Override\n protected LinearInterpolation createMutation(SmoothingModel input) {\n LinearInterpolation original = (LinearInterpolation) input;\n // swap two values permute original lambda values\n return switch (randomIntBetween(0, 2)) {\n case 0 ->\n // swap first two\n new LinearInterpolation(original.getBigramLambda(), original.getTrigramLambda(), original.getUnigramLambda());\n case 1 ->\n // swap last two\n new LinearInterpolation(original.getTrigramLambda(), original.getUnigramLambda(), original.getBigramLambda());\n default ->\n // swap first and last\n new LinearInterpolation(original.getUnigramLambda(), original.getBigramLambda(), original.getTrigramLambda());\n };\n }", "title": "" }, { "docid": "0151c62b6e70fb4f14979cde7c927fd3", "score": "0.5004043", "text": "public void setData(AnotherMutationType mutation) {\n\t\tthis.mutation = mutation;\n\t}", "title": "" }, { "docid": "39f3ba5cfa511a54e92343e4693b4a6d", "score": "0.4997462", "text": "interface ExposesSet {\n\n\t\t/**\n\t\t * Adds a {@code SET} clause to the statement. The list of expressions must be even, each pair will be turned into\n\t\t * SET operation.\n\t\t *\n\t\t * @param expressions The list of expressions to use in a set clause.\n\t\t * @return An ongoing match and update\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tBuildableMatchAndUpdate set(Expression... expressions);\n\n\t\t/**\n\t\t * Adds a {@code SET} clause to the statement. The list of expressions must be even, each pair will be turned into\n\t\t * SET operation.\n\t\t *\n\t\t * @param expressions The list of expressions to use in a set clause.\n\t\t * @return An ongoing match and update\n\t\t * @since 2021.2.2\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tBuildableMatchAndUpdate set(Collection<Expression> expressions);\n\n\t\t/**\n\t\t * Adds a {@code SET} clause to the statement, modifying the given named thing with an expression.\n\t\t *\n\t\t * @param variable The named thing to modify\n\t\t * @param expression The modifying expression\n\t\t * @return An ongoing match and update\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tdefault BuildableMatchAndUpdate set(Named variable, Expression expression) {\n\t\t\treturn set(variable.getRequiredSymbolicName(), expression);\n\t\t}\n\n\t\t/**\n\t\t * Creates a {@code +=} operation. The left hand side must resolve to a container (either a node or a relationship)\n\t\t * of properties and the right hand side must be a map of new or updated properties\n\t\t *\n\t\t * @param target The target container that should be modified\n\t\t * @param properties The new properties\n\t\t * @return An ongoing match and update\n\t\t * @since 2020.1.5\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tBuildableMatchAndUpdate mutate(Expression target, Expression properties);\n\n\t\t/**\n\t\t * Creates a {@code +=} operation. The left hand side must resolve to a container (either a node or a relationship)\n\t\t * of properties and the right hand side must be a map of new or updated properties\n\t\t *\n\t\t * @param variable The named thing to modify\n\t\t * @param properties The new properties\n\t\t * @return An ongoing match and update\n\t\t * @since 2020.1.5\n\t\t */\n\t\t@NotNull @CheckReturnValue\n\t\tdefault BuildableMatchAndUpdate mutate(Named variable, Expression properties) {\n\t\t\treturn mutate(variable.getRequiredSymbolicName(), properties);\n\t\t}\n\t}", "title": "" }, { "docid": "3f35edc0175374a529efd5933bc81a3c", "score": "0.49842706", "text": "static interface ImplictModification {\r\n\t\tpublic void print(StringBuilder stream);\r\n\r\n\t\tpublic void toXML(StringBuilder stream);\r\n\r\n\t\tpublic void xmlAttributesForTargetPart(StringBuilder stream);\r\n\r\n\t\tpublic void xmlElementsForTargetPart(StringBuilder stream);\r\n\t}", "title": "" }, { "docid": "85226714aa2c28b7a82fcae95b26a863", "score": "0.49720806", "text": "protected Mutant(MutantSpace space, int id, AstMutation mutation) throws Exception {\n\t\tif(space == null)\n\t\t\tthrow new IllegalArgumentException(\"Invalid space: null\");\n\t\telse if(mutation == null)\n\t\t\tthrow new IllegalArgumentException(\"Invalid mutation: null\");\n\t\telse {\n\t\t\tthis.space = space;\n\t\t\tthis.id = id;\n\t\t\tthis.mutation = mutation;\n\t\t\tthis.versions = new Mutant[] { null, null, null };\n\t\t\ttry {\n\t\t\t\tthis.cir_mutations = new ArrayList<CirMutation>();\n\t\t\t\tIterable<CirMutation> buffer = this.space.generate_cir_mutation(mutation);\n\t\t\t\tfor(CirMutation cir_mutation : buffer) this.cir_mutations.add(cir_mutation);\n\t\t\t}\n\t\t\tcatch(UnsupportedOperationException ex) {\n\t\t\t\tthis.cir_mutations = null;\n\t\t\t}\n\t\t\tcatch(Exception ex) {\n\t\t\t\t/*\n\t\t\t\tex.printStackTrace();\n\t\t\t\tthis.cir_mutations = null;\n\t\t\t\t*/\n\t\t\t\t// ex.printStackTrace();\n\t\t\t\tthis.cir_mutations = null;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8a92e47ffd53ddc0676019dd61419360", "score": "0.495488", "text": "protected SubTreeMutator() {\r\n super();\r\n }", "title": "" }, { "docid": "28f0760cf60634e2fb6eeeb5ecd85718", "score": "0.495155", "text": "@SuppressWarnings(\"checkstyle:methodname\")\npublic interface DirtyStateTrackable extends MutableStateTrackable {\n\n /**\n * Returns the initial state as array. Null if not partially updatable.\n * The order is the same as the metamodel attribute order of updatable attributes.\n * \n * @return the initial state as array\n */\n public Object[] $$_getInitialState();\n\n}", "title": "" }, { "docid": "51e3f6d5fffd5c030f4147efa253de53", "score": "0.49509874", "text": "private void mutation(Individual sub) {\n gui.addText(\"****Mutating**************\");\n gui.addText(\"i: \"+sub);\n for(int i=0; i<sub.size(); i++)\n sub.invertChromosome(i);\n gui.addText(\"o: \"+sub);\n }", "title": "" }, { "docid": "33a0bec00e0b2a4bd500b538fa827f94", "score": "0.4937907", "text": "public boolean supportsSubqueryOnMutatingTable() {\n \t\treturn true;\n \t}", "title": "" }, { "docid": "8bf8bdef8cd06f7d14eaef8e3fc07add", "score": "0.49245507", "text": "public MutationVerifier(AnalyzedMethodNode original, AnalyzedMethodNode mutant,\n\t\t\tCompatibleCrossover xo) {\n\t\tthis.xo = xo;\n\t\tsetupCodeSections(original, mutant,\n\t\t\t\t0, original.instructions.size() - 1,\n\t\t\t\t0, mutant.instructions.size() - 1);\n\t}", "title": "" }, { "docid": "1f2c6b7a4b87a04266469f14c5830eee", "score": "0.49234727", "text": "public void mo34274c() {\n mo34270a(EnumC4678h.MAKE_IMMUTABLE);\n this.f21755a.mo33103b();\n }", "title": "" }, { "docid": "763ad78258395863f12f6b9cc7d594de", "score": "0.4920995", "text": "public List<String> getMutators() {\r\n\t\treturn mutators;\r\n\t}", "title": "" }, { "docid": "88db7ed0a5df6a8d9f4532e991c4df04", "score": "0.4916834", "text": "@Override\n public final void examine(K key, Progress<K, V, R> c, ExaminationEntry<K, V> e) { c.wantMutation(); }", "title": "" }, { "docid": "ca408a2e4d43694d0037bf3e55a4ee07", "score": "0.49064675", "text": "public List<Method> getSetters() {\r\n\t\tList<Method> retList = new ArrayList<>();\r\n\t\tfor (Field m : getMembers()) {\r\n\t\t\tretList.add(getAccessMethod(\"set\", m.getName()));\r\n\t\t}\r\n\t\treturn retList;\r\n\t}", "title": "" }, { "docid": "541322641ad13f98c8431789eb758973", "score": "0.490249", "text": "@Override\n public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i)\n {\n VelPropertySet method = super.getPropertySet(obj, identifier, arg, i);\n if (method != null) {\n Method m = this.introspector.getMethod(obj.getClass(), method.getMethodName(), new Object[] { arg });\n if (m != null\n && (m.isAnnotationPresent(Deprecated.class)\n || m.getDeclaringClass().isAnnotationPresent(Deprecated.class)\n || obj.getClass().isAnnotationPresent(Deprecated.class))) {\n logWarning(\"setter\", obj, method.getMethodName(), i);\n }\n }\n\n return method;\n }", "title": "" }, { "docid": "a71b6143b9933401fbf77cde2266e237", "score": "0.48968598", "text": "public final V setValue(V value)\r\n/* 177: */ {\r\n/* 178: 631 */ throw new UnsupportedOperationException();\r\n/* 179: */ }", "title": "" }, { "docid": "47b7bf43559773114096de2870fbb0b0", "score": "0.4891537", "text": "@Override\n\t\tpublic synchronized Object put(Object key, Object value) {\n\t\t\tif (!sealed) {\n\t\t\t\t//setProperty calls put, so until the object is fully constructed, we \n\t\t\t\t//cannot seal it.\n\t\t\t\treturn super.put(key, value);\n\t\t\t}\n\t\t\t\n throw new UnsupportedOperationException(\"immutable properties are read only\");\n\t\t}", "title": "" }, { "docid": "dedab7148b4958a5f4d3246f3f9ffe8e", "score": "0.48875105", "text": "@Test\n void testGetPlayerImmutable() {\n int p = l.getPlayer();\n p = 5;\n assertEquals(0, l.getPlayer(),\n \"TreasureCount is not mutable from the outside.\");\n }", "title": "" }, { "docid": "49cd3d677a07c8d0329a52100a839df0", "score": "0.48811528", "text": "public interface BlockItem extends BaseElement {\n\n boolean isCritical();\n\n Set<String> getDependantVariables();\n\n default Set<String> getChangedVariables() {\n Set<String> changedVariables = new HashSet<>();\n changedVariables.addAll(getPotentiallyChangedVariables());\n changedVariables.addAll(getGuaranteedChangedVariables());\n return changedVariables;\n }\n\n Set<String> getGuaranteedChangedVariables();\n\n Set<String> getPotentiallyChangedVariables();\n\n boolean hasJump();\n/*\n default boolean readsOrWritesMemory() {\n final boolean[] modifiesMemory = new boolean[1];\n modifiesMemory[0] = false;\n Visitor<Expression> visitor = new Visitor<Expression>() {\n @Override\n public void visit(Expression expression) {\n if (expression instanceof UnaryExpressionUnaryOperatorImpl) {\n if (((UnaryExpressionUnaryOperatorImpl) expression).getUnaryOperator().equals(UnaryExpressionUnaryOperatorImpl.UnaryOperator.DEREFERENCE)) {\n modifiesMemory[0] = true;\n return;\n }\n } else if (expression instanceof PostfixExpressionStructAccessImpl) {\n if (((PostfixExpressionStructAccessImpl) expression).getAccessOperator().equals(PostfixExpressionStructAccessImpl.AccessOperator.ARROW)) {\n modifiesMemory[0] = true;\n return;\n }\n } else if (expression instanceof PostfixExpressionArrayAccessImpl) {\n modifiesMemory[0] = true;\n return;\n }\n expression.visitNestedExpressions(this);\n }\n };\n visitOwnedExpressions(visitor);\n return modifiesMemory[0];\n }\n*/\n default boolean readsMemory() {\n final boolean[] modifiesMemory = new boolean[1];\n modifiesMemory[0] = false;\n Visitor<Expression> visitor = new Visitor<Expression>() {\n @Override\n public void visit(Expression expression) {\n if (expression instanceof UnaryExpressionUnaryOperatorImpl) {\n if (((UnaryExpressionUnaryOperatorImpl) expression).getUnaryOperator().equals(UnaryExpressionUnaryOperatorImpl.UnaryOperator.DEREFERENCE)) {\n modifiesMemory[0] = true;\n return;\n }\n } else if (expression instanceof PostfixExpressionStructAccessImpl) {\n if (((PostfixExpressionStructAccessImpl) expression).getAccessOperator().equals(PostfixExpressionStructAccessImpl.AccessOperator.ARROW)) {\n modifiesMemory[0] = true;\n return;\n }\n } else if (expression instanceof PostfixExpressionArrayAccessImpl) {\n modifiesMemory[0] = true;\n return;\n }\n expression.visitNestedExpressions(this);\n }\n };\n visitAllExpressions(visitor);\n if (modifiesMemory[0]) {\n return true;\n } else {\n Visitor<Expression> visitorInvocations = new Visitor<Expression>() {\n @Override\n public void visit(Expression expression) {\n if (expression instanceof PostfixExpressionInvocationImpl) {\n if (((PostfixExpressionInvocationImpl) expression).readsMemory()) {\n modifiesMemory[0] = true;\n return;\n }\n }\n expression.visitNestedExpressions(this);\n }\n };\n visitAllExpressions(visitorInvocations);\n return modifiesMemory[0];\n }\n }\n\n default boolean writesMemory() {\n final boolean[] modifiesMemory = new boolean[1];\n modifiesMemory[0] = false;\n Visitor<Expression> visitor = new Visitor<Expression>() {\n @Override\n public void visit(Expression expression) {\n if (expression instanceof AssignmentExpressionImpl) {\n UnaryExpression unaryExpression = ((AssignmentExpressionImpl) expression).getUnaryExpression();\n if (unaryExpression instanceof UnaryExpressionUnaryOperatorImpl) {\n if (((UnaryExpressionUnaryOperatorImpl) unaryExpression).getUnaryOperator().equals(UnaryExpressionUnaryOperatorImpl.UnaryOperator.DEREFERENCE)) {\n modifiesMemory[0] = true;\n return;\n }\n } else if (unaryExpression instanceof PostfixExpressionStructAccessImpl) {\n if (((PostfixExpressionStructAccessImpl) unaryExpression).getAccessOperator().equals(PostfixExpressionStructAccessImpl.AccessOperator.ARROW)) {\n modifiesMemory[0] = true;\n return;\n }\n } else if (unaryExpression instanceof PostfixExpressionArrayAccessImpl) {\n modifiesMemory[0] = true;\n return;\n } else if (unaryExpression instanceof PrimaryExpressionParentheses) {\n visit(((PrimaryExpressionParentheses) unaryExpression).getExpression());\n }\n }\n expression.visitNestedExpressions(this);\n }\n };\n visitAllExpressions(visitor);\n if (modifiesMemory[0]) {\n return true;\n } else {\n Visitor<Expression> invocationVisitor = new Visitor<Expression>() {\n @Override\n public void visit(Expression expression) {\n if (expression instanceof PostfixExpressionInvocationImpl) {\n if (((PostfixExpressionInvocationImpl) expression).writesMemory()) {\n modifiesMemory[0] = true;\n return;\n }\n }\n expression.visitNestedExpressions(this);\n }\n };\n visitAllExpressions(invocationVisitor);\n return modifiesMemory[0];\n }\n }\n\n /**\n * Applies a visitor to all the expressions that this block items owns. Does not apply the visitor to any expression\n * inside any statement besides THIS blockItem.\n * @param visitor\n */\n void visitOwnedExpressions(Visitor<Expression> visitor);\n\n /**\n * Applies a visitor to all the expressions that this block items owns. Does not apply the visitor to any expression\n * inside any statement besides THIS blockItem.\n * @param visitor\n */\n void visitAllExpressions(Visitor<Expression> visitor);\n}", "title": "" }, { "docid": "de66f3f9740b51237aaa51d416ffde12", "score": "0.48775712", "text": "private boolean isSetter(Method m) {\n return m.getName().startsWith(SET) && m.getParameterTypes().length == 1 && Void.TYPE.equals(m.getReturnType());\n }", "title": "" }, { "docid": "c3f92b4dc121dfdcd7e4efdefac1c167", "score": "0.48727134", "text": "int getModifyValue();", "title": "" }, { "docid": "3e64076ed1d5c01b840d36139b8c9cfd", "score": "0.48518133", "text": "public MutationVerifier(AnalyzedMethodNode original, AnalyzedMethodNode mutant,\n\t\t\tCompatibleCrossover xo, int original_begin, int original_end, \n\t\t\t\t\t\t\t\t\tint mutant_begin, int mutant_end) {\n\t\tthis.xo = xo;\n\t\tsetupCodeSections(original, mutant, original_begin, original_end, mutant_begin, mutant_end);\n\t}", "title": "" }, { "docid": "9360004028f0b3903a5443e81e392d93", "score": "0.48501956", "text": "@Override\n\tpublic void update(FlexoObservable observable, DataModification obj) {\n\t}", "title": "" }, { "docid": "0fb4b228878177c4838dcf2ae2e2daef", "score": "0.48463047", "text": "public interface MutateSensor {\n /**\n * @return The training class that this mutator is being used with.\n */\n EvolutionaryAlgorithm getTrainer();\n\n /**\n * Setup the sensor mutator.\n *\n * @param theTrainer\n * The training class that this mutator is used with.\n */\n void init(EvolutionaryAlgorithm theTrainer);\n\n /**\n * Perform the parameter mutation on the specified sensor.\n *\n * @param rnd\n * A random number generator.\n * @param sensorConfiguration\n * The sensor configuration to mutate\n */\n void mutateSensor(Random rnd, SensorConfiguration sensorConfiguration);\n\n /**\n * Perform the same mutation on all the sensor configurations.\n *\n * @param rnd\n * A random number generator.\n * @param configurations\n * The list of sensor configuration to mutate\n */\n void mutateSensorGroup(Random rnd, List<SensorConfiguration> configurations);\n}", "title": "" }, { "docid": "557901ea34edf7e503cdd6b06fdce8cb", "score": "0.4843061", "text": "public Operations.MutInt getWrapped()\r\n/* 131: */ {\r\n/* 132:113 */ if (this.f == null) {\r\n/* 133:113 */ this.f = new Operations.MutInt(null);\r\n/* 134: */ }\r\n/* 135:114 */ return this.f;\r\n/* 136: */ }", "title": "" }, { "docid": "ce5c81fe58b0dceda770648fc78f6a32", "score": "0.4830956", "text": "@Override\n\t\tpublic synchronized void clear() {\n throw new UnsupportedOperationException(\"immutable properties are read only\");\n\t\t}", "title": "" }, { "docid": "9e063f393db18f99eec0cca21ed1997a", "score": "0.48278353", "text": "@Override\n public void mutate(Individual individual) {\n\n for (int i = 0; i < individual.size(); i++) {\n if (Math.random() <= this.mutationRate) {\n// int gene = (int) Math.round(Math.random());\n// individual.setGene(i, gene);\n }\n }\n }", "title": "" }, { "docid": "3bf40ba1934e36e645987855f1e57eea", "score": "0.48221534", "text": "Program mutate();", "title": "" }, { "docid": "50bb58b98d0f98ee6dc92b94cb7a4b3d", "score": "0.48138452", "text": "@Override\n\tpublic boolean isModifyMember(Member member) throws Exception {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "24ee12b00175f12327f721ae837e4e8a", "score": "0.48136115", "text": "int getMutationsCount();", "title": "" }, { "docid": "13e908ae441782472061b85e2cac20b6", "score": "0.48128876", "text": "@Test\n\tpublic void testCorrectNumberOfMutatedGenes() {\n\t\tMutator mutator = new Mutator(0.4, 1.0, 1.0);\n\t\tmutator.setRandom(new DummyRandom(0.7, 0, true));\n\t\t\n\t\tdouble[] genome1 = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\t\t\n\t\tdouble[] resultGenome = mutator.mutate(genome1, 0.4, 1.0, 1.0);\n\t\t\n\t\tfor (double r : resultGenome) {\n\t\t\tassertEquals(\"A gene was changed when it should not have been\", 1, r, 0);\n\t\t}\t\t\n\t\t\n\t\tgenome1 = new double[]{1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\t\t\n\t\tresultGenome = mutator.mutate(genome1, 0.8, 1.0, 1.0);\n\t\t\n\t\tfor (double r : resultGenome) {\n\t\t\tassertEquals(\"A gene was not changed when they all should have been.\", 2, r, 0);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "be2f37acf4de5d2f36fc119472a1837b", "score": "0.4808585", "text": "private void mutatePopulation() {\n for (Individual indvidual : population) {\n // need to supply code for the mutateIndividual() method\n indvidual.mutateIndividual(mutationMagnitude);\n }\n\n }", "title": "" }, { "docid": "890a379cb8a9c845cf31b21f6520a14e", "score": "0.48074", "text": "public Creator modify(){\n return new Creator(this);\n }", "title": "" }, { "docid": "890a379cb8a9c845cf31b21f6520a14e", "score": "0.48074", "text": "public Creator modify(){\n return new Creator(this);\n }", "title": "" }, { "docid": "2236750af7d41cc067a445b52fad33e6", "score": "0.48027065", "text": "@Override\r\n\tpublic String goModify() {\n\t\treturn super.goModify();\r\n\t}", "title": "" }, { "docid": "759a2314fd7a815b7a07637a16061f64", "score": "0.4798831", "text": "private TableMutation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "0ec28d1473a96e282e173e3a031a8255", "score": "0.47950163", "text": "public interface AttributeAccessor {\n\n\t/**\n\t * Set the attribute defined by {@code name} to the supplied {@code value}.\n\t * <p>If {@code value} is {@code null}, the attribute is {@link #removeAttribute removed}.\n\t * <p>In general, users should take care to prevent overlaps with other\n\t * metadata attributes by using fully-qualified names, perhaps using\n\t * class or package names as prefix.\n\t * @param name the unique attribute key\n\t * @param value the attribute value to be attached\n\t */\n\tvoid setAttribute(String name, @Nullable Object value);\n\n\t/**\n\t * Get the value of the attribute identified by {@code name}.\n\t * <p>Return {@code null} if the attribute doesn't exist.\n\t * @param name the unique attribute key\n\t * @return the current value of the attribute, if any\n\t */\n\t@Nullable\n\tObject getAttribute(String name);\n\n\t/**\n\t * Compute a new value for the attribute identified by {@code name} if\n\t * necessary and {@linkplain #setAttribute set} the new value in this\n\t * {@code AttributeAccessor}.\n\t * <p>If a value for the attribute identified by {@code name} already exists\n\t * in this {@code AttributeAccessor}, the existing value will be returned\n\t * without applying the supplied compute function.\n\t * <p>The default implementation of this method is not thread safe but can\n\t * be overridden by concrete implementations of this interface.\n\t * @param <T> the type of the attribute value\n\t * @param name the unique attribute key\n\t * @param computeFunction a function that computes a new value for the attribute\n\t * name; the function must not return a {@code null} value\n\t * @return the existing value or newly computed value for the named attribute\n\t * @since 5.3.3\n\t * @see #getAttribute(String)\n\t * @see #setAttribute(String, Object)\n\t */\n\t@SuppressWarnings(\"unchecked\")\n\tdefault <T> T computeAttribute(String name, Function<String, T> computeFunction) {\n\t\tAssert.notNull(name, \"Name must not be null\");\n\t\tAssert.notNull(computeFunction, \"Compute function must not be null\");\n\t\tObject value = getAttribute(name);\n\t\tif (value == null) {\n\t\t\tvalue = computeFunction.apply(name);\n\t\t\tAssert.state(value != null,\n\t\t\t\t\t() -> String.format(\"Compute function must not return null for attribute named '%s'\", name));\n\t\t\tsetAttribute(name, value);\n\t\t}\n\t\treturn (T) value;\n\t}\n\n\t/**\n\t * Remove the attribute identified by {@code name} and return its value.\n\t * <p>Return {@code null} if no attribute under {@code name} is found.\n\t * @param name the unique attribute key\n\t * @return the last value of the attribute, if any\n\t */\n\t@Nullable\n\tObject removeAttribute(String name);\n\n\t/**\n\t * Return {@code true} if the attribute identified by {@code name} exists.\n\t * <p>Otherwise return {@code false}.\n\t * @param name the unique attribute key\n\t */\n\tboolean hasAttribute(String name);\n\n\t/**\n\t * Return the names of all attributes.\n\t */\n\tString[] attributeNames();\n\n}", "title": "" }, { "docid": "85afc138fe728a3fca54c37f81a96035", "score": "0.47852018", "text": "public void mutate(double mutationProbability) {\r\n\t\tfor (int i = 0; i < this.individuals.size(); i++) {\r\n\t\t\tindividuals.get(i).mutate(mutationProbability);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "61b102b604f5fb437e4dd9c7ef4f9d68", "score": "0.47836247", "text": "public java.lang.String getMutationSuffix () {\r\n\t\treturn mutationSuffix;\r\n\t}", "title": "" }, { "docid": "881d45b0d04e8c899f06e1be86f3bf72", "score": "0.4782695", "text": "@Test\n void promoteEngineers() {\n\n // Given: We have a set of junior engineers\n Set<ImmutablePerson> juniorEngineers = Set.of(\n new ImmutablePerson(\"Angela\", \"Anderson\", \"Junior Engineer\"),\n new ImmutablePerson(\"Bob\", \"Barker\", \"Junior Engineer\"),\n new ImmutablePerson(\"Carl\", \"Comely\", \"Junior Engineer\")\n );\n\n // When: We promote them for their hard work\n Set<ImmutablePerson> seniorEngineers = juniorEngineers.stream()\n .map(engineer -> engineer.changeTitle(\"Senior Engineer\"))\n .collect(Collectors.toUnmodifiableSet()); // N.B. I like using immutable collections as well\n\n // Then: Their titles are updated\n seniorEngineers.forEach(\n engineer -> assertEquals(\"Senior Engineer\", engineer.getTitle())\n );\n\n }", "title": "" }, { "docid": "ca46746a7fd437ee1da34d15b4dd089e", "score": "0.47728515", "text": "public K set(int index, K k) {\n/* 104 */ throw new UnsupportedOperationException();\n/* */ }", "title": "" }, { "docid": "050752261ff618469d0ae9c4cb3d9188", "score": "0.47648716", "text": "@Test\n public void testMutatorsAccessorsCreateLoadDelete()\n {\n Connector conn = core.createConnector();\n \n // Create test data\n User u = new User(\"user1\", null, null, \"user1@user1.com\", UserGroup.load(conn, 1));\n assertEquals(User.PersistStatus_User.Success, u.persist(core, conn));\n Module m = new Module(\"test module\");\n assertEquals(Module.PersistStatus.Success, m.persist(conn));\n Assignment ass = new Assignment(m, \"title\", 100, false, -1, null, true);\n assertEquals(Assignment.PersistStatus.Success, ass.persist(conn));\n InstanceAssignment ia = new InstanceAssignment(u, ass, InstanceAssignment.Status.Active, null, null, 100.0);\n assertEquals(InstanceAssignment.PersistStatus.Success, ia.persist(conn));\n TypeQuestion tq = new TypeQuestion(UUID.generateVersion4(), core.getPlugins().getPlugins()[0].getUUID(), \"tq aq\", \"desc\");\n assertEquals(TypeQuestion.PersistStatus.Success, tq.persist(conn));\n Question q = new Question(tq, \"title\", \"desc\", null);\n assertEquals(Question.PersistStatus.Success, q.persist(conn));\n TypeCriteria tc = new TypeCriteria(UUID.generateVersion4(), core.getPlugins().getPlugins()[0].getUUID(), \"title aq\", \"desc\");\n assertEquals(TypeCriteria.PersistStatus.Success, tc.persist(conn));\n QuestionCriteria qc = new QuestionCriteria(q, tc, \"qc title\", null, 100);\n assertEquals(QuestionCriteria.PersistStatus.Success, qc.persist(conn));\n AssignmentQuestion aq = new AssignmentQuestion(ass, q, 100, 1, 1);\n assertEquals(AssignmentQuestion.PersistStatus.Success, aq.persist(conn));\n // Create IAQ\n InstanceAssignmentQuestion iaq = new InstanceAssignmentQuestion(aq, ia, null, false, 15.0);\n \n assertEquals(false, iaq.isPersisted());\n assertEquals(-1, iaq.getAIQID());\n \n // -- Test constructor\n assertEquals(aq, iaq.getAssignmentQuestion());\n assertEquals(ia, iaq.getInstanceAssignment());\n assertFalse(iaq.isAnswered());\n assertEquals(15.0, iaq.getMark(), 0.0);\n \n // -- Test mutators\n iaq.setAssignmentQuestion(null);\n assertNull(iaq.getAssignmentQuestion());\n iaq.setAssignmentQuestion(aq);\n assertEquals(aq, iaq.getAssignmentQuestion());\n \n iaq.setInstanceAssignment(null);\n assertNull(iaq.getInstanceAssignment());\n iaq.setInstanceAssignment(ia);\n assertEquals(ia, iaq.getInstanceAssignment());\n \n iaq.setAnswered(false);\n assertFalse(iaq.isAnswered());\n iaq.setAnswered(true);\n assertTrue(iaq.isAnswered());\n \n iaq.setMark(10);\n assertEquals(10, iaq.getMark(), 0.0);\n \n // Persist IAQ\n assertEquals(InstanceAssignmentQuestion.PersistStatus.Success, iaq.persist(conn));\n \n // Load IAQ\n int aiqid = iaq.getAIQID();\n iaq = InstanceAssignmentQuestion.load(core, conn, ia, aiqid);\n assertNotNull(iaq);\n \n // Create IAC\n InstanceAssignmentCriteria iac = new InstanceAssignmentCriteria(iaq, qc, InstanceAssignmentCriteria.Status.Marked, 100, null);\n \n assertFalse(iac.isPersisted());\n \n // -- Test constructor\n assertEquals(iaq, iac.getIAQ());\n assertEquals(qc, iac.getQC());\n assertEquals(InstanceAssignmentCriteria.Status.Marked, iac.getStatus());\n assertEquals(100, iac.getMark());\n \n // -- Test mutators\n iac.setIAQ(null);\n assertNull(iac.getIAQ());\n iac.setIAQ(iaq);\n \n iac.setQC(null);\n assertNull(iac.getQC());\n iac.setQC(qc);\n \n iac.setStatus(InstanceAssignmentCriteria.Status.BeingAnswered);\n assertEquals(InstanceAssignmentCriteria.Status.BeingAnswered, iac.getStatus());\n \n iac.setMark(50);\n assertEquals(50, iac.getMark());\n \n // Persist IAC\n assertEquals(InstanceAssignmentCriteria.PersistStatus.Success, iac.persist(conn));\n \n // Load IAC\n iac = InstanceAssignmentCriteria.load(core, conn, iaq, qc);\n assertNotNull(iac);\n \n // Delete IAC\n assertTrue(iac.delete(conn));\n \n // Reload IAC\n iac = InstanceAssignmentCriteria.load(core, conn, iaq, qc);\n assertNull(iac);\n \n // Delete IAQ\n assertTrue(iaq.delete(conn));\n \n // Reload IAQ\n iaq = InstanceAssignmentQuestion.load(core, conn, ia, aiqid);\n assertNull(iaq);\n \n // Dispose test data\n assertTrue(aq.delete(conn));\n assertTrue(qc.delete(conn));\n assertTrue(tc.delete(conn));\n assertTrue(q.delete(conn));\n assertTrue(tq.delete(conn));\n \n assertTrue(ia.delete(conn));\n assertTrue(ass.delete(conn));\n assertTrue(m.delete(conn));\n assertTrue(u.delete(conn));\n \n conn.disconnect();\n }", "title": "" }, { "docid": "42f3abdf83b2f4fd9e2e363eb7e7e519", "score": "0.47647256", "text": "public java.lang.String getMutationPrefix () {\r\n\t\treturn mutationPrefix;\r\n\t}", "title": "" }, { "docid": "545114a35f4eac1dac2ed535ed701e20", "score": "0.4760283", "text": "interface ExposesUpdatingClause extends ExposesDelete, ExposesMerge, ExposesSetAndRemove {\n\t}", "title": "" }, { "docid": "241f98d1f6affdbb402a8331e7fe7fe3", "score": "0.47479796", "text": "binlog.BinlogOuterClass.TableMutation getMutations(int index);", "title": "" }, { "docid": "ac41836a85b53f1a32d9984bc9d984d5", "score": "0.4734376", "text": "@Override\n public Durability useDurability() {\n Durability durability = Durability.USE_DEFAULT;\n for (Mutation m : mutations) {\n if (m.getDurability().ordinal() > durability.ordinal()) {\n durability = m.getDurability();\n }\n }\n return durability;\n }", "title": "" }, { "docid": "923f59a2e80d6334e662a82fa86c1c10", "score": "0.47301972", "text": "public interface ReadOnlyCliTutors {\n\n /**\n * Returns an unmodifiable view of the tutors list.\n * This list will not contain any duplicate tutors.\n */\n ObservableList<Tutor> getTutorList();\n\n /**\n * Returns an unmodifiable view of the students list.\n * This list will not contain any duplicate students.\n */\n ObservableList<Student> getStudentList();\n}", "title": "" }, { "docid": "d62db4203c8f0813e41f73dd98d95269", "score": "0.4729196", "text": "public interface Transaction \n extends java.io.Serializable, Immutable\n{\n Timestamp getTimestamp();\n}", "title": "" }, { "docid": "eaaae9c3d7aab80710aceea5e4b55bce", "score": "0.4727405", "text": "public interface IModificationChange {\r\n\r\n}", "title": "" }, { "docid": "a8981cdc23da3a8392d1f51b06a40801", "score": "0.4719781", "text": "interface ModificationCounter {\n\n /**\n * Returns true if the counter was modified since the given value (if {@link #notifyModified()}\n * has been invoked); false — otherwise.\n *\n * @param lastValue the last value of the counter\n */\n boolean isModifiedSince(int lastValue);\n\n /**\n * Returns the current value of the counter. No assumptions must be made on how it changes\n * when a notification is received.\n */\n int getCurrentValue();\n\n /**\n * Notifies this counter that the source object is modified, updating its current value.\n *\n * @throws IllegalStateException if this counter corresponds to a read-only (immutable) object,\n * i.e., must reject any modification events\n */\n void notifyModified();\n\n /**\n * Creates a modification counter for a collection using the given access.\n *\n * @param access a database access on which the collection needing the modification counter\n * is based\n */\n static ModificationCounter forAccess(Access access) {\n if (access.canModify()) {\n return new IncrementalModificationCounter();\n } else {\n return ImmutableModificationCounter.INSTANCE;\n }\n }\n}", "title": "" }, { "docid": "bebfeaf82585880657980f0eb1cbe462", "score": "0.47196504", "text": "Update withCoolAccess(Boolean coolAccess);", "title": "" }, { "docid": "a8e7b0c53a48b52187a00474365aa654", "score": "0.47154197", "text": "public binlog.BinlogOuterClass.TableMutationOrBuilder getMutationsOrBuilder(\n int index) {\n return mutations_.get(index);\n }", "title": "" }, { "docid": "d2bdf0e0417b4528685d331652d7eb71", "score": "0.4714451", "text": "public List<MethodNode> generateAccessors() {\n/* 1213 */ for (AccessorInfo accessor : this.accessors) {\n/* 1214 */ accessor.locate();\n/* */ }\n/* */ \n/* 1217 */ List<MethodNode> methods = new ArrayList<MethodNode>();\n/* */ \n/* 1219 */ for (AccessorInfo accessor : this.accessors) {\n/* 1220 */ MethodNode generated = accessor.generate();\n/* 1221 */ getTarget().addMixinMethod(generated);\n/* 1222 */ methods.add(generated);\n/* */ } \n/* */ \n/* 1225 */ return methods;\n/* */ }", "title": "" }, { "docid": "b4b9862e6bfc1c2736904de9b11f4365", "score": "0.4714418", "text": "public interface ReadOnlyXpire {\n /**\n * Returns an unmodifiable view of the item list.\n * This list will not contain any duplicate items.\n */\n ObservableList<Item> getItemList();\n}", "title": "" }, { "docid": "bf2ac8aa760f7451b948a6ba12e56bb5", "score": "0.47109985", "text": "public interface ModifiableV3 {\n\n /**\n * Modifies the instance and assigns values from the input.\n * \n * @param input\n * @throws Exception\n */\n public void modify(ResourceInput input) throws Exception;\n\n /**\n * The ResourceInput must be prefilled with the values of the Resource. This\n * resource is used to do modifications and is then passed back to the\n * modify method.\n * \n * @return ResourceInput\n * @throws Exception\n */\n public ResourceInput getResourceInputForModification() throws Exception;\n \n\n}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "4eec9618edc64668343c64699a3383bd", "score": "0.0", "text": "@Override\n\t public android.view.MenuItem setShowAsActionFlags(int actionEnum) {\n\t return null;\n\t }", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0c69424878be03e50f19e2ca61ef640b", "score": "0.68002176", "text": "@Override\r\n\tpublic void leggi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b6c961814c14fa02879570fd7e65ac5", "score": "0.6769489", "text": "@Override\r\n\tpublic void scarica() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "1e34493fdecb11f6bbc24ef12eea2281", "score": "0.6386922", "text": "public void mo27791d() {\n }", "title": "" }, { "docid": "051f88f1f94e36fab8ec66de1946f037", "score": "0.6287329", "text": "public void mo27794g() {\n }", "title": "" }, { "docid": "db4b95a4460fb609bcd3716b1a4b3e23", "score": "0.6283629", "text": "@Override\r\n\tpublic void compra() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5eb303064635f4909e997c3effe2511d", "score": "0.6265152", "text": "public void mo27792e() {\n }", "title": "" }, { "docid": "fdf6bcd763ea5f5b221fd5a7669d1afb", "score": "0.6262988", "text": "public void mo28805a() {\n }", "title": "" }, { "docid": "381ca210fc42b87f9b8af474719578a0", "score": "0.62538177", "text": "public void mo41489c() {\n }", "title": "" }, { "docid": "203e120e0c17c7a390717d0ca9ff147a", "score": "0.6252656", "text": "public void mo11316JX() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0b319072f0ae7225e83791b70ea23079", "score": "0.6200546", "text": "@Override\r\n\tpublic void ghhvhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9cfdb7a953eedd93829d98c1649d8fa2", "score": "0.6147232", "text": "@Override\r\n\tprotected void rodape() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a1d358ef8dde60480477b5c8b2359c6d", "score": "0.611178", "text": "@Override\n\tpublic void compra() {\n\t\t\n\t}", "title": "" }, { "docid": "81e2e665536902ef3310e7a034f112ea", "score": "0.6104965", "text": "@Override\r\n\tpublic void apagar()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "e6068b0200c883e42ca4379e8b4390f4", "score": "0.61018884", "text": "@Override\n\tpublic void ihtiyacGidermek() {\n\t\t\n\t}", "title": "" }, { "docid": "222e7b9d44422cda9de5df0085949df1", "score": "0.60770625", "text": "public void mo27793f() {\n }", "title": "" }, { "docid": "6fc1bc8405449cd5caa1d0d4cc253eff", "score": "0.6024395", "text": "public void mo27783b() {\n }", "title": "" }, { "docid": "7de2b9a1638739d8a552ea81162374f7", "score": "0.6023624", "text": "@Override\r\n\tpublic void trasation() {\n\t\t \r\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "39970aed3dc3a7bed24f03fb23731e78", "score": "0.6010486", "text": "@Override\r\n\tpublic void laufen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a46f6ccc5a2230632919d59213754a52", "score": "0.59971493", "text": "@Override\n\tpublic void grafikCizme() {\n\t\t\n\t}", "title": "" }, { "docid": "5a91ef0aa6990fc22e6e46d34355029e", "score": "0.59874135", "text": "@Override public void accionar() {\n\n }", "title": "" }, { "docid": "d673691f42a5a36d5d7e5d4f81aec55e", "score": "0.59567183", "text": "@Override\n\tpublic void reveiller() {\n\t\t\n\t}", "title": "" }, { "docid": "b048ca4f20a40ca0411a5330c06ce3d5", "score": "0.5952113", "text": "@Override\n\tpublic void infinteBatery() {\n\t\t\n\t}", "title": "" }, { "docid": "2bd910d11f3b18a5106b970f6e7e4c64", "score": "0.59445894", "text": "@Override\n\tpublic void Consulter() {\n\t\t\n\t}", "title": "" }, { "docid": "fa5eb14703b2a28ee4847f692d01e39d", "score": "0.59407693", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a94b5981fe7c5ead7e5156e8e7cb9cb5", "score": "0.59315324", "text": "@Override\r\n\tpublic void attribute() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9fe10a8f8c056afc50123cc1485a6fdc", "score": "0.5927387", "text": "@Override\n\tvoid comision() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.59262717", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "ddafdd56d6d4b904d170e3608181850c", "score": "0.5918087", "text": "private void getArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.59013426", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.58881694", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.58849895", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0449d2500abd0eb1624d7773d0cf88dd", "score": "0.5881909", "text": "@Override\n\tpublic void ponisti() {\n\n\t}", "title": "" }, { "docid": "a21e7f5bc4a152c3cd6818af1be8ca7f", "score": "0.5877803", "text": "@Override\n\tpublic void accionar() {\n\t\t\n\t}", "title": "" }, { "docid": "b623306824ebd023ab9bf4fc0a66aaf3", "score": "0.5876838", "text": "public void mo5928c() {\n }", "title": "" }, { "docid": "8dbedd9965a878a9a7db1c5deb6a28cd", "score": "0.5871888", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854053", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.5838742", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "4cc23ec21a978357a8a06db5bbae181c", "score": "0.5834908", "text": "@Override\n\t\tpublic void beSporty() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f02c338eb46eb5cdf9d19504df309595", "score": "0.58264196", "text": "public void mo28814l() {\n }", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58237594", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "e8b6a10ed01f50fbe15d66c44e6b001f", "score": "0.58043116", "text": "public void mo28809c() {\n }", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "1a69d70e6e0ab03826da865edbaa2710", "score": "0.5802549", "text": "@Override\r\n public void init() {\n \r\n }", "title": "" }, { "docid": "89685a97be106c5e65406e42741d0ec3", "score": "0.5795489", "text": "public void mo1383a() {\n }", "title": "" }, { "docid": "de5480604ae54822ca3e3427911bb2b8", "score": "0.57932764", "text": "@Override\r\n public void muestra() {\r\n \r\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "812af2363c26b56566247f6bee5688a9", "score": "0.57931143", "text": "@Override\r\n\tprotected void cabecalho() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.5789139", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57740533", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "68ced9354b4e22b6351af0853a611a6c", "score": "0.57685226", "text": "@Override\n\tprotected void initDataReturn() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "4dad4a53c5b94a389679f4aa74f10e8b", "score": "0.576086", "text": "@Override\r\n\tprotected void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.57533413", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "393237de9c40b0b47e9d2c845ed92ee5", "score": "0.57512337", "text": "public void mo45857a() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "791f5ad29d019a14317f5d7e2a069c65", "score": "0.57465565", "text": "@Override\n\tpublic void aprovar() {\n\n\t}", "title": "" }, { "docid": "60492bcc1b7f57299660c3da0f16ab25", "score": "0.57418126", "text": "@Override\n\tpublic void icmek() {\n\t\t\n\t}", "title": "" }, { "docid": "da5e9df869731b2ae1dfbbfdf12b8cd8", "score": "0.5735176", "text": "public void mo3351d() {\n }", "title": "" }, { "docid": "a2125c0cb9324db88e7561e4a64c5e39", "score": "0.5734662", "text": "@Override\n\tpublic void etiquetas() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "24127c1aaba5ab942240f052757a1aae", "score": "0.5722859", "text": "@Override\n \tpublic void getStatus() {\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2097402406ed48de16ed7ccfe28a85b4", "score": "0.57133764", "text": "public void mo5927b() {\n }", "title": "" }, { "docid": "03143ee9b26aa8a7d43576d479e4400a", "score": "0.5709887", "text": "public final void mo55685Zy() {\n }", "title": "" }, { "docid": "2fbf66fc78447a45c3f7ecb3924ab4b4", "score": "0.57051754", "text": "@Override\n public void initValue() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "e1834e089677c260b4af3324391b3b67", "score": "0.5698954", "text": "public final void mo62463l() {\n }", "title": "" }, { "docid": "b42b054dfaac7d94036bce6ecf272a0e", "score": "0.56988037", "text": "private void pepe() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5676146", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "86084419dce04a98c3acda092fe2ae36", "score": "0.5674851", "text": "@Override\r\n\t\t\tpublic void refresh() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.566569", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "aabd8322198752312581d89a3059f204", "score": "0.56625766", "text": "@Override\n \tpublic void create() {\n\n \t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "29f3cdbb287e40f98a8d2f36bba2f27b", "score": "0.56487125", "text": "@Override\n\tpublic int eixos() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "ce71f38a65a1456052420d8bdcb81b78", "score": "0.5647971", "text": "@Override\r\n\tprotected void reset()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "title": "" }, { "docid": "70d974abd496677a87c8807bf56e0a5b", "score": "0.56434053", "text": "@Override\n public void desenhar() {\n \n }", "title": "" }, { "docid": "dbdc1deb5da4aee65d17f30f15f26778", "score": "0.56416714", "text": "private void getParentArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "1f81bdf0bcfef346d61145fbc2986fa6", "score": "0.56412745", "text": "@Override\r\n public String getName() {\n return null;\r\n }", "title": "" }, { "docid": "acbb02f47467f45f5ab2c3b2e5f7545d", "score": "0.5640882", "text": "public final void mo62452a() {\n }", "title": "" } ]
320d3d3096eca85154b8efda3148c7cf
// cria o anexo 1. EmailAttachment anexo1 = new EmailAttachment(); anexo1.setPath("C:\\Users\\Ghost\\eclipseworkspace\\projetofiscalloja\\utilitarios_Projeto\\cache_email\\teste.txt"); // caminho do arquivo (RAIZ_PROJETO/teste/teste.txt) anexo1.setDisposition(EmailAttachment.ATTACHMENT); anexo1.setDescription("Exemplo de arquivo anexo"); anexo1.setName("teste.txt"); // cria o anexo 2. EmailAttachment anexo2 = new EmailAttachment(); anexo2.setPath("C:\\Users\\Ghost\\eclipseworkspace\\projetofiscalloja\\utilitarios_Projeto\\cache_email\\teste2.txt"); // caminho do arquivo (RAIZ_PROJETO/teste/teste2.jsp) anexo2.setDisposition(EmailAttachment.ATTACHMENT); anexo2.setDescription("Exemplo de arquivo anexo"); anexo2.setName("teste2.txt"); configura o email
[ { "docid": "372f8f4a86c6e73d362637a9917222e7", "score": "0.69277555", "text": "public void enviaEmailComAnexo() throws EmailException {\n\t\tMultiPartEmail email = new MultiPartEmail();\n\t\temail.setHostName(server_smtp); // o servidor SMTP para envio do e-mail\n\t\temail.addTo(destinatario_email, destinatario_nome); // destinat�rio\n\t\temail.setFrom(emitente_email, emitente_nome); // remetente\n\t\temail.setSubject(titulo); // assunto do e-mail\n\t\temail.setMsg(msg); // conteudo do e-mail\n\t\temail.setAuthentication(emitente_email, emitente_passwd);\n\t\temail.setSmtpPort(465);\n\t\temail.setSSL(true);\n\t\temail.setTLS(true);\n\n\t\t// adiciona arquivo(s) anexo(s)\n//\t\temail.attach(anexo1);\n//\t\temail.attach(anexo2);\n\t\tfor (EmailAttachment emailAttachment : listAnexo) {\n\t\t\temail.attach(emailAttachment);\n\t\t}\n\t\t// envia o email\n\t\temail.send();\n\t}", "title": "" } ]
[ { "docid": "bce9dc68caeb2540e682b3faa6948e85", "score": "0.66973126", "text": "@Test(timeout = 2000)\n public void testEmailDAO() throws SQLException, IOException {\n LOG.info(\"Testing testEmailDAO\");\n\n String from = \"send.1541986@gmail.com\";\n String[] to = new String[]{\"receive.1541986@gmail.com\"};\n String[] cc = new String[]{\"other.1541986@gmail.com\"};\n String[] bcc = null;\n String subject = \"TEST EMAIL \";\n String textMessage = \"The Director of a software company proudly announced that a flight software developed by the company was installed in an airplane and the airlines was offering free first flights to the members of the company. “Who are interested?” the Director asked. Nobody came forward. Finally, one person volunteered. The brave Software Tester stated, 'I will do it. I know that the airplane will not be able to take off.'\";\n String htmlMessage = \"<!DOCTYPE html><html><head><title>Page Title</title></head><body><h1>To tell somebody that he is wrong is called criticism. To do so officially is called testing.</h1><img src='cid:why.jpg'></body></html>\";\n AttachmentBean[] ab;\n\n AttachmentBean picAttach = null;\n AttachmentBean picAttach2 = null;\n AttachmentBean picAttach3 = null;\n AttachmentBean picEmb = null;\n try {\n\n //attachment\n File file = new File(\"coffee.jpg\");\n byte[] fileContent = Files.readAllBytes(file.toPath());\n picAttach = new AttachmentBean(fileContent, file.getName(), false);\n\n //attachment\n file = new File(\"cat.jpg\");\n byte[] fileContent2 = Files.readAllBytes(file.toPath());\n picAttach2 = new AttachmentBean(fileContent2, file.getName(), false);\n\n //attachment\n file = new File(\"fine.jpg\");\n byte[] fileContent4 = Files.readAllBytes(file.toPath());\n picAttach3 = new AttachmentBean(fileContent4, file.getName(), false);\n\n //embedded\n file = new File(\"why.jpg\");\n byte[] fileContent3 = Files.readAllBytes(file.toPath());\n picEmb = new AttachmentBean(fileContent3, file.getName(), true);\n } catch (IOException ex) {\n LOG.debug(\"testEmailDAO\", ex.getMessage());\n throw ex;\n }\n ab = new AttachmentBean[]{picAttach, picEmb, picAttach3, picAttach2};\n\n EmailBean test = new EmailBean(from, to, cc, bcc, subject, textMessage, htmlMessage, ab, \"MyFolder\", new Timestamp(System.currentTimeMillis()));\n\n EmailDAO instance = new EmailDAO();\n instance.pushEmail(test);\n EmailBean[] result = instance.pullEmail();\n\n assertEquals(test, result[result.length - 1]);\n }", "title": "" }, { "docid": "505cc922885aaea51afdfee94ded6502", "score": "0.63727677", "text": "public static Message prepareMessage(Session session, String Email, String recepient, File file) {\r\n try {\r\n // The given Email address is getting converted into an \"InternetAddress\" in order to make it\r\n // usable.\r\n MimeMessage message = new MimeMessage(session);\r\n message.setFrom(new InternetAddress(Email));\r\n // The given recepient is getting used as the primary recepient.\r\n message.setRecipient(Message.RecipientType.TO, new InternetAddress(recepient));\r\n message.setSubject(SubjectEmail);\r\n // Splitting up the Email to two different part in order to attach a file.\r\n try {\r\n MimeMultipart mimeMultipart = new MimeMultipart();\r\n // Text part\r\n MimeBodyPart mimeBodyPart1 = new MimeBodyPart();\r\n // Setting the Text\r\n mimeBodyPart1.setText(TextEmail);\r\n // Adding the text part to the main part\r\n mimeMultipart.addBodyPart(mimeBodyPart1);\r\n // Attached File part\r\n if (AppendFile != null) {\r\n // File part\r\n MimeBodyPart mimeBodyPart2 = new MimeBodyPart();\r\n // Adding file\r\n mimeBodyPart2.attachFile(AppendFile);\r\n // Adding the file part to the main part\r\n mimeMultipart.addBodyPart(mimeBodyPart2);\r\n }\r\n // Adding all of the parts to the message.\r\n message.setContent(mimeMultipart);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return message;\r\n } catch (MessagingException e) {\r\n e.printStackTrace();\r\n System.out.println(\"Message couldn't get created!\");\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "311d7a643377ed7700da8756e485325a", "score": "0.6314664", "text": "private void enviarMail(ArrayList<String> mails, IDfSysObject dmcDoc) throws Exception {\n\t try{\r\n\t\tString fecha = dmcDoc.getTime(\"r_creation_date\").toString();\r\n\t\t\r\n\t\tString url = props.get(\"url\")+dmcDoc.getId(\"r_object_id\");\r\n\t\t\r\n\t\t//String path = dmcDoc.getString(\"r_folder_path\");\r\n\t\t\r\n\t\tString nombre = dmcDoc.getString(\"object_name\");\r\n\t\t\r\n\t\tlogger.debug(\"Documento: \"+nombre);\r\n\t\t\r\n\t\tString asunto = \"Se ha publicado un nuevo documento de fichas tecnicas: \"+nombre;\r\n\t\t\r\n\t\tString cuerpo = \"El día \"+fecha+\" se ha publicado en \"+ url +\" el documento \"+nombre+\".\";\r\n\t\t\r\n\t String to = \"\";\r\n\t \r\n\r\n\t // Sender's email ID needs to be mentioned\r\n\t //String user = props.get(\"userSMTP\");\r\n\r\n\t // Assuming you are sending email from localhost\r\n\t String host = props.get(\"hostSMTP\");\r\n\t \r\n\t //String pass = props.getEncrypted(\"passSMTP\");\r\n\t \r\n\t String from = props.get(\"mailSMTP\");\r\n\r\n\t // Get system properties\r\n\t Properties properties = System.getProperties();\r\n\r\n\t // Setup mail server\r\n\t properties.setProperty(\"mail.smtp.host\", host);\r\n\t //properties.setProperty(\"mail.smtp.user\", user);\r\n\t //properties.setProperty(\"mail.smtp.password\", pass);\r\n\t //properties.setProperty(\"mail.smtp.auth\", \"true\"); \r\n\t \r\n\t /*Authenticator auth = new Authenticator() {\r\n \t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n \t\t\t\tString user = props.get(\"userSMTP\");\r\n \t\t\t\tString pass = \"\";\r\n \t\t\t\ttry{\r\n \t\t\t\t\tpass = props.getEncrypted(\"passSMTP\");\r\n \t\t\t\t}\r\n \t\t\t\tcatch(Exception e)\r\n \t\t\t\t{\r\n \t\t\t\t\tlogger.debug(\"Error: \",e);\r\n \t\t\t\t}\r\n\t\t\t\treturn new PasswordAuthentication(user, pass);\r\n\t\t\t}\r\n\t\t };*/\r\n\r\n\t // Get the default Session object.\r\n\t Session session = Session.getInstance(properties,null);\r\n\r\n\t // Create a default MimeMessage object.\r\n\t MimeMessage message = new MimeMessage(session);\r\n\r\n\t // Set From: header field of the header.\r\n\t message.setFrom(new InternetAddress(from));\r\n\r\n\t // Set Subject: header field\r\n\t message.setSubject(asunto);\r\n\r\n\t // Now set the actual message\r\n\t message.setText(cuerpo);\r\n\t \r\n\t for(String mail:mails)\r\n\t {\r\n\t \t to = mail;\r\n\t \t logger.debug(\"Mail: \"+mail);\r\n\t // Set To: header field of the header.\r\n\t message.addRecipient(Message.RecipientType.TO,\r\n\t new InternetAddress(to));\r\n\r\n\t // Send message\r\n\t Transport.send(message);\r\n\t logger.debug(\"Sent message successfully....\");\r\n\t }\r\n\t }catch (Exception e) {\r\n\t \t throw e;\r\n\t \t \r\n\t }\r\n\t}", "title": "" }, { "docid": "5ab87c2dfb0c0363cbf608317312eb28", "score": "0.61794245", "text": "public static void sendMultipleAttachments(String host, String from, String recipients[],\n String subject,\tString message,String filename[],String displayName[])throws Exception\n\n {\n\n try\n {\n //Set the host smtp address\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", host);\n\n // create some properties and get the default Session\n Session session = Session.getDefaultInstance(props, null);\n //session.setDebug(debug);\n\n // create a message\n Message msg = new MimeMessage(session);\n\n // set the from and to address\n InternetAddress addressFrom = new InternetAddress(from);\n msg.setFrom(addressFrom);\n\n //set recipients\n InternetAddress[] addressTo = new InternetAddress[recipients.length];\n for (int i = 0; i < recipients.length; i++)\n {\n addressTo[i] = new InternetAddress(recipients[i]);\n }\n msg.setRecipients(Message.RecipientType.TO, addressTo);\n\n\n // Setting the Subject\n msg.setSubject(subject);\n\n // Create the message part\n BodyPart messageBodyPart = new MimeBodyPart();\n\n // Fill the message\n messageBodyPart.setText(message);\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n\n // add attachment\n for (int iFile = 0; iFile < filename.length; iFile++)\n {\n \tmessageBodyPart = new MimeBodyPart();\n \tDataSource source = new FileDataSource(filename[iFile]);\n \tmessageBodyPart.setDataHandler(new DataHandler(source));\n \tmessageBodyPart.setFileName(displayName[iFile]);\n \tmultipart.addBodyPart(messageBodyPart);\n\t\t}\n\n // Put parts in message\n msg.setContent(multipart);\n //send message\n Transport.send(msg);\n }\n catch (MessagingException me)\n {\n throw new Exception(\"EmailManager: sendMultipleAttachments()\" + me);\n }\n\n\n\n\n }", "title": "" }, { "docid": "363d4974f783a372e7c15fa95f797dab", "score": "0.6109964", "text": "@Override\n public void sendSimpleMessageUsingTemplateAndAttachment(MailObject mailObject, String pathToAttachment, String name, String templateName, String template) {\n\n MimeMessage msg = emailSender.createMimeMessage();\n\n // true = multipart message\n MimeMessageHelper helper = null;\n try {\n helper = new MimeMessageHelper(msg, true, \"UTF-8\");\n helper.setTo(mailObject.getMailTo());\n helper.setCc(mailObject.getMailCc());\n //helper.setFrom(from);\n helper.setSubject(mailObject.getMailSubject());\n\n String content = mailContentBuilder.build(mailObject.getMailContent(), template);\n helper.setText(content, true);\n\n // default = text/plain\n //helper.setText(\"Check attachment for image!\");\n\n // true = text/html\n //helper.setText(\"<h1>Check attachment for image!</h1>\", true);\n helper.addAttachment(name, new ClassPathResource(pathToAttachment));\n\n emailSender.send(msg);\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n\n /*String message = mailObject.getText();\n\n MimeMessagePreparator messagePreparator = mimeMessage -> {\n MimeMessageHelper messageHelper = new MimeMessageHelper(mimeMessage);\n messageHelper.setFrom(\"whataboutme.tn@gmail.com\");\n messageHelper.setTo(mailObject.getTo());\n messageHelper.setSubject(mailObject.getSubject());\n\n String content = mailContentBuilder.build(message);\n messageHelper.setText(content, true);\n\n\n FileSystemResource file = new FileSystemResource(new File(pathToAttachment));\n messageHelper.addAttachment(\"Invoice\", file);\n };\n try {\n emailSender.send(messagePreparator);\n } catch (MailException e) {\n // runtime exception; compiler will not force you to handle it\n }*/\n\n }", "title": "" }, { "docid": "f949a8202894ac466f9114c656cbc932", "score": "0.5979898", "text": "private void setAttachment(MessageContext messageContext, String emailIndex, String attachmentIndex,\n List<EmailMessage> emailMessages) {\n\n if (log.isDebugEnabled()) {\n log.debug(format(\"Retrieving email attachment for email at index %s and attachment at index %s...\",\n emailIndex, attachmentIndex));\n }\n try {\n EmailMessage emailMessage = EmailUtils.getEmail(emailMessages, emailIndex);\n Attachment attachment = EmailUtils.getEmailAttachment(emailMessage, attachmentIndex);\n setProperties(messageContext, attachment);\n PayloadUtils.setContent(((Axis2MessageContext) messageContext).getAxis2MessageContext(),\n attachment.getContent(), attachment.getContentType());\n } catch (InvalidConfigurationException e) {\n EmailUtils.setErrorsInMessage(messageContext, Error.INVALID_CONFIGURATION);\n handleException(ERROR, e, messageContext);\n } catch (ContentBuilderException e) {\n EmailUtils.setErrorsInMessage(messageContext, Error.RESPONSE_GENERATION);\n handleException(\"Error occurred during setting attachment content.\", e, messageContext);\n }\n }", "title": "" }, { "docid": "99ba76bfd3069a6376ab56ed0f15ea70", "score": "0.595962", "text": "protected static void sendMultipartMessageHtml( MailItem mail, Transport transport, Session session ) throws MessagingException\n {\n Message msg = prepareMessage( mail, session );\n msg.setHeader( HEADER_NAME, HEADER_VALUE );\n\n // Creation of the root part containing all the elements of the message\n MimeMultipart multipart = CollectionUtils.isEmpty( mail.getFilesAttachement( ) ) ? new MimeMultipart( MULTIPART_RELATED ) : new MimeMultipart( );\n\n // Creation of the html part, the \"core\" of the message\n BodyPart msgBodyPart = new MimeBodyPart( );\n msgBodyPart.setDataHandler( new DataHandler( new ByteArrayDataSource( mail.getMessage( ),\n AppPropertiesService.getProperty( PROPERTY_MAIL_TYPE_HTML ) + AppPropertiesService.getProperty( PROPERTY_CHARSET ) ) ) );\n multipart.addBodyPart( msgBodyPart );\n\n if ( mail.getUrlsAttachement( ) != null )\n {\n ByteArrayDataSource urlByteArrayDataSource;\n\n for ( UrlAttachment urlAttachement : mail.getUrlsAttachement( ) )\n {\n urlByteArrayDataSource = convertUrlAttachmentDataSourceToByteArrayDataSource( urlAttachement );\n\n if ( urlByteArrayDataSource != null )\n {\n msgBodyPart = new MimeBodyPart( );\n // Fill this part, then add it to the root part with the\n // good headers\n msgBodyPart.setDataHandler( new DataHandler( urlByteArrayDataSource ) );\n msgBodyPart.setHeader( HEADER_CONTENT_LOCATION, urlAttachement.getContentLocation( ) );\n multipart.addBodyPart( msgBodyPart );\n }\n }\n }\n\n // add File Attachement\n if ( mail.getFilesAttachement( ) != null )\n {\n for ( FileAttachment fileAttachement : mail.getFilesAttachement( ) )\n {\n String strFileName = fileAttachement.getFileName( );\n byte [ ] bContentFile = fileAttachement.getData( );\n String strContentType = fileAttachement.getType( );\n ByteArrayDataSource dataSource = new ByteArrayDataSource( bContentFile, strContentType );\n msgBodyPart = new MimeBodyPart( );\n msgBodyPart.setDataHandler( new DataHandler( dataSource ) );\n msgBodyPart.setFileName( strFileName );\n msgBodyPart.setDisposition( CONSTANT_DISPOSITION_ATTACHMENT );\n multipart.addBodyPart( msgBodyPart );\n }\n }\n\n msg.setContent( multipart );\n\n sendMessage( msg, transport );\n }", "title": "" }, { "docid": "a2ccfb96bfc702b64237765c417a4071", "score": "0.59194326", "text": "private void sendEmail() {\n try {\n sender.addAttachment(newFile.getPath());\n } catch (Exception e) {\n }\n try {\n // Add subject, Body, your mail Id, and receiver mail Id.\n sender.sendMail(titleEditText.getText().toString(), xmlForEmail, \"tiplinesenderemail@gmail.com\", \"tip@airlineamb.org\");\n }\n catch (Exception ex) {\n ex.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "6e46e4d828291bbc90e6dbabf37a67ba", "score": "0.59074944", "text": "public static void getAttachmentwithmail(List<MessagePart> parts,Gmail service,String messageId) throws IOException {\n for (MessagePart part : parts) {\n if (part.getFilename() != null && part.getFilename().length() > 0) {\n String filename = part.getFilename();\n String attId = part.getBody().getAttachmentId();\n MessagePartBody attachPart = service.users().messages().attachments().\n get(\"me\", messageId, attId).execute();\n\n Base64 base64Url = new Base64(true);\n byte[] fileByteArray = base64Url.decodeBase64(attachPart.getData());\n FileOutputStream fileOutFile =\n new FileOutputStream(\"directory_to_store_attachments\" + filename);\n fileOutFile.write(fileByteArray);\n fileOutFile.close();\n }\n }\n }", "title": "" }, { "docid": "c069edd33c0568b4f44d77be2a61a173", "score": "0.5883475", "text": "@RequestMapping(value= \"/sendmail\", method= RequestMethod.POST)\n @ResponseBody\n\tpublic ResponseEntity<?> sendMail(@RequestBody Email email)\n\t\t\tthrows MessagingException, IOException, InterruptedException{\n \t\n \t MimeMessage msg = javaMailSender.createMimeMessage();\n\n // true = multipart message\n MimeMessageHelper helper = new MimeMessageHelper(msg, true);\n \n helper.setTo(email.getEmail());\n\n helper.setSentDate(new Date());\n helper.setSubject(email.getObjet());\n \n \n if(email.getAttach().equals(\"\")) {\n \t helper.setText(email.getBody(), true);\n \t \n }else {\n \t \n \t Thread.sleep(2000);\n \t signe.signeFichier(email.getAttach()); \n \t// signe.signeFichier(\"C:\\\\Users\\\\HP\\\\Downloads\\\\input.pdf\"); \n \t \n \t // creates message part\n MimeBodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setContent(email.getBody(), \"text/html\");\n \n // creates multi-part\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n \n Thread.sleep(3000);\n // attachment\n messageBodyPart = new MimeBodyPart();\n String filename = \"C:\\\\Users\\\\HP\\\\Downloads\\\\output.pdf\";\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(filename);\n multipart.addBodyPart(messageBodyPart);\n\n // Send the complete message parts\n msg.setContent(multipart);\n \t\n }\n \n try {\n \t\n \t javaMailSender.send(msg);\n \t \n \t if(!email.getAttach().equals(\"\")) {\n \t\t //File f= new File(email.getAttach()); \n \t\t File f= new File(\"C:\\\\Users\\\\HP\\\\Downloads\\\\input.pdf\");\n \t\t \n \t\t f.delete();\n \t\t File f1= new File(\"C:\\\\Users\\\\HP\\\\Downloads\\\\output.pdf\"); \n \t\t f1.delete();\n \t }\n \t \n \treturn new ResponseEntity<Void>(HttpStatus.OK);\n \t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\treturn new ResponseEntity<Void>(HttpStatus.BAD_REQUEST);\n\t\t}\n }", "title": "" }, { "docid": "5a393c2eccbf13374890073dadb83b5b", "score": "0.585671", "text": "@SuppressWarnings(\"unchecked\")\r\n\tprivate void addAttachments(Multipart multiPart, Object context) throws Exception\r\n\t{\r\n\t\tif(context == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tMailTemplateConfiguration mailTemplateConfiguration = mailTemplateConfigService.getMailTemplateConfiguration(context.getClass());\r\n\r\n\t\tif(mailTemplateConfiguration == null)\r\n\t\t{\r\n\t\t\tlogger.warn(\"As specified context is not defined as mail template configuration, no attachments will be added. Context type: \" + context.getClass().getName());\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tSet<MailTemplateConfiguration.Attachment> attachmentConfigs = mailTemplateConfiguration.getAttachments();\r\n\r\n\t\tif(attachmentConfigs == null || attachmentConfigs.isEmpty())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tFileDataSource fileSource = null;\r\n\t\tMimeBodyPart fileBodyPart = null;\r\n\r\n\t\tObject value = null;\r\n\t\tString attachmentName = null;\r\n\r\n\t\tfor(MailTemplateConfiguration.Attachment attachment : attachmentConfigs)\r\n\t\t{\r\n\t\t\tvalue = ReflectionUtils.getNestedFieldValue(context, attachment.getField());\r\n\r\n\t\t\tif(value == null)\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tlogger.debug(\"Adding attachment from field - \" + attachment.getField());\r\n\t\t\t\r\n\t\t\tCollection<FileAttachment> fileAttachments = null;\r\n\t\t\t\r\n\t\t\tif(value instanceof File)\r\n\t\t\t{\r\n\t\t\t\tfileAttachments = Arrays.asList( new FileAttachment((File) value, attachment.getName()) );\r\n\t\t\t}\r\n\t\t\telse if(value instanceof Collection)\r\n\t\t\t{\r\n\t\t\t\tfileAttachments = (Collection<FileAttachment>) value;\r\n\t\t\t}\r\n\t\t\telse if(value instanceof FileAttachment)\r\n\t\t\t{\r\n\t\t\t\tfileAttachments = Arrays.asList((FileAttachment) value);\r\n\t\t\t}\r\n\t\t\telse if(value instanceof String)\r\n\t\t\t{\r\n\t\t\t\tFile fieldFile = File.createTempFile(attachment.getName(), \".tmp\");\r\n\t\t\t\tFileUtils.write(fieldFile, (String) value);\r\n\t\t\t\t\r\n\t\t\t\tfileAttachments = Arrays.asList( new FileAttachment(fieldFile, attachment.getName()) );\r\n\t\t\t}\r\n\t\t\telse if(value instanceof byte[])\r\n\t\t\t{\r\n\t\t\t\tFile fieldFile = File.createTempFile(attachment.getName(), \".tmp\");\r\n\t\t\t\tFileUtils.writeByteArrayToFile(fieldFile, (byte[]) value);\r\n\t\t\t\t\r\n\t\t\t\tfileAttachments = Arrays.asList( new FileAttachment(fieldFile, attachment.getName()) );\r\n\t\t\t}\r\n\t\t\telse if(value instanceof Image)\r\n\t\t\t{\r\n\t\t\t\tattachmentName = attachment.getName();\r\n\r\n\t\t\t\tFile fieldFile = File.createTempFile(attachment.getName(), \".tmp\");\r\n\t\t\t\tString imgType = attachmentName.substring(attachmentName.lastIndexOf('.') + 1, attachmentName.length());\r\n\r\n\t\t\t\tif(!(value instanceof RenderableImage))\r\n\t\t\t\t{\r\n\t\t\t\t\tImage img = (Image) value;\r\n\t\t\t\t\tBufferedImage bimg = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_4BYTE_ABGR);\r\n\t\t\t\t\tbimg.getGraphics().drawImage(img, 0, 0, null);\r\n\r\n\t\t\t\t\tvalue = bimg;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tImageIO.write((RenderedImage) value, imgType.toLowerCase(), fieldFile);\r\n\t\t\t\t\r\n\t\t\t\tfileAttachments = Arrays.asList( new FileAttachment(fieldFile, attachment.getName()) );\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tthrow new InvalidStateException(\"Field {}.{} is marked as attachment with unsupported type\", context.getClass().getName(), attachment.getField());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint index = 0;\r\n\r\n\t\t\tfor(FileAttachment fileAttachment : fileAttachments)\r\n\t\t\t{\r\n\t\t\t\tindex++;\r\n\t\t\t\t\r\n\t\t\t\tfileBodyPart = new MimeBodyPart();\r\n\t\t\t\tfileSource = new FileDataSource(fileAttachment.getFile());\r\n\t\r\n\t\t\t\tfileBodyPart.setDataHandler(new DataHandler(fileSource));\r\n\t\t\t\tfileBodyPart.setFileName(fileAttachment.getFileName());\r\n\t\t\t\tfileBodyPart.setHeader(\"Content-ID\", \"<\" + attachment.getContentId() + \"-\" + index + \">\");\r\n\t\r\n\t\t\t\tmultiPart.addBodyPart(fileBodyPart);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fa1484a3c89825662657f0676a7b1adf", "score": "0.5827546", "text": "public interface EmailAttachment {\n\n String getFileName();\n\n String getContentType();\n\n InputStream getInputStream();\n\n}", "title": "" }, { "docid": "050b11a2c4c99002bb21eb3c1cd627db", "score": "0.57650745", "text": "public void getEmlFromJournalEmail(String smtpLocation) {\n\t\ttry{\n\n\t\t\tFile file = new File(smtpLocation);\n\t\t\tfor (File temp : file.listFiles()) {\n\t\t\t\tif (temp.isDirectory()) {\n\t\t\t\t\tfor (File emlFile : temp.listFiles()) {\n\t\n\t\t\t\t\t\tArrayList<File> attachments = new ArrayList<File>();\n\t\t\t\t\t\tInputStream source;\n\t\n\t\t\t\t\t\tsource = new FileInputStream(emlFile);\n\t\n\t\t\t\t\t\tProperties props = System.getProperties();\n\t\t\t\t\t\tprops.put(\"mail.host\", \"smtp.dummydomain.com\");\n\t\t\t\t\t\tprops.put(\"mail.transport.protocol\", \"smtp\");\n\t\n\t\t\t\t\t\tSession mailSession = Session.getDefaultInstance(props,\n\t\t\t\t\t\t\t\tnull);\n\t\t\t\t\t\tMimeMessage message = new MimeMessage(mailSession, source);\n\t\t\t\t\t\tString subject = message.getSubject();\n\t\n\t\t\t\t\t\tMultipart multipart = (Multipart) message.getContent();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int i=0; i<multipart.getCount(); i++){\n\t\t\t\t\t\t\tSystem.out.println(multipart.getContentType());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int x = 0; x < multipart.getCount(); x++) {\n\t\t\t\t\t\t\tBodyPart bodyPart = multipart.getBodyPart(x);\n\t\n\t\t\t\t\t\t\tif (!Part.ATTACHMENT.equalsIgnoreCase(bodyPart.getDisposition())&& !StringUtils.isNotBlank(bodyPart.getFileName())) {\n\t\t\t\t\t\t\t\tcontinue; // dealing with attachments only\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tInputStream is = bodyPart.getInputStream();\n\t\n\t\t\t\t\t\t\tFile f = new File(smtpLocation+\"/\" + subject + \".eml\");\n\t\t\t\t\t\t\tFileOutputStream fos = new FileOutputStream(f);\n\t\t\t\t\t\t\tbyte[] buf = new byte[10000];\n\t\t\t\t\t\t\tint bytesRead;\n\t\t\t\t\t\t\twhile ((bytesRead = is.read(buf)) != -1) {\n\t\t\t\t\t\t\t\tfos.write(buf, 0, bytesRead);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfos.close();\n\t\t\t\t\t\t\tattachments.add(f);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "3224ea260097196fec04e4c3e1197902", "score": "0.5732431", "text": "public String makeFCKAttachment(String text) {\n\t if (text == null) {\n\t\t return text;\n\t }\n\t String processedText = XmlUtil.processFormattedText(text);\n\t // if unzipLocation is null, there is no assessment attachment - no action is needed\n\t if (unzipLocation == null || processedText.equals(\"\")) {\n\t\t return processedText;\n\t }\n\n\t String accessURL = ServerConfigurationService.getAccessUrl();\n\t String referenceRoot = AssessmentService.getContentHostingService().REFERENCE_ROOT;\n\t String prependString = accessURL + referenceRoot;\n\t StringBuffer updatedText = null;\n\t ContentResource contentResource = null;\n\t AttachmentHelper attachmentHelper = new AttachmentHelper();\n\t String resourceId = null;\n\t\t String importedPrependString = getImportedPrependString(processedText);\n\t\t if (importedPrependString == null) {\n\t\t\t return processedText;\n\t\t }\n\t\t String[] splittedString = processedText.split(\"src=\\\"\"+importedPrependString);\n\t\t List<String> splittedList = new ArrayList<String>();\n\t\t String src = \"\";\n\t\t for (int i = 0; i < splittedString.length; i ++) {\n\t\t\t \tsplittedString[i] = src + splittedString[i];\n\t\t\t\tString[] splittedRefString = splittedString[i].split(\"href=\\\"\"+importedPrependString);\n\t\t\t\tString href = \"\";\n\t\t\t\tfor (int j = 0; j < splittedRefString.length; j++){ \n\t\t\t\t\tsplittedRefString[j] = href + splittedRefString[j];\n\t\t\t\t\tsplittedList.add(splittedRefString[j]);\n\t\t\t\t\thref = \"href=\\\"\";\n\t\t\t\t}\n\t\t\t\tsrc = \"src=\\\"\";\n\t\t }\n\t\t splittedString = splittedList.toArray(splittedString);\n\t\t int endIndex = 0;\n\t\t String filename = null;\n\t\t String contentType = null;\n\t\t String fullFilePath = null;\n\t\t String oldResourceId = null;\n\n\t\t updatedText = new StringBuffer(splittedString[0]);\n\t\t for (int i = 1; i < splittedString.length; i++) {\n\t\t\t log.debug(\"splittedString[\" + i + \"] = \" + splittedString[i]);\n\t\t\t // Here is an example, splittedString will be something like:\n\t\t\t // /group/b917f0b9-e21d-4819-80ee-35feac91c9eb/Blue Hill.jpg\" alt=\"... or\n\t\t\t // /user/ktsao/Blue Hill.jpg\" alt=\"...\n\t\t\t // oldResourceId = /group/b917f0b9-e21d-4819-80ee-35feac91c9eb/Blue Hill.jpg or /user/ktsao/Blue Hill.jpg\n\t\t\t // oldSplittedResourceId[0] = \"\"\n\t\t\t // oldSplittedResourceId[1] = group or user\n\t\t\t // oldSplittedResourceId[2] = b917f0b9-e21d-4819-80ee-35feac91c9eb or ktsao\n\t\t\t // oldSplittedResourceId[3] = Blue Hill.jpg\n\t\t\t endIndex = splittedString[i].indexOf(\"\\\"\",splittedString[i].indexOf(\"\\\"\")+1);\n\t\t\t oldResourceId = splittedString[i].substring(splittedString[i].indexOf(\"\\\"\")+1, endIndex);\n\t\t\t String[] oldSplittedResourceId = oldResourceId.split(\"/\");\n\t\t\t fullFilePath = unzipLocation + \"/\" + oldResourceId.replace(\" \", \"\");\n\t\t\t filename = oldSplittedResourceId[oldSplittedResourceId.length - 1];\n\t\t\t MimetypesFileTypeMap mimetypesFileTypeMap = new MimetypesFileTypeMap();\n\t\t\t contentType = mimetypesFileTypeMap.getContentType(filename);\n\t\t\t contentResource = attachmentHelper.createContentResource(fullFilePath, filename, contentType);\n\n\t\t\t if (contentResource != null) {\n\t\t\t\t resourceId = contentResource.getId();\n\t\t\t\t updatedText.append(splittedString[i].substring(0,splittedString[i].indexOf(\"\\\"\")+1));\n\t\t\t\t updatedText.append(prependString);\n\t\t\t\t updatedText.append(resourceId);\n\t\t\t\t updatedText.append(splittedString[i].substring(endIndex));\n\t\t\t }\n\t\t\t else {\n\t\t\t\t throw new RuntimeException(\"resourceId is null\");\n\t\t\t }\n\n\t\t }\n\t\t return updatedText.toString();\t \n }", "title": "" }, { "docid": "e9699551276276bb2b765aa7784042f5", "score": "0.5693296", "text": "public ModelAndView email_further(HttpServletRequest request, HttpServletResponse response) throws Exception{\n\t\tHashMap hm_map = new HashMap();\n\t\tUser currentUser = (User) request.getSession().getAttribute(\"currentUser\");\n\t\t\n\t\tString s_spaj = ServletRequestUtils.getStringParameter(request, \"spaj\", \"\");\n\t\t\n\t\tInteger create_id = Integer.parseInt(currentUser.getLus_id());\n\t\t\n//\t\tDate nowDate = bacManager.selectSysdate(); \n\t\t\n\t\tif(request.getParameter(\"btnKirim\") != null){\n\t\t\tSimpleDateFormat dt = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n\t\t\tString get_to = ServletRequestUtils.getStringParameter(request, \"to\", \"\");\n\t\t\tString get_cc = ServletRequestUtils.getStringParameter(request, \"cc\", \"\");\n\t\t\tString isi = ServletRequestUtils.getStringParameter(request, \"isi\", \"\");\n\t\t\tString subject = ServletRequestUtils.getStringParameter(request, \"subject\", \"\");\n\t\t\t\n\t\t\tString fileName;String directory ;\n\t\t\tUpload upload = new Upload();\n\t\t\tupload.setDaftarFile(new ArrayList<MultipartFile>(10));\n\t\t\tServletRequestDataBinder binder = new ServletRequestDataBinder(upload);\n\t\t\tbinder.bind(request);\n\t\t\tdirectory = props.getProperty(\"pdf.dir.export\");//(\"temp.dir.fileupload\");\n\t\t\tMultipartFile mf = upload.getFile1();\n\t\t fileName = mf.getOriginalFilename();\n\t\t\tArrayList attachment=new ArrayList();\t\n\t\t\tif(!StringUtil.isEmpty(fileName)){\t\t\t\t\n\t\t\t\tString dest=directory + \"/\" + fileName ;\n\t\t\t\tFile outputFile = new File(dest);\n\t\t\t\tFileCopyUtils.copy(upload.getFile1().getBytes(), outputFile);\n\t\t\t\tattachment.add(outputFile);\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\tString[] to = get_to.split(\";\");\n\t\t\tString[] cc = get_cc.split(\";\");\n\t\t\t\n\t\t\tbacManager.transferPosisi(currentUser, s_spaj, 209, isi, \"tgl_transfer_uw_hd\",null);\n\t\t\t\n\t\t\t//kirim email\n\t\t\tString css = props.getProperty(\"email.uw.css.satu\")\n\t\t\t\t\t+ props.getProperty(\"email.uw.css.dua\");\n\t\t\tString footer = props.getProperty(\"email.uw.footer\");\n\t\t\t\n\t\t\tList lsProduk = elionsManager.selectMstProductInsured(s_spaj);\n\t\t\tProduct produk=(Product)lsProduk.get(0);\n\t\t\t\n\t\t\tif(elionsManager.selectIsInputanBank(s_spaj)==16 || (produk.getLsbs_id()==182 && \"19,20,21\".indexOf(produk.getLsdbs_number())>-1)) footer = props.getProperty(\"email.uw.syariah.footer\");//Anta - Khusus Power Save Syariah BSM dan Multi Invest Syariah BSM\n\t\t\tDecimalFormat df = new DecimalFormat(\"#,##0.00;(#,##0.00)\");\n\t\t\t\n\t\t\tHashMap info = Common.serializableMap(bacManager.selectInformasiCabangFromSpaj(s_spaj));\n\t\t\tString cabang = (String) info.get(\"NAMA_CABANG\");\n\t\t\tString kci = (info.get(\"KCI\")==null?null:(String)info.get(\"KCI\"));\n\t\t\tString nama_ao = (info.get(\"NAMA_AO\")==null?null:(String)info.get(\"NAMA_AO\"));\n\t\t\t\n\t\t\tHashMap gen = Common.serializableMap(elionsManager.selectEmailAgen(s_spaj));\n\t\t\tString namaAgen = (String) gen.get(\"MCL_FIRST\");\n\t\t\t\n\t\t\tPemegang pp = elionsManager.selectpp(s_spaj);\n\t\t\tTertanggung ttg = elionsManager.selectttg(s_spaj);\n\t\t\tDatausulan du = elionsManager.selectDataUsulanutama(s_spaj);\n\t\t\t\n\t\t\tString from = \"ajsjava@sinarmasmsiglife.co.id\";\n\t\t\t\n\t\t\tString pesan = \"\";\n\t\t\t\n\t\t\tpesan = css + \n\t\t\t\t\t\"<table width=100% class=satu>\"\n\t\t\t\t\t\t+ (cabang!=null\t? \t\"<tr><td>Cabang \t</td><td>:</td><td>\" + cabang + \"</td></tr>\" : \"\")\n\t\t\t\t\t\t+ (kci!=null \t?\t\"<tr><td>KCI \t</td><td>:</td><td>\" + kci + \"</td></tr>\" : \"\")\n\t\t\t\t\t\t+ \"<tr><td>Agen \t\t</td><td>:</td><td>\" + namaAgen + \"</td></tr>\"\n\t\t\t\t\t\t+ \"<tr><td>Status \t</td><td>:</td><td>FURTHER REQUIREMENT</td><td> Tanggal:\" + defaultDateFormat.format(new Date()) + \"</td></tr>\"\n\t\t\t\t\t\t+ \"<tr><td>Akseptor \t</td><td>:</td><td>\" + currentUser.getName() + \" [\" + currentUser.getDept() + \" ]<td></tr>\" \n\t\t\t\t\t\t+ \"<tr><td>No. Spaj \t</td><td>:</td><td>\" + FormatString.nomorSPAJ(s_spaj) + \"<td></tr>\"\n\t\t\t\t\t\t+ \"<tr><td>Produk\t\t</td><td>:</td><td>\"+produk.getLsdbs_name()+\"(\"+produk.getLsbs_id()+\")\"+\"<td colspan=2></tr>\" \n\t\t\t\t\t\t+ \"<tr><td>A/N\t\t\t</td><td>:</td><td colspan=2>\" + pp.getMcl_first() + \" (Pemegang) -- \" + ttg.getMcl_first() + \" (Tertanggung) \" + \"</td></tr>\" \n\t\t\t\t\t\t+ \"<tr><td>Keterangan\t</td><td>:</td><td>\" + isi + \"<td></tr>\" \n\t\t\t\t\t\t+ \"<tr><td>UP</td><td>:</td><td>\"+produk.getLku_symbol()+\" \"+ df.format(du.getMspr_tsi()) +\"</td></tr>\"\n\t\t\t\t\t\t+ \"<tr><td>Premi</td><td>:</td><td>\"+produk.getLku_symbol()+\" \"+ df.format(du.getMspr_premium())+\"</td></tr>\"\n\t\t\t\t\t\t+ \"<tr><td>Cara Bayar</td><td>:</td><td>\"+ du.getLscb_pay_mode() +\"</td></tr>\"\n\t\t\t\t\t\t+ (nama_ao!=null\t?\t\"<tr><td>Nama AO \t</td><td>:</td><td>\" + nama_ao + \"</td></tr>\" : \"\")\n\t\t\t\t\t+\"</table>\" + footer;\n\t\t\t\n\t\t\tEmailPool.send(\"SMiLe E-Lions\", 1, 1, 0, 0, \n\t\t\t\t\tnull, 0, 0, new Date(), null, \n\t\t\t\t\ttrue, from, \n\t\t\t\t\tto, \n\t\t\t\t\tcc, \n\t\t\t\t\tnull, \n\t\t\t\t\tsubject, \n\t\t\t\t\tpesan, \n\t\t\t\t\tattachment, s_spaj);\n\t\t\t\n\t\t\t//email.send(true, from, new String[]{\"canpri@sinarmasmsiglife.co.id\"}, null, null,subject, pesan, null);\n\t\t\tif(!StringUtil.isEmpty(fileName))FileUtil.deleteFile(directory, fileName, response);\n\t\t\t\n\t\t\thm_map.put(\"speedy\", 0);\n\t\t\thm_map.put(\"sukses\", 1);\n\t\t\thm_map.put(\"successMessage\", \"SPAJ \"+s_spaj+\" berhasil ditansfer ke UW Helpdesk\");\n\t\t}else{\n\t\t\tInsured ins = bacManager.selectMstInsuredAll(s_spaj);\n\t\t\t\n\t\t\tif(ins.getFlag_speedy()==null){\n\t\t\t\thm_map.put(\"successMessage\", \"SPAJ ini belum proses speedy\");\n\t\t\t\thm_map.put(\"speedy\", 0);\n\t\t\t}else{\n\t\t\t\tString to = \"\";\n\t\t\t\t\n\t\t\t\tProduct prd = uwManager.selectMstProductInsuredUtamaFromSpaj(s_spaj);\n\t\t\t\t\n\t\t\t\t//untuk produk simas prima, power save syariah dan danamas prima permintaan Feri UW\n\t\t\t\tif(prd.getLsbs_id()==142 && prd.getLsdbs_number()==2){\n\t\t\t\t\tHashMap em = bacManager.selectMstConfig(6, \"email_further\", \"SIMAS_PRIMA\");\n\t\t\t\t\tto = (String)em.get(\"NAME\"); \n\t\t\t\t}else if(prd.getLsbs_id()==175 && prd.getLsdbs_number()==2){\n\t\t\t\t\tHashMap em = bacManager.selectMstConfig(6, \"email_further\", \"POWER_SAVE_SYARIAH\");\n\t\t\t\t\tto = (String)em.get(\"NAME\"); \n\t\t\t\t}else if(prd.getLsbs_id()==142 && prd.getLsdbs_number()==9){\n\t\t\t\t\tHashMap em = bacManager.selectMstConfig(6, \"email_further\", \"DANAMAS_PRIMA\");\n\t\t\t\t\tto = (String)em.get(\"NAME\"); \n\t\t\t\t}else{\n\t\t\t\t\tto = uwManager.selectEmailCabangFromSpaj(s_spaj)+\";\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString email_cab = bacManager.selectEmailAdminInputter(s_spaj);\n\t\t\t\tString cc = \"uwhelpdeskAGENCY@sinarmasmsiglife.co.id;bas@sinarmasmsiglife.co.id;\"+uwManager.selectEmailUser(currentUser.getLus_id());\n\t\t\t\tif(email_cab!=null)cc = email_cab+\";\"+cc;\n\t\t\t\t\n\t\t\t\tStringBuffer message = new StringBuffer();\n\t\t\t\tArrayList l_histSpeedy = Common.serializableList(bacManager.selectHistorySpeedy(s_spaj));\n\t\t\t\t\n\t\t\t\tString medis = bacManager.selectMedisDescNew(s_spaj);\n\t\t\t\tPemegang pp = elionsManager.selectpp(s_spaj);\n\t\t\t\tTertanggung ttg = elionsManager.selectttg(s_spaj);\n\t\t\t\t\n\t\t\t\tfor(int i=0; i<l_histSpeedy.size();i++){\n\t\t\t\t\tHashMap m = (HashMap) l_histSpeedy.get(i);\n\t\t\t\t\tmessage.append(\"\\n\"+(String)m.get(\"DESCRIPTION\"));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\thm_map.put(\"to\", to);\n\t\t\t\thm_map.put(\"cc\", cc);\n\t\t\t\thm_map.put(\"message\", message.toString()+\"\\n\\nMedis : \"+medis);\n\t\t\t\t//hm_map.put(\"subject\", \"Further Requirement SPAJ \"+s_spaj);\n\t\t\t\thm_map.put(\"subject\", \"FURTHER REQUIREMENT SPAJ No.\"+FormatString.nomorSPAJ(s_spaj)+\" a/n \"+pp.getMcl_first()+\"/\"+ttg.getMcl_first());\n\t\t\t\thm_map.put(\"speedy\", 1);\n\t\t\t\thm_map.put(\"sukses\", 0);\n\t\t\t}\n\t\t}\n\t\treturn new ModelAndView(\"uw/email_further\", hm_map);\n\t}", "title": "" }, { "docid": "4ac87fcc48c050cc88f679cd0695cf69", "score": "0.5651878", "text": "private MimeMessage createEmailWithAttachment(\n String to, String subject, String bodyText, File file)\n throws MessagingException, IOException {\n Properties props = new Properties();\n Session session = Session.getDefaultInstance(props, null);\n MimeMessage email = new MimeMessage(session);\n email.setFrom(new InternetAddress(user)); // me\n email.addRecipient(javax.mail.Message.RecipientType.TO, new InternetAddress(to)); //\n email.setSubject(subject);\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(bodyText, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n mimeBodyPart = new MimeBodyPart();\n DataSource source = new FileDataSource(file);\n\n mimeBodyPart.setDataHandler(new DataHandler(source));\n mimeBodyPart.setFileName(file.getName());\n\n multipart.addBodyPart(mimeBodyPart);\n email.setContent(multipart, \"text/html\");\n return email;\n }", "title": "" }, { "docid": "3309accdf31cc4e102f6b7bf71f83419", "score": "0.5645556", "text": "@Override\n\tpublic Object sendMailWithAttachment(String to, String subject, String message, String attachement) {\n\t\ttry {\n\t\t\tMimeMessage msg = mailSender.createMimeMessage();\n\n\t\t\tMimeMessageHelper helper = new MimeMessageHelper(msg, true);\n\n\t\t\thelper.setTo(to);\n\t\t\thelper.setFrom(NOREPLY_ADDR);\n\t\t\thelper.setSubject(subject);\n\t\t\thelper.setText(message);\n\n\t\t\thelper.addAttachment(\"License.txt\", new ClassPathResource(attachement));\n\n\t\t\tmailSender.send(msg);\n\t\t} catch(MessagingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d0fbc15c82748258891e3486ff03a848", "score": "0.5605176", "text": "public void produceAttachment(OutputStream out) throws IOException;", "title": "" }, { "docid": "54cf347d96322ef8aebf552bafe13761", "score": "0.55357695", "text": "public void sendWithAttachments(String from, String[] to,String[] cc, String[] bcc, String subject, String text, List<File> attachments) throws MailException, MessagingException{\n\t\t\n\t\tMimeMessage message = mailSender.createMimeMessage();\n\t\tMimeMessageHelper helper = new MimeMessageHelper(message, true, \"UTF-8\");\n\t\t\n\t\thelper.setFrom(from);\n\t\thelper.setSubject(subject);\n\t\tif(to!=null) helper.setTo(to);\n\t\tif(cc!=null) helper.setCc(cc);\n\t\tif(bcc!=null) helper.setBcc(bcc);\n\n\t\t//String css = props.getProperty(\"email.uw.css.satu\") + props.getProperty(\"email.uw.css.dua\");\n\t\t//String footer = props.getProperty(\"email.uw.footer\");\n\t \n\t\thelper.setText(text);\n\t\t//helper.addInline(\"myLogo\", new ClassPathResource(props.getProperty(\"images.ttd.ekalife\")));\n\t\t\n\t\tif(attachments!=null) {\n\t\t\tfor(int i=0; i<attachments.size(); i++) {\n\t\t\t\tFile attachment = attachments.get(i);\n\t\t\t\tif(attachment.exists())\thelper.addAttachment(attachment.getName(), attachment);\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tmailSender.send(helper.getMimeMessage());\n\t}", "title": "" }, { "docid": "e0d0488dd63e246be47f524857b88153", "score": "0.5513225", "text": "public static Mail createMailWithAttachments(final MBox mailbox) throws Exception\n {\n return createMail(mailbox, TestDataUtils.class.getResource(\"/testmails/MailWithAttachments.eml\"));\n }", "title": "" }, { "docid": "3234e6bc790e56501613a25fc8545d96", "score": "0.5510515", "text": "public ArrayList<EmailEntry> checkMail() {\n ArrayList<EmailEntry> emails = new ArrayList<EmailEntry>();\n\n try {\n Properties properties = new Properties();\n properties.setProperty(\"mail.store.protocol\", \"imaps\");\n\n Session session = Session.getInstance(properties, null);\n Store store = session.getStore();\n store.connect(\"imap.gmail.com\", \"grosspapi.images@gmail.com\", \"grosspapi\");\n\n Folder inbox = store.getFolder(\"INBOX\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] messages = inbox.getMessages();\n\n // Loop messages\n for(int i = 0; i < messages.length; i++) {\n // Surely, this can be done as an enhanced for-loop\n Message message = messages[i];\n\n // Create email entry for this message\n EmailEntry entry = new EmailEntry();\n entry.setSubject(message.getSubject());\n entry.setFrom(message.getFrom().toString());\n entry.setText(\"This is text\");\n\n // The ugly bit about checking MIME-types\n //check if the content is plain text\n if (message.isMimeType(\"text/plain\")) {\n entry.setText(message.getContentType().toString());\n }\n\n //check if the content has attachment\n else if (message.isMimeType(\"multipart/*\")) {\n //Multipart multipart = (Multipart) message.getContent();\n Multipart multipart = null;\n\n Object content = message.getContent();\n if(content instanceof Multipart) {\n multipart = (Multipart) message.getContent();\n } else {\n Log.v(tag, \"NOT MULTIPART: \" + message.getContentType());\n }\n\n for (int x = 0; x < multipart.getCount(); x++) {\n BodyPart bodyPart = multipart.getBodyPart(x);\n\n String disposition = bodyPart.getDisposition();\n\n if(disposition != null && (disposition.equalsIgnoreCase(\"ATTACHMENT\"))) {\n DataHandler datahandler = bodyPart.getDataHandler();\n InputStream is = datahandler.getInputStream();\n String filePath = context.getFilesDir().getPath().toString() + bodyPart.getFileName();\n\n File file = new File(filePath);\n FileOutputStream fos = new FileOutputStream(file);\n byte[] buf = new byte[4096];\n int bytesRead;\n while((bytesRead = is.read(buf)) != -1) {\n fos.write(buf, 0, bytesRead);\n }\n fos.close();\n entry.setImageAttachment(file);\n }\n }\n } else {\n Log.v(tag, \"MimeType is not plain or multipart\");\n }\n\n // Add hashmap to global container\n emails.add(entry);\n }\n\n // Close the store and folder objects\n inbox.close(false);\n store.close();\n\n } catch(NoSuchProviderException e) {\n Log.v(tag, \"NoSuchProviderException: \" + e.getMessage());\n e.printStackTrace();\n } catch(MessagingException e) {\n Log.v(tag, \"MessagingException: \" + e.getMessage());\n e.printStackTrace();\n } catch(IOException e) {\n Log.v(tag, \"IOException: \" + e.getMessage());\n e.printStackTrace();\n }\n\n // Finally, return messages\n return emails;\n\n }", "title": "" }, { "docid": "923b501b32145e744aceb6a1144f22cb", "score": "0.55084616", "text": "@Override\n\t\t\t\tpublic void prepare(MimeMessage mimeMessage) throws Exception\n\t\t\t\t{\n\t\t\t\t\tMimeMessageHelper messageHelper = new MimeMessageHelper(mimeMessage, true, \"UTF-8\");\n\t\t\t\t\tmessageHelper.setTo(sentTo);\n//\t\t\t\t\tmessageHelper.setCc(ccTo);\n\n\t\t\t\t\t messageHelper.setFrom(propertyRepository.getProperty(\"mail.smtp.username\"));\n\n\t\t\t\t\t messageHelper.setSubject(subject);\n\n\t\t\t\t\tmessageHelper.setText(body, true);\n\t\t\t\t\t/*messageHelper.addAttachment(fileName, new InputStreamSource()\n\t\t\t\t\t{\n\t\t\t\t\t\t*//**\n\t\t\t\t\t\t * \n\t\t\t\t\t\t * This method is used for getting the file content.\n\t\t\t\t\t\t * \n\t\t\t\t\t\t * @return\n\t\t\t\t\t\t * @throws IOException\n\t\t\t\t\t\t *//*\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic InputStream getInputStream() throws IOException\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn new ByteArrayInputStream(fileContent);\n\t\t\t\t\t\t}\n\t\t\t\t\t});*/\n\n\t\t\t\t}", "title": "" }, { "docid": "7038ec657c214a375077ce4403524175", "score": "0.5506088", "text": "public abstract AttachmentPart createAttachmentPart();", "title": "" }, { "docid": "4b64fe64032310e9402fe4d43b60d7be", "score": "0.54813844", "text": "public void main(String email, UcsawsVotante votante ) {\n // SMTP server information\n String host = \"smtp.gmail.com\";\n String port = \"587\";\n String mailFrom = \"votoucsa@gmail.com\";\n String password = \"votoucsa2016\";\n\n // outgoing message information\n //String mailTo = \"arma20044@gmail.com\";\n String mailTo = votante.getIdPersona().getEmail();\n String subject = \"CERTIFICADO DE VOTACIÓN\" + \" - \"+ votante.getIdEvento().getDescripcion().toUpperCase();\n\n // message contains HTML markups\n String message = \"<i>El Sistema E-vote certifica la votación de:</i><br>\";\n message += \"<b>\"+ votante.getIdPersona().getNombre() + \" \" + votante.getIdPersona().getApellido() +\"</b><br>\";\n message += \"<b>Con C.I. N° : \"+ votante.getIdPersona().getCi() +\"</b><br>\";\n message += \"<b>Mesa: \"+ votante.getUcsawsMesa().getDescMesa() +\"</b><br>\";\n message += \"<b>Departamento: \"+ votante.getUcsawsMesa().getUcsawsLocal().getUcsawsZona().getUcsawsDistrito().getUcsawsDepartamento().getDescDepartamento() +\"</b><br>\";\n message += \"<b>Distrito: \"+ votante.getUcsawsMesa().getUcsawsLocal().getUcsawsZona().getUcsawsDistrito().getDescDistrito() +\"</b><br>\";\n message += \"<b>Zona: \"+ votante.getUcsawsMesa().getUcsawsLocal().getUcsawsZona().getDescZona() +\"</b><br>\";\n message += \"<b>Local de Votación: \"+ votante.getUcsawsMesa().getUcsawsLocal().getDescLocal() +\"</b><br>\";\n \n \n \n \n \n \n\n EnviarFinal mailer = new EnviarFinal();\n\n try {\n mailer.sendHtmlEmail(host, port, mailFrom, password, mailTo,\n subject, message);\n System.out.println(\"Email sent.\");\n } catch (Exception ex) {\n System.out.println(\"Failed to sent email.\");\n ex.printStackTrace();\n }\n}", "title": "" }, { "docid": "c59ce4642784be7341162e6b542cae7f", "score": "0.5469095", "text": "private void btnAttachmentActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser chooser = new JFileChooser(new File(att));\n chooser.setSelectedFile(new File(att));\n if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {\n nmfile=(chooser.getSelectedFile().getName().toString());\n System.out.print(\"\\nnamafile: \" + nmfile + \"\\n\");\n fullnmfile=(chooser.getSelectedFile().getAbsolutePath());\n // s = \"DOWNLOAD|\"+med+\"|\"+nmfile+\"|\"+fullnmfile+\"|localhost|cc_takaful\\r\\n\";\n if(med.equals(\"EMAIL\")){\n s = \"DOWNLOAD|\"+med+\"|\"+med1+\"|\"+att+\"|\"+fullnmfile+\"|192.168.0.48|anj_mail\\r\\n\";\n }else{\n s = \"DOWNLOAD|\"+med+\"|\"+att+\"|\"+fullnmfile+\"|192.168.0.48|anj_mail\\r\\n\";\n }\n System.out.print(\"lempar string : \"+s);\n sendString(s);\n CCanj.outupload.print(toSend);\n CCanj.outupload.flush();\n toSend.setLength(0);\n\n // open(chooser.getSelectedFile());\n // new File(chooser.getSelectedFile().getAbsolutePath());\n }\n}", "title": "" }, { "docid": "81aeb26a68c14be193ddee4d9d7686b0", "score": "0.5448796", "text": "@Override\n\tpublic boolean emailSend(ByteArrayOutputStream emailAttachment, String emailAddress,String subject,String emailText,boolean attachment) throws MessagingException{\n\t\tif(emailAddress==null||adminEmail==null||emailAddress.isEmpty()||adminEmail.isEmpty())\n\t\t\tthrow new InvalidEmailInputException(\"Email Adress is Empty\");\n MimeMessage message = javaMailSender.createMimeMessage();\n MimeMessageHelper helper = new MimeMessageHelper(message, true);\n LocalDateTime localDate=LocalDateTime.now();\n DateTimeFormatter dateFormatter = DateTimeFormatter\n .ofPattern(\"yyyyMMdd_HHmm\");\n String fileName=\"obsval\"+localDate.format(dateFormatter)+\".csv\";\n helper.setSubject(subject);\n helper.setFrom(adminEmail);\n helper.setTo(emailAddress);\n helper.setText(emailText, false);\n System.out.println(\"read\"+emailAddress);\n if(attachment) {\n \tif(emailAttachment==null)\n \t\t\tthrow new InvalidEmailInputException(\"emailAttachment is Empty\");\n\t\t byte[] bytes = emailAttachment.toByteArray();\n\t\t DataSource dataSource = new ByteArrayDataSource(bytes, \"application/csv\");\n\t\t helper.addAttachment(fileName, dataSource);\n }\n try {\n javaMailSender.send(message);\n System.out.println(\"emailsend\");\n }\n catch(Exception e)\n {\n \te.printStackTrace();\n }\n \treturn true;\n\t}", "title": "" }, { "docid": "8fed1e6734f0748e70a26c2d7076942d", "score": "0.5443348", "text": "private void doDownload()\n/* */ {\n/* 333 */ HttpGet instance = new HttpGet();\n/* */ \n/* */ \n/* */ \n/* 337 */ Long mailSize = new Long(4096L);\n/* */ \n/* 339 */ feedback = new DownloadFeedback();\n/* */ \n/* */ \n/* 342 */ List temp = task.getReceiveList();\n/* 343 */ String filePath = DiskTool.createFolder(directoryField.getText() + \"/收件箱\");\n/* 344 */ for (int i = 0; i < temp.size(); i++) {\n/* 345 */ Object[] obj = (Object[])temp.get(i);\n/* 346 */ String url = serverAddress + \"/messageDownload?method=getContent&messageid=\" + obj[0];\n/* */ \n/* 348 */ List attachIds = new ArrayList();\n/* 349 */ long attachSize = 0L;\n/* 350 */ List temp2 = task.getReceiveAttachList();\n/* 351 */ for (int j = 0; j < temp2.size(); j++) {\n/* 352 */ Object[] obj2 = (Object[])temp2.get(j);\n/* */ \n/* 354 */ Long id = (Long)obj2[4];\n/* 355 */ String attachName = (String)obj2[1];\n/* 356 */ Long aSize = (Long)obj2[3];\n/* 357 */ if (id.longValue() == ((Long)obj[0]).longValue()) {\n/* 358 */ String attachUrl = serverAddress + \"//messageFileDown?id=\" + obj2[0] + \";\" + \n/* 359 */ DiskTool.createFolder(new StringBuffer(String.valueOf(filePath)).append(\"/附件\").toString()) + \"/\" + attachName;\n/* 360 */ attachIds.add(attachUrl);\n/* 361 */ attachSize += aSize.longValue();\n/* */ }\n/* */ }\n/* 364 */ instance.addItem(url, filePath + \"/\" + obj[1] + \".html\", \n/* 365 */ new Long(mailSize.longValue() + attachSize), \"receive\", attachIds);\n/* */ \n/* 367 */ feedback.addReceive((Long)obj[0]);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 380 */ temp = task.getSendList();\n/* 381 */ filePath = DiskTool.createFolder(directoryField.getText() + \"/发件箱\");\n/* 382 */ for (int i = 0; i < temp.size(); i++) {\n/* 383 */ Object[] obj = (Object[])temp.get(i);\n/* 384 */ String url = serverAddress + \"/messageDownload?method=getContent&messageid=\" + obj[0];\n/* */ \n/* */ \n/* 387 */ List attachIds = new ArrayList();\n/* 388 */ long attachSize = 0L;\n/* 389 */ List temp2 = task.getSendAttachList();\n/* 390 */ for (int j = 0; j < temp2.size(); j++) {\n/* 391 */ Object[] obj2 = (Object[])temp2.get(j);\n/* 392 */ Long id = (Long)obj2[4];\n/* 393 */ String attachName = (String)obj2[1];\n/* 394 */ Long aSize = (Long)obj2[3];\n/* 395 */ if (id.longValue() == ((Long)obj[0]).longValue()) {\n/* 396 */ String attachUrl = serverAddress + \"//messageFileDown?id=\" + obj2[0] + \";\" + \n/* 397 */ DiskTool.createFolder(new StringBuffer(String.valueOf(filePath)).append(\"/附件\").toString()) + \"/\" + attachName;\n/* 398 */ attachIds.add(attachUrl);\n/* 399 */ attachSize += aSize.longValue();\n/* */ }\n/* */ }\n/* 402 */ instance.addItem(url, filePath + \"/\" + obj[1] + \".html\", \n/* 403 */ new Long(mailSize.longValue() + attachSize), \"send\", attachIds);\n/* */ \n/* 405 */ feedback.addSend((Long)obj[0]);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 418 */ temp = task.getDraftList();\n/* 419 */ filePath = DiskTool.createFolder(directoryField.getText() + \"/草稿箱\");\n/* 420 */ for (int i = 0; i < temp.size(); i++) {\n/* 421 */ Object[] obj = (Object[])temp.get(i);\n/* 422 */ String url = serverAddress + \"/messageDownload?method=getContent&messageid=\" + obj[0];\n/* */ \n/* */ \n/* 425 */ List attachIds = new ArrayList();\n/* 426 */ long attachSize = 0L;\n/* 427 */ List temp2 = task.getDraftAttachList();\n/* 428 */ for (int j = 0; j < temp2.size(); j++) {\n/* 429 */ Object[] obj2 = (Object[])temp2.get(j);\n/* 430 */ Long id = (Long)obj2[4];\n/* 431 */ String attachName = (String)obj2[1];\n/* 432 */ Long aSize = (Long)obj2[3];\n/* 433 */ if (id.longValue() == ((Long)obj[0]).longValue()) {\n/* 434 */ String attachUrl = serverAddress + \"//messageFileDown?id=\" + obj2[0] + \";\" + \n/* 435 */ DiskTool.createFolder(new StringBuffer(String.valueOf(filePath)).append(\"/附件\").toString()) + \"/\" + attachName;\n/* 436 */ attachIds.add(attachUrl);\n/* 437 */ attachSize += aSize.longValue();\n/* */ }\n/* */ }\n/* 440 */ instance.addItem(url, filePath + \"/\" + obj[1] + \".html\", \n/* 441 */ new Long(mailSize.longValue() + attachSize), \"draft\", attachIds);\n/* */ \n/* 443 */ feedback.addDraft((Long)obj[0]);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 456 */ temp = task.getWasteList();\n/* 457 */ long attachSize = 0L;\n/* 458 */ filePath = DiskTool.createFolder(directoryField.getText() + \"/废件箱\");\n/* 459 */ for (int i = 0; i < temp.size(); i++) {\n/* 460 */ Object[] obj = (Object[])temp.get(i);\n/* 461 */ String url = serverAddress + \"/messageDownload?method=getContent&messageid=\" + obj[0];\n/* */ \n/* */ \n/* 464 */ List attachIds = new ArrayList();\n/* 465 */ List temp2 = task.getWasteAttachList();\n/* 466 */ for (int j = 0; j < temp2.size(); j++) {\n/* 467 */ Object[] obj2 = (Object[])temp2.get(j);\n/* 468 */ Long id = (Long)obj2[4];\n/* 469 */ String attachName = (String)obj2[1];\n/* 470 */ Long aSize = (Long)obj2[3];\n/* 471 */ if (id.longValue() == ((Long)obj[0]).longValue()) {\n/* 472 */ String attachUrl = serverAddress + \"//messageFileDown?id=\" + obj2[0] + \";\" + \n/* 473 */ DiskTool.createFolder(new StringBuffer(String.valueOf(filePath)).append(\"/附件\").toString()) + \"/\" + attachName;\n/* 474 */ attachIds.add(attachUrl);\n/* 475 */ attachSize += aSize.longValue();\n/* */ }\n/* */ }\n/* 478 */ instance.addItem(url, filePath + \"/\" + obj[1] + \".html\", \n/* 479 */ new Long(mailSize.longValue() + attachSize), \"waste\", attachIds);\n/* */ \n/* 481 */ feedback.addWaste((Long)obj[0]);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 494 */ instance.downLoadByList(this);\n/* */ }", "title": "" }, { "docid": "d539972a88493d62c3d3424f35ccd799", "score": "0.54347914", "text": "public static void Emailer(Email email1, MailBox email2, String str) {\n if (encodemessage) {\n if (sendFile) {\n email1.sendEmails(email2.address, email2.ID, Encryption.encode(Signature + str), fileToSend);\n } else {\n email1.sendEmails(email2.address, email2.ID, Encryption.encode(Signature + str));\n }\n } else {\n if (sendFile) {\n email1.sendEmails(email2.address, email2.ID, Signature + str, fileToSend);\n } else {\n email1.sendEmails(email2.address, email2.ID, Signature + str);\n }\n //encodemessage = true;\n }\n sendEmail = false;\n sendFile = false;\n }", "title": "" }, { "docid": "645a941c88bac4330d782f9dd6571dbc", "score": "0.5428955", "text": "public void sendItinerary(String toAddress, String filePath) {\n\t\tLOGGER.info(\"Inside method sendItinerary() toAddress: \"+toAddress + \" filePath: \"+filePath);\n\t\t\n\t\t//Creamos una instancia de MimeMessage\n\t\tMimeMessage message = mailSender.createMimeMessage();\n\t\t\n\t\ttry {\n\t\t\tMimeMessageHelper messageHelper = new MimeMessageHelper(message, true);\n\t\t\t//indicamos la direccion de correo a la que se enviara el Email\n\t\t\tmessageHelper.setTo(toAddress);\n\t\t\t//indicamos el asunto del correo\n\t\t\tmessageHelper.setSubject(EMAIL_SUBJECT);\n\t\t\t//indicamos el texto del cuerpo del correo\n\t\t\tmessageHelper.setText(EMAIL_BODY);\n\t\t\t//Agregamos los elementos adjuntos (el archivo)\n\t\t\tmessageHelper.addAttachment(\"Itinerary.pdf\", new File(filePath));\n\t\t\t\n\t\t\t//Enviamos el correo\n\t\t\tmailSender.send(message);\n\t\t\t\n\t\t} catch (MessagingException e) {\n\t\t\tLOGGER.error(\"Exception inside sendItinerary() \"+ e);\n\t\t\t\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "327026bc92167df5c17ae3808f5e9853", "score": "0.5406939", "text": "private void send(String smtp, String emailFrom, String password, String emailTo, String subject, int port, boolean secureConnection) throws Exception\r\n {\r\n // Create a temporary directory where any images of the exported document are stored.\r\n File tempDir = new File(System.getProperty(\"java.io.tmpdir\") + \"AsposeMail\\\\\");\r\n\r\n if (!tempDir.exists())\r\n tempDir.mkdir();\r\n\r\n // Save the document in HTML format.\r\n ByteArrayOutputStream output = new ByteArrayOutputStream();\r\n HtmlSaveOptions saveOptions = new HtmlSaveOptions();\r\n // Save the images in the temporary folder.\r\n saveOptions.setImagesFolder(tempDir.getAbsolutePath());\r\n // We want the images in the HTML to be referenced in the e-mail as attachments so add the cid prefix to the image file name.\r\n // This replaces what would be the path to the image with the \"cid\" prefix.\r\n saveOptions.setImagesFolderAlias(\"cid:\");\r\n // Headers and footers normally don't export well to HTML so disable them.\r\n saveOptions.setExportHeadersFootersMode(ExportHeadersFootersMode.NONE);\r\n mDocument.save(output, saveOptions);\r\n // Get the HTML as a string.\r\n String htmlMessage = output.toString(\"UTF-8\");\r\n\r\n // Setup the mail client.\r\n Properties props = System.getProperties();\r\n props.put(\"mail.smtps.host\",smtp);\r\n props.put(\"mail.smtps.auth\", secureConnection ? \"true\" : \"false\");\r\n props.put(\"mail.smtp.port\", port);\r\n Session session = Session.getInstance(props, null);\r\n Message message = new MimeMessage(session);\r\n message.setFrom(new InternetAddress(emailFrom));\r\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(emailTo, false));\r\n message.setSubject(subject);\r\n\r\n // The body is made up of the HTML content along with the images as embedded attachments.\r\n Multipart mp = new MimeMultipart();\r\n MimeBodyPart htmlPart = new MimeBodyPart();\r\n htmlPart.setContent(htmlMessage, \"text/html\");\r\n\r\n mp.addBodyPart(htmlPart);\r\n\r\n for(File file : tempDir.listFiles())\r\n {\r\n MimeBodyPart imagePart = new MimeBodyPart();\r\n DataSource fds = new FileDataSource(file.getAbsolutePath());\r\n imagePart.setDataHandler(new DataHandler(fds));\r\n // Content-ID should match the ID after the cid prefix. In this case this will be the filename with a slash\r\n // e.g /Aspose.Words.57647.png\r\n imagePart.setHeader(\"Content-ID\", MessageFormat.format(\"</{0}>\", file.getName()));\r\n mp.addBodyPart(imagePart);\r\n }\r\n\r\n // Attach the content to the message.\r\n message.setContent(mp);\r\n\r\n message.setSentDate(new Date());\r\n SMTPTransport transport = (SMTPTransport)session.getTransport(\"smtps\");\r\n transport.connect(smtp, emailFrom, password);\r\n transport.sendMessage(message, message.getAllRecipients());\r\n transport.close();\r\n\r\n // Clean up the temporary files and remove the directory.\r\n for(File file : tempDir.listFiles())\r\n file.delete();\r\n\r\n tempDir.delete();\r\n }", "title": "" }, { "docid": "e546dcf17680c801921943b0f57f0655", "score": "0.5393964", "text": "public void sendMimeMultipartMail() \n throws MessagingException, MalformedURLException, IOException\n {\n FacesContext context = FacesContext.getCurrentInstance();\n String viewId = context.getViewRoot().getViewId();\n ExternalContext ec = context.getExternalContext();\n String requestContextPath = ec.getRequestContextPath(); \n String requestServletPath = ec.getRequestServletPath();\n Object opaqueRequest = ec.getRequest();\n\n String emailPageUrl;\n\n // we need a real ServletRequest to get access to the scheme, serverNme, and port,\n // so I guess Portlets are out of luck\n if (opaqueRequest instanceof ServletRequest)\n {\n ServletRequest request = (ServletRequest)opaqueRequest;\n\n emailPageUrl = request.getScheme() + \"://\" +\n request.getServerName() + \":\" +\n request.getServerPort() + requestContextPath + requestServletPath + viewId \n + _EMAIL_MIME_MODE_QUERY_STRING; \n }\n else\n {\n System.out.println(\"Request must be a ServletRequest to test email mime mode\");\n return;\n }\n\n\n String emailCookies = null;\n\n if (opaqueRequest instanceof HttpServletRequest)\n {\n emailCookies = ((HttpServletRequest) opaqueRequest).getHeader(\"Cookie\");\n }\n\n ////////////////////////////////////////////////////////////\n \n URL mailGenerator = new URL(emailPageUrl);\n URLConnection mailConnection = mailGenerator.openConnection();\n if (null != emailCookies)\n {\n mailConnection.setRequestProperty(\"Cookie\", emailCookies);\n }\n \n ByteArrayOutputStream mailSink = new ByteArrayOutputStream();\n \n SimpleDateFormat smtpDateFormat = \n new SimpleDateFormat(\"EEE, d MMM yyyy HH:mm:ss Z\", Locale.US);\n \n StringBuilder mailHeaders = new StringBuilder();\n mailHeaders.append(\"Date: \").append(smtpDateFormat.format(new Date())).append(\"\\r\\n\");\n mailHeaders.append(\"Subject: \").append(getSubject()).append(\"\\r\\n\");\n mailHeaders.append(\"To: \").append(getTo()).append(\"\\r\\n\");\n mailHeaders.append(\"From: \").append(getFrom()).append(\"\\r\\n\");\n mailHeaders.append(\"MIME-version: 1.0\").append(\"\\r\\n\");\n \n String sourceContentType = mailConnection.getContentType();\n mailHeaders.append(\"Content-Type: \").append(sourceContentType).append(\"\\r\\n\");\n \n mailHeaders.append(\"\\r\\n\");\n mailHeaders.append(\"This is a multi-part message in MIME format.\\r\\n\");\n \n mailSink.write(mailHeaders.toString().getBytes());\n \n InputStream mailBodyStream = mailConnection.getInputStream();\n \n int readMax = 65536; // 64 KB, picked at random...\n byte[] buffer = new byte[readMax]; \n int readLength = mailBodyStream.read(buffer, 0, readMax);\n \n while(0 <= readLength)\n {\n mailSink.write(buffer, 0, readLength); \n readLength = mailBodyStream.read(buffer, 0, readMax);\n }\n \n byte[] allMessageBytes = mailSink.toByteArray();\n \n // System.out.println(getClass().getName() + \" mailing the following messsage:\");\n // System.out.println(new String(allMessageBytes));\n \n final ByteArrayInputStream mailMessageStream = \n new ByteArrayInputStream(allMessageBytes);\n \n Properties props = new Properties();\n props.put(\"mail.smtp.host\", _mailServer);\n\n Session session = Session.getInstance(props, null);\n MimeMessage msg = new MimeMessage(session, mailMessageStream);\n \n Transport t = session.getTransport(\"smtp\");\n try\n {\n t.addTransportListener(new TransportListener()\n {\n @Override\n public void messageDelivered(TransportEvent transportEvent)\n {\n System.out.println(\"Email sent\");\n }\n\n @Override\n public void messageNotDelivered(TransportEvent transportEvent)\n {\n System.err.println(\"Email failed.\");\n }\n\n @Override\n public void messagePartiallyDelivered(TransportEvent transportEvent)\n {\n System.err.println(\"Email partially sent\");\n }\n });\n\n t.connect();\n t.sendMessage(msg, msg.getAllRecipients());\n }\n finally\n {\n t.close();\n }\n \n }", "title": "" }, { "docid": "cfa35f00ed62afc4487fe4d4b9754bb2", "score": "0.53893965", "text": "protected static void sendMultipartMessageText( MailItem mail, Transport transport, Session session ) throws MessagingException\n {\n Message msg = prepareMessage( mail, session );\n msg.setHeader( HEADER_NAME, HEADER_VALUE );\n\n // Creation of the root part containing all the elements of the message\n MimeMultipart multipart = new MimeMultipart( );\n\n // Creation of the html part, the \"core\" of the message\n BodyPart msgBodyPart = new MimeBodyPart( );\n msgBodyPart.setDataHandler( new DataHandler( new ByteArrayDataSource( mail.getMessage( ),\n AppPropertiesService.getProperty( PROPERTY_MAIL_TYPE_PLAIN ) + AppPropertiesService.getProperty( PROPERTY_CHARSET ) ) ) );\n multipart.addBodyPart( msgBodyPart );\n\n // add File Attachement\n if ( mail.getFilesAttachement( ) != null )\n {\n for ( FileAttachment fileAttachement : mail.getFilesAttachement( ) )\n {\n String strFileName = fileAttachement.getFileName( );\n byte [ ] bContentFile = fileAttachement.getData( );\n String strContentType = fileAttachement.getType( );\n ByteArrayDataSource dataSource = new ByteArrayDataSource( bContentFile, strContentType );\n msgBodyPart = new MimeBodyPart( );\n msgBodyPart.setDataHandler( new DataHandler( dataSource ) );\n msgBodyPart.setFileName( strFileName );\n msgBodyPart.setDisposition( CONSTANT_DISPOSITION_ATTACHMENT );\n multipart.addBodyPart( msgBodyPart );\n }\n }\n\n msg.setContent( multipart );\n\n sendMessage( msg, transport );\n }", "title": "" }, { "docid": "c95b5169252a6df360010a29c753f843", "score": "0.53726953", "text": "public void enviarEmail () {\n System.out.println(\"*** Email enviado com sucesso! ***\");\n System.out.println(\"Titulo do email: \" + titulo);\n System.out.println(\"Remetente: \" + remetente);\n System.out.println(\"Destinatario: \" + destinatario);\n System.out.println(\"Mensagem: \" + mensagem);\n }", "title": "" }, { "docid": "0364b2a7eda1a3c83cdfe98a53ab401c", "score": "0.53566974", "text": "@Override\n public void notificacao() {\n Email email = new SimpleEmail();\n\n // Configuração\n email.setHostName(\"smtp.googlemail.com\");\n email.setSmtpPort(465);\n email.setStartTLSEnabled(true);\n email.setSSLOnConnect(true);\n email.setAuthenticator(new DefaultAuthenticator(login,senha));\n try {\n email.setFrom( login, nome);\n //\n email.setSubject(titulo);\n email.setMsg(corpo);\n //\n email.addTo(emailDestinatario);\n email.send();\n System.out.println(\"Enviado\");\n } catch (EmailException e) {\n e.printStackTrace();\n logger.severe(\"houve um erro ao enviar o email de notificação para este destinatário!\");\n }\n \n }", "title": "" }, { "docid": "181bfcf31a0128eb4522da2e9def398b", "score": "0.5356345", "text": "public void sendCsvAttached(Mail mail, byte[] bytesfile, String nameAttachedDoc) throws MessagingException {\n\n MimeMessage message = emailSender.createMimeMessage();\n MimeMessageHelper helper = new MimeMessageHelper(message, true);\n\n helper.setSubject(mail.getSubject());\n helper.setText(mail.getContent());\n helper.setTo(mail.getTo());\n helper.setFrom(mail.getFrom());\n\n helper.addAttachment(nameAttachedDoc+\".csv\",new ByteArrayResource(bytesfile),\"text/csv\");\n emailSender.send(message);\n\n }", "title": "" }, { "docid": "33c1fb152d638d8b2aa14f402b77c09f", "score": "0.5334339", "text": "EMailReservation createEMailReservation(EMail email);", "title": "" }, { "docid": "36b896384241b02f9a76f0e3cf7ae3ea", "score": "0.53291875", "text": "public void sendPdfAttached(Mail mail, byte[] bytesfile, String nameAttachedDoc) throws MessagingException {\n\n MimeMessage message = emailSender.createMimeMessage();\n MimeMessageHelper helper = new MimeMessageHelper(message, true);\n\n helper.setSubject(mail.getSubject());\n helper.setText(mail.getContent());\n helper.setTo(mail.getTo());\n helper.setFrom(mail.getFrom());\n\n helper.addAttachment(nameAttachedDoc+\".pdf\",new ByteArrayResource(bytesfile), MediaType.APPLICATION_PDF.toString());\n emailSender.send(message);\n\n }", "title": "" }, { "docid": "1acd59c1efaa50d47bffb4b57339c6a1", "score": "0.53255045", "text": "void sendMessageWithAttachment(String to,String subject,String text, String pathToAttachment);", "title": "" }, { "docid": "3670e5a1e7c05f3cfcfb53c1b08bfbd9", "score": "0.53238523", "text": "public static void sendNewMail(String to, String fileName) {\n\t\t\n\t\tfinal String username = \"entrecine4as@gmail.com\";\n\t\tfinal String password = \"\"; // La contraseña será la que se especifiará en el fichero de Google Drive por temas de seguridad.\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\t\n\t\tString from = \"entrecine4as@gmail.com\";\n\t\t\n\n\t\tSession session = Session.getInstance(props,\n\t\t\t\tnew javax.mail.Authenticator() {\n\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\ttry {\n\n\t\t\tMessage message = new MimeMessage(session);\n\t\t\tmessage.setFrom(new InternetAddress(from));\n\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\tInternetAddress.parse(to));\n\t\t\tmessage.setSubject(\"EntreCine 4 -- ENTRADA\");\n\t\t\tmessage.setText(\"Gracias por su entrada.\\n\\nLe enviamos adjunto \"\n\t\t\t\t\t+ \"el código QR para que pueda imprimirlo y canjearlo por su entrada.\"\n\t\t\t\t\t+ \"\\n\\nLe recordamos que la entrada no será activada hasta que se complete el pago.\"\n\t\t\t\t\t+ \"\\n\\nGracias por confiar en Entrecine4.\");\n\n\t\t\t// Adding the QR code attached to the mail\n\t\t\tFileDataSource fds = new FileDataSource(fileName);\n\t\t\tmessage.setDataHandler(new DataHandler(fds));\n\t\t\tmessage.setFileName(fds.getName());\n\n\t\t\tTransport.send(message);\n\n\t\t\tSystem.out.println(\"Done\");\n\n\t\t} catch (MessagingException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t}", "title": "" }, { "docid": "e6eb8254e1aa71f9a03d728410ff09a1", "score": "0.5322972", "text": "public void sendEmailTestReport() throws EmailException {\n\t\t\t String htmlEmailTemplate = \"F:\\\\Selenium.Automation\\\\SelFramework\\\\testResults\\\\RBZ\\\\31-May-2019\\\\RBZ_TestReport_31-May-2019 042558 PM.html\";\r\n\r\n\t\t\t // define you base URL to resolve relative resource locations\r\n\t\t\t //URL url = new URL(\"http://www.apache.org\");\r\n\r\n\t\t\t // create the email message\r\n\t\t\t //ImageHtmlEmail email = new ImageHtmlEmail();\r\n\t\t\t Email email = new SimpleEmail();\r\n\t\t\t //email.setDataSourceResolver(new DataSourceUrlResolver(url));\r\n\t\t\t email.setHostName(\"smtp.gmail.com\");\r\n\t\t\t email.setSslSmtpPort(\"465\");\r\n\t\t\t email.setSSLOnConnect(true);\r\n\t\t\t email.setAuthenticator(new DefaultAuthenticator(\"umasundari2010@gmail.com\", \"Rithvik2006\"));\r\n\t\t\t\temail.setDebug(true);\r\n\t\t\t\temail.getMailSession().getProperties().put(\"mail.smtps.auth\", \"true\");\r\n\t\t\t\temail.getMailSession().getProperties().put(\"mail.debug\", \"true\");\r\n\t\t\t\temail.getMailSession().getProperties().put(\"mail.smtps.port\", \"587\");\r\n\t\t\t\temail.getMailSession().getProperties().put(\"mail.smtps.socketFactory.port\", \"587\");\r\n\t\t\t\temail.getMailSession().getProperties().put(\"mail.smtps.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t\t\t\temail.getMailSession().getProperties().put(\"mail.smtps.socketFactory.fallback\", \"false\");\r\n\t\t\t\temail.getMailSession().getProperties().put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t\t\t email.addTo(\"umasundari2010@gmail.com\", \"Uma\");\r\n\t\t\t email.setFrom(\"umasundari2010@gmail.com\", \"Me\");\r\n\t\t\t email.setSubject(\"Test Results Mail\");\r\n\t\t\t \r\n\t\t\t // set the html message\r\n\t\t\t //email.setHtmlMsg(htmlEmailTemplate);\r\n\r\n\t\t\t // set the alternative message\r\n\t\t\t //email.setTextMsg(\"Your email client does not support HTML messages\");\r\n\r\n\t\t\t // send the email\r\n\t\t\t email.send();\r\n\t\t}", "title": "" }, { "docid": "63874d9c9b4c513af6122b625f6e41b3", "score": "0.5320194", "text": "public void btnSendToEmail(View view) {\n File pdfFile = createPDF();\n if (pdfFile == null) {\n /// the pdf file cannot be created not open the email app, show a warning\n Toast.makeText(this, \"Cannot create the pdf\", Toast.LENGTH_LONG)\n .show();\n\n return;\n }\n\n /*\n call the intent send email, add attachment, and set permission to read it,\n open chooser for email, and send\n */\n\n Uri path = Uri.fromFile(pdfFile);\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n// set the type to 'email'\n emailIntent.setType(\"vnd.android.cursor.dir/email\");\n// String to[] = {\"asd@gmail.com\"};\n// emailIntent .putExtra(Intent.EXTRA_EMAIL, to);\n\n emailIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n// emailIntent.setType(\"application/pdf\");\n emailIntent.putExtra(Intent.EXTRA_STREAM, path);\n\n// the mail subject\n// emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Subject\");\n startActivity(Intent.createChooser(emailIntent, \"Send email...\"));\n }", "title": "" }, { "docid": "b2b37fa688a072788a8c5af80b2900b4", "score": "0.5319816", "text": "public static void GeraNovaBaseAssentos(String filename, Integer E, Integer B, Integer P) {\n // Nome da base de dados (calculada pelo metodo 'retornaNomeArquivo')\n local = \"\"; //diretorio ondes serao gravados/lidos os arquivos gerados pelo gerenciador de agenda.\n String name = filename;\n name = local + filename;\n String msg = \"\";\n // Get ArrayList contendo valores para cada assento da aeronave\n ArrayList<String> input = criaNumeroAssento(E, B, P); //criaNumeroAssento(Integer nE, Integer nB, Integer nP)\n\n // Nome da base de dados\n //String agendaSelecionada = retornaNomeArquivo(name);\n String agendaSelecionada = name;\n\n File arquivoVooSelecionado = new File(agendaSelecionada);\n\n try {\n // if the file exists, do not create a new file (leave existing file alone)\n if (arquivoVooSelecionado.exists() == true) {\n // msg = \"Arquivo: \"+agendaSelecionada+\" ja existe\" +\"\\n\";\n return;\n }\n\n } catch (Exception ex) {\n msg = msg + \"Erro 4 Metodo - GeraNovaBaseAssentos() \\n\";\n msg = msg + ex + \"\\n\";\n System.err.println(ex.getMessage());\n } finally {\n if (!msg.equals(\"\")) {\n\n JOptionPane.showMessageDialog(null, msg);\n }\n }\n // if the file doesnt exist..\n try {\n\n arquivoVooSelecionado.createNewFile(); // cria um novo arquivo com o nome selecionado\n\n // Inicio de dependencias para leitura do arquivo.\n FileInputStream fs = new FileInputStream(arquivoVooSelecionado.toString());\n DataInputStream in = new DataInputStream(fs);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n\n // Inicio de dependencias para gravacao do arquivo.\n String stringLine;\n // Write a ; to the file (this is needed to add some content to replace)\n try (BufferedWriter fw1 = new BufferedWriter(new FileWriter(agendaSelecionada))) {\n // Write a ; to the file (this is needed to add some content to replace)\n fw1.write(\";\");\n // Close this write dependancy\n }\n\n // While there are Lines left to be read\n while ((stringLine = br.readLine()) != null) {\n try ( // Create dependencies for writing to same file\n BufferedWriter fw = new BufferedWriter(new FileWriter(agendaSelecionada))) {\n int x = 0;\n // Iterate through the new edited array (orginal array minus selected seat)\n while (x < input.size()) {\n // Rewrite every line of the text file with each entry in the new array\n String line = input.get(x);\n fw.write(line + \";\");\n x++;\n }\n //Close the file writing dependency\n }\n }\n msg = \"Arquivo: \" + agendaSelecionada + \" criado com sucesso!\" + \"\\n\";\n\n } catch (Exception ex) {\n msg = msg + \"Erro 5 Metodo - GeraNovaBaseAssentos()\\n\";\n msg = msg + ex + \"\\n\";\n System.err.println(ex.getMessage());\n } finally {\n if (!msg.equals(\"\")) {\n JOptionPane.showMessageDialog(null, msg);\n }\n\n }\n\n }", "title": "" }, { "docid": "eac6323f484f7fac9811529f22c6a21a", "score": "0.531083", "text": "public void sendMail(String[] receipts, String from, String subject, String mailText, String fileName) throws MessagingException{\n\t\tString[] pathNodes = null;\r\n\t\tif (fileName.indexOf(\"/\") > 0){\r\n\t\t\tpathNodes = fileName.split(\"/\");\r\n\t\t}else if (fileName.indexOf(\"\\\\\") > 0){\r\n\t\t\tpathNodes = fileName.split(\"\\\\\\\\\");\r\n\t\t}else{\r\n\t\t\tpathNodes = new String[] {fileName};\r\n\t\t}\r\n\t\t\r\n\t\tString attachName = pathNodes[pathNodes.length-1];\r\n\t\tsendMultipartMail(receipts, from, null, subject, mailText, false, new FileSystemResource(fileName), attachName);\r\n\t}", "title": "" }, { "docid": "1f0e53b706e54d3357bee53e2840994f", "score": "0.53103596", "text": "private int addAttachmentDetails(HttpServletRequest request,HttpServletResponse response) throws FoursoftException\n {\n SetUpSessionHome home = null;\n SetUpSession remote = null;\n QMSAttachmentDOB attachmentDOB = null;\n QMSAttachmentDetailDOB detailDOB = null;\n QMSAttachmentFileDOB fileDOB = null;\n MultipartParser\t\t mp = null;\n Part\t\t\t\t\t part = null;\n String\t\t\t\t name = null;\n FilePart\t\t\t\t filePart = null;\n ParamPart\t\t\t\t paramPart = null;\n File\t fileRead = null;\n String\t\t\t\t fileName = null;\n BufferedReader\t\t br = null;\n String data = null; \n HttpSession session = null;\n String shipmentMode = null; \n String consoleType = null;\n String quoteType = null; \n String defaultFlag = null; \n String fromCountry = null; \n String fromLocation = null; \n String toLocation = null; \n String toCountry = null; \n String carrierId = null; \n String serviceLevelId = null; \n String industry = null; \n String operation = null;\n String[] fromCountryList = null; \n String[] fromLocationList = null; \n String[] toLocationList = null; \n String[] toCountryList = null; \n String[] carrierIdList = null; \n String[] serviceLevelIdList = null; \n String[] industryList = null; \n ArrayList value = new ArrayList(); \n ArrayList fieldsList = new ArrayList();\n ArrayList fileData = new ArrayList();\n ArrayList order = new ArrayList();\n int maxLength;\n int i = 0;\n Collections.sort(order);\n try\n {\n operation = request.getParameter(\"Operation\");\n session = request.getSession();\n if(\"Add\".equalsIgnoreCase(operation))\n attachmentDOB = (QMSAttachmentDOB)session.getAttribute(\"attachmentDOB\");\n else\n attachmentDOB = (QMSAttachmentDOB)session.getAttribute(\"QMSAttachmentDOB\");\n \n mp = new MultipartParser(request, 10*1024*1024); // 1MB \n while ((part = mp.readNextPart()) != null)\n {\n name = part.getName();\n if (name != null)\n name = name.trim();\n \n if (part.isParam())\n { \t\t\t\t \n paramPart = (ParamPart) part;\n if(\"shipmentMode\".equals(paramPart.getName()))\n shipmentMode = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n if(\"consoleType\".equals(paramPart.getName()))\n consoleType = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n \n if(\"quoteType\".equals(paramPart.getName()))\n quoteType = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n if(\"defaultFlag\".equals(paramPart.getName()))\n defaultFlag = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n if(\"fromCountry\".equals(paramPart.getName()))\n fromCountry = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n if(\"toCountry\".equals(paramPart.getName()))\n toCountry = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n if(\"fromLocation\".equals(paramPart.getName()))\n fromLocation = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n if(\"toLocation\".equals(paramPart.getName()))\n toLocation = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n if(\"carriers\".equals(paramPart.getName()))\n carrierId = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n if(\"serviceLevelId\".equals(paramPart.getName()))\n serviceLevelId = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n if(\"industryId\".equals(paramPart.getName()))\n industry = paramPart.getStringValue()!=null?paramPart.getStringValue():\"\";\n }\n else if (part.isFile())\n {\n if(\"Add\".equalsIgnoreCase(operation))\n {\n filePart = (FilePart) part;\n fileName = filePart.getFileName();\n filePart.writeTo(new File(\"./\"));\n fileRead = new File(filePart.getFileName());\t\n // logger.info(\"path\"+ fileRead.getAbsolutePath());\n fileDOB = new QMSAttachmentFileDOB();\n fileDOB.setAttachmentId(attachmentDOB.getAttachmentId());\n fileDOB.setFileName(fileName);\n fileDOB.setPdfFile(fileRead);\n fileData.add(fileDOB);\n }\n }\n }\n fromCountryList = fromCountry.split(\",\");\n fromLocationList = fromLocation.split(\",\");\n toLocationList = toLocation.split(\",\"); \n toCountryList = toCountry.split(\",\");\n carrierIdList = carrierId.split(\",\");\n serviceLevelIdList = serviceLevelId.split(\",\");\n industryList = industry.split(\",\"); \n \n order.add(new Integer(fromCountryList.length));\n order.add(new Integer(fromLocationList.length));\n order.add(new Integer(toLocationList.length));\n order.add(new Integer(toCountryList.length));\n order.add(new Integer(carrierIdList.length));\n order.add(new Integer(serviceLevelIdList.length));\n order.add(new Integer(industryList.length)); \n Collections.sort(order);\n maxLength = Integer.parseInt(order.get(6).toString());\n for(int j=0;j<maxLength;j++)\n {\n detailDOB = new QMSAttachmentDetailDOB();\n detailDOB.setAttachmentId(attachmentDOB.getAttachmentId());\n detailDOB.setDefaultFlag(defaultFlag);\n detailDOB.setConsoleType(consoleType);\n detailDOB.setQuoteType(quoteType);\n detailDOB.setShipmentMode(shipmentMode);\n if(j<fromCountryList.length)\n detailDOB.setFromCountry(fromCountryList[j]);\n else \n detailDOB.setFromCountry(\"\");\n if(j<fromLocationList.length) \n detailDOB.setFromLocation(fromLocationList[j]);\n else\n detailDOB.setFromLocation(\"\");\n if(j<toCountryList.length) \n detailDOB.setToCountry(toCountryList[j]);\n else\n detailDOB.setToCountry(\"\");\n if(j<toLocationList.length) \n detailDOB.setToLocation(toLocationList[j]);\n else\n detailDOB.setToLocation(\"\");\n if(j<carrierIdList.length)\n detailDOB.setCarrierId(carrierIdList[j]);\n else\n detailDOB.setCarrierId(\"\");\n if(j<serviceLevelIdList.length)\n detailDOB.setServiceLevelId(serviceLevelIdList[j]);\n else\n detailDOB.setServiceLevelId(\"\");\n if(j<industryList.length)\n detailDOB.setIndustry(industryList[j]);\n else\n detailDOB.setIndustry(\"\");\n fieldsList.add(detailDOB);\n }\n home = (SetUpSessionHome)LookUpBean.getEJBHome(\"SetUpSessionBean\");\n remote = home.create();\n \n attachmentDOB.setQmsAttachmentDetailDOBList(fieldsList);\n if(\"Add\".equalsIgnoreCase(operation))\n attachmentDOB.setQmsAttachmentFileDOBList(fileData);\n attachmentDOB.setInvalidate(\"F\");\n if(\"Add\".equalsIgnoreCase(operation))\n i = remote.addAttachmentDtls(attachmentDOB);\n else \n i = remote.updateAttachmentDtls(attachmentDOB);\n }\n catch(Exception e)\n {\n e.printStackTrace();\n if(\"Add\".equalsIgnoreCase(operation))\n {\n logger.error(FILE_NAME+\"Error while inserting the values\"+e.toString());\n i = 0;\n throw new FoursoftException(\"An error occured while inserting the details 'Please try again\");\n }\n else\n {\n logger.error(FILE_NAME+\"Error while updating the values\"+e.toString());\n i = 0;\n throw new FoursoftException(\"An error occured while updating the details 'Please try again\");\n }\n }\n return i;\n }", "title": "" }, { "docid": "a0a841bb14881dc438671528fe0f758e", "score": "0.53033745", "text": "public void enviar(String assunto, String mensagem) throws MessagingException, UnsupportedEncodingException {\n\t\ttry {\n\t\t\tInternetAddress internetAddress;\n\t\t\tboolean first = true;\n\t\t\t\n\t\t\tthis.sessaoEmail = Session.getDefaultInstance(this.propiedadesEmail, this.autenticacaoEmail);\n\t\t\t// session.setDebug(true);\n\t\t\t\n\t\t\tMessage msg = new MimeMessage(this.sessaoEmail);\t\t\t\n\t\t\tfor (int i = 0 ; i < listaNome.size() ; i++) {\n\t\t\t\tinternetAddress = new InternetAddress(this.listaEmail.get(i), this.listaNome.get(i));\n\t\t\t\tif (first) {\n\t\t\t\t\t// setamos o 1° destinatario\n\t\t\t\t\tmsg.addRecipient(Message.RecipientType.TO, internetAddress);\n\t\t\t\t\tfirst = false;\n\t\t\t\t} else {\n\t\t\t\t\tmsg.addRecipient(Message.RecipientType.CC, internetAddress);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\tinternetAddress = new InternetAddress(\"automato@superbutton.com.br\", nomeRemetente);\n\t\t\tmsg.setFrom(internetAddress);\n\n\t\t\tmsg.setSubject(assunto);\n\n\t\t\t// Cria o objeto que recebe o texto do corpo do email\n\t\t\tMimeBodyPart textPart = new MimeBodyPart();\n\t\t\ttextPart.setContent(mensagem, MailJava.TYPE_TEXT_PLAIN);\n\n\t\t\t// Monta a mensagem SMTP inserindo o conteudo, texto e anexos\n\t\t\tMultipart mps = new MimeMultipart();\n\n\t\t\t// adiciona o corpo texto da mensagem\n\t\t\tmps.addBodyPart(textPart);\n\n\t\t\t// adiciona a mensagem o conteúdo texto e anexo\n\t\t\tmsg.setContent(mps);\n\t\t\t\n\t\t\tTransport transport = this.sessaoEmail.getTransport(); \n\t\t\ttransport.connect(\"smtp.superbutton.com.br\",\"automato@superbutton.com.br\",\"bottomup14092011\"); \t\t\t\n\t\t\tSystem.out.println(transport.isConnected());\n\t\t\t\n\t\t\tTransport.send(msg);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new UnsupportedEncodingException();\n\t\t} catch (MessagingException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new MessagingException();\n\t\t}\n\t}", "title": "" }, { "docid": "34964b7e56086b7f3c204d93aa47c4b4", "score": "0.53009075", "text": "private File writeAttachmentToDisk(RequestTitleXLSFromHTMLAttachment att)\n\t\tthrows IOException\n\t{\n\t\tString directory = config.getReqtitleTmpDir();\n\t\tString filename = config.getReqtitleAttachmentName();\n\t\tFile file = new File(directory,filename);\n\t\t\n\t\tif (file.exists())\n\t\t{\n\t\t\tfile.delete();\n\t\t}\n\t\t\n\t\tIOUtils.stringToFile(att.getContent(), file);\n\n\t\treturn file;\n\t}", "title": "" }, { "docid": "f827473d46d2f636bb687f2f98956164", "score": "0.5299903", "text": "public void testService() throws MessagingException, IOException {\n Mailet mailet;\n FakeMailetConfig mci;\n MimeMessage message;\n Mail mail;\n\n mailet = new OnlyText();\n mci = FakeMailetConfig.builder()\n .mailetName(\"Test\")\n .build();\n mailet.init(mci);\n\n // ----------------\n\n message = new MimeMessage(Session.getDefaultInstance(new Properties()));\n message.setSubject(\"prova\");\n message.setText(\"Questa \\u00E8 una prova\");\n message.saveChanges();\n\n mail = FakeMail.builder()\n .mimeMessage(message)\n .build();\n mailet.service(mail);\n\n assertEquals(\"prova\", mail.getMessage().getSubject());\n assertEquals(\"Questa \\u00E8 una prova\", mail.getMessage().getContent());\n\n // -----------------\n\n message = new MimeMessage(Session.getDefaultInstance(new Properties()));\n message.setSubject(\"prova\");\n MimeMultipart mp = new MimeMultipart();\n MimeBodyPart bp = new MimeBodyPart();\n bp.setText(\"Questo \\u00E8 un part interno1\");\n mp.addBodyPart(bp);\n bp = new MimeBodyPart();\n bp.setText(\"Questo \\u00E8 un part interno2\");\n mp.addBodyPart(bp);\n bp = new MimeBodyPart();\n MimeMessage message2 = new MimeMessage(Session\n .getDefaultInstance(new Properties()));\n bp.setContent(message2, \"message/rfc822\");\n mp.addBodyPart(bp);\n message.setContent(mp);\n message.saveChanges();\n\n mail = FakeMail.builder()\n .mimeMessage(message)\n .build();\n mailet.service(mail);\n\n assertEquals(\"prova\", mail.getMessage().getSubject());\n assertEquals(\"Questo \\u00E8 un part interno1\", mail.getMessage()\n .getContent());\n\n // -----------------\n\n message = new MimeMessage(Session.getDefaultInstance(new Properties()));\n message.setSubject(\"prova\");\n mp = new MimeMultipart();\n bp = new MimeBodyPart();\n bp.setText(\"Questo \\u00E8 un part interno1\");\n mp.addBodyPart(bp);\n bp = new MimeBodyPart();\n bp.setText(\"Questo \\u00E8 un part interno2\");\n mp.addBodyPart(bp);\n bp = new MimeBodyPart();\n message2 = new MimeMessage(Session.getDefaultInstance(new Properties()));\n bp.setContent(message2, \"message/rfc822\");\n mp.addBodyPart(bp);\n\n MimeMultipart mpext = new MimeMultipart();\n bp = new MimeBodyPart();\n bp.setContent(mp);\n mpext.addBodyPart(bp);\n\n message.setContent(mpext);\n message.saveChanges();\n\n mail = FakeMail.builder()\n .mimeMessage(message)\n .build();\n mailet.service(mail);\n\n assertEquals(\"prova\", mail.getMessage().getSubject());\n assertEquals(\"Questo \\u00E8 un part interno1\", mail.getMessage()\n .getContent());\n\n // ---------------------\n\n message = new MimeMessage(Session.getDefaultInstance(new Properties()));\n message.setSubject(\"prova\");\n message.setContent(\"<p>Questa \\u00E8 una prova<br />di html</p>\",\n \"text/html\");\n message.saveChanges();\n\n mail = FakeMail.builder()\n .mimeMessage(message)\n .build();\n mailet.service(mail);\n\n assertEquals(\"prova\", mail.getMessage().getSubject());\n assertEquals(\"Questa \\u00E8 una prova\\ndi html\\n\", mail.getMessage()\n .getContent());\n assertTrue(mail.getMessage().isMimeType(\"text/plain\"));\n\n // -----------------\n\n message = new MimeMessage(Session.getDefaultInstance(new Properties()));\n message.setSubject(\"prova\");\n mp = new MimeMultipart();\n bp = new MimeBodyPart();\n message2 = new MimeMessage(Session.getDefaultInstance(new Properties()));\n bp.setContent(message2, \"message/rfc822\");\n mp.addBodyPart(bp);\n bp = new MimeBodyPart();\n bp.setContent(\"<p>Questa \\u00E8 una prova<br />di html</p>\", \"text/html\");\n mp.addBodyPart(bp);\n message.setContent(mp);\n message.saveChanges();\n\n mail = FakeMail.builder()\n .mimeMessage(message)\n .build();\n mailet.service(mail);\n\n assertEquals(\"prova\", mail.getMessage().getSubject());\n assertEquals(\"Questa \\u00E8 una prova\\ndi html\\n\", mail.getMessage()\n .getContent());\n assertTrue(mail.getMessage().isMimeType(\"text/plain\"));\n }", "title": "" }, { "docid": "0f3412dd3e32e02a417f28d5c81b4e4b", "score": "0.52977943", "text": "public String makeFCKAttachment(List respondueTextList) {\n\t if (respondueTextList == null || respondueTextList.size() == 0) {\n\t\t return \"\";\n\t } \n\t String accessURL = ServerConfigurationService.getAccessUrl();\n\t String referenceRoot = AssessmentService.getContentHostingService().REFERENCE_ROOT;\n\t String prependString = accessURL + referenceRoot;\n\t ContentResource contentResource = null;\n\t AttachmentHelper attachmentHelper = new AttachmentHelper();\n\t String resourceId = null;\n\n\t String contentType = \"\";\n\t String filename = \"\";\n\t StringBuffer fullFilePath = null;\n\n\t Iterator iter = respondueTextList.iterator();\n\t String itemText = \"\";\n\t String formattedText = \"\";\n\t StringBuffer updatedText = new StringBuffer();\n\t while (iter.hasNext()) {\n\t\t itemText = (String) iter.next();\n\t\t formattedText = XmlUtil.processFormattedText(itemText);\n\t\t formattedText = formattedText.replaceAll(\"\\\\?\\\\?\",\" \");\n\t\t String [] splittedText = formattedText.split(\":::\");\n\t\t if (\"mattext\".equals(splittedText[0])) {\n\t\t\t // &lt;!-- RspA --&gt; is inserted by Respondus when using web link\n\t\t\t String correctedText = splittedText[1].replaceAll(\"&lt;!-- RspA --&gt;\", \"\");\n\t\t\t updatedText.append(correctedText);\n\t\t }\n\t\t else if (\"matimage\".equals(splittedText[0])) {\n\t\t\t contentType = splittedText[1];\n\t\t\t filename = splittedText[2];\n\t\t\t fullFilePath = new StringBuffer(unzipLocation);\n\t\t\t fullFilePath.append(\"/\");\n\t\t\t fullFilePath.append(filename);\n\t\t\t contentResource = attachmentHelper.createContentResource(fullFilePath.toString(), filename, contentType);\n\t\t\t if (contentResource != null) {\n\t\t\t\t resourceId = contentResource.getId();\n\t\t\t\t updatedText.append(\"<img src=\\\"\");\n\t\t\t\t updatedText.append(prependString);\n\t\t\t\t updatedText.append(resourceId);\n\t\t\t\t updatedText.append(\"\\\"/>\");\n\t\t\t }\n\t\t\t else {\n\t\t\t\t throw new RuntimeException(\"resourceId is null\");\n\t\t\t }\n\t\t }\n\t }\n\n\t return updatedText.toString();\n }", "title": "" }, { "docid": "87e1e53034deb082f71d7ffbd9804645", "score": "0.52853966", "text": "public void sendMailWithAttachment(String recipient, String subject, String message, String fileName, String fileLocation) {\n try {\n MimeMessage mimeMessage = new MimeMessage(session);\n mimeMessage.setFrom(new InternetAddress(sender));\n mimeMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(recipient));\n mimeMessage.setSubject(subject);\n BodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setText(message);\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n messageBodyPart = new MimeBodyPart();\n String filename = fileLocation;\n DataSource source = new FileDataSource(fileLocation);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(filename);\n multipart.addBodyPart(messageBodyPart);\n mimeMessage.setContent(multipart);\n Transport.send(mimeMessage);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "820b56150b8372d850e98d2024c5b3f0", "score": "0.5276436", "text": "public Attachment(){}", "title": "" }, { "docid": "c1afceecb1e8bf0aa3e304740531e68d", "score": "0.5261385", "text": "public List<AttachmentFile> checkAndGetAttachmentFile(int articleNumber, HttpServletRequest req) throws Exception;", "title": "" }, { "docid": "e3272feac297abca4e8efd8e088f76fb", "score": "0.5224824", "text": "public File createMailer(String name, String...methods) {\n \t\tFile mailer = ProjectGenerator.createMailer(this, adjust(name, \"Mailer\"), methods);\n \t\taddExportPackage(packageName(mailers));\n \t\taddImportPackage(Mailer.class.getPackage().getName());\n \t\taddImportPackage(InternetAddress.class.getPackage().getName());\n \t\treturn mailer;\n \t}", "title": "" }, { "docid": "ef89259929b2d5eb586fd1288e41f2bd", "score": "0.5214962", "text": "private void sendEmailWithHTMLBodyAndAttachment() {\n try {\n //Set Html here\n // Setters\n// if (html == null) setHtml(\"No Report found\");\n// else setHtml(html);\n if (to == null) setTo(DEFAULT_EMAIL_LIST);\n if (subject == null)\n setSubject(\n getDateTime()\n + \" | \"\n + getEnv().toUpperCase()\n + \" | Automation Test Report\");\n\n MimeMessage Mimemessage = createHTMLMessageForEmail();\n Message message = createMessageWithEmail(Mimemessage);\n message = service.users().messages().send(user, message).execute();\n\n System.out.println(\"Message id: \" + message.getId());\n System.out.println(message.toPrettyString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "92798163cfa243464baf20e70d7dc457", "score": "0.5202487", "text": "private File createPdfFile(String sickLeaveAttachmentName, byte[] bytes) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = sickLeaveAttachmentName + timeStamp;\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DOWNLOADS);\n File pdfFile = File.createTempFile(\n imageFileName, /* prefix */\n \".pdf\", /* suffix */\n storageDir /* directory */\n );\n BufferedOutputStream bos = null;\n FileOutputStream os = null;\n pdfFilePath = pdfFile.getAbsolutePath();\n try {\n os = new FileOutputStream(pdfFile);\n bos = new BufferedOutputStream(os);\n bos.write(bytes);\n } finally {\n if (bos != null) {\n try {\n //flush and close the BufferedOutputStream\n bos.flush();\n bos.close();\n os.flush();\n os.close();\n } catch (Exception e) {\n }\n }\n }\n return pdfFile;\n }", "title": "" }, { "docid": "a6c129426b6bfa81d227cec814f3969d", "score": "0.5194305", "text": "public static void mht2html(String s_SrcMht, String s_DescHtml, String recordname) {\n try {\n InputStream fis = new FileInputStream(s_SrcMht);\n Session mailSession = Session.getDefaultInstance(System.getProperties(), null);\n MimeMessage msg = new MimeMessage(mailSession, fis);\n Object content = msg.getContent();\n if (content instanceof Multipart) {\n MimeMultipart mp = (MimeMultipart) content;\n MimeBodyPart bp1 = (MimeBodyPart) mp.getBodyPart(0);\n\n // Get the code of the mht file content code\n String strEncodng = getEncoding(bp1);\n\n // Get the contents of the mht file\n String strText = getHtmlText(bp1, strEncodng);\n if (strText == null) {\n return;\n }\n\n // Create a folder with the mht file name, mainly used to save resource files.\n File parent = null;\n if (mp.getCount() > 1) {\n parent = new File(new File(s_DescHtml).getAbsolutePath());\n parent.mkdirs();\n if (!parent.exists()) { // Exit if the folder fails to be created\n return;\n }\n }\n\n // FOR code is mainly to save resource files and replace paths\n for (int i = 1; i < mp.getCount(); ++i) {\n MimeBodyPart bp = (MimeBodyPart) mp.getBodyPart(i);\n // Get the path to the resource file\n // Example (Get: http://xxx.com/abc.jpg)\n String strUrl = getResourcesUrl(bp);\n if (strUrl == null || strUrl.length() == 0) {\n continue;\n }\n\n DataHandler dataHandler = bp.getDataHandler();\n MimePartDataSource source = (MimePartDataSource) dataHandler.getDataSource();\n\n // Get the absolute path of the resource file\n String FilePath = parent.getAbsolutePath() + File.separator + getName(strUrl, i);\n File resources = new File(FilePath);\n\n // save the resource file\n if (SaveResourcesFile(resources, bp.getInputStream())) {\n // Replace the remote address with a local address such as image, JS, CSS style,\n // etc.\n strText = strText.replace(strUrl, resources.getAbsolutePath());\n\n }\n }\n\n // Finally save the HTML file\n SaveHtml(strText, s_DescHtml, strEncodng);\n //deleting unwanted files\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(Paths.get(parent.getAbsolutePath()))) {\n for (Path entry : stream) {\n File file = entry.toFile();\n if (file.isFile()) {\n if ((file.length() < 100000\n && file.getName().contains(\"jpg\"))\n || file.getName().contains(\"mht\")\n || file.getName().contains(\"etl\")\n || file.getName().contains(\"zip\")) { //size of MB\n //delete the file\n file.delete();\n }\n }\n }\n\n ArrayList<String> tasks = ReadXMLFile.readxml(getxml(parent.getAbsolutePath()));\n ArrayList<String> imgs = getimgs(parent.getAbsolutePath());\n\n RestAPI.start(tasks, imgs, parent.getAbsolutePath(), recordname);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "f4c0cc133548ece9ff852c536a099b67", "score": "0.51893955", "text": "public void makeAssessmentAttachmentSet(AssessmentFacade assessment)\n {\n // if unzipLocation is null, there is no assessment attachment - no action is needed\n if (unzipLocation == null) {\n \treturn;\n }\n\t// first check if there is any attachment\n\t// if no attachment - no action is needed\n\tString attachment = assessment.getAssessmentAttachmentMetaData();\n\tif (attachment == null || \"\".equals(attachment)) {\n\t \treturn;\n\t}\n\t\n\t\n \n AssessmentAttachmentIfc assessmentAttachment;\n String[] attachmentArray = attachment.split(\"\\\\n\");\n Set<AssessmentAttachmentIfc> set = new HashSet<AssessmentAttachmentIfc>();\n\tAttachmentHelper attachmentHelper = new AttachmentHelper();\n\tAssessmentService assessmentService = new AssessmentService();\n for (int i = 0; i < attachmentArray.length; i++) {\n \tString[] attachmentInfo = attachmentArray[i].split(\"\\\\|\");\n \tString fullFilePath = unzipLocation + \"/\" + attachmentInfo[0];\n \tString filename = attachmentInfo[1];\n \tContentResource contentResource = attachmentHelper.createContentResource(fullFilePath, filename, attachmentInfo[2]);\n \tassessmentAttachment = assessmentService.createAssessmentAttachment(assessment, contentResource.getId(), filename, ServerConfigurationService.getServerUrl());\n \tassessmentAttachment.setAssessment((AssessmentIfc)assessment.getData());\n \tset.add(assessmentAttachment);\n }\n assessment.setAssessmentAttachmentSet(set);\n }", "title": "" }, { "docid": "e5455a1a8eb7d9f2212bc225539cbc5d", "score": "0.518297", "text": "public static void sendDeclineEmail(String email){\n String to = email;\r\n\r\n // Sender's email ID needs to be mentioned\r\n String from = \"isa.mail.project@gmail.com\";\r\n final String username = \"isa.mail.project@gmail.com\";//change accordingly\r\n\t final String password = \"testiranje1\";//change accordingly \r\n\r\n // Assuming you are sending email from localhost\r\n String host = \"smtp.gmail.com\";\r\n\r\n // Get system properties\r\n Properties properties = new Properties();\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", host);\r\n properties.put(\"mail.smtp.port\", \"587\");\r\n Session.getInstance(properties, null);\r\n // Setup mail server\r\n \r\n\r\n // Get the default Session object.\r\n Session session = Session.getDefaultInstance(properties);\r\n\r\n try {\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n\r\n // Set From: header field of the header.\r\n message.setFrom(new InternetAddress(from));\r\n\r\n // Set To: header field of the header.\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\r\n\r\n // Set Subject: header field\r\n message.setSubject(\"This is the Subject Line!\");\r\n\r\n // Now set the actual message\r\n String link = \"Your offer is decline\";\r\n message.setText(link, \"UTF-8\", \"html\");\r\n// message.setText(\"<a href=\\\"http://localhost:9000/#/successfullRegistration\\\">ACTIVAR CUENTA</a>\");\r\n\r\n // Send message\r\n Transport.send(message, username, password);\r\n System.out.println(\"Sent message successfully....\");\r\n } catch (MessagingException mex) {\r\n mex.printStackTrace();\r\n }\r\n\t\r\n}", "title": "" }, { "docid": "98849a7c8a4d38d266f372eeb0d0ae5d", "score": "0.5176139", "text": "public void enviaReport(Usuario usuario){\n\t\tHtmlEmail email = new HtmlEmail();\n\t\temail.setSSLOnConnect(true);\n\t\temail.setHostName( \"smtp.gmail.com\" );\n\t\temail.setSslSmtpPort( \"465\" );\n\t\temail.setStartTLSRequired(true);\n\t\temail.setSSLOnConnect(true);\n\t\t\n\t\n\t\t// conta de e-mail para autenticação\n\t\temail.setAuthenticator( new DefaultAuthenticator( \"cledson199@gmail.com\" , \"ti@kelma.com.br\" ) );\n\t\ttry { \n\t\t\t \n \n\t\t email.setFrom( \"clsddd@hotmail.com\");\n\t\t email.setDebug(true);\n\t\t email.setSubject( \"Report : Cadastramento Indevido \");\n\t\t \n\t\t //mensagem\n\t\t StringBuilder builder = new StringBuilder();\n\t\t builder.append(\"<h1>Usuario : \"+usuario.getNome()+\" \"+usuario.getSobrenome()+\"</h1>\");\n\t\t builder.append(\"<p>Email : \"+usuario.getEmail()+\"</p>\");\n\t\t builder.append(\"<p>Informa através do link de ativação que o cadastramento foi indevido.</p>\");\n\t\t builder.append(\"<p>Os dados foram apagados do banco!.</p>\");\n\t\t builder.append(\"<p><b>Sistema de Cadastro</b><br></p>\");\n\t\t //email para recebimento dos reports\n\t\t email.addTo(\"clsddd@hotmail.com\");\n\t\t \n\t\t \n\t\t email.setHtmlMsg( builder.toString() );\n\t\t \n\t\t email.send();\n\n\t} catch (EmailException e) {\n\t\tSystem.out.println(\"Não foi possível enviar a mensagem!\");\n\t\te.printStackTrace();\n\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "ce3f55f7286c3f8e97bb07b3e341ecaa", "score": "0.5174867", "text": "private ArrayList insertFile(HttpServletRequest request,HttpServletResponse response)throws FoursoftException\n {\n SetUpSessionHome home = null;\n SetUpSession remote = null;\n QMSAttachmentFileDOB fileDOB = null;\n MultipartParser\t\t mp = null;\n Part\t\t\t\t\t part = null;\n String\t\t\t\t name = null;\n String\t\t\t\t attachmentId = null;\n FilePart\t\t\t\t filePart = null;\n ParamPart\t\t\t\t paramPart = null;\n File\t fileRead = null; \n String\t\t\t\t fileName = null;\n ArrayList filesList = new ArrayList(); \n int i = 0;\n try\n {\n attachmentId = request.getParameter(\"attachmentId\");\n attachmentId = attachmentId.replace(',','&');\n mp = new MultipartParser(request, 10*1024*1024); // 1MB \n while ((part = mp.readNextPart()) != null)\n {\n if (part.isFile())\n {\n filePart = (FilePart) part;\n fileName = filePart.getFileName();\n filePart.writeTo(new File(\"./\"));\n // logger.info(\"filePart\"+filePart.getFilePath()+\" \"+filePart.isFile()+\" \"+filePart.getFileName());\n fileRead = new File(filePart.getFileName());\t\n //fileRead = new File(filePart.getFilePath());\t\n // logger.info(\"fileRead\"+fileRead.getAbsolutePath()+\" \"+fileRead.getAbsoluteFile()+\" \"+fileRead.canRead()+\" \"+fileRead.isFile()+\" \"+fileRead.length());\n fileDOB = new QMSAttachmentFileDOB();\n fileDOB.setFileName(fileName);\n fileDOB.setPdfFile(fileRead);\n }\n fileDOB.setAttachmentId(attachmentId);\n }\n \n home = (SetUpSessionHome)LookUpBean.getEJBHome(\"SetUpSessionBean\");\n remote = home.create();\n \n filesList = remote.attachFile(fileDOB); \n }\n catch(Exception e)\n {\n e.printStackTrace();\n logger.error(FILE_NAME+\"Error occurred while retreiving the file\"+e.toString());\n throw new FoursoftException(\"An error occured while retreiving the file,Please try again\");\n }\n return filesList;\n }", "title": "" }, { "docid": "23b4d9ba1b0eba77fff473406b8f6522", "score": "0.51703763", "text": "public interface EmailInterface {\n\n String saveEmailConfig(EmailConfig email);\n\n /**\n * 发送邮件(通用)\n * @param to 收件地址\n * @param mailSubject 主题\n * @param mailContent 邮件内容\n * @return\n */\n public int sendEmail(String to,String mailSubject,String mailContent);\n\n\n /**\n * 发送邮件(带发件名)\n * @param to 收件地址\n * @param fromName 发件人名称\n * @param mailSubject 主题\n * @param mailContent 邮件内容\n * @return\n */\n public int sendEmail(String to,String fromName,String mailSubject,String mailContent);\n\n\n /**\n * 发送邮件(可抄送,附件)\n * @param to\n * @param fromName\n * @param mailSubject\n * @param mailContent\n * @param attList\n * @param replyTo\n * @param ccTo\n * @return\n */\n public int sendEmail(String to,\n String fromName,\n String mailSubject,\n String mailContent,\n List<Attachment> attList,\n String replyTo,\n String... ccTo);\n\n}", "title": "" }, { "docid": "0a61f75fc7c1a98485b7b56cc3d244b8", "score": "0.51663893", "text": "void setAttachment(String name, Object attachment);", "title": "" }, { "docid": "b2af52ca4a357ac617c18d23249cfb99", "score": "0.5159439", "text": "public void creareDialog(final String consecutivo){\n String MSJ = \"Alerta!\";\n String INF = \"Se genera el consecutivo \"+consecutivo+\".\\n\\n\" +\n \"Esta seguro de finalizar el recaudo?\";\n AlertDialog alert = new AlertDialog.Builder(this)\n .setTitle(MSJ)\n .setMessage(INF)\n .setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n DireccionClass dir = new DireccionClass();\n String IP = dir.direccionURL();\n try {\n String url = IP+\"actualizarConsecutivoRecaudo\"+\"/\"+codEje+\"/0/0\";\n Log.i(\"URLcompleta:\",\"\"+url);\n /*GUARDAR BOLETO +1 EN EL SERVIDOR*/\n enviarRecaudoMasUno(url, consecutivo);\n /*GUARDA EL BOLETO EN LA DB LOCAL*/\n int res1 = db.agregarConsecutivoDocumentos(consecutivo, codEmp);\n int res2 = db.agregarConsecutivoPagos(consecutivo, codEmp);\n int res3 = db.agregarConsecutivoDescuentos(consecutivo, codEmp);\n if(res1==0 || res2==0 || res3==0){\n Log.i(\"res1\",\"\"+res1);\n Log.i(\"res2\",\"\"+res2);\n Log.i(\"res3\",\"\"+res3);\n Toast.makeText(getApplicationContext(),\"Se genera un error guardando en la DB local.\",Toast.LENGTH_SHORT).show();\n }else{\n try {\n /*CREAR PDF*/\n //Creamos una factura desde nuestro código solo para poder generar el documento PDF\n //con esta información\n createInvoiceObject();\n //Instanciamos la clase PdfActivity\n pdfManager = new PdfActivityRecaudo(GenerarRecaudoActivity.this);\n //Create PDF document\n assert pdfManager != null;\n pdfManager.createPdfDocument(invoiceObject);\n /*ENVIAR CORREO ELECTRONICO*/\n Boolean email = getEmailCC();\n Log.i(\"email\",\"\"+email);\n if(email){\n /*GUARDAR LOS DATOS DE LOS RECAUDOS EN LA BD LOCAL*/\n Boolean valor1 = enviarDocumentosDBLocal(codEmp);\n Boolean valor2 = enviarPagosDBLocal(codEmp);\n Boolean valor3 = enviarDescuentosDBLocal(codEmp);\n Log.i(\"valor\",\"\"+valor1);\n if (!valor1 || !valor2 || !valor3){\n Toast.makeText(getApplicationContext(),\"No se pudo guardar la información el sel servidor\",Toast.LENGTH_SHORT).show();\n Log.i(\"valor1\",\"\"+valor1);\n Log.i(\"valor2\",\"\"+valor2);\n Log.i(\"valor3\",\"\"+valor3);\n }else{\n Toast.makeText(getApplicationContext(), \"Registro guardado correctamente\", Toast.LENGTH_SHORT).show();\n /*ENVIAR A LA PANTALLA DE CLIENTES*/\n Intent intent = new Intent(GenerarRecaudoActivity.this, RecaudoActivity.class);\n intent.putExtra(\"codEje\",codEje);\n intent.putExtra(\"nombreEje\",nombreEje);\n intent.putExtra(\"nifEmpresa\", nifEmp);\n intent.putExtra(\"codEmpresa\", codEmp);\n intent.putExtra(\"nombreEmpresa\", nombreEmp);\n intent.putExtra(\"direccionEmp\", direccionEmp);\n finish();\n startActivity(intent);\n }\n }else{\n Toast.makeText(getApplicationContext(),\"El correo no se envio correctamente\",Toast.LENGTH_SHORT).show();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (DocumentException e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n })\n .setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n }).show();\n }", "title": "" }, { "docid": "f0c07165889c7e95611e5a3563ba69b7", "score": "0.5143181", "text": "public static String send(String mailTo, String subject, String body,\n\t\t\tFile attachementFile, String attachedFileName) {\n\t\ttry {\n\t\t\tMimeMessage message = new MimeMessage(session);\n\t\t\tmessage.setFrom(new InternetAddress(CONFIG_FROM_EMAIL_ID));\n\t\t\t// mailTo.replaceAll(\"\\\\s\", \"\") which replaces or removes if any\n\t\t\t// white spaces are there in the email address\n\t\t\tmessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(mailTo.replaceAll(\"\\\\s\", \"\")));\n\n\t\t\tmessage.setSubject(subject);\n\t\t\tmessage.setText(body);\n\n\t\t\t// create MimeBodyPart for file attachment\n\t\t\tMimeBodyPart messageBodyPart = new MimeBodyPart();\n\t\t\tMultipart multipart = new MimeMultipart();\n\t\t\t// file data\n\t\t\tDataSource source = new FileDataSource(attachementFile);\n\t\t\t// attach file\n\t\t\tmessageBodyPart.setDataHandler(new DataHandler(source));\n\t\t\t// messageBodyPart.setFileName(\"PlotRegistrationForm.pdf\");\n\t\t\tmessageBodyPart.setFileName(attachedFileName);\n\t\t\tmultipart.addBodyPart(messageBodyPart);\n\t\t\tmessage.setContent(multipart);\n\n\t\t\tSystem.out.println(\"Sending Email to : \" + mailTo + \" from: \" + CONFIG_FROM_EMAIL_ID);\n\t\t\tTransport.send(message);\n\t\t\tSystem.out.println(\"message sent successfully....\");\n\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn \"success\";\n\t}", "title": "" }, { "docid": "0a8b8914e7acc90617554a3074a6a738", "score": "0.5138114", "text": "public void addAttachment(File file, String contentType) throws MessagingException {\n\tBodyPart bodypart = new MimeBodyPart();\n\tDataSource source = new FileDataSource(file.getAbsolutePath());\n\tbodypart.setDataHandler(new DataHandler(source));\n\tbodypart.setFileName(file.getName());\n\tbodypart.setHeader(\"Content-Type\", contentType);\n\tmultipart.addBodyPart(bodypart);\n }", "title": "" }, { "docid": "c46f8b059c90e10cb287e66bc26a9a28", "score": "0.5131634", "text": "public static Email createEmail(InputStream mailFile)\r\n\t\t\tthrows MalformedEmailException {\r\n\t\tfinal int DATE_START = 6;//The index of a line where Date is to be read\r\n\t\tfinal int NUM_REQUIRED_FIELDS = 5;//Number of least possible fields for\r\n\t\t//a valid Email object\r\n\r\n\t\t//Each of the following variables are filled in as the InputStream\r\n\t\t//is read line-by-line\r\n\t\tDate date = null;//Exact time an Email was created\r\n\t\tString messageID = null;//Unique ID associated with an Email \r\n\t\tString subject = null;//Topic the message body of Email refers to\r\n\t\tString from = null;//Email address that Email was sent from\r\n\t\tString to = null;//Email address that Email was sent to\r\n\t\tString inReplyTo = null;//MessageID of Email this Email replies to\r\n\t\tListADT<String> body = new DoublyLinkedList<String>();//Message body\r\n\t\tListADT<String> references = new DoublyLinkedList<String>();//The list\r\n\t\t//of MessageIDs of Emails this Email may be connected to\r\n\r\n\t\tboolean[] hasFields = new boolean[NUM_REQUIRED_FIELDS];//Used to verify \r\n\t\t//that the minimum required fields have been filled\r\n\r\n\t\tScanner sc = null;//Used for reading InputStream\r\n\t\tEmail result = null;//The returned Email object\r\n\t\tboolean malformed = false;//Used for exception throwing\r\n\t\tsc = new Scanner(mailFile);\r\n\t\twhile (sc.hasNext()) {\r\n\t\t\tString currLine = sc.nextLine();\r\n\t\t\tString[] tokens = currLine.split(\"[:]\");\r\n\t\t\tString param = \"\";\r\n\t\t\tListADT<String> listParam = new DoublyLinkedList<String>();\r\n\t\t\tint i;\r\n\t\t\tswitch (tokens[0]) {\r\n\t\t\tcase \"In-Reply-To\": \r\n\t\t\t\tinReplyTo = tokens[1];\r\n\t\t\t\tif ((inReplyTo == null) || (inReplyTo.length() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"References\": \r\n\t\t\t\tfor (i = 1; i < tokens.length; i++) {\r\n\t\t\t\t\tparam += tokens[i];\r\n\t\t\t\t}\r\n\t\t\t\tString[] refs = param.split(\"[,]\");\r\n\t\t\t\tfor (i = 0; i < refs.length; i++) {\r\n\t\t\t\t\tlistParam.add(refs[i]);\r\n\t\t\t\t}\r\n\t\t\t\treferences = listParam;\r\n\t\t\t\tif ((references == null) || (references.size() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"Date\": \r\n\t\t\t\thasFields[0] = true;\r\n\t\t\t\tparam = currLine.substring(DATE_START);\r\n\t\t\t\tDateFormat df = new SimpleDateFormat(\"EEE, dd MMM yyyy \"\r\n\t\t\t\t\t\t+ \"HH:mm:ss Z\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDate parsedDate = df.parse(param);\r\n\t\t\t\t\tdate = parsedDate;\r\n\t\t\t\t\tif ((date == null) || (date.toString().length() == 0)) {\r\n\t\t\t\t\t\tmalformed = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} \r\n\t\t\t\tcatch (ParseException e) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"Message-ID\": \r\n\t\t\t\thasFields[1] = true;\r\n\t\t\t\tmessageID = tokens[1];\r\n\t\t\t\tif ((messageID == null) || (messageID.length() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"Subject\": \r\n\t\t\t\thasFields[2] = true;\r\n\t\t\t\tif (tokens.length == 3) {\r\n\t\t\t\t\tsubject = tokens[2];\r\n\t\t\t\t}\r\n\t\t\t\telse if (tokens.length == 2) {\r\n\t\t\t\t\tsubject = tokens[1];\r\n\t\t\t\t}\r\n\t\t\t\tif ((subject == null) || (subject.length() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"From\": \r\n\t\t\t\thasFields[3] = true;\r\n\t\t\t\tfrom = tokens[1];\r\n\t\t\t\tif ((from == null) || (from.length() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"To\": \r\n\t\t\t\thasFields[4] = true;\r\n\t\t\t\tto = tokens[1];\r\n\t\t\t\tif ((to == null) || (to.length() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tbody.add(currLine);\r\n\t\t\t\tif ((body == null) || (body.size() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t//I know the check for == null doesn't need to happen, this is\r\n\t\t\t\t//a planned improvement\r\n\t\t\t}\r\n\t\t\tif (malformed) {\r\n\t\t\t\tsc.close();\r\n\t\t\t\tthrow new MalformedEmailException();\r\n\t\t\t}\r\n\t\t}\r\n\t\tsc.close();\r\n\t\t//Email creation using variables that have been set\r\n\t\tboolean isValid = true;\r\n\t\tfor (int i = 0; i < hasFields.length; i++) {\r\n\t\t\tif (hasFields[i] == false) isValid = false;\r\n\t\t}\r\n\t\tif (isValid) {\r\n\t\t\tif (inReplyTo != null) {\r\n\t\t\t\tif (references != null) {\r\n\t\t\t\t\tresult = new Email(date, messageID, subject, from, to, body,\r\n\t\t\t\t\t\t\tinReplyTo, references);\r\n\t\t\t\t}\r\n\t\t\t\telse throw new MalformedEmailException();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tresult = new Email(date, messageID, subject, from, to, body);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse throw new MalformedEmailException();\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "a06b64658c88a21c471318528ad4e91c", "score": "0.51127285", "text": "private void mailMe(Context context, String emailTo, String emailCC, String subject, String emailText, String[] filePaths) {\n\t\tfinal Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE);\n\t\t//emailIntent.addCategory(Intent.CA.CATEGORY_SELECTED_ALTERNATIVE);\n\t\temailIntent.setType(\"text/plain\");\n\t\t//emailIntent.setType(\"application/zip\"); message/rfc822\n\t\temailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, \n\t\t\t\tnew String[]{emailTo});\n\t\tif (emailCC != null)\n\t\t\temailIntent.putExtra(android.content.Intent.EXTRA_CC, \n\t\t\t\t\tnew String[]{emailCC});\n\t\temailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);\n\t\temailIntent.putExtra(android.content.Intent.EXTRA_TEXT, emailText);\n\t\t//has to be an ArrayList\n\t\tArrayList<Uri> uris = new ArrayList<Uri>();\n\t\t//convert from paths to Android friendly Parcelable Uri's\n\t\tfor (String file : filePaths) if (file != null) {\n\t\t\tFile fileIn = new File(file);\n\t\t\tUri u = Uri.fromFile(fileIn);\n\t\t\turis.add(u);\n\t\t}\n\t\temailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);\n\t\tPackageManager packageManager = context.getPackageManager();\n\t\tList<ResolveInfo> activities = packageManager.queryIntentActivities(emailIntent, 0);\n\t\tboolean isIntentSafe = activities.size() > 0;\n\t\tfor (ResolveInfo activity : activities) {\n\t\t\tLLog.d(Globals.TAG, CLASSTAG + \" activity to handle mail: \" + activity.toString());\n\t\t}\n\n\t\t// Start an activity if it's safe\n\t\tif (isIntentSafe) {\n\t\t\tIntent chooser = Intent.createChooser(emailIntent, context.getString(R.string.choose_mailer));\n\t\t\tcontext.startActivity(chooser); //Intent.createChooser(emailIntent, \"Send mail...\"));\n\t\t}\n\t}", "title": "" }, { "docid": "1c96adc3ef673f51284adac49bfe33f5", "score": "0.5103026", "text": "public void sendPdfAttached(Mail mail, byte[] bytesfile) throws MessagingException {\n\n this.sendPdfAttached(mail, bytesfile,\"pdf-statement-document\");\n\n }", "title": "" }, { "docid": "85f1e0af2dacbfc4a50f675e88298a31", "score": "0.50969017", "text": "public void addAttachment(File file) throws MessagingException {\n\tBodyPart bodypart = new MimeBodyPart();\n\tDataSource source = new FileDataSource(file.getAbsolutePath());\n\tbodypart.setDataHandler(new DataHandler(source));\n\tbodypart.setFileName(file.getName());\n\tmultipart.addBodyPart(bodypart);\n }", "title": "" }, { "docid": "5982258effea0e50511c36a305066ced", "score": "0.50876796", "text": "public void makeItemAttachmentSet(ItemFacade item)\n {\n\t // if unzipLocation is null, there is no assessment attachment - no action is needed\n\t if (unzipLocation == null) {\n\t\t return;\n\t } \n\t // first check if there is any attachment\n\t // if no attachment - no action is needed\n\t String attachment = item.getItemAttachmentMetaData();\n\t if (attachment == null || \"\".equals(attachment)) {\n\t\t return;\n\t }\n\n\t ItemAttachmentIfc itemAttachment;\n\t String[] attachmentArray = attachment.split(\"\\\\n\");\n\t Set<ItemAttachmentIfc> set = new HashSet<ItemAttachmentIfc>();\n\t AttachmentHelper attachmentHelper = new AttachmentHelper();\n\t AssessmentService assessmentService = new AssessmentService();\n\t for (int i = 0; i < attachmentArray.length; i++) {\n\t\t String[] attachmentInfo = attachmentArray[i].split(\"\\\\|\");\n\t\t String fullFilePath = unzipLocation + \"/\" + attachmentInfo[0];\n\t\t String filename = attachmentInfo[1];\n\t\t ContentResource contentResource = attachmentHelper.createContentResource(fullFilePath, filename, attachmentInfo[2]);\n\t\t // contentResource could be null but is OK (exception catched)\n\t\t itemAttachment = assessmentService.createItemAttachment(item, contentResource.getId(), filename, ServerConfigurationService.getServerUrl());\n\t\t itemAttachment.setItem(item.getData());\n\t\t set.add(itemAttachment);\n\t }\n\t item.setItemAttachmentSet(set);\n }", "title": "" }, { "docid": "e9f2f1ba049a23cc09ddc3ce99707050", "score": "0.50681806", "text": "public void generarReporteEstadoPedidoPuntoVentas(String sAccionBusqueda,List<EstadoPedidoPuntoVenta> estadopedidopuntoventasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"EstadoPedidoPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"EstadoPedidoPuntoVentaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"EstadoPedidoPuntoVentaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"EstadoPedidoPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Estado Pedidos\");\t\t\r\n\t\tparameters.put(\"busquedapor\", EstadoPedidoPuntoVentaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(PedidoPuntoVenta.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tEstadoPedidoPuntoVentaLogic estadopedidopuntoventaLogicAuxiliar=new EstadoPedidoPuntoVentaLogic();\r\n\t\t\t\t\testadopedidopuntoventaLogicAuxiliar.setDatosCliente(estadopedidopuntoventaLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\testadopedidopuntoventaLogicAuxiliar.setEstadoPedidoPuntoVentas(estadopedidopuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\testadopedidopuntoventaLogicAuxiliar.cargarRelacionesLoteForeignKeyEstadoPedidoPuntoVentaWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\testadopedidopuntoventasParaReportes=estadopedidopuntoventaLogicAuxiliar.getEstadoPedidoPuntoVentas();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//estadopedidopuntoventaLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (EstadoPedidoPuntoVenta estadopedidopuntoventa:estadopedidopuntoventasParaReportes) {\r\n\t\t\t\t\t//\testadopedidopuntoventaLogic.deepLoad(estadopedidopuntoventa, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//estadopedidopuntoventaLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//estadopedidopuntoventaLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFilePedidoPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"PedidoPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_pedidopuntoventa\", reportFilePedidoPuntoVenta);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceEstadoPedidoPuntoVenta=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tEstadoPedidoPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tEstadoPedidoPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceEstadoPedidoPuntoVenta=new JRBeanArrayDataSource(EstadoPedidoPuntoVentaJInternalFrame.TraerEstadoPedidoPuntoVentaBeans(estadopedidopuntoventasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceEstadoPedidoPuntoVenta);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+EstadoPedidoPuntoVentaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+EstadoPedidoPuntoVentaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(EstadoPedidoPuntoVentaBean.TraerEstadoPedidoPuntoVentaBeans(estadopedidopuntoventasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteEstadoPedidoPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,estadopedidopuntoventasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalEstadoPedidoPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,estadopedidopuntoventasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoEstadoPedidoPuntoVentaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteEstadoPedidoPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,estadopedidopuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalEstadoPedidoPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,estadopedidopuntoventasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesEstadoPedidoPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,estadopedidopuntoventasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesEstadoPedidoPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,estadopedidopuntoventasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c1aecc74e4f130aed743dbd9fceb1d2d", "score": "0.5067869", "text": "public void create() {\n PDF pdf = new PDF(name + \".pdf\", numero, client, traitement);\n XLS xls = new XLS(name + \".xls\", numero, client, traitement);\n\n try {\n pdf.createPdf();\n xls.createXls();\n } catch (DocumentException | IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ab1ea228d308d96ef61753d645ca3f6b", "score": "0.50646544", "text": "public void generarReporteFacturasProveedoress(String sAccionBusqueda,List<FacturasProveedores> facturasproveedoressParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"FacturasProveedores\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturasProveedoresMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"FacturasProveedoresMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturasProveedores\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Facturas Proveedoreses\");\t\t\r\n\t\tparameters.put(\"busquedapor\", FacturasProveedoresConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceFacturasProveedores=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tFacturasProveedoresConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tFacturasProveedoresConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceFacturasProveedores=new JRBeanArrayDataSource(FacturasProveedoresJInternalFrame.TraerFacturasProveedoresBeans(facturasproveedoressParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceFacturasProveedores);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+FacturasProveedoresConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+FacturasProveedoresConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(FacturasProveedoresBean.TraerFacturasProveedoresBeans(facturasproveedoressParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteFacturasProveedoress(sAccionBusqueda,sTipoArchivoReporte,facturasproveedoressParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalFacturasProveedoress(sAccionBusqueda,sTipoArchivoReporte,facturasproveedoressParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoFacturasProveedoresActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteFacturasProveedoress(sAccionBusqueda,sTipoArchivoReporte,facturasproveedoressParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalFacturasProveedoress(sAccionBusqueda,sTipoArchivoReporte,facturasproveedoressParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesFacturasProveedoress(sAccionBusqueda,sTipoArchivoReporte,facturasproveedoressParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesFacturasProveedoress(sAccionBusqueda,sTipoArchivoReporte,facturasproveedoressParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a725595ff3e2c7ff38900ece6af770cb", "score": "0.50591797", "text": "public interface IEmailService {\n String MSG_SUBJECT = \"后台资源上传通知 \";\n String MSG_HEAD = \"head\";\n String MSG_TYPE = \"type\";\n String MSG_CATEGORY = \"category\";\n String MSG_NAME = \"name\";\n String MSG_FORMAT = \"format\";\n String MSG_DURATION = \"duration\";\n String MSG_SIZE = \"size\";\n String MSG_WIDTH = \"width\";\n String MSG_HEIGHT = \"height\";\n String MSG_URL = \"url\";\n String MSG_THUMBNAIL_URL = \"thumbnail_url\";\n String MSG_LANDSCAPE_COVER = \"landscape_cover\";\n String MSG_PORTRAIT_COVER = \"portrait_cover\";\n String MSG_PRE_IMG1 = \"pre_image1\";\n String MSG_PRE_IMG2 = \"pre_image2\";\n String MSG_PRE_IMG3 = \"pre_image3\";\n String MSG_WEB_URL = \"web_url\";\n String MSG_UPLOADER = \"uploader\";\n String MSG_GREETING = \"greeting\";\n String MSG_GREETING_VALUE = \"Hi,All!\";\n String MSG_BR = \"BR\";\n String MSG_COMPANY = \"company\";\n String MSG_COMPANY_VALUE = \"上海易维视科技股份有限公司\";\n String MSG_ADDRESS = \"address\";\n String MSG_ADDRESS_VALUE = \"地址:上海市虹口区松花江路2539号1号楼501室,200437\";\n String MSG_HEAD_VALUE = \"当前后台系统上传的信息如下所示:\";\n String PROPERTY_FILE = \"mail.properties\";\n String PROPERTY_KEY_HOST = \"custom.mail.host\";\n String PROPERTY_KEY_PROTOCOL = \"custom.mail.protocol\";\n String PROPERTY_KEY_PORT = \"custom.mail.port\";\n String PROPERTY_KEY_USERNAME = \"custom.mail.username\";\n String PROPERTY_KEY_PASSWORD = \"custom.mail.password\";\n\n void setProperties(Properties properties);\n Properties getProperties();\n boolean testConnection();\n void sendEmail(String subject, Map<String, String> msg);\n}", "title": "" }, { "docid": "90afa1804932aca02b0db20000343694", "score": "0.5054686", "text": "AttachmentToContainer createAttachmentToContainer();", "title": "" }, { "docid": "d25ec5421f4480756e1edfc27a084e96", "score": "0.505357", "text": "public static FileAttach createEntity(EntityManager em) {\n FileAttach fileAttach = new FileAttach()\n .moTa(DEFAULT_MO_TA)\n .noiDung(DEFAULT_NOI_DUNG)\n .noiDungContentType(DEFAULT_NOI_DUNG_CONTENT_TYPE)\n .ngayCapNhat(DEFAULT_NGAY_CAP_NHAT);\n return fileAttach;\n }", "title": "" }, { "docid": "7c40855c6125e53e8d22e10aca492953", "score": "0.5050638", "text": "@SuppressWarnings(\"unchecked\")\n public MailMessage getMessage(int index) throws MessagingException, Exception { \n\n if ( index > msgs.length || index < 0 ) { \n throw new Exception(\"Index out of bounds exception! For index (\" + index + \").\");\n }\n \n Message message = this.msgs[index];\n MailMessage mail = new MailMessage();\n \n // get the from \n Address[] mailFrom = message.getFrom();\n if ( mailFrom != null && mailFrom.length > 0 ) {\n mail.setFrom(mailFrom[0].toString());\n }\n \n // get the subject\n String subject = message.getSubject();\n mail.setSubject(subject);\n \n // get the date\n Date sentDate = message.getSentDate();\n mail.setSentDate(sentDate);\n\n mail.setMessageID(message.getMessageNumber());\n \n mail.setFullHeaders(message.getAllHeaders());\n\n // now time to process the message\n Part messagePart = message;\n MessageContent content = getTextContent(messagePart);\n if ( content != null ) { \n \tmail.setMessageText(content.messageContent);\n mail.setMessageType(content.messageType);\n } else {\n // this it the message type of the message part\n String type = messagePart.getContentType();\n mail.setMessageType(type);\n }\n \n // now look for attachments\n // this code could probably be optimized\n try { \n Multipart msgPart = (Multipart)message.getContent();\n List<Pair<String, Object>> attachments = new ArrayList<Pair<String, Object>>();\n for (int i = 0; i < msgPart.getCount(); i++) {\n \tBodyPart bodyPart = msgPart.getBodyPart(i);\n \tString disposition = bodyPart.getDisposition();\n \tif ( disposition != null ) { \n \t\t// in this part we only care about attachments\n \t\tif ( disposition.equals(Part.ATTACHMENT) ) {\n \t\t\tDataHandler handler = bodyPart.getDataHandler();\n \t\t\tInputStream instream = handler.getInputStream();\n \t\t\tBufferedReader attachedFile = new BufferedReader(new InputStreamReader(instream));\n \t\t\tObject data = new Object();\n \t\t\twhile (attachedFile.ready()) {\n \t\t\t\tdata = data + attachedFile.readLine();\n \t\t\t}\n \t\t\tattachedFile.close();\n // attachment name is the key to the hash\n \t\t\t// hopefully we wont have attachments with the same name\n \t\t\tPair<String, Object> attach = new Pair<String, Object>(handler.getName(), data);\n \t\t\tattachments.add(attach);\n \t\t}\n \t}\n }\n // we have attachments so set them\n if ( ! attachments.isEmpty() ) {\n \tmail.setAttachments(attachments);\n }\n } catch (ClassCastException ce) {\n \t\n }\n \n \n \n return mail;\n }", "title": "" }, { "docid": "c9ba03103636bc2a5cf41fb09ebd543d", "score": "0.5044795", "text": "private void sendMail() {\n\n\t}", "title": "" }, { "docid": "006d1b8378791180a91571e74cb7ef52", "score": "0.5032136", "text": "@Test\n public void attachmentTest() {\n // TODO: test attachment\n }", "title": "" }, { "docid": "c8aed0a0a5f1e3a0884e740b0a22a1e6", "score": "0.5026557", "text": "public void generarReporteTipoFacturas(String sAccionBusqueda,List<TipoFactura> tipofacturasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoFacturaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoFacturaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Facturas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoFacturaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(Factura.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoFacturaLogic tipofacturaLogicAuxiliar=new TipoFacturaLogic();\r\n\t\t\t\t\ttipofacturaLogicAuxiliar.setDatosCliente(tipofacturaLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipofacturaLogicAuxiliar.setTipoFacturas(tipofacturasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipofacturaLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoFacturaWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipofacturasParaReportes=tipofacturaLogicAuxiliar.getTipoFacturas();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipofacturaLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoFactura tipofactura:tipofacturasParaReportes) {\r\n\t\t\t\t\t//\ttipofacturaLogic.deepLoad(tipofactura, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipofacturaLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipofacturaLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileFactura = AuxiliarReportes.class.getResourceAsStream(\"FacturaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_factura\", reportFileFactura);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoFactura=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoFactura=new JRBeanArrayDataSource(TipoFacturaJInternalFrame.TraerTipoFacturaBeans(tipofacturasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoFactura);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoFacturaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoFacturaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoFacturaBean.TraerTipoFacturaBeans(tipofacturasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoFacturas(sAccionBusqueda,sTipoArchivoReporte,tipofacturasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoFacturas(sAccionBusqueda,sTipoArchivoReporte,tipofacturasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoFacturaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoFacturas(sAccionBusqueda,sTipoArchivoReporte,tipofacturasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoFacturas(sAccionBusqueda,sTipoArchivoReporte,tipofacturasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoFacturas(sAccionBusqueda,sTipoArchivoReporte,tipofacturasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoFacturas(sAccionBusqueda,sTipoArchivoReporte,tipofacturasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "17d75625e307ac568d2fe0c813e28ac3", "score": "0.5026365", "text": "@Test\n public void testListAttachments() {\n\n Connection conn = new Connection(\"api_key\", \"http://localhost:8080\");\n\n\n Invoice invoice = conn.newInvoice();\n\n try {\n invoice = invoice.retrieve(46225);\n\n Attachment[] attachments = invoice.listAttachments();\n\n assertTrue(\"Attachment 0 id is incorrect\", attachments[0].id == 13);\n\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "title": "" }, { "docid": "09a013681e01b3b16f6969e73eafe7d5", "score": "0.50257325", "text": "public void setUpEnvironment(){\n // Sending email\n se.from = \"tarnosupratman@gmail.com\";\n se.username = \"tarnosupratman@gmail.com\";//change accordingly\n se.password = \"085722064771\";//change accordingly\n se.host = \"smtp.gmail.com\";\n \n // Retrieve email\n cm.host = \"imap.gmail.com\";// change accordingly\n cm.storeType = \"imap\";\n cm.user = \"rikysamueltan@gmail.com\";// change accordingly\n cm.password = \"Brigade_101\";// change accordingly\n\n // Reply email\n re.imapHost = cm.host;\n re.smtpHost = se.host;\n re.storeType = cm.storeType;\n re.user = cm.user;\n re.password = cm.password;\n \n // Retrieve Sent email\n sm.user = cm.user;\n sm.password = cm.password;\n \n // Retrieve Draft emai\n de.user = cm.user;\n de.password = cm.password;\n }", "title": "" }, { "docid": "7c5e9bf3cdd258d7f386b269091906a7", "score": "0.5022074", "text": "@Override\n\tprotected Boolean doInBackground(Email... emails) {\n\t\tMailcapCommandMap mc = (MailcapCommandMap) CommandMap\n\t\t\t\t.getDefaultCommandMap();\n\t\tmc.addMailcap(\"text/html;; x-java-content-handler=com.sun.mail.handlers.text_html\");\n\t\tmc.addMailcap(\"text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml\");\n\t\tmc.addMailcap(\"text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain\");\n\t\tmc.addMailcap(\"multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed\");\n\t\tmc.addMailcap(\"message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822\");\n\t\tCommandMap.setDefaultCommandMap(mc);\n\n\t\t// obtain the username and password from settings\n\t\tSettings settings = new Settings(context);\n\t\tuser = settings.getEmailUsername();\n\t\tpass = settings.getEmailPassword();\n\t\thost = settings.getSMTPServer();\n\n\t\tif (!user.equals(\"\") && !pass.equals(\"\")) {\n\n\t\t\tMailAuthenticator authenticator = new MailAuthenticator(host, user,\n\t\t\t\t\tpass, debuggable, auth);\n\t\t\tProperties props = authenticator._setProperties();\n\t\t\tSession session = Session.getInstance(props, authenticator);\n\n\t\t\tMimeMessage msg = new MimeMessage(session);\n\n\t\t\ttry {\n\t\t\t\tmsg.setFrom(new InternetAddress(emails[0].getFrom()[0]));\n\n\t\t\t\tInternetAddress[] addressTo = new InternetAddress[emails[0]\n\t\t\t\t\t\t.getTo().length];\n\t\t\t\tfor (int i = 0; i < emails[0].getTo().length; i++) {\n\t\t\t\t\taddressTo[i] = new InternetAddress(emails[0].getTo()[i]);\n\t\t\t\t}\n\t\t\t\tmsg.setRecipients(MimeMessage.RecipientType.TO, addressTo);\n\n\t\t\t\tmsg.setSubject(emails[0].getSubject());\n\t\t\t\tmsg.setSentDate(new Date());\n\n\t\t\t\t//setup message body\n\t\t\t\tBodyPart messageBodyPart = new MimeBodyPart();\n\t\t\t\tmessageBodyPart.setText(emails[0].getMsgBody());\n\t\t\t\t_multipart = new MimeMultipart();\n\t\t\t\t_multipart.addBodyPart(messageBodyPart);\n\t\t\t\t\n\t\t\t\t//setup attachments\n\t\t\t\tif(emails[0].hasAttachments)\n\t\t\t\t{\n\t\t\t\t\tIterator<File> itr = emails[0].getAttachments().iterator();\n\t\t\t\t\twhile(itr.hasNext())\n\t\t\t\t\t{\n\t\t\t\t \tFile file = itr.next();\n\t\t\t\t\t\tMimeBodyPart attachBodyPart = new MimeBodyPart();\n\t\t\t\t\t DataSource source = new FileDataSource(file.getAbsolutePath());\n\t\t\t\t\t attachBodyPart.setDataHandler(new DataHandler(source));\n\t\t\t\t\t String name = file.getName();\n\t\t\t\t\t Log.d(LOG_TAG, \"attaching file \" + name);\n\t\t\t\t\t attachBodyPart.setFileName(name);\n\t\t\t\t\t \n\t\t\t\t\t _multipart.addBodyPart(attachBodyPart);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Put parts in message\n\t\t\t\tmsg.setContent(_multipart);\n\n\t\t\t\t// send email\n\t\t\t\tTransport.send(msg);\n\t\t\t} catch (AddressException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (MessagingException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "8864a35dae4b7ee0f8a2966200222ab5", "score": "0.50208825", "text": "@Override\r\n public void enviarBonoRegalo(String emailDest, String name, String tienda) {\n \r\n Properties props = new Properties();\r\n Session session = Session.getDefaultInstance(props, null);\r\n\r\n String msgBody = \"\"; //TODO fix\r\n\r\n try {\r\n Message msg = new MimeMessage(session);\r\n msg.setFrom(new InternetAddress(\"Dapd007@gmail.com\", \"TMO\"));\r\n msg.addRecipient(Message.RecipientType.TO,\r\n new InternetAddress(emailDest, name));\r\n msg.setSubject(\"Bono regalo TuMejorOpcion\");\r\n msg.setText(msgBody);\r\n Transport.send(msg);\r\n\r\n } catch (Exception e) {\r\n // hue\r\n }\r\n \r\n }", "title": "" }, { "docid": "551a55395b3fdb571ba2b491510207b7", "score": "0.5012716", "text": "public interface TemplateMailer {\n public static final String TO_EMAIL_ADDRESS = \"toEmailAddress\";\n public static final String USER_NAME_KEY = \"name\";\n\n /**\n * Helper method for creating Multiparts from a freemarker template for emailing\n *\n * @param textTemplateFilename the text freemarker template\n * @param htmlTemplateFilename the html freemarker template\n * @param context a {@link java.util.Map} of objects to expose to the template engine\n * @return the multipart content for a new email\n * @throws IOException\n * @throws MessagingException\n */\n public Multipart createContent(String textTemplateFilename, String htmlTemplateFilename,\n final Map<String, Object> context) throws IOException, MessagingException;\n\n /**\n * Send a mail with the content specified\n *\n * @param toEmailAddress the email address where to send the email\n * @param fromEmailAddress fromEmailAddress\n * @param subject subject of the email\n * @param context a {@link java.util.Map} of objects to expose to the template engine\n * @param content the content of the message to send\n */\n void mail(final String toEmailAddress, final String fromEmailAddress, final String subject,\n final Map<String, Object> context, final Multipart content);\n\n /**\n * Send a mail with both a text and a HTML version.\n * @param toEmailAddress the email address where to send the email\n * @param fromEmailAddress fromEmailAddress\n * @param subject subject of the email\n * @param context a {@link java.util.Map} of objects to expose to the template engine\n * @param textTemplateFilename textTemplateFilename\n * @param htmlTemplateFilename htmlTemplateFilename\n */\n void mail(final String toEmailAddress, final String fromEmailAddress, final String subject,\n final Map<String, Object> context, final String textTemplateFilename,\n final String htmlTemplateFilename);\n\n /**\n * Mail to multiple email addresses with both a text and a HTML version.\n * Each email comes with it's corresponding context to use for the templates\n * @param emailAddressContextMap email address and it's corresponding context\n * @param subject subject of the email\n * @param textTemplateFilename textTemplateFilename\n * @param htmlTemplateFilename htmlTemplateFilename\n */\n void massMail(final Map<String, Map<String, Object>> emailAddressContextMap, final String subject,\n final String textTemplateFilename, final String htmlTemplateFilename);\n}", "title": "" }, { "docid": "71160c5f608d434d3b4cc70bcc6e3ae5", "score": "0.5003295", "text": "public interface IEmailService {\n\n String sendMail(Mail mail);\n\n String sendMessageWithAttachment(Mail mail, String nameFile);\n}", "title": "" }, { "docid": "7ab92b794f4e0a5fd9bcc1489960abc1", "score": "0.5003269", "text": "public static void generateAndSendEmail(String targetEmailAddress, String subject, String url, String courseID, String differences, String sourceGmailID, String sourceGmailPassword) throws AddressException, MessagingException {\n\n String message = \"New activity is occured in course:<a href=\\\"\" + url + \"\\\">\" + courseID + \"</a> at GTU Moodle.\\n\"\n + \"<br><br>\\n\"\n + \"<b>Differences:</b><br><br>\\n\"\n + differences\n + \"<br><br>\\n\"\n + \"\\n\"\n + \"link: \" + url + \"\\n\"\n + \"<br>\\n\"\n + \"<hr>\\n\"\n + \"To unsubscribe, contact to <a href=\\\"http://www.haliloymaci.com\\\">hioymaci@gmail.com</a>\";\n\n // Step1\n// System.out.println(\"\\n 1st ===> setup Mail Server Properties..\");\n mailServerProperties = System.getProperties();\n mailServerProperties.put(\"mail.smtp.port\", \"587\");\n mailServerProperties.put(\"mail.smtp.auth\", \"true\");\n mailServerProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n// System.out.println(\"Mail Server Properties have been setup successfully..\");\n\n // Step2\n// System.out.println(\"\\n\\n 2nd ===> get Mail Session..\");\n getMailSession = Session.getDefaultInstance(mailServerProperties, null);\n generateMailMessage = new MimeMessage(getMailSession);\n generateMailMessage.setSubject(subject, \"UTF-8\");\n generateMailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(targetEmailAddress));\n generateMailMessage.setSubject(subject);\n generateMailMessage.setContent(message, \"text/html; charset=UTF-8\");\n// System.out.println(\"Mail Session has been created successfully..\");\n\n // Step3\n// System.out.println(\"\\n\\n 3rd ===> Get Session and Send mail\");\n Transport transport = getMailSession.getTransport(\"smtp\");\n\n // Enter your correct gmail UserID and Password\n // if you have 2FA enabled then provide App Specific Password\n transport.connect(\"smtp.gmail.com\", sourceGmailID, sourceGmailPassword);\n transport.sendMessage(generateMailMessage, generateMailMessage.getAllRecipients());\n transport.close();\n System.out.println(\"Sent message to \" + targetEmailAddress + \".\");\n }", "title": "" }, { "docid": "af88858dea094a7ccde67b2952d16450", "score": "0.49924174", "text": "private void createAttachment(File selectedFile) {\r\n HBox container = new HBox();\r\n container.getStyleClass().add(\"flat_button\");\r\n container.setSpacing(3);\r\n\r\n ImageView deleteIcon = new ImageView(Constants.INACTIVE_DELETE_ICON);\r\n deleteIcon.setId(\"deleteIcon\");\r\n\r\n deleteIcon.setOnMouseClicked((event) -> {\r\n attachments.remove(selectedFile);\r\n hbAttachments.getChildren().remove(container);\r\n });\r\n\r\n Button btnAttachment = new Button(selectedFile.getName());\r\n btnAttachment.getStyleClass().add(\"attachment_button\");\r\n\r\n btnAttachment.setOnAction((ActionEvent event) -> {\r\n if (Desktop.isDesktopSupported()) {\r\n try {\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.open(selectedFile);\r\n } catch (IOException ex) {\r\n Logger.getLogger(PostagiLayoutController.class.getName()).log(Level.SEVERE, null, ex);\r\n Utils.showErrorDialog(\"Open File Error...\", \"There is no supported application to open the file!\");\r\n }\r\n }\r\n });\r\n\r\n Tooltip tooltip = new Tooltip();\r\n container.setOnMouseEntered((event) -> {\r\n Node source = (Node) event.getSource();\r\n tooltip.setText(btnAttachment.getText());\r\n Tooltip.install(source, tooltip);\r\n });\r\n container.setOnMouseExited((event) -> {\r\n tooltip.hide();\r\n });\r\n\r\n container.getChildren().addAll(btnAttachment, deleteIcon);\r\n\r\n hbAttachments.getChildren().add(container);\r\n }", "title": "" }, { "docid": "02c1e394e42d4a1c6e5278a81aa58ed3", "score": "0.49860546", "text": "public static void main(String[] args) throws IOException {\n \tGmail service = getGmailService();\n \t//String query = \"from:komal.arora@phocket.in\";\n \tString query = \"from:nishan@nsdl.co.in\";\n \tString userId = \"me\";\n \tListMessagesResponse response = service.users().messages().list(userId).setQ(query).execute();\n\n List<Message> messages = new ArrayList<Message>();\n while (response.getMessages() != null) {\n messages.addAll(response.getMessages());\n if (response.getNextPageToken() != null) {\n String pageToken = response.getNextPageToken();\n response = service.users().messages().list(userId).setQ(query)\n .setPageToken(pageToken).execute();\n } else {\n break;\n }\n }\n \n \n for (Message message : messages) {\n \t/*StringBuilder stringBuilder = new StringBuilder();\n \tMessage messagee = service.users().messages().get(\"me\",message.getId()).execute();\n \t//System.out.println(messagee.getId());\n \t//System.out.println(messagee.getSnippet());\n \tgetAttachmentwithmail(messagee.getPayload().getParts(),service,message.getId());\n getPlainTextFromMessageParts(messagee.getPayload().getParts(), stringBuilder);\n byte[] bodyBytes = Base64.decodeBase64(stringBuilder.toString());\n String text = new String(bodyBytes, \"UTF-8\");\n System.out.println(text);*/\n \tMessage messagee = service.users().messages().get(\"me\",message.getId()).execute();\n \tMailObjectPO mailObject = new MailObjectPO();\n \tif(messagee.getLabelIds().contains(\"CHAT\")) {\n \t\t\n \t}else {\n \t\tmailObject.setId(messagee.getId());\n \t\tmailObject.setSnippet(messagee.getSnippet());\n \t\tmailObject.setAttachmentstatus(false);\n \t\tList<MessagePart> messageparts = messagee.getPayload().getParts();\n \t\tList<String> filenames = new ArrayList<String>();\n \t\tfor(MessagePart messagePart:messageparts) {\n \t\t\tif (messagePart.getFilename() != null && messagePart.getFilename().length() > 0) {\n \t\t\t\tmailObject.setAttachmentstatus(true);\n \t\t\t\tfilenames.add(messagePart.getFilename());\n \t\t\t}\n \t\t}\n \t\tmailObject.setAttachmentname(filenames);\n \t\tList<MessagePartHeader> headers = messagee.getPayload().getHeaders();\n \t\tfor (MessagePartHeader headerparts : headers) {\n if (headerparts.getName().equals(\"From\")) {\n mailObject.setFrom(headerparts.getValue());\n }\n if (headerparts.getName().equals(\"To\")) {\n mailObject.setTo(headerparts.getValue());\n }\n if (headerparts.getName().equals(\"CC\")) {\n mailObject.setCc(headerparts.getValue());\n }\n if (headerparts.getName().equals(\"Date\")) {\n mailObject.setDate(headerparts.getValue());;\n }\n if (headerparts.getName().equals(\"Subject\")) {\n mailObject.setSubject(headerparts.getValue());;\n }\n if (headerparts.getName().equals(\"Delivered-To\")) {\n mailObject.setDeliveredto(headerparts.getValue());\n }\n }\n \t\t\n \t\tStringBuilder stringBuilder = new StringBuilder();\n \t\tgetPlainTextFromMessageParts(messagee.getPayload().getParts(), stringBuilder);\n \t\tbyte[] bodyBytes = Base64.decodeBase64(stringBuilder.toString());\n String text = new String(bodyBytes, \"UTF-8\");\n //System.out.println(text);\n mailObject.setBody(text);\n \t\t//System.out.println(messagee.getLabelIds());\n \t\t//System.out.println(messagee);\n \t//System.out.println(message.getId());\n \n \tif(mailObject.isAttachmentstatus()) {\n \t\tgetAttachmentwithmail(messageparts,service,message.getId());\n \t}\n \t}\n \t//if(messagee.getLabelIds().get(0)) \n \tSystem.out.println(mailObject.isAttachmentstatus());\n \tSystem.out.println(mailObject.getAttachmentname());\n \tSystem.out.println(mailObject.getSnippet());\n \t\n }\n \n }", "title": "" }, { "docid": "af93c29746b054956356e72d356667c3", "score": "0.497834", "text": "private boolean sendMail(String to) {\r\n boolean verbose = true;\r\n Optional<Map<String, List<String>>> parts = createMail();\r\n try {\r\n if (parts.isPresent()) {\r\n\r\n //Extract parts from the map.\r\n final String FROM = parts.get().get(\"from\").get(0);\r\n final String PASSWORD = parts.get().get(\"password\").get(0);\r\n final String SUBJECT = parts.get().get(\"subject\").get(0);\r\n final String CONTENT = parts.get().get(\"content\").get(0);\r\n\r\n //create the Address array for the reciepents CC addresses, and fill it\r\n InternetAddress[] addressesCC = prepareMailsList(parts.get().get(\"cc\"));\r\n\r\n //create the Address array for the reciepents addresses, and fill it\r\n //InternetAddress[] addressesTo = prepareMailsList(getSelectedMails());\r\n //check for null addresses array.\r\n if (addressesCC == null) {\r\n Utils.showErrorDialog(\"Message Error...\", \"Error in creating CC address)!\");\r\n return false;\r\n }\r\n\r\n //Create the session for sending the message.\r\n Session session = getSession(FROM, PASSWORD);\r\n if (session != null) {\r\n //create the message object to be sent\r\n MimeMessage message = new MimeMessage(getSession(FROM, PASSWORD));\r\n //set the parts of the message\r\n message.setFrom(new InternetAddress(FROM));\r\n message.addRecipients(Message.RecipientType.TO, to);\r\n message.addRecipients(Message.RecipientType.CC, addressesCC);\r\n message.setSubject(SUBJECT);\r\n //Set the body of the message\r\n\r\n msgBodyPart.setText(CONTENT);\r\n\r\n Multipart multiPart = new MimeMultipart();\r\n multiPart.addBodyPart(msgBodyPart);\r\n //Add the attachments\r\n if (!attachments.isEmpty()) {\r\n attachments.stream().filter(File::exists).forEach((file) -> {\r\n msgBodyPart = new MimeBodyPart();\r\n try {\r\n DataSource dataSource = new FileDataSource(file);\r\n msgBodyPart.setDataHandler(new DataHandler(dataSource));\r\n msgBodyPart.setFileName(file.getName());\r\n multiPart.addBodyPart(msgBodyPart);\r\n } catch (MessagingException ex) {\r\n Logger.getLogger(PostagiLayoutController.class.getName()).log(Level.SEVERE, null, ex);\r\n Utils.showExceptionDialog(\"Message Error...\", \"Exception happen while creating the attachment!\", ex);\r\n }\r\n });\r\n\r\n }\r\n\r\n message.setContent(multiPart);\r\n\r\n //send the message\r\n //Transport.send(message);\r\n SMTPTransport t = (SMTPTransport) session.getTransport(\"smtps\");\r\n try {\r\n t.connect(Constants.HOST_DEFAULT_VALUE, FROM, PASSWORD);\r\n t.sendMessage(message, message.getAllRecipients());\r\n } finally {\r\n System.out.println(\"Response: \" + t.getLastServerResponse());\r\n t.close();\r\n }\r\n return true;\r\n\r\n } else {\r\n Utils.showErrorDialog(\"Session Error...\", \"Cannot open session to send mails!\");\r\n return false;\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n //Logger.getLogger(PostagiLayoutController.class.getName()).log(Level.SEVERE, null, ex);\r\n //Utils.showExceptionDialog(\"Message Failure...\", \"Exception happen while sending message!\", ex);\r\n\r\n /*\r\n\t * Handle SMTP-specific exceptions.\r\n */\r\n if (e instanceof SendFailedException) {\r\n MessagingException sfe = (MessagingException) e;\r\n if (sfe instanceof SMTPSendFailedException) {\r\n SMTPSendFailedException ssfe\r\n = (SMTPSendFailedException) sfe;\r\n System.out.println(\"SMTP SEND FAILED:\");\r\n if (verbose) {\r\n System.out.println(ssfe.toString());\r\n }\r\n System.out.println(\" Command: \" + ssfe.getCommand());\r\n System.out.println(\" RetCode: \" + ssfe.getReturnCode());\r\n System.out.println(\" Response: \" + ssfe.getMessage());\r\n } else if (verbose) {\r\n System.out.println(\"Send failed: \" + sfe.toString());\r\n }\r\n Exception ne;\r\n while ((ne = sfe.getNextException()) != null\r\n && ne instanceof MessagingException) {\r\n sfe = (MessagingException) ne;\r\n if (sfe instanceof SMTPAddressFailedException) {\r\n SMTPAddressFailedException ssfe\r\n = (SMTPAddressFailedException) sfe;\r\n System.out.println(\"ADDRESS FAILED:\");\r\n if (verbose) {\r\n System.out.println(ssfe.toString());\r\n }\r\n System.out.println(\" Address: \" + ssfe.getAddress());\r\n System.out.println(\" Command: \" + ssfe.getCommand());\r\n System.out.println(\" RetCode: \" + ssfe.getReturnCode());\r\n System.out.println(\" Response: \" + ssfe.getMessage());\r\n } else if (sfe instanceof SMTPAddressSucceededException) {\r\n System.out.println(\"ADDRESS SUCCEEDED:\");\r\n SMTPAddressSucceededException ssfe\r\n = (SMTPAddressSucceededException) sfe;\r\n if (verbose) {\r\n System.out.println(ssfe.toString());\r\n }\r\n System.out.println(\" Address: \" + ssfe.getAddress());\r\n System.out.println(\" Command: \" + ssfe.getCommand());\r\n System.out.println(\" RetCode: \" + ssfe.getReturnCode());\r\n System.out.println(\" Response: \" + ssfe.getMessage());\r\n }\r\n }\r\n } else {\r\n System.out.println(\"Got Exception: \" + e);\r\n if (verbose) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n return false;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "2ea69ebc0dd2e635836e4bec2abe6bbc", "score": "0.4977948", "text": "public interface Attachment {\n}", "title": "" }, { "docid": "85d7607195a8eef95da5dee3504f95f2", "score": "0.4976014", "text": "public void enviar() {\n mailsAEnviar.stream().forEach(mail -> this.enviarMail(mail));\n }", "title": "" }, { "docid": "8fe9f8835995c626e8d7902469e63c2b", "score": "0.49729896", "text": "public final void rule__MobaRESTMultipartDtoAttribute__AttachmentAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMoba.g:21739:1: ( ( ( 'attachment' ) ) )\n // InternalMoba.g:21740:2: ( ( 'attachment' ) )\n {\n // InternalMoba.g:21740:2: ( ( 'attachment' ) )\n // InternalMoba.g:21741:3: ( 'attachment' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getMobaRESTMultipartDtoAttributeAccess().getAttachmentAttachmentKeyword_1_0()); \n }\n // InternalMoba.g:21742:3: ( 'attachment' )\n // InternalMoba.g:21743:4: 'attachment'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getMobaRESTMultipartDtoAttributeAccess().getAttachmentAttachmentKeyword_1_0()); \n }\n match(input,146,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getMobaRESTMultipartDtoAttributeAccess().getAttachmentAttachmentKeyword_1_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getMobaRESTMultipartDtoAttributeAccess().getAttachmentAttachmentKeyword_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d6d0e5d12c6705312fc46cdf4de436dd", "score": "0.4969679", "text": "protected void doAttachmentsNow(RunData data, Context context)\n \t{\n \t\t// get into helper mode with this helper tool\n \t\tstartHelper(data.getRequest(), \"sakai.filepicker\");\n \t\tSessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid());\n \t\tif (state.getAttribute(ATTACHMENTS) == null)\n \t\t{\n \t\t\tstate.setAttribute(ATTACHMENTS, EntityManager.newReferenceList());\n \t\t}\n \t\tstate.setAttribute(FilePickerHelper.FILE_PICKER_ATTACHMENTS, state.getAttribute(ATTACHMENTS));\n \n \t}", "title": "" }, { "docid": "be1db060410744d657149a41e4755b5b", "score": "0.49578142", "text": "public static void sendFileWithMail(String message, String subject, String to, String from) {\n\n\t\tProperties properties = System.getProperties();\n\t\tproperties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tproperties.put(\"mail.smtp.host\", \"465\");\n\t\tproperties.put(\"mail.smtp.ssl.enable\", \"true\");\n\t\tproperties.put(\"mail.smtp.auth\", \"true\");\n\n\t\tSession session = Session.getInstance(properties, new Authenticator() {\n\t\t\t@Override\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(\"user2@gmail.com\", \"user\");\n\t\t\t}\n\t\t});\n\n\t\tMimeMessage mimeMessage = new MimeMessage(session);\n\t\ttry {\n\t\t\tmimeMessage.setFrom(from);\n\t\t\tmimeMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\t\t\tmimeMessage.setSubject(subject);\n\n\t\t\tMimeMultipart mimeMultipart = new MimeMultipart();\n\t\t\tMimeBodyPart mimeBodyPart = new MimeBodyPart();\n\t\t\tMimeBodyPart textMimeBody = new MimeBodyPart();\n\n\t\t\ttextMimeBody.setText(message);\n\t\t\tString path = \"c://users/Downloads\";\n\t\t\tFile file = new File(path);\n\t\t\ttry {\n\t\t\t\tmimeBodyPart.attachFile(file);\n\t\t\t\tmimeMultipart.addBodyPart(mimeBodyPart);\n\t\t\t\tmimeMultipart.addBodyPart(textMimeBody);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmimeMessage.setContent(mimeMultipart);\n\t\t\tTransport.send(mimeMessage);\n\t\t\tSystem.out.println(\"Mail is send with the file attached to it.....\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "be2381be44a64d97ef7ac47e9135b25b", "score": "0.49568138", "text": "public final void rule__MobaRESTMultipartAttribute__AttachmentAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMoba.g:21811:1: ( ( ( 'attachment' ) ) )\n // InternalMoba.g:21812:2: ( ( 'attachment' ) )\n {\n // InternalMoba.g:21812:2: ( ( 'attachment' ) )\n // InternalMoba.g:21813:3: ( 'attachment' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getMobaRESTMultipartAttributeAccess().getAttachmentAttachmentKeyword_1_0()); \n }\n // InternalMoba.g:21814:3: ( 'attachment' )\n // InternalMoba.g:21815:4: 'attachment'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getMobaRESTMultipartAttributeAccess().getAttachmentAttachmentKeyword_1_0()); \n }\n match(input,146,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getMobaRESTMultipartAttributeAccess().getAttachmentAttachmentKeyword_1_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getMobaRESTMultipartAttributeAccess().getAttachmentAttachmentKeyword_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "01b3f00f946814afd62481c777c102a2", "score": "0.49434042", "text": "public AttachmentFile uploadAndAddFile(int articleNum, MultipartFile files);", "title": "" }, { "docid": "99795583e99fe1666ac57b52c8a06dd1", "score": "0.49433312", "text": "public StreamedContent getFile() {\r\n\r\n\r\n\r\n\r\n PdfMaker.makePdf(getSettAntallList(), FILNAVN, FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"//bruker\"));\r\n\r\n InputStream stream = ((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext()).getResourceAsStream(\"/bruker/\" + FILNAVN);\r\n file = new DefaultStreamedContent(stream, \"image/jpg\", \"Oversikt.pdf\");\r\n if (MailVe) {\r\n JavaMail mick = new JavaMail();\r\n\r\n }\r\n return file;\r\n }", "title": "" }, { "docid": "be3eb3a5f4d17ff1d998b4e266f1a56d", "score": "0.4942732", "text": "public void prepare(MimeMessage mimeMessage) throws Exception {\n\n\t\t\t\tmimeMessage.setRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\t\t\t\tmimeMessage.setFrom(new InternetAddress(\"\")); //Enter you Email-Id here\n\t\t\t\tmimeMessage.setSubject(subject);\n\t\t\t\tmimeMessage.setText(msg);\n\n\t\t\t}", "title": "" }, { "docid": "368786d13ec681852731e97f45688d67", "score": "0.4940026", "text": "private void attachment(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException{\n\t\tString topicId=request.getParameter(\"topicId\");\n\t\tTopicDao topicDao=new TopicDaoImpl();\n\t\tTopic topic=topicDao.findById(Integer.parseInt(topicId));\n\t\trequest.setAttribute(\"topic\", topic);\n\t\trequest.getRequestDispatcher(\"/bbs/attachment.jsp\").forward(request, response);\n\t}", "title": "" }, { "docid": "eae244e41b167730549eb3ed6696a5e6", "score": "0.49397513", "text": "boolean putAttachmentEx(String pagename, String filename,\r\n\t\t\tString description, byte[] data, boolean replace);", "title": "" } ]
03245e865e833f65292aab3839a8a7f0
add takes O(1) time, find() takes O(n) time Add the number to an internal data structure.
[ { "docid": "060e3cc126c524797004af56b634cea2", "score": "0.68571466", "text": "public void add(int number) {\n //map.put(number, map.getOrDefault(number, 0) + 1);\n if (map.containsKey(number)) {\n map.put(number, map.get(number) + 1);\n } else {\n map.put(number, 1);\n }\n }", "title": "" } ]
[ { "docid": "f609e5df11e0298633b7b013470339fd", "score": "0.68314856", "text": "public void add(int number) {\n // Write your code here\n if(map.containsKey(number)){\n map.put(number, map.get(number) + 1);\n }else{\n list.add(number);\n map.put(number, 1);\n }\n }", "title": "" }, { "docid": "507060e1aceb11564493695d71fe0486", "score": "0.6828087", "text": "public void add(int number) {\n if(numbers.size() > 0){\n \tSet<Integer> twoSum = numbers.stream().map(Integer::intValue).map(i -> i+number).collect(Collectors.toSet());\n twoSums.addAll(twoSum);\n }\n numbers.add(number);\n }", "title": "" }, { "docid": "2f793e499170f9d79865f28c6099dc9d", "score": "0.67995167", "text": "public void add(int number) {\n // Write your code here\n if(map.containsKey(number)) {\n map.put(number, map.get(number) + 1);\n }else {\n map.put(number, 1);\n }\n }", "title": "" }, { "docid": "eba2720abdc333e8ab880b05398f1fd5", "score": "0.6785065", "text": "public void add(int number) {\n\t map.put(number,map.containsKey(number)?map.get(number)+1:1);\n\t}", "title": "" }, { "docid": "dcba9448e04c7a1bacd58c27e47bc27f", "score": "0.6779216", "text": "public void add(int number) {\n\t if(!m.containsKey(number)) {\n\t m.put(number, 0);\n\t }\n\t int pre = m.get(number);\n\t m.put(number, pre + 1);\n\t}", "title": "" }, { "docid": "31a7039bd46f23159f92f173c4cb7b70", "score": "0.67678905", "text": "public void add(int number) {\n numbers.put(number, numbers.getOrDefault(number, 0)+1);\n }", "title": "" }, { "docid": "6f90495234a9d0803f4a6042c5007d3b", "score": "0.67211044", "text": "public void add(int number) {\n if(map.containsKey(number)) map.put(number, map.get(number) + 1);\n else {\n map.put(number, 1);\n list.add(number);\n }\n }", "title": "" }, { "docid": "7944d151dac1187ee34332f73ba5cefb", "score": "0.66938597", "text": "public void add(int number) {\n sum.add(number);\n }", "title": "" }, { "docid": "e0ca401d1dd2e5621ee187a597c345f0", "score": "0.6676618", "text": "public void add(int number) {\n map.put(number, map.getOrDefault(number, 0) + 1);\n }", "title": "" }, { "docid": "b3cdf64d0a02a8ba412e063c99ba918e", "score": "0.6653761", "text": "void add(int value);", "title": "" }, { "docid": "0c5e7ec9a25da8d72bc942ac79c952e1", "score": "0.66479313", "text": "void add(int n);", "title": "" }, { "docid": "18640406609f7732cae26e52c55f7203", "score": "0.66133213", "text": "public void add(int element);", "title": "" }, { "docid": "9e73d15956790d1c03521857bc5dca1f", "score": "0.6558677", "text": "void add(int val);", "title": "" }, { "docid": "db68f909fccc6ecd0c6d7eb34f2d830c", "score": "0.65586656", "text": "public void add(int number) {\n for(int num : list) set.add(num + number);\n list.add(number);\n }", "title": "" }, { "docid": "a3242509aa66baf74e0ef5723c1147e0", "score": "0.652453", "text": "public void add(int number) {\n\t if (hash.containsKey(number)) hash.put(number, 2); // two is enough\n\t else {\n\t \thash.put(number, 1);\n\t \tlist.add(number);\n\t }\n\t}", "title": "" }, { "docid": "b72246a22417b738f32996d32f124ebc", "score": "0.652448", "text": "public void add(int number) {\n hash.put(number, hash.getOrDefault(number, 0) + 1);\n }", "title": "" }, { "docid": "d51f245d655c77b2a03268aa71d65476", "score": "0.64833903", "text": "public void add(int number) {\n if (mapping.containsKey(number)) {\r\n mapping.put(number, 2);\r\n } else {\r\n mapping.put(number, 1);\r\n }\r\n insert(elements, number);\r\n return;\r\n }", "title": "" }, { "docid": "e5ae6e6e7f1bd0f32e1f61cfee9cb145", "score": "0.6387892", "text": "public void add(int add){\n if (!elementOf(add)) {\n int[] added = new int[set.length + 1];\n for(int element = 0; element < set.length; element++){\n added[element] = set[element];\n }\n added[set.length] = add; \n setSet(added);\n added = null;\n }\n }", "title": "" }, { "docid": "d97cc6e9696437a8f477c7d937b9745f", "score": "0.637198", "text": "public void add(int add) {\r\n value += add;\r\n }", "title": "" }, { "docid": "3ae48490f1abceed5d51554bf7c17a66", "score": "0.63461375", "text": "public void add(int number) {\n if (hash.containsKey(number)) {\n hash.put(number, 2);\n } else {\n hash.put(number, 1);\n }\n }", "title": "" }, { "docid": "86625a4e3bca0a517403229d08d8fecc", "score": "0.6328945", "text": "public void add(NestedInteger ni);", "title": "" }, { "docid": "8c18585fb247aa1e43a1e12f1e983ee3", "score": "0.6272286", "text": "void add(BigInt number);", "title": "" }, { "docid": "3e010cd21bb87f87b55e000c644c5159", "score": "0.6249642", "text": "public void addNumber(int number) {\n totalNumber += number;\n availableNumber += number;\n }", "title": "" }, { "docid": "ea8f3fbd4eebf8cde28feee6ed326844", "score": "0.6235731", "text": "public abstract void add(NestedInteger ni);", "title": "" }, { "docid": "b48715adfeaa2ee914c20b756a05bc3a", "score": "0.6230292", "text": "public Integer add();", "title": "" }, { "docid": "b6fc8e480d8c47cbef960a222ad5f6d5", "score": "0.62011313", "text": "@Override\n public void add(Integer element) {\n if (this.contains(element) != -1) {\n return;\n }\n // when already in use\n int index = this.getIndex(element);\n if(this.data[index] != null && this.data[index] != this.thumbstone){\n int i = index + 1;\n boolean foundFreePlace = false;\n while(!foundFreePlace && i != index){\n if(this.data[i] == null && this.data[i] == this.thumbstone){\n foundFreePlace = true;\n }else{\n if(i == this.data.length - 1){\n // start at beginning.\n i = 0;\n }else{\n i++;\n }\n }\n }\n if(foundFreePlace){\n this.data[i] = element;\n }else{\n throw new IllegalStateException(\"Data Structre Full\");\n }\n }\n }", "title": "" }, { "docid": "7b4463f6507fa6e047117659f443566d", "score": "0.6187416", "text": "boolean add(int value);", "title": "" }, { "docid": "24123ab044249674cda5d384efaeb125", "score": "0.613157", "text": "public void add(T x) // O(n/M) nel caso medio e peggiore\n {\n // precondizioni\n if (x == null || contains(x)) \n return;\n \n // calcolo della chiave ridotta\n int kr = hash(x);\n \n // inserimento nel bucket di chiave ridotta calcolata\n ListNode n = (ListNode)v[kr]; // nodo header del bucket\n n.setElement(x); // inserimento nel nodo header\n v[kr] = new ListNode(null, n); // nuovo nodo header\n \n // incremento del numero di elementi\n size++; \n }", "title": "" }, { "docid": "cf9fd04128329f0a420adf1285e4b897", "score": "0.6101099", "text": "public void add(int number) {\n arrayList.add(number);\n isSorted = false;\n }", "title": "" }, { "docid": "6f82dbe8e5d38c21b81f61eb22dc21ed", "score": "0.6090831", "text": "BaseNumber add(BaseNumber operand);", "title": "" }, { "docid": "59132c23f010749d0b5cf8e988ded424", "score": "0.60896146", "text": "public V addElement(T t) {\n\t\tif(multiSet.containsKey(t)){\n\t\t\tNumber newValue = ((Integer)multiSet.get(t)) + 1;\n\t\t\tmultiSet.replace(t,(V)newValue);\n\t\t\treturn (V)newValue;\n\t\t}\n\t\tNumber firstValue = 1;\n\t\tmultiSet.put(t,(V)firstValue);\n\t\treturn (V)firstValue;\n\t}", "title": "" }, { "docid": "4c3114488bc578220319c29e2cc5bc78", "score": "0.60693806", "text": "public void add(NestedInteger ni){}", "title": "" }, { "docid": "000887ed2182f36cd88a38ceb9bd86fe", "score": "0.60125995", "text": "public static <K> void addNumber (Map<? super K, Integer> toAdd, K key, int val) {\n if (toAdd.get(key) == null) {\n toAdd.put(key, val);\n } else {\n toAdd.put(key, toAdd.get(key) + val);\n }\n }", "title": "" }, { "docid": "f047c1cb9bb3f416563608a028b505d6", "score": "0.60062814", "text": "public void addToPrimitive(int add) {\n primitiveCounter += add;\n }", "title": "" }, { "docid": "092ac9f11b35d65e0e4b477d0d5d793d", "score": "0.59671646", "text": "private void addition()\n {\n\tint tempSum = 0;\n\tint carryBit = 0;\n\tsum = new Stack<String>();\n\tStack<String> longerStack = pickLongerStack(number, otherNumber);\n\twhile(!longerStack.isEmpty())\n\t{\n\t tempSum = digitOf(number) + digitOf(otherNumber) + carryBit; //adding\n\t carryBit = tempSum / 10;\n\t sum.push((tempSum % 10) + \"\"); //store the digit which is not carryBit\n\t}\n\tif(carryBit == 1) sum.push(\"1\"); //the last carry bit need to be add as very first digit of sum if there is carry bit\n }", "title": "" }, { "docid": "2d1a5385e0280a03987908d267e10236", "score": "0.59541374", "text": "@Override\r\n\tpublic int addNo(int a, int b) {\n\t\treturn a+b;\r\n\t}", "title": "" }, { "docid": "423f16ee04c106630e0081eb6798444b", "score": "0.59458685", "text": "void add(int index, T element);", "title": "" }, { "docid": "423f16ee04c106630e0081eb6798444b", "score": "0.59458685", "text": "void add(int index, T element);", "title": "" }, { "docid": "d84a59576b58bb413f40ec475f28ca04", "score": "0.59457266", "text": "public boolean add(int paramInt)\n/* */ {\n/* 179 */ ensureCapacity(this.m_entryCount + 1);\n/* 180 */ int i = -internalFind(paramInt) - 1;\n/* 181 */ if (i >= 0) {\n/* 182 */ this.m_entryCount += 1;\n/* 183 */ this.m_flagTable[i] = true;\n/* 184 */ this.m_keyTable[i] = paramInt;\n/* 185 */ return true;\n/* */ }\n/* 187 */ return false;\n/* */ }", "title": "" }, { "docid": "b08adf321aa9620eb9f417070cbd4e24", "score": "0.59415567", "text": "public void add(int data) { // Big O -> O(1)\n\n\t\tNode temp = new Node(data);\n\t\tif(tail != null) { // if there is a tail, it adds after the tail.\n\t\t\ttail.next = temp;\n\t\t\ttemp.prev = tail;\n\t\t\t}\n\t\ttail = temp; // the added node is the new tail, regardless of \n\t\t\t\t\t//whether the list was empty or not\n\t\tif(head == null) { // if there is no head, the new node is the new head as well\n\t\t\thead = temp;\n\t\t\t}\n\t\tsize++; \n\t}", "title": "" }, { "docid": "428b2dd6e72be2c0f1e084200b793070", "score": "0.59317976", "text": "private void addTwoNumbers() {\n\t\t\n\t}", "title": "" }, { "docid": "1c0a972c2b84d804805a18b5143ba186", "score": "0.59246695", "text": "public int addOrderedList(int number) {\n\t\tint index;\n\n\t\tif (olist.traverse(number) == 1) {\n\t\t\tindex = olist.returnPos(number);\n\t\t\tSystem.out.println(\"number will be added at\" + index);\n\n\t\t\tolist.insertAt(number, index);\n\n\t\t\tcount++;\n\n\t\t} else if (olist.traverse(number) == 0) {\n\t\t\tolist.deleteElement(number);\n\t\t\tcount--;\n\n\t\t}\n\n\t\treturn count;\n\n\t}", "title": "" }, { "docid": "9455961b258552075d6163255a6c010d", "score": "0.591833", "text": "void add(int i, int j) {\r\n\t\tnum1 = i;\r\n\t\tnum2 = j;\r\n\t\tresult = i+j;\r\n\t\t}", "title": "" }, { "docid": "0960991e3757e658cbd1e9c4180fd4b3", "score": "0.5897449", "text": "E add(E element) {\n\t\t\tshort index = (short)((element.hashCode() >> 24) & 0x000000FF);\n\t\t\tE obj = nodes[index].add(this, element.hashCode(), element, (byte) 1);\n\t\t\tif (obj == null) {\n\t\t\t\tsize++;\n\t\t\t}\n\t\t\treturn obj;\n\t\t}", "title": "" }, { "docid": "929612cec9540ccbb8b32f654dcd4643", "score": "0.58940667", "text": "public int addNum(int a, int b){\n return a+b;\n }", "title": "" }, { "docid": "17cfe6b0e499f148799c3b8213d37fe4", "score": "0.5890749", "text": "public void add(int num) {\n // if the array is not large enough, an array of twice\n // the capacity is created\n if (count + 1 > list.length) {\n int[] temp = new int[list.length * 2];\n for (int i = 0; i < list.length; i++) {\n temp[i] = list[i];\n }\n list = temp;\n temp = null;\n }\n \n // add the element to the array and increment the count\n list[count++] = num;\n }", "title": "" }, { "docid": "8eaa1e2e00f0fdf9a16c42dcbf831196", "score": "0.58883566", "text": "public void addNumSorted(int a){\n\t\tSystem.out.println(\"Testing... \" + a);\n\t\tif(this.prevNum != null){\n\t\t\tListUtilities temp = new ListUtilities();\n\t\t\tSystem.out.println(\"Reversing \" + a);\n\t\t\ttemp = this.prevNum;\n\t\t\tSystem.out.println(\"Returned to \" + temp.num);\n\t\t\ttemp.addNumSorted(a);\n\t\t\t\n\t\t}\n\t\tif(this.prevNum == null && this.num > a){\n\t\t\t//if at the beginning, and lowest number, insert at beginning\n\t\t\tSystem.out.println(\"Adding to beginning... \" + a);\n\t\t\tListUtilities newNode = new ListUtilities(a);\n\t\t\tnewNode.nextNum = this;\n\t\t\tthis.prevNum = newNode;\n\t\t\tSystem.out.println(this.num + \" is now attached to \" + this.prevNum.num);\n\t\t\treturn;\n\t\t}else if(this.nextNum == null && this.num < a){\n\t\t\t//if at the end and highest number insert at the end\n\t\t\tSystem.out.println(\"Adding to the end... \" + a);\n\t\t\tListUtilities newNode = new ListUtilities(a);\n\t\t\tthis.nextNum = newNode;\n\t\t\tnewNode.prevNum = this;\n\t\t\treturn;\n\t\t}else if (this.num < a && this.nextNum.num > a){\n\t\t\t//insert in between lower and higher numbers\n\t\t\tSystem.out.println(\"Inserting \" + a + \" in between \" + this.num + \" and \" + this.nextNum.num);\n\t\t\tListUtilities newNode = new ListUtilities(a);\n\t\t\tnewNode.nextNum = this.nextNum;\n\t\t\tthis.nextNum.prevNum = newNode;\n\t\t\tthis.nextNum = newNode;\n\t\t\tnewNode.prevNum = this;\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "6f50403ad4c6fd14a05a9aaf4a4aa938", "score": "0.5885358", "text": "public void add(int value) {\n m_value += value;\n }", "title": "" }, { "docid": "ec4524bf0f03d9fc95de17b2a6221307", "score": "0.586302", "text": "@Override\n\tpublic void add(Integer value) {\n\t\troot=add(root,value);\n\t\tcount++;\n\t}", "title": "" }, { "docid": "1d23755d1a2eb5ac5cba4bf3959531db", "score": "0.5817037", "text": "public void add(int data) {\n\n\t\tNode search = root;\n\t\tNode node = new Node(data, null, null);\n\t\tif (search == null) {\n\t\t\troot = node;\n\t\t\treturn;\n\t\t}\n\t\twhile (search != null) {\n\t\t\t// System.out.println(\"Deni\"+search.data);\n\t\t\tif (search.data > node.data) {\n\t\t\t\tif (search.left == null) {\n\t\t\t\t\tsearch.left = node;\n\t\t\t\t\t// System.out.println(\"Added \" + node.data + \" as the left of \" + search.data);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsearch = search.left;\n\t\t\t} else if (search.data < node.data) {\n\t\t\t\tif (search.right == null) {\n\t\t\t\t\tsearch.right = node;\n\t\t\t\t\t// System.out.println(\"Added \" + node.data + \" as the right of \" + search.data);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsearch = search.right;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "577a94159b5f0d4276cd3055ded8494b", "score": "0.581613", "text": "public void add(int v, int p){\n \n \n \n }", "title": "" }, { "docid": "d9cd562afd6f6d0229b2a227a967d79a", "score": "0.5814292", "text": "@Override\n\tpublic int add(int a, int b) {\n\t\treturn a+b;\n\t}", "title": "" }, { "docid": "7aa11c6d1654fef734a49b45f5261af7", "score": "0.5805305", "text": "public void add(final int item) {\n if (!contains(item)) {\n set[size] = item;\n size += 1;\n }\n }", "title": "" }, { "docid": "c6c7abb06d07c87b41b2ae4cf9e41032", "score": "0.5801825", "text": "private void addOne(String value){\n\t\tif (numCache.containsKey(value)){\n\t\t\tnumCache.put(value, numCache.get(value) + 1);\n\t\t}else{\n\t\t\tnumCache.put(value, 1);\n\t\t}\n\t}", "title": "" }, { "docid": "16f2bd0755746d701cdbfb7fd29f0883", "score": "0.5767634", "text": "void add(int idx, float incr);", "title": "" }, { "docid": "a7860b1b48373e517aff343d4015e003", "score": "0.57591474", "text": "@Override\r\n\tpublic int add(int a,int b) {\n\t\treturn a+b;\r\n\t}", "title": "" }, { "docid": "00e56410f41424f386a24aa99c647dc6", "score": "0.57496554", "text": "public void add (int value) {\r\n\t\ttotal = total + value;\r\n\t\thistory = history + \" + \" + value;\r\n\t}", "title": "" }, { "docid": "8ac9e1ec9d83be308f939712c0bd8924", "score": "0.5746372", "text": "public void add(Number v)\n\t{ total = total + v.doubleValue(); }", "title": "" }, { "docid": "24d8943f4e3a5a125446bc9db0f8e142", "score": "0.57396823", "text": "public int addValue(int i) {\n return foldIn(i);\n }", "title": "" }, { "docid": "5a4603024a6d1a269bcaf8c35b6cca45", "score": "0.57238585", "text": "public void add(T element, int pos);", "title": "" }, { "docid": "5a8c7371e3ac46d36a8c477a6812ca05", "score": "0.57234246", "text": "public void add(E e){\n int target = e.hashCode() % this.buckets;\n if(!data[target].contains(e)){\n data[target].add(e);\n }\n }", "title": "" }, { "docid": "dbf539b98f03ad965763bbff8e9b4840", "score": "0.571705", "text": "public boolean add(int number)\n\t{\n\t\tif (arraySize >= array.length)\n\t\t{\n\t\t\tthis.ensureCapacity(array.length * 2 + 1);\n\t\t} \n\t\tarray[arraySize] = number;\t\n\t\tarraySize++;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "77392fa704e4b416a594c4d21170d7c4", "score": "0.57128197", "text": "public int add(E value) {\r\n int index = items.size();\r\n items.add(value);\r\n return index;\r\n }", "title": "" }, { "docid": "3a09ca5617f1cc398bf282f4460e2f67", "score": "0.5688455", "text": "void add(int index, Object element);", "title": "" }, { "docid": "3bd87d37c2b6cd79d2b859bad8f0e0ff", "score": "0.5687915", "text": "public void add (int value) {\n\t\ttotal = total + value;\n\n\t\thistory = history + \" + \" + value;\n\t\t\n\t}", "title": "" }, { "docid": "28d479f13d4f1fb8a79512f1826b852c", "score": "0.5682795", "text": "public void add_to_score(int num){\n score+=num;\n }", "title": "" }, { "docid": "41ef4d725fca8c611b4ed9b5e539eb9a", "score": "0.5681124", "text": "public boolean addMember(int value) {\n\t \n\t int a = sparse[value];\n\n\t if (a >= members || dense[a] != value) {\n\t \tsparse[value] = members;\n\t \tdense[members] = value;\n\t \tmembers++;\n\t \treturn true;\n\t }\n\t else \n\t \treturn false;\n\n\t}", "title": "" }, { "docid": "99f088badd68dbf4aca767d5128e0f43", "score": "0.5672406", "text": "int addElement(int list, int data) {\n\t\treturn insertElement(list, -1, data);\n\t}", "title": "" }, { "docid": "9f73b748b0e435768db73b7159319989", "score": "0.5667577", "text": "public V addElement(T t) {\r\n\t\tNumber frequency = baseMap.get(t);\r\n\t\tif (frequency == null)\r\n\t\t\tbaseMap.put(t, (V) (Number) 1);\r\n\t\telse {\r\n\t\t\tfrequency = new BigInteger(frequency.toString()).add(new BigInteger(\"1\"));\r\n\t\t\tbaseMap.put(t, (V) frequency);\r\n\t\t}\r\n\t\treturn baseMap.get(t);\r\n\t}", "title": "" }, { "docid": "e0587def3057a1e6fd76d6a459d356ed", "score": "0.56662714", "text": "public int add(Object key, int off)\r\n {\r\n if ( key == null )\r\n return nullValue;\r\n int i;\r\n for (i = firstIndex(key); keys[i] != null; i = nextIndex(i))\r\n {\r\n if ( keys[i] == key || key.equals(keys[i]) )\r\n {\r\n values[i] += off;\r\n return values[i];\r\n }\r\n }\r\n return nullValue;\r\n }", "title": "" }, { "docid": "2c2f8cb68dca9e1020ac1f97d701fe2e", "score": "0.56650096", "text": "public void AddValue(int value)\n {\n // Check if the value already exists\n if (!_valuesToPut.contains(value))\n {\n _valuesToPut.add(value);\n Collections.sort(_valuesToPut);\n }\n }", "title": "" }, { "docid": "2a4e865c17b0c74d82421b70b73c9c73", "score": "0.5663434", "text": "public void add()\n {\n set(++ current);\n }", "title": "" }, { "docid": "e1b08b36f40403008d77d853f87882e0", "score": "0.56632876", "text": "public void addToBill(int newBill){\n Bill = Bill + newBill;\n }", "title": "" }, { "docid": "62716fa23d6150b6a5eb3a451e5f3bb0", "score": "0.5661825", "text": "public abstract void add(T element, int index);", "title": "" }, { "docid": "1a15b8e9dff55154c211879990eb9f47", "score": "0.5659658", "text": "private static void add() {\n\tcount.incrementAndGet();\n}", "title": "" }, { "docid": "0f5653ce5f712a4f2dc8d9d6e7838000", "score": "0.56581366", "text": "public boolean add(T val) {\n Integer idx = hmap.get(val);\n if (idx == null) {\n int i = list.size();\n list.add(val);\n idx = new Integer(i);\n hmap.put(val, idx);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "a74e1bc32a0ee5d0c4d82527c589709e", "score": "0.56555754", "text": "public void add(int value) {\n\t \tensureCapacity(size+ 1);\n\t \telementData[size] = value;\n\t \tsize++;\n\t }", "title": "" }, { "docid": "1e3faae8ebe3b802090c300e4a8998c3", "score": "0.5634955", "text": "void add(T element);", "title": "" }, { "docid": "1e3faae8ebe3b802090c300e4a8998c3", "score": "0.5634955", "text": "void add(T element);", "title": "" }, { "docid": "47688dc9e2d42cabf828faa1dabc8b51", "score": "0.56336415", "text": "void addHadithNo(Object newHadithNo);", "title": "" }, { "docid": "5fb00bbd534952c1a162250792e3b3c4", "score": "0.5626356", "text": "public void addNumber(int number) {\r\n\t\tadd(Integer.toString(number).getBytes(charset));\r\n\t}", "title": "" }, { "docid": "88bab6add691af62726b902a47de73f6", "score": "0.5624454", "text": "@Override\n public boolean add(int value) {\n Entry newElement = new Entry(value);\n if (size == 0) {\n first = newElement;\n last = newElement;\n } else {\n last.next = newElement;\n newElement.previous = last;\n last = newElement;\n }\n size++;\n return true;\n }", "title": "" }, { "docid": "bd8a9a3e572623f20daa9bd704e5738b", "score": "0.5623403", "text": "public double addNumber(double num) {\r\n\t\tdouble sum = 0;\r\n\t\tSystem.out.print(\"Add num to previousNumber\");\r\n\t\tsum = num + previousNumber;\r\n\t\treturn sum;\r\n\t}", "title": "" }, { "docid": "1b68c0ae525e74702756e1279e42e598", "score": "0.56125057", "text": "public boolean insert(int val) {\n boolean contains = map.containsKey(val);\n if (contains) return false;\n map.put(val, nums.size()); // insert O(1) in map(with no collision) (linkedlist)\n nums.add(val); // linkedlist add one element in the end, O(1)\n return true;\n }", "title": "" }, { "docid": "f025f5734e14fa88eaaa3aad8ee01468", "score": "0.5603173", "text": "public int getOrAdd(T val) {\n Integer idx = hmap.get(val);\n if (idx == null) {\n int i = list.size();\n idx = new Integer(i);\n list.add(val);\n hmap.put(val, idx);\n }\n return idx.intValue();\n }", "title": "" }, { "docid": "e4da5bcc22ad1b528749541136e0da0b", "score": "0.5599242", "text": "void add(String name, int value);", "title": "" }, { "docid": "de65a3d0dbb95c407e2e26f330919ece", "score": "0.55912596", "text": "public boolean add(int key) {\r\n\t\tint i = ArrayUtils.binarySearch(keys, size, key);\r\n\r\n\t\tif (i >= 0) {\r\n\t\t\treturn false; // already in array no need to add again\r\n\t\t} else {\r\n\t\t\ti = ~i;\r\n\r\n\t\t\tif (size >= keys.length) {\r\n\t\t\t\tint n = ArrayUtils.idealArraySize(size + 1);\r\n\r\n\t\t\t\tint[] nkeys = new int[n];\r\n\r\n\t\t\t\tSystem.arraycopy(keys, 0, nkeys, 0, keys.length);\r\n\t\t\t\tkeys = nkeys;\r\n\t\t\t}\r\n\r\n\t\t\tif (size - i != 0) {\r\n\t\t\t\tSystem.arraycopy(keys, i, keys, i + 1, size - i);\r\n\t\t\t}\r\n\r\n\t\t\tkeys[i] = key;\r\n\t\t\tsize++;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bc499e10ddc30f61a1edad4a4e28f022", "score": "0.55858207", "text": "public void add(int k) {\n\t\tcontains[k] = true;\n\t}", "title": "" }, { "docid": "3ee4900675f2fdfd38124cb2900ded1e", "score": "0.5576941", "text": "public void add(int data) {\n\t\t// Its a first element\n\t\tif (head == null && tail == null) {\n\t\t\tNode newNode = getNewNode(data);\n\t\t\thead = tail = newNode;\n\t\t\treturn;\n\t\t}\n\t\t// This will add to the end of list with time complexity -O(1)\n\t\tNode newNode = getNewNode(data);\n\t\ttail.next = newNode;\n\t\tnewNode.prev = tail;\n\t\ttail = newNode;\n\t}", "title": "" }, { "docid": "a9ded2392411d62f0476bc80ad9c769d", "score": "0.55750513", "text": "public void add(int num){\r\n\t\t\tNode newNode = new Node(num);\r\n\t\t\tthis.addNode(newNode);\r\n\t\t}", "title": "" }, { "docid": "14421a854469b1d6925708457fed7ee5", "score": "0.5571129", "text": "public void addNumFaster(int num) {\n\t\tif (maxHeap.size() == minHeap.size()) {// size of maxHeap will increase\n\t\t\tif (minHeap.peek() != null && num > minHeap.peek()) {\n\t\t\t\t// Since number on the top of minHeap is smaller,it goes to the maxHeap\n\t\t\t\tmaxHeap.offer(minHeap.poll());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tminHeap.offer(num);\n\t\t\t} else {// either minHeap is empty or the number is smaller\n\t\t\t\tmaxHeap.offer(num);\n\t\t\t}\n\t\t} else {//size of minHeap will increase.\n\t\t\tif (num < maxHeap.peek()) {\n\t\t\t\tminHeap.offer(maxHeap.poll());\n\t\t\t\tmaxHeap.offer(num);\n\t\t\t} else {\n\t\t\t\tminHeap.offer(num);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "efdef5e3107766c215735e761d8e6343", "score": "0.5570009", "text": "void addNode(int node);", "title": "" }, { "docid": "7f398649f8db90c5e0680f63560f452c", "score": "0.5569438", "text": "public void addNumber(String number){\n\t\tnumberList.add(number);\n\t}", "title": "" }, { "docid": "249cb88a0a60ae80a22070b06de444c6", "score": "0.55653965", "text": "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "249cb88a0a60ae80a22070b06de444c6", "score": "0.55653965", "text": "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "249cb88a0a60ae80a22070b06de444c6", "score": "0.55653965", "text": "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "e824efd084c76ce9b2c4cd8fe85482b6", "score": "0.5563348", "text": "public V add(K key, V value)\r\n\t{\r\n\t\tint slot = findSlot(key, false); // check if key already exists\r\n\t\tV oldVal = null;\r\n\t\t\r\n\t\tif (slot >= 0)\r\n\t\t{\r\n\t\t\tMapEntry<K, V> e = table[slot];\r\n\t\t\toldVal = e.setValue(value);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tslot = findSlot(key, true); // find empty slot for adding\r\n\t\t\ttable[slot] = new MapEntry<>(key, value);\r\n\t\t\tcount++;\r\n\t\t\tif (count >= maxCount)\r\n\t\t\t{\r\n\t\t\t\trehash();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn oldVal;\r\n\t}", "title": "" }, { "docid": "6d9352500133eabfb6840aae2826dcd0", "score": "0.5563162", "text": "private synchronized void agregarElemento(int numero){\n int hashtag = funcionHash(numero);\n int cantDigitos = cantidadDigitos(numero);\n \n if(!listaPorDigitos.containsKey(cantDigitos)){\n listaPorDigitos.put(cantDigitos, new TreeMap());\n }\n if(listaPorDigitos.get(cantDigitos).get(hashtag) == null){\n listaPorDigitos.get(cantDigitos).put(hashtag, new ArrayList<Integer>());\n }\n listaPorDigitos.get(cantDigitos).get(hashtag).add(numero);\n this.add(numero);\n }", "title": "" }, { "docid": "7dbf3374603aa55a0fdfe474ed5cbe7f", "score": "0.55612254", "text": "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "f4a72e3b9d9fa359cc6178c56a307d8f", "score": "0.5558066", "text": "public void add(T data, UUID id) { //Time Complexity: O(n)\n //checks for empty tree\n if (root == null) {\n root = new Node<>(id);\n root.data = data;\n\n } else {\n Node<T> currentnode = root;\n Node<T> adding = new Node<>(id);\n adding.data = data;\n //iterates through tree to get to node and add node\n while (currentnode != null) {\n\n if (currentnode.data.compareTo(data) < 0) {\n if (currentnode.right == null) {\n currentnode.right = adding;\n return;\n } else {\n currentnode = currentnode.right;\n }\n } else if (currentnode.data.compareTo(data) >= 0) {\n if (currentnode.left == null) {\n currentnode.left = adding;\n return;\n } else {\n currentnode = currentnode.left;\n }\n }\n }\n\n }\n }", "title": "" } ]
fd4dcec0868cf06ebb1d89af04a7251c
Returns the host name.
[ { "docid": "85dfd240d12bc6429b7eaa1701b0e552", "score": "0.8394286", "text": "@Override\n public String getHostName() {\n return this.host.getHostName();\n }", "title": "" } ]
[ { "docid": "e9bd06989d7ad251a167b04e2589c3e8", "score": "0.86558825", "text": "public String NameOfHost() {\n return hostName;\n }", "title": "" }, { "docid": "442570001495845f710cdbb0d6b999f0", "score": "0.8635054", "text": "public static String getHostName() {\r\n return VarStatic.hostName;\r\n }", "title": "" }, { "docid": "aabf9fd3a6e0b1eaee3284ca31e833ab", "score": "0.8518529", "text": "public String getHostName() {\n\t\ttry {\n\t\t\treturn java.net.InetAddress.getLocalHost().getHostName();\n\t\t}\n\t\tcatch ( java.net.UnknownHostException exception ) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "title": "" }, { "docid": "a0eb1a04706e47dfcb3fb6e34425bcfe", "score": "0.8436212", "text": "public java.lang.String getHostName() {\n java.lang.Object ref = hostName_;\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 hostName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7d03d92f159d57c60f980d668b1be96a", "score": "0.8420334", "text": "public static String getHostName() {\n return getHostNameImpl().trim().toLowerCase();\n }", "title": "" }, { "docid": "e053e070f2e0b2c034f1c4bf3bba01c6", "score": "0.840729", "text": "public java.lang.String getHostName() {\n java.lang.Object ref = hostName_;\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 hostName_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "f1ac5b1565dca2f029c5277cb9860145", "score": "0.84005547", "text": "public String getHostName() {\n\t\treturn this.hostName;\n\t}", "title": "" }, { "docid": "4593528a5a0aa2e9c17527c9b586b299", "score": "0.83952206", "text": "java.lang.String getHostName();", "title": "" }, { "docid": "e05a641e8866accd2dced16e4a4329c3", "score": "0.83353454", "text": "public String getHostName(){\n\t\treturn this._hostName;\n\t}", "title": "" }, { "docid": "45b696f53a993be8a5cbe29545d881b6", "score": "0.83247334", "text": "public java.lang.CharSequence getHostName() {\n return hostName;\n }", "title": "" }, { "docid": "3bdf2fa802e477326a704908264bf942", "score": "0.8315053", "text": "protected final String getHostName() {\n\t\ttry {\n\t\t\treturn getHostName(request.getRemoteAddr());\n\t\t}\n\t\tcatch (final Exception e) {\n\t\t\treturn \"cannot.find.host.name(\" + e + \")\";\n\t\t}\n\t}", "title": "" }, { "docid": "e9cb9bf360d2d530d6bf23d184148c56", "score": "0.8278971", "text": "java.lang.String getHostname();", "title": "" }, { "docid": "e9cb9bf360d2d530d6bf23d184148c56", "score": "0.8278971", "text": "java.lang.String getHostname();", "title": "" }, { "docid": "a0574e9ebbb16cca6466377cc6464727", "score": "0.8265949", "text": "public java.lang.CharSequence getHostName() {\n return hostName;\n }", "title": "" }, { "docid": "19ec90198d211476d944326a962c669e", "score": "0.8248649", "text": "public static String getHostName() {\n try {\n InetAddress iAddress = InetAddress.getLocalHost();\n String hostName = iAddress.getHostName();\n // String canonicalHostName = iAddress.getCanonicalHostName();\n return hostName;\n } catch (Exception e) {\n log.error(\"Error getting hostname\");\n }\n\n return toHexString(getMacAddress());\n }", "title": "" }, { "docid": "9b707f25d1ae640b071ffaabcfd6396d", "score": "0.815154", "text": "String getHostname();", "title": "" }, { "docid": "52b30aef7354d665cf838a1bfb851bc1", "score": "0.81514466", "text": "public String getHostName() {\r\n\t\treturn hostName;\r\n\t}", "title": "" }, { "docid": "4bae0c0d64d38bda0fbb1573e7831924", "score": "0.8140056", "text": "@SuppressWarnings(\"UnusedDeclaration\")\n public String getHostName() {\n return this.hostName;\n }", "title": "" }, { "docid": "68920c9ba71086e05e88b058960151ea", "score": "0.8137088", "text": "public String getHostName() {\n\t\treturn hostName;\n\t}", "title": "" }, { "docid": "3c7d85a7587c5251b0bb23050679e5f8", "score": "0.8117285", "text": "public static String getHostName()\n \t{\n \t\tString tResult = null;\n \t\t\n \t\ttry{\t\n \t\t\ttResult = java.net.InetAddress.getLocalHost().getHostName();\n \t\t} catch (UnknownHostException tExc) {\n \t\t\tLogging.err(null, \"Unable to determine the local host name\", tExc);\n \t\t}\n \t\t\n \t\treturn tResult;\n \t}", "title": "" }, { "docid": "529fce60ee6e7aeb50996c5e953414cf", "score": "0.8057193", "text": "public String getHostName() {\r\n return hostName;\r\n }", "title": "" }, { "docid": "8ce186d513516b159a50514d8318202d", "score": "0.8046516", "text": "public static String getHostName() throws UnknownHostException {\n InetAddress host = InetAddress.getLocalHost();\n return host.getHostName();\n }", "title": "" }, { "docid": "41faff4884ceef9df6fc0add1f1b7040", "score": "0.8041433", "text": "public String getHostName() {\n return hostName;\n }", "title": "" }, { "docid": "5bd85018d753cf5451058c447c4daf59", "score": "0.8014116", "text": "public String getHostName()\n\t{\n\t\treturn mHostName;\n\t}", "title": "" }, { "docid": "25b22cc5a8e80f02732a0735bd5fdd4e", "score": "0.8002638", "text": "java.lang.String getHost();", "title": "" }, { "docid": "25b22cc5a8e80f02732a0735bd5fdd4e", "score": "0.8002638", "text": "java.lang.String getHost();", "title": "" }, { "docid": "25b22cc5a8e80f02732a0735bd5fdd4e", "score": "0.8002638", "text": "java.lang.String getHost();", "title": "" }, { "docid": "25b22cc5a8e80f02732a0735bd5fdd4e", "score": "0.8002638", "text": "java.lang.String getHost();", "title": "" }, { "docid": "25b22cc5a8e80f02732a0735bd5fdd4e", "score": "0.8002638", "text": "java.lang.String getHost();", "title": "" }, { "docid": "25b22cc5a8e80f02732a0735bd5fdd4e", "score": "0.8002638", "text": "java.lang.String getHost();", "title": "" }, { "docid": "25b22cc5a8e80f02732a0735bd5fdd4e", "score": "0.8002638", "text": "java.lang.String getHost();", "title": "" }, { "docid": "25b22cc5a8e80f02732a0735bd5fdd4e", "score": "0.8002638", "text": "java.lang.String getHost();", "title": "" }, { "docid": "ad2c2d70196aa666f3cf9639dfbf6ba5", "score": "0.7998414", "text": "public String getHostName() {\n\t\treturn _strHostName;\n\t}", "title": "" }, { "docid": "f5abd434437df1237a6d2c07ffa3c0c3", "score": "0.79643357", "text": "public java.lang.String getHostname() {\n java.lang.Object ref = hostname_;\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 hostname_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "f0a88ca84ab297cca85d8112401088e3", "score": "0.7957218", "text": "public String getHostName() {\n return hostName;\n }", "title": "" }, { "docid": "4c03ead29dafb352bb2aba5b57102e33", "score": "0.79570574", "text": "public String getHostName();", "title": "" }, { "docid": "9f702736cefb058fd58f038730ec06ea", "score": "0.79509246", "text": "public String getNameServerHostName();", "title": "" }, { "docid": "32f8de20b21d718bdce3ae1a5ddea8f9", "score": "0.7949551", "text": "private String getHostname()\n {\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch (UnknownHostException e)\n {\n // well that's unfortunate, but don't let it\n // spoil the alert\n return \"n/a\";\n }\n }", "title": "" }, { "docid": "47a6f719aa379450bdf607da8b6ff9e3", "score": "0.79199857", "text": "public String getHostname() {\n return getData().getHostname();\n }", "title": "" }, { "docid": "f78bfd060ade68617c1d977a89a544e3", "score": "0.78798336", "text": "private String getHostname() throws UnknownHostException {\n\t\treturn InetAddress.getLocalHost().getHostName();\n\t}", "title": "" }, { "docid": "f78bfd060ade68617c1d977a89a544e3", "score": "0.78798336", "text": "private String getHostname() throws UnknownHostException {\n\t\treturn InetAddress.getLocalHost().getHostName();\n\t}", "title": "" }, { "docid": "b80de46df0c14ead43a96c15766c9f9c", "score": "0.7829996", "text": "private static String getHostname() {\r\n\t\tClusterInfo info = (new TerracottaClient(FW_TC_CONFIG_URL))\r\n\t\t\t\t.getToolkit().getClusterInfo();\r\n\t\ttry {\r\n\t\t\treturn info.getCurrentNode().getAddress().getCanonicalHostName();\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\treturn \"UNKNOWN\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "25a2d233dc87a394824dc55fc2c17a88", "score": "0.78223056", "text": "@java.lang.Override\n public java.lang.String getHostname() {\n java.lang.Object ref = hostname_;\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 hostname_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "a346d2ff118029eed2bd12594160cc85", "score": "0.78164726", "text": "public String getHostname()\n {\n return getProperty(HOSTNAME);\n }", "title": "" }, { "docid": "6ca72672bb64858abd3efbae531a4bfd", "score": "0.77891266", "text": "public String getHostname() {\n return (String) mProperties.get(FIELD_HOSTNAME);\n }", "title": "" }, { "docid": "e275f7d13c74c3724c6151e6d17a7af1", "score": "0.77876973", "text": "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return getLocalHost().getHostName();\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "title": "" }, { "docid": "e9a146211597d147853dee0ae4e6c0c2", "score": "0.77535266", "text": "private String getHostName() {\n return hostName;\n }", "title": "" }, { "docid": "9742a6f008582bd82dcd81807e5b364b", "score": "0.7746252", "text": "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "cc88fb26e6144b24d0b90c0fc93b0185", "score": "0.7738988", "text": "public String getHost()\n {\n return super.getAttributeAsString(HOST_ATTR_NAME);\n }", "title": "" }, { "docid": "ea4f791466347e41aff48c4450af1df5", "score": "0.77282053", "text": "public String hostname() {\n return this.hostname;\n }", "title": "" }, { "docid": "677e85905cee76c55c6231baba87ce81", "score": "0.77161247", "text": "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "677e85905cee76c55c6231baba87ce81", "score": "0.771587", "text": "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "677e85905cee76c55c6231baba87ce81", "score": "0.77142775", "text": "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "677e85905cee76c55c6231baba87ce81", "score": "0.77142775", "text": "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "677e85905cee76c55c6231baba87ce81", "score": "0.77142775", "text": "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "020be59000e762542a26852bf81a8a8a", "score": "0.7713399", "text": "public static String serverHostName() {\n\t\tif (_engineName == null || _engineName.isEmpty()) {\n\t\t\ttry {\n\t\t\t\t_engineName = InetAddress.getLocalHost().getHostName();\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\t_engineName = UNKNOWN;\n\t\t\t}\n\t\t}\n\t\treturn _engineName;\n\t}", "title": "" }, { "docid": "aa910f6e6ba7831221222fbc50b5dde2", "score": "0.77031344", "text": "public String getHostname()\n {\n return this.hostname;\n }", "title": "" }, { "docid": "eb914e03ba410ca44013b12637e73968", "score": "0.7691624", "text": "private String getHostName(final HttpContext context)\n {\n String hostName = null;\n\n HttpRequest request = HttpClientContext.adapt(context).getRequest();\n if (request instanceof HttpRequestWrapper)\n {\n request = ((HttpRequestWrapper) request).getOriginal();\n }\n\n if (request instanceof HttpUriRequest)\n {\n final URI uri = ((HttpUriRequest) request).getURI();\n if (uri != null)\n {\n hostName = uri.getHost();\n }\n }\n\n return StringUtils.defaultIfBlank(hostName, \"<unknown>\");\n }", "title": "" }, { "docid": "0b2162cae5d8edf55da95703c5b5a879", "score": "0.7680174", "text": "public String getHostname() {\r\n return hostname;\r\n }", "title": "" }, { "docid": "5116c0e41bcd1fd999de8335cea88718", "score": "0.7672973", "text": "public String getHostname() {\n return hostname;\n }", "title": "" }, { "docid": "5116c0e41bcd1fd999de8335cea88718", "score": "0.7672973", "text": "public String getHostname() {\n return hostname;\n }", "title": "" }, { "docid": "ac780b354b047756eefd19bd74548382", "score": "0.7665632", "text": "public String getHostname()\n {\n return hostname;\n }", "title": "" }, { "docid": "ac780b354b047756eefd19bd74548382", "score": "0.7665632", "text": "public String getHostname()\n {\n return hostname;\n }", "title": "" }, { "docid": "4858d02210692789d98365917fbf6ebf", "score": "0.76563895", "text": "public final String getHost()\r\n\t{\r\n\t\treturn host;\r\n\t}", "title": "" }, { "docid": "a600dfb14b0937afdeb337b16e919567", "score": "0.76419896", "text": "public String getHostname() {\n\t\treturn hostname;\n\t}", "title": "" }, { "docid": "a94398e980991a4a3590656e11ba157e", "score": "0.764112", "text": "public java.lang.String getHost() {\n return host;\n }", "title": "" }, { "docid": "a94398e980991a4a3590656e11ba157e", "score": "0.764112", "text": "public java.lang.String getHost() {\n return host;\n }", "title": "" }, { "docid": "5534b8960df974abce747c775f0bf86e", "score": "0.7639399", "text": "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "5534b8960df974abce747c775f0bf86e", "score": "0.76391274", "text": "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "5534b8960df974abce747c775f0bf86e", "score": "0.76391274", "text": "public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "d3c3176efcd71a130a02eae52d26387a", "score": "0.7622774", "text": "String getHost();", "title": "" }, { "docid": "d3c3176efcd71a130a02eae52d26387a", "score": "0.7622774", "text": "String getHost();", "title": "" }, { "docid": "d3c3176efcd71a130a02eae52d26387a", "score": "0.7622774", "text": "String getHost();", "title": "" }, { "docid": "d3c3176efcd71a130a02eae52d26387a", "score": "0.7622774", "text": "String getHost();", "title": "" }, { "docid": "d957bc39f62613323377a546a99b8ec5", "score": "0.75927174", "text": "public static String getSmtpHost() {\n String name = null;\n try {\n Context ct = getContext();\n name = (String) ct.lookup(\"cso-portal/smtpHost\");\n } catch (NamingException e) {\n logger.error(\"Error: \" + e.getExplanation(), e);\n }\n return name;\n }", "title": "" }, { "docid": "109438e71c7aa96dc267eeeed2730116", "score": "0.7592196", "text": "public final String getHost()\n {\n\treturn host;\n }", "title": "" }, { "docid": "8bc8f23124eaa62126830301a045f044", "score": "0.7574961", "text": "public String host() {\n return data.host();\n }", "title": "" }, { "docid": "64122bc58ee86f5bbf93c2e76ae2f2fe", "score": "0.75743824", "text": "private String actualHostName() {\n String localhost = \"localhost\";\n try {\n localhost = getHostName();\n }\n catch (IOException e1) {\n try {\n inetAddress = InetAddress.getLocalHost();\n localhost = inetAddress.getHostName();\n }\n catch (UnknownHostException e) {\n }\n }\n return localhost;\n }", "title": "" }, { "docid": "a1f8c7b149cbcfc03aa6cbc2c201aed0", "score": "0.75592256", "text": "public String hostname() {\n return this.request.getRemoteHost();\n }", "title": "" }, { "docid": "690dd3b684c7d799170876d38cf73fed", "score": "0.75557005", "text": "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "f0c40802b45c666e1f14275a81e17f7c", "score": "0.75484246", "text": "public String getServerHostName() throws Exception\n {\n return address.address;\n }", "title": "" }, { "docid": "69eda6c3714758d8097a4d275f74912d", "score": "0.75367755", "text": "public com.google.protobuf.ByteString\n getHostNameBytes() {\n java.lang.Object ref = hostName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hostName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3eef84cf3cace1d4c9cb87ad49302aff", "score": "0.75139606", "text": "public String getHost() {\n\t\treturn host;\n\t}", "title": "" }, { "docid": "3eef84cf3cace1d4c9cb87ad49302aff", "score": "0.75139606", "text": "public String getHost() {\n\t\treturn host;\n\t}", "title": "" }, { "docid": "835ad3d071c13105fd456b788bed5f2b", "score": "0.7502034", "text": "public final String getHost()\r\n {\r\n return host;\r\n\r\n }", "title": "" }, { "docid": "120d2516c8711e3e5a6727601168598b", "score": "0.74974346", "text": "public final String getHost() {\r\n\t\t\treturn this.host;\r\n\t\t}", "title": "" }, { "docid": "6816080599161c9b7cdc69a02c91d3d1", "score": "0.7497108", "text": "public static String getHostName(String hostName)\n/* */ {\n/* 75 */ String host = null;\n/* */ try {\n/* 77 */ InetAddress inetAddr = InetAddress.getByName(hostName);\n/* 78 */ host = inetAddr.getHostName();\n/* */ } catch (Exception ex) {\n/* 80 */ ex.printStackTrace();\n/* */ }\n/* 82 */ return host;\n/* */ }", "title": "" }, { "docid": "314f5f7566c84756427232cff6deea5b", "score": "0.74956", "text": "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "d36609dfe8e10b9093cb4ed363f08a47", "score": "0.74951136", "text": "public final String getHost() {\r\n return host;\r\n }", "title": "" }, { "docid": "314f5f7566c84756427232cff6deea5b", "score": "0.74940574", "text": "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\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 host_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "f94928c149f802da3773e68fc81dad2a", "score": "0.7472191", "text": "public com.google.protobuf.ByteString\n getHostNameBytes() {\n java.lang.Object ref = hostName_;\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 hostName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "bf65ba95c56508795127aabe48fd138c", "score": "0.7463382", "text": "String getCompName(){\r\n \t String hostname = \"You\";\r\n\r\n \t try\r\n \t {\r\n \t InetAddress addr;\r\n \t addr = InetAddress.getLocalHost();\r\n \t hostname = addr.getHostName();\r\n \t }\r\n \t catch (UnknownHostException ex)\r\n \t {\r\n \t\tJPFSPrinting.logWarning(\"Host Name Resolution in getCompName Method Failed\");\r\n \t }\r\n \t return hostname;\r\n }", "title": "" }, { "docid": "10479d1f9fe9ac71a57bc463c4415dd8", "score": "0.74104965", "text": "public String getHost() {\r\n\t\treturn this.iHost;\r\n\t}", "title": "" }, { "docid": "37ce2a50e3dee0e610bd3d7101446302", "score": "0.7387438", "text": "public String getServerName() {\r\n\t\ttry {\r\n\t\t\treturn InetAddress.getLocalHost().getHostName();\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\tLOGGER.error(noHost, e.getMessage());\r\n\t\t\treturn \"UNKNOWN-HOST\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2a4a0625f42ab1dbfe097c4ef4db2ee7", "score": "0.73674667", "text": "public String getHost() {\n return host;\n }", "title": "" }, { "docid": "2a4a0625f42ab1dbfe097c4ef4db2ee7", "score": "0.73674667", "text": "public String getHost() {\n return host;\n }", "title": "" }, { "docid": "2a4a0625f42ab1dbfe097c4ef4db2ee7", "score": "0.73674667", "text": "public String getHost() {\n return host;\n }", "title": "" }, { "docid": "2a4a0625f42ab1dbfe097c4ef4db2ee7", "score": "0.73674667", "text": "public String getHost() {\n return host;\n }", "title": "" }, { "docid": "2a4a0625f42ab1dbfe097c4ef4db2ee7", "score": "0.73674667", "text": "public String getHost() {\n return host;\n }", "title": "" }, { "docid": "2a4a0625f42ab1dbfe097c4ef4db2ee7", "score": "0.73674667", "text": "public String getHost() {\n return host;\n }", "title": "" } ]
7bb970174fc3c7c450c5e4c66298cd17
Returns a key for a mapstyle reference or null if there is no key associated with the reference.
[ { "docid": "c946581cb6ae6890cc2177cb131bbd69", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n protected Object getKey(PojoSourceDefinition sourceDefinition, PhysicalTargetDefinition targetDefinition) throws KeyInstantiationException {\n if (!sourceDefinition.isKeyed()) {\n return null;\n }\n String key = sourceDefinition.getKey();\n\n // The target classloader must be used since the key class may not be visible to the source classloader, for example, when subclasses are\n // used a keys\n URI targetId = targetDefinition.getClassLoaderId();\n ClassLoader targetClassLoader = classLoaderRegistry.getClassLoader(targetId);\n\n Class<?> keyType;\n try {\n keyType = classLoaderRegistry.loadClass(targetClassLoader, sourceDefinition.getKeyClassName());\n } catch (ClassNotFoundException e) {\n throw new KeyInstantiationException(\"Error loading reference key type for: \" + sourceDefinition.getUri(), e);\n }\n if (String.class.equals(keyType)) {\n // short-circuit the transformation and return the string\n return key;\n } else if (Enum.class.isAssignableFrom(keyType)) {\n // enum, instantiate it directly\n Class<Enum> enumClass = (Class<Enum>) keyType;\n return Enum.valueOf(enumClass, key);\n }\n DataType<?> targetType = new JavaClass(keyType);\n return createKey(targetType, key, targetClassLoader);\n\n }", "title": "" } ]
[ { "docid": "69a87b5b174729d2efd166bc7e357975", "score": "0.62314045", "text": "Optional<GradeReference> getReference(String key);", "title": "" }, { "docid": "1e95baef284b64275fb7da055b47dfb0", "score": "0.6183899", "text": "public String lookup(String key) {\n/* 149 */ if (this.map == null) {\n/* 150 */ return null;\n/* */ }\n/* 152 */ return this.map.get(key);\n/* */ }", "title": "" }, { "docid": "2b1df334af94a7522328da9e188682dd", "score": "0.58009404", "text": "String getTopicMapRefId(TopicMapIF topicmap);", "title": "" }, { "docid": "0ee3d7d4c24d91d733b08046cda9ed7a", "score": "0.57965696", "text": "public abstract ObjectRef getObjectRef(Object key);", "title": "" }, { "docid": "69d94541925a4ac9afde24e4d3091a74", "score": "0.572479", "text": "@Nonnull\n\tString getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56648767", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56648767", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56648767", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56648767", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56648767", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56648767", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.56648767", "text": "java.lang.String getKey();", "title": "" }, { "docid": "ffea8d567e55eda46531d996d80d52ff", "score": "0.5626728", "text": "AxConcept getKey();", "title": "" }, { "docid": "2b0e599fe5a4a1623b75b28043fdec46", "score": "0.5612559", "text": "public java.lang.String getKey()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(KEY$0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "title": "" }, { "docid": "49586ef8a64bf7d7895472f3e9e6ddba", "score": "0.55729425", "text": "public final Object getReferenceValue(\n final Argument argument, final Map<String, Object> keyMap, int index) {\n Object referenceobj = null;\n final String objectpath = (String) argument.getValue();\n if (keyMap.containsKey(objectpath)) {\n if (keyMap.get(objectpath) instanceof List<?>) {\n @SuppressWarnings(\"unchecked\")\n final List<Object> objList = (List<Object>) keyMap.get(objectpath);\n referenceobj = objList.get(index);\n } else {\n referenceobj = keyMap.get(objectpath);\n }\n } else {\n _logger.debug(\"Reference key {} not present in Component Map\", objectpath);\n }\n return referenceobj;\n }", "title": "" }, { "docid": "5e70f304dd366396a1cde310025bacbe", "score": "0.55485684", "text": "private String getConstraintKey(String tableName, String refTableName) {\n\t\tfor(int i = 0; i < fks.length(); i++) {\n\t\t\tif(fks.getJSONObject(i).getString(\"TABLE_NAME\").equalsIgnoreCase(tableName) &&\n\t\t\t\t\tfks.getJSONObject(i).getString(\"REFERENCED_TABLE_NAME\").equalsIgnoreCase(refTableName))\n\t\t\t\treturn fks.getJSONObject(i).getString(\"CONSTRAINT_NAME\");\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b887341093ae287c17db70aa8fcab375", "score": "0.550679", "text": "public Serializable getKey() {\n try {\n Request request = ObjectModelHelper.getRequest(objectModel);\n String key = request.getScheme() + request.getServerName() + request.getServerPort() + request.getSitemapURI() + request.getQueryString();\n \n DSpaceObject dso = HandleUtil.obtainHandle(objectModel);\n if (dso != null)\n {\n key += \"-\" + dso.getHandle();\n }\n\n return HashUtil.hash(key);\n }\n catch (SQLException sqle)\n {\n // Ignore all errors and just return that the component is not cachable.\n return \"0\";\n }\n }", "title": "" }, { "docid": "aa7ebf085ab028582420a17fc5cbbfce", "score": "0.5494959", "text": "@Override\n\t\tpublic String getKey() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "5f3a79c4d86e48d1daf76a5c737e81bf", "score": "0.5488669", "text": "java.lang.String getMapId();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.5484494", "text": "public String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.54535466", "text": "String getKey();", "title": "" }, { "docid": "554ccab1ddd847c3dbb9c06a2ed4fa8b", "score": "0.54329115", "text": "@Override\n public Key getKeyAtRoot() {\n if (this.root != null) {\n return this.root.key;\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "42010ccc583a1acdbdef68722a6e4ae2", "score": "0.54275674", "text": "public String getKeyStringFromPointer(int pointer) {\n return null;\r\n }", "title": "" }, { "docid": "ae331724db9c49f9742c345fd22a0e44", "score": "0.5412743", "text": "@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ae331724db9c49f9742c345fd22a0e44", "score": "0.5412743", "text": "@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ae331724db9c49f9742c345fd22a0e44", "score": "0.5412743", "text": "@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0c0a8138585f2d9f2b62b93851f412d2", "score": "0.5386303", "text": "public int getKey();", "title": "" }, { "docid": "10d3703d37a721afdb78f9e107b82fdc", "score": "0.5367933", "text": "public final void rule__MapEntrykeyRef__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalSpringConfigDsl.g:22186:1: ( ( 'key-ref=' ) )\r\n // InternalSpringConfigDsl.g:22187:1: ( 'key-ref=' )\r\n {\r\n // InternalSpringConfigDsl.g:22187:1: ( 'key-ref=' )\r\n // InternalSpringConfigDsl.g:22188:2: 'key-ref='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getMapEntrykeyRefAccess().getKeyRefKeyword_0()); \r\n }\r\n match(input,260,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getMapEntrykeyRefAccess().getKeyRefKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "b24087692bec7cd551013efe4b5b808e", "score": "0.53620577", "text": "public String getKey() ;", "title": "" }, { "docid": "ff5748ae6f891fa8b00fbeb58b7a185c", "score": "0.5358113", "text": "PropertyKey getKey();", "title": "" }, { "docid": "9ede287f58be725e82574f99aba42198", "score": "0.5330521", "text": "private String getReferenceId() {\n String rootId = getRootId();\n if (rootId != null) {\n return rootId + \"_ref\";\n }\n\n return null;\n }", "title": "" }, { "docid": "7ba629a5f86c1335e9defd604b9dcf85", "score": "0.5321815", "text": "org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey getKey();", "title": "" }, { "docid": "10ea2298a70f84c3bd27a68da39fd435", "score": "0.5295138", "text": "public Type evaluate_reference(String reference)\n\t{\n\t\treturn this.referenceMap.get(reference);\n\t}", "title": "" }, { "docid": "d243d994a9b9e63d00e424278529235c", "score": "0.5263114", "text": "protected String getKey(LinkedHashMap node) throws PipelineAsYamlKeyEmptyException {\n Set set = node.keySet();\n Optional key = set.stream().findFirst();\n if (!key.isPresent())\n throw new PipelineAsYamlKeyEmptyException();\n return (String) key.get();\n }", "title": "" }, { "docid": "15f12675503322dd6f1ec9cbcfef653f", "score": "0.52551425", "text": "public String getKey( String key ) ;", "title": "" }, { "docid": "8c7bfc3e60462a89bacf9fc6b059b479", "score": "0.5228748", "text": "protected String getKey(final String ref, final String filename, final String extension) {\n return prefix + ref + \"/\" + filename + \".\" + extension;\n }", "title": "" }, { "docid": "d45e9cd488207ba8acb63fa422af357b", "score": "0.52218235", "text": "ReferenceMapping createReferenceMapping();", "title": "" }, { "docid": "957fb64582d9e82b332089204ad38d41", "score": "0.5219628", "text": "@Nullable\n public String getKey() {\n return this.key;\n }", "title": "" }, { "docid": "957fb64582d9e82b332089204ad38d41", "score": "0.5219628", "text": "@Nullable\n public String getKey() {\n return this.key;\n }", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.5182184", "text": "K getKey();", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.5182184", "text": "K getKey();", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.5182184", "text": "K getKey();", "title": "" }, { "docid": "e6e16a1af94e5a447070fa80e49d3564", "score": "0.5176287", "text": "@SuppressWarnings(\"unchecked\")\n public K getKey(long index) {\n if (index < 0 || index >= size()) {\n return null;\n }\n Page p = root;\n long offset = 0;\n while (true) {\n if (p.isLeaf()) {\n if (index >= offset + p.getKeyCount()) {\n return null;\n }\n return (K) p.getKey((int) (index - offset));\n }\n int i = 0, size = p.getChildPageCount();\n for (; i < size; i++) {\n long c = p.getCounts(i);\n if (index < c + offset) {\n break;\n }\n offset += c;\n }\n if (i == size) {\n return null;\n }\n p = p.getChildPage(i);\n }\n }", "title": "" }, { "docid": "f49e82c22df9c665e55d144101746ee9", "score": "0.5165536", "text": "int getMapId();", "title": "" }, { "docid": "a49e2bc0f588ce9d18d43715d096113a", "score": "0.51612216", "text": "protected String getToCompositeLookupKey(MessageAddressingProperties map) {\n String key = \"\";\n if (map.getTo() != null) {\n key = map.getTo().toString();\n }\n if (map.getAction() != null) {\n if (!key.isEmpty()) {\n key += \":\";\n }\n key += map.getAction().toString();\n }\n return key;\n }", "title": "" }, { "docid": "2e0c7d613ee9b594fa8aaa702060a2c7", "score": "0.51435024", "text": "public Comparable getKey() {\n Comparable result = null;\n if (this.data != null) {\n result = this.data.getKey();\n }\n return result;\n }", "title": "" }, { "docid": "4db274ccd757a520ec5750f30e26170b", "score": "0.5140245", "text": "public GraphicsObject GetFromMap (Integer iID)\r\n {\r\n Link ppkLink = m_kMap.get(iID);\r\n return ((ppkLink != null) ? ppkLink.GetObject() : null);\r\n }", "title": "" }, { "docid": "73ba495fd74a59c8a48060ee6ab2a3ba", "score": "0.5126151", "text": "public V get(String key){\n\t\tint hash = hashval(key);\n\t\t\n while (keys[hash]!=null) {\n if (keys[hash].equals(key))\n return map[hash];\n else {\n \thash = (hash + 1)%mapsize;\n }\n \n } \n return null;\n\t}", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.5124709", "text": "int getKey();", "title": "" }, { "docid": "1bde00dc4c1b5d42305edbc5e5600d90", "score": "0.5124669", "text": "public static <K, V> K getKey(Map<K, V> map, V value) { \n \n\t\t for (Map.Entry<K, V> entry : map.entrySet()) \n {\n\t\t\t if (value.equals(entry.getValue())) return entry.getKey();\n\t\t\t\n\t\t }\n return null;\n }", "title": "" }, { "docid": "5a987dbe7645a811872a3715bc7ee03f", "score": "0.5114502", "text": "private int getKey(Cell c) {\n int key = -1;\n for (Integer entry : spreadsheet.keySet()) {\n if (spreadsheet.get(entry) != null && c != null &&\n c.equals(spreadsheet.get(entry))) {\n key = entry;\n break;\n }\n }\n return key;\n }", "title": "" }, { "docid": "a01fd824f7d0475c8da0ff1b3c2eeb47", "score": "0.5107475", "text": "private Long findPointFor(Long hashK)\n {\n Long hash = hashK;\n if(!buckets.containsKey(hash))\n {\n SortedMap<Long, KetamaNode> tailMap = buckets.tailMap(hash);\n if(tailMap.isEmpty())\n {\n hash = buckets.firstKey();\n } else\n {\n hash = tailMap.firstKey();\n }\n }\n\n return hash;\n }", "title": "" }, { "docid": "e581dc0fbd7674ade5fd22e628c15eb0", "score": "0.5102517", "text": "public Object getKey() {\n return key;\n }", "title": "" }, { "docid": "a63f205b13cc5a963581234ae3efef2a", "score": "0.51021916", "text": "public final Node getKeyNode() {\n/* 38 */ return this.keyNode;\n/* */ }", "title": "" }, { "docid": "05457e464cf741822a5441a90c9948dd", "score": "0.5088102", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "05457e464cf741822a5441a90c9948dd", "score": "0.5087028", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "72ee4e888376166e9cd40a92cdf2ef6a", "score": "0.507477", "text": "Object getKey(Object value);", "title": "" }, { "docid": "b1f2ed142b3ef140fd8cfec243edeb05", "score": "0.5073733", "text": "public Object getKey() {\n return key;\n }", "title": "" }, { "docid": "506ce53fce3e945843277c1b79eb9e37", "score": "0.50704026", "text": "public abstract Map<String, Object> getReferences();", "title": "" }, { "docid": "76b6312c3c887f0dacf78391dabf9091", "score": "0.50632864", "text": "Object getKey(int index);", "title": "" }, { "docid": "72bbd58863a691f28c36e64a23af53a8", "score": "0.5052243", "text": "public Entry getReference() {\n return getPool().getEntry(_reference_index);\n }", "title": "" }, { "docid": "a6b641ba14f341913fa2274687733425", "score": "0.5043029", "text": "public K get(final Object k) {\n if (k == null)\n return key[n]; // This is correct independently of the value of\n // containsNull and of the map being custom\n K curr;\n final K[] key = this.key;\n int pos;\n // The starting point.\n if ((curr = key[pos = (hasher.hash(k)) & mask]) == null)\n return null;\n if (hasher.areEqual(k, curr))\n return curr;\n // There's always an unused entry.\n while (true) {\n if ((curr = key[pos = pos + 1 & mask]) == null)\n return null;\n if (hasher.areEqual(k, curr))\n return curr;\n }\n }", "title": "" }, { "docid": "46e3ef70834347b55e6e0e612fbc4f14", "score": "0.50402325", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "46e3ef70834347b55e6e0e612fbc4f14", "score": "0.503895", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "566fe797d326b34d8c539ad3de133df2", "score": "0.50310016", "text": "public K key() {\n if (jc.hasNext()) {\n return jc.key();\n }\n if (!q.isEmpty()) {\n return q.peek().key();\n }\n return null;\n }", "title": "" }, { "docid": "f4c658f0de937e751cecf0458ffe81ca", "score": "0.5021719", "text": "public final Object getKey () {\n\t\t\treturn key;\n\t\t}", "title": "" }, { "docid": "3ed87586c106bff3d9fcfc2d17ded65c", "score": "0.50092626", "text": "public String retrieveValue(String key, String mapName);", "title": "" }, { "docid": "cfd9160ba03925597fd0454445bdd115", "score": "0.5004798", "text": "public K key(V value) {\n for (Entry<K, V> item : map.entrySet()) {\n if (item.getValue().equals(value))\n return item.getKey();\n }\n return null;\n }", "title": "" }, { "docid": "f2b6d2d40ee0f4bec856d75df9c9eff9", "score": "0.50038004", "text": "public final void ruleMapEntrykeyRef() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalSpringConfigDsl.g:2016:2: ( ( ( rule__MapEntrykeyRef__Group__0 ) ) )\r\n // InternalSpringConfigDsl.g:2017:2: ( ( rule__MapEntrykeyRef__Group__0 ) )\r\n {\r\n // InternalSpringConfigDsl.g:2017:2: ( ( rule__MapEntrykeyRef__Group__0 ) )\r\n // InternalSpringConfigDsl.g:2018:3: ( rule__MapEntrykeyRef__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getMapEntrykeyRefAccess().getGroup()); \r\n }\r\n // InternalSpringConfigDsl.g:2019:3: ( rule__MapEntrykeyRef__Group__0 )\r\n // InternalSpringConfigDsl.g:2019:4: rule__MapEntrykeyRef__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__MapEntrykeyRef__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getMapEntrykeyRefAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "1da4817af52ca338a684c1fc94ca6a4f", "score": "0.49968827", "text": "@Override\n\t\tpublic K getKey() {\n\t\t\treturn key;\n\t\t}", "title": "" }, { "docid": "c31f78dcdbbdd083f8ab0a5f3e6a4af1", "score": "0.49647295", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "644c53378936eac1bde2ee2f30dfb12f", "score": "0.49607053", "text": "public static String getString(Map m, Object key) {\r\n return m.get(key) == null\r\n ? null\r\n : m.get(key).toString();\r\n}", "title": "" }, { "docid": "43dbe61326d5b2b98d5ac497c096f7ce", "score": "0.49494636", "text": "java.lang.String getKeyIdentifier();", "title": "" }, { "docid": "fe718a3ace90bd7594a76c3d6a1320ba", "score": "0.49467176", "text": "@Nullable\n public SGObject get(SGObject keyObject) {\n return objectMap.get(keyObject);\n }", "title": "" }, { "docid": "b1b6b416f6e68f18febaf1228068c68b", "score": "0.49455887", "text": "private long getAKKey(TaskContextSystem context, IDataTableRecord object, IDataTableRecord parameter) throws Exception\n {\n String foundAK = \"\";\n if (object.hasLinkedRecord(\"objectlocation\"))\n {\n // Routing durchführen\n String contract = Routing.getContractKey(object.getLinkedRecord(\"objectlocation\"));\n List aks = Routing.getRoutingAK(context.getDataAccessor(), object.getSaveStringValue(\"objectcategory_key\"), parameter.getSaveStringValue(\"wprocess_key\"), contract);\n Iterator iter = aks.iterator();\n if (iter.hasNext()) // mindestens 1 Routingdatensatz gefunden\n {\n AuftragsKoordinator ak = (AuftragsKoordinator) iter.next();\n foundAK = ak.getPkey();\n }\n }\n // wenn beim Routing nichts oder der Problemmanager gefunden wurde, dann\n // de\n // GW Problemmanager nehmen\n if (foundAK.equals(\"\") || foundAK.equals(parameter.getSaveStringValue(\"problemmanager_key\")))\n {\n return parameter.getlongValue(\"wmanager_key\");\n }\n else\n {\n return Long.parseLong(foundAK);\n }\n }", "title": "" }, { "docid": "3086df0b8cdb03c72b8932579a1f8cc2", "score": "0.49451536", "text": "public String getKey() {\n\t\treturn getKey(width, height);\n\t}", "title": "" }, { "docid": "aa145a4f023a5fb5183e9c35c3807537", "score": "0.4944482", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "3b7fc3a9c5c1c3a1654db7dcad032c4b", "score": "0.4944111", "text": "Key getKey();", "title": "" }, { "docid": "8025745c6d9acc19e4df61e7d2b4a553", "score": "0.4938091", "text": "@java.lang.Override\n public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "67fcf4c6d85bd037cdbc8108b5a62572", "score": "0.49285224", "text": "public T getKey() {\n\t\treturn key;\n\t}", "title": "" }, { "docid": "ea0c9f2fb02b91115fbd8a4f5d50e4bf", "score": "0.4926519", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "ea0c9f2fb02b91115fbd8a4f5d50e4bf", "score": "0.49249035", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "994e6fbd02f4088551c54c657a02f464", "score": "0.49244836", "text": "public T getKey() {\r\n\t\treturn key;\r\n\t}", "title": "" }, { "docid": "1743079f210957b1efbbd4de1d7b8cd6", "score": "0.49205726", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "1743079f210957b1efbbd4de1d7b8cd6", "score": "0.49195606", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "1d43a0a6f7f647c9a03cd932c8483458", "score": "0.491137", "text": "public String getKey()\n {\n return (group == null) ? key : group.getObjectKey() + key;\n }", "title": "" }, { "docid": "cf125497fe2452e20dff9148db82c4d5", "score": "0.4901151", "text": "public final String getDocumentationKey()\n {\n String documentationKey32a = this.documentationKey32a;\n if (!this.documentationKey32aSet)\n {\n // documentationKey has no pre constraints\n documentationKey32a = handleGetDocumentationKey();\n // documentationKey has no post constraints\n this.documentationKey32a = documentationKey32a;\n if (isMetafacadePropertyCachingEnabled())\n {\n this.documentationKey32aSet = true;\n }\n }\n return documentationKey32a;\n }", "title": "" }, { "docid": "cdcef3e836448aef8e23e60895c663f3", "score": "0.48916742", "text": "@Override\n\tpublic K getKey() {\n\t\treturn this.key;\n\t}", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.48913342", "text": "com.google.protobuf.ByteString getKey();", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.48913342", "text": "com.google.protobuf.ByteString getKey();", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.48913342", "text": "com.google.protobuf.ByteString getKey();", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.48913342", "text": "com.google.protobuf.ByteString getKey();", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.48913342", "text": "com.google.protobuf.ByteString getKey();", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.48913342", "text": "com.google.protobuf.ByteString getKey();", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.48913342", "text": "com.google.protobuf.ByteString getKey();", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.48913342", "text": "com.google.protobuf.ByteString getKey();", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.48913342", "text": "com.google.protobuf.ByteString getKey();", "title": "" }, { "docid": "249c5588a975b05a7f938692fa04a525", "score": "0.48859245", "text": "public List<Integer> findSameMerged(Map<Integer, List<List<Network>>> inputMap, List<Network> ref){\r\n\t\t\t\r\n\t\t\tMap<Integer, List<List<Network>>> localMap = new HashMap<Integer,List<List<Network>>>(inputMap);\r\n\t\t\tList<Integer> keys=new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t\t// iterator on the values (lists of lists (two) of integers)\r\n\t\t\t// iterator on the keys (integers)\r\n\t\t\tIterator<Integer> itrK = localMap.keySet().iterator();\t\t\t\t\r\n\t\t\t\r\n\t\t\t// analyze all the values\r\n\t\t\twhile(itrK.hasNext()) {\r\n\t\t\t\t\r\n\t\t\t\tInteger elemK = itrK.next();\r\n\t\t\t\tList<List<Network>> elemV = localMap.get(elemK);\t// two current list of integers\r\n\t\t\t\t\t\t\t\t// respective current key (integer)\r\n\t\t\t\t\r\n\t\t\t\t// verify if merge list of integers of the current element contains ref\r\n\t \tif(elemV.get(1).equals(ref)){\r\n\t \t\t\r\n\t \t\t//System.out.println(\"chiave: \" + elemK + \" elemento: \" + elemV + \" test : \" + elemV + \" ref \"+ ref);\t\t\r\n\t \t\tkeys.add(elemK);\r\n\r\n\t \t}\r\n\t }\r\n\t\t\t\r\n\t\t\tif(keys.size()==1)\r\n\t\t\t\treturn null;\r\n\t\t\telse\r\n\t\t\t\treturn keys;\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "4e9c494eb543987fb6497b23d1a2a30c", "score": "0.48825344", "text": "org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKeyOrBuilder getKeyOrBuilder();", "title": "" }, { "docid": "b444a414ea3f9759359461941fcd0073", "score": "0.48769724", "text": "public String getKey() {\r\n if (fieldValues.length > 0) {\r\n return fieldValues[1];\r\n }\r\n else {\r\n return \"**INVALID**\";\r\n }\r\n }", "title": "" }, { "docid": "370b46dec6f3a9db33592be1cd0163c3", "score": "0.48754808", "text": "public java.lang.String getMapId() {\n java.lang.Object ref = mapId_;\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 mapId_ = s;\n return s;\n }\n }", "title": "" } ]
3143be83375c0c21cafb0c72352ba1a4
Validates block allocation requests. We do not want to allow older clients to create block allocation requests for keys that are present in buckets which use non LEGACY layouts.
[ { "docid": "4e4fd1303eb20ef10641b8c5a55bb4e5", "score": "0.69140166", "text": "@RequestFeatureValidator(\n conditions = ValidationCondition.OLDER_CLIENT_REQUESTS,\n processingPhase = RequestProcessingPhase.PRE_PROCESS,\n requestType = Type.AllocateBlock\n )\n public static OMRequest blockAllocateBlockWithBucketLayoutFromOldClient(\n OMRequest req, ValidationContext ctx) throws IOException {\n if (req.getAllocateBlockRequest().hasKeyArgs()) {\n KeyArgs keyArgs = req.getAllocateBlockRequest().getKeyArgs();\n\n if (keyArgs.hasVolumeName() && keyArgs.hasBucketName()) {\n BucketLayout bucketLayout = ctx.getBucketLayout(\n keyArgs.getVolumeName(), keyArgs.getBucketName());\n bucketLayout.validateSupportedOperation();\n }\n }\n return req;\n }", "title": "" } ]
[ { "docid": "9a03dcbcc25576f3b969e01a81b07f86", "score": "0.5154317", "text": "static void sanityCheckCapacity(Map<Resource, Double> capacity) {\n Set<Resource> providedResource = capacity.keySet();\n Set<Resource> missingResource = Resource.cachedValues().stream().filter(r -> !providedResource.contains(r))\n .collect(Collectors.toSet());\n if (!missingResource.isEmpty()) {\n throw new IllegalArgumentException(String.format(\"Provided capacity information missing value for resource %s.\", missingResource));\n }\n }", "title": "" }, { "docid": "4060796d1674afe1081ce83647d85f4c", "score": "0.49946716", "text": "private void validateTransactionRequest(final TransactionRequest transactionRequest) {\n if (!transactionRequest.getAmount().getCurrencyUnit().equals(\"USD\")) {\n throw new BadRequestException(String.format(\"invalid currency unit '%s', only USD is supported\", transactionRequest.getAmount().getCurrencyUnit()));\n }\n }", "title": "" }, { "docid": "80b8b0f6f4abd3b027cb3dcb76b6c26d", "score": "0.49608517", "text": "public boolean validateFieldsBlock() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "260e0c0601ddfee4e8c28e41b96cc7f5", "score": "0.48436078", "text": "public int Allocate(int blockSize) {\n if (blockSize <= 0){\n return -1;\n }\n Dictionary x = freeBlk.Find(blockSize, false);\n if (x!=null){\n freeBlk.Delete(x);\n allocBlk.Insert(x.address, blockSize, x.address);\n int t = x.size - blockSize;\n if (t>0){\n freeBlk.Insert(x.address+blockSize,t,t);\n }\n return x.address;\n }\n else{\n return -1;\n }\n }", "title": "" }, { "docid": "a53e9396f952e03eaec9242a0c410a09", "score": "0.4827748", "text": "void checkCapacity(int requiredCapacity);", "title": "" }, { "docid": "056068f2c9d305896214e9cdaf1e73e5", "score": "0.48193973", "text": "public boolean containsRequiredBlocks(Packet packet) {\n for(String name : blocks) {\n if(!packet.containsBlock(name)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "ebc822cd4052471eeced872101aa4164", "score": "0.48107234", "text": "public <T> void validate(BatchRequest<T> request)\n {\n if( !request.getBaseUriTemplate().equals(_request.getBaseUriTemplate()) ||\n !request.getPathKeys().equals(_request.getPathKeys()) ) {\n throw new IllegalArgumentException(\"Requests must have same base URI template and path keys to batch\");\n }\n\n if( !request.getResourceProperties().equals(_request.getResourceProperties()) ) {\n throw new IllegalArgumentException(\"Requests must be for the same resource to batch\");\n }\n\n if( !request.getRequestOptions().equals(_request.getRequestOptions()) ) {\n throw new IllegalArgumentException(\"Requests must have the same RestliRequestOptions to batch!\");\n }\n\n // Enforce uniformity of query params excluding ids and fields\n final Map<String, Object> queryParams = BatchGetRequestUtil.getQueryParamsForBatchingKey(request);\n if ( !queryParams.equals(_queryParams) ) {\n throw new IllegalArgumentException(\"Requests must have same parameters to batch\");\n }\n\n if (!_batchFields) {\n if( !request.getFields().equals(_request.getFields()) ) {\n throw new IllegalArgumentException(\"Requests must have same fields to batch\");\n }\n }\n }", "title": "" }, { "docid": "8de8e7a9432088f3abfc93b5925a2b43", "score": "0.47964522", "text": "private void checkBlock(Location b1, Location b2, Location c1,\n\t\tdouble width)\n\t{\n\t\tif (b1.distance(c1) < width)\n\t\t\treturn;\n\t\t// Skip if the block is too far from the offset point\n\t\telse if (b2.distance(c1) > width)\n\t\t\treturn;\n\n\t\t// Get the actual block\n\t\tBlock block = c1.getBlock();\n\n\t\t// Skip if the block is not one this generator replaces\n\t\tif (!isInBlacklist(block))\n\t\t\treturn;\n\n\t\t// Add this block to the list of blocks to place\n\t\taddBlock(b1, block, id, (byte) 0);\n\t}", "title": "" }, { "docid": "3c78731bffe1667e798441e913d7933a", "score": "0.47905865", "text": "private void ensureReserved(long pos) throws IOException {\n if (pos <= mPosReserved) {\n return;\n }\n long toReserve = Math.max(pos - mPosReserved, FILE_BUFFER_BYTES);\n NettyRPC.call(mNettyRPCContext, new ProtoMessage(\n mCreateRequest.asLocalBlockCreateRequest().toBuilder().setSpaceToReserve(toReserve)\n .setOnlyReserveSpace(true).build()));\n mPosReserved += toReserve;\n }", "title": "" }, { "docid": "53f1c22d184de314a9d25a7b0cdaabc7", "score": "0.4788223", "text": "final protected void checkCapacity() {\n if( buf == null ) return;\n \n if( buf.capacity()<MIN_CHUNK_SIZE ) {\n throw new IllegalStateException(\"Buffer capacity cannot be less than: \" + MIN_CHUNK_SIZE);\n }\n if( buf.capacity()>MAX_CHUNK_SIZE ) {\n throw new IllegalStateException(\"Buffer capacity cannot be greater than: \" + MAX_CHUNK_SIZE);\n } \n }", "title": "" }, { "docid": "13de2ddda29fb6972eb667d7f8ef5bab", "score": "0.47618824", "text": "boolean hasRequestedBlocklist();", "title": "" }, { "docid": "b368bb6251b398e4f9504d2e46c016c8", "score": "0.47369963", "text": "private void validateNewSuperblocks(long fromBlock, long toBlock) throws Exception {\n List<EthWrapper.SuperblockEvent> newSuperblockEvents = ethWrapper.getNewSuperblocks(fromBlock, toBlock);\n if(newSuperblockEvents.size() > 0){\n ethWrapper.setRandomizationCounter();\n }\n List<Keccak256Hash> toChallenge = new ArrayList<>();\n for (EthWrapper.SuperblockEvent newSuperblock : newSuperblockEvents) {\n logger.info(\"NewSuperblock {}. Validating...\", newSuperblock.superblockId);\n\n Superblock superblock = superblockChain.getSuperblock(newSuperblock.superblockId);\n if (superblock == null) {\n BigInteger height = ethWrapper.getSuperblockHeight(newSuperblock.superblockId);\n Superblock localSuperblock = superblockChain.getSuperblockByHeight(height.longValue());\n if (localSuperblock == null) {\n //FIXME: Local superbockchain might be out of sync\n logger.info(\"Superblock {} not present in our superblock chain\", newSuperblock.superblockId);\n } else {\n logger.info(\"Superblock {} at height {} is replaced by {} in our superblock chain\",\n newSuperblock.superblockId,\n height,\n localSuperblock.getSuperblockId());\n toChallenge.add(newSuperblock.superblockId);\n }\n } else {\n logger.info(\"Superblock height: {}... superblock present in our superblock chain\", superblock.getSuperblockHeight());\n }\n }\n // check for pending if we have superblocks to challenge\n if(toChallenge.size() > 0) {\n Thread.sleep(500); // in case the transaction takes some time to complete\n if (ethWrapper.arePendingTransactionsForChallengerAddress()) {\n throw new Exception(\"Skipping challenging superblocks, there are pending transaction for the challenger address.\");\n }\n }\n for (Keccak256Hash superblockId : toChallenge) {\n ethWrapper.challengeSuperblock(superblockId, myAddress);\n }\n }", "title": "" }, { "docid": "4e7b9ac1f05268e49b9ae1c7cd655e6c", "score": "0.4667405", "text": "private void validData(Request request)\n throws CvqInvalidTransitionException {\n \n // if no state change asked, just return silently\n if (request.getDataState().equals(DataState.VALID))\n return;\n \n if (request.getDataState().equals(DataState.PENDING))\n request.setDataState(DataState.VALID);\n else\n throw new CvqInvalidTransitionException();\n }", "title": "" }, { "docid": "796997a5037968a5d492088bb0971c8f", "score": "0.46414724", "text": "public void checkForBareKeyCertMismatch() {\n Throwable th;\n StringBuilder sb;\n X509Certificate leafCertificate = getLeafCertificate();\n if (leafCertificate != null && !leafCertificate.getPublicKey().equals(getPublicKey())) {\n Throwable th2 = th;\n new StringBuilder();\n new IllegalArgumentException(sb.append(\"The key in the first certificate MUST match the bare public key represented by other members of the JWK. Public key = \").append(getPublicKey()).append(\" cert = \").append(leafCertificate).toString());\n throw th2;\n }\n }", "title": "" }, { "docid": "37b958d6f7a1424f0f4ef4f9c4746a18", "score": "0.4640926", "text": "public static void validateNotAnInternalBlockObject(BlockObject blockObject, boolean force) {\n if (blockObject != null) {\n if (blockObject.checkInternalFlags(Flag.INTERNAL_OBJECT)\n && !blockObject.checkInternalFlags(Flag.SUPPORTS_FORCE)) {\n throw APIException.badRequests.notSupportedForInternalVolumes();\n } else if (blockObject.checkInternalFlags(Flag.INTERNAL_OBJECT)\n && blockObject.checkInternalFlags(Flag.SUPPORTS_FORCE)\n && !force) {\n throw APIException.badRequests.notSupportedForInternalVolumes();\n }\n }\n }", "title": "" }, { "docid": "7918617085361f4cc1ca6b3f5e7fa61f", "score": "0.46199605", "text": "private DocumentRequest setValidRequest() {\n\n DocumentRequest request = new DocumentRequest();\n request.setResourceUri(\"/transactions/091174-913515-326060/accounts/xU-6Vebn7F8AgLwa2QHBUL2yRpk=\");\n request.setMimeType(\"text/html\");\n request.setDocumentType(\"documentType\");\n request.setPublicLocationRequired(true);\n\n return request;\n }", "title": "" }, { "docid": "851f3bc95d79a26f93fb2614330b4f58", "score": "0.4599103", "text": "void setHasRequestedBlocklist( boolean hasRequestedBlocklist );", "title": "" }, { "docid": "d8fb0f37b9bcc962f401aa95aec59d40", "score": "0.459046", "text": "void requestSpace(long sessionId, long blockId, long additionalBytes);", "title": "" }, { "docid": "beda391f292bbc0fac9dc684ed2d750b", "score": "0.45706657", "text": "public void validate() {\n validateUnlimitedStrengthEncryptionInstalled();\n }", "title": "" }, { "docid": "7a161698fddf188e5dc4be53b2f35528", "score": "0.45668423", "text": "public void ensureAvailable(int amount)\n\t{\n\t\tif (alloc == 0) {\n\t\t\talloc = Math.max(amount, 16);\n\t\t\tbuf = new byte[alloc];\n\t\t\tassert items == 0;\n\t\t} else {\n\t\t\tif (alloc - items < amount) {\n\t\t\t\talloc = Math.max(items + amount, alloc * 2);\n\t\t\t\tbyte[] new_buf = new byte[alloc];\n\t\t\t\tSystem.arraycopy(buf, 0, new_buf, 0, items);\n\t\t\t\tbuf = new_buf;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4e3a99af7d64f4ae53c360b48bbc02d1", "score": "0.4554578", "text": "private Set<Integer> determineForbiddenBlocks() {\n // Initialize list of forbidden blocks\n final var forbiddenBlocks = new HashSet<Integer>();\n\n // Avoid first sector which contains manufacturer block\n for (int block = 0; block < BLOCKS_PER_SECTOR; block++) {\n forbiddenBlocks.add(block);\n }\n\n // Add trailers of other sections as forbidden blocks\n for (int sector = 1; sector < SECTOR_COUNT; sector++) {\n forbiddenBlocks.add((sector * BLOCKS_PER_SECTOR) + (BLOCKS_PER_SECTOR - 1));\n }\n\n return Collections.unmodifiableSet(forbiddenBlocks);\n }", "title": "" }, { "docid": "b6586a5af038ccea8c7c8226a1230240", "score": "0.455011", "text": "public boolean sanitizeRequestedKeyIds(TokenKeysBundle bundle, String reqId) {\n int sz = bundle.getKeyEntries().size();\n if (sz == 0) {\n log.info(\"There is no cached bundle to compare against.\");\n return true;\n }\n String upperBound = sz == 1 ? null : bundle.getKeyEntries().get(1);\n String lowerBound = bundle.getKeyEntries().get(0);\n long lowKey = Long.parseLong(lowerBound);\n long highKey = upperBound == null ? 0 : Long.parseLong(upperBound);\n long requestedKeyId = Long.parseLong(reqId);\n long rotationInterval = maxLifeValuesHolder.computeRotationTimeInMSecs();\n // because there is a 20 minutes delay between key updates, we add a 20 minutes\n // grace period\n rotationInterval += CassandraTokenValidator.\n FOREIGN_TOKEN_KEYS_BUNDLE_REFRESH_RATE_IN_MINS * 60 * 1000;\n\n // case where there's no upper bound, we only have one bound to go by.\n // We have to check that the requested key is not in the past and not\n // more than one rotation in the future\n if (upperBound == null) {\n if (requestedKeyId < lowKey || requestedKeyId > lowKey + rotationInterval) {\n log.error(\"One bound. Key id {} is not legitimate for query\", requestedKeyId);\n return false;\n }\n log.info(\"One bound. Key id {} is legitimate for query\", requestedKeyId);\n return true;\n }\n\n // case where there is a lower bound and upper bound. Here, we need\n // to check that the requested key is not in the past, not between the bounds\n // (this would be wrong because it should have matched one of the bounds)\n // and no more than 1 rotation + 20 minutes in the future.\n if (requestedKeyId < lowKey ||\n (requestedKeyId > lowKey && requestedKeyId < highKey) ||\n requestedKeyId > highKey + rotationInterval) {\n log.error(\"Two bounds. Key id {} is not legitimate for query\", requestedKeyId);\n return false;\n }\n log.info(\"Two bounds. Key id {} is legitimate for query\", requestedKeyId);\n return true;\n }", "title": "" }, { "docid": "9ccceaf2c5fb314d791bc82c5da8b6ee", "score": "0.4537244", "text": "@Test\n public void testInvalidMinItemsConstraint() throws ValidatorException, ParserException {\n thrown.expect(ValidatorException.class);\n String schema = \"{ \\\"type\\\": \\\"array\\\", \\\"items\\\":{ \\\"type\\\": \\\"string\\\"},\\\"minItems\\\":3}\";\n String testPayload = \"[\\\"Too\\\",\\\"Late\\\"]\";\n JsonObject schemaObject = (JsonObject) parser.parse(schema);\n ArrayValidator.validateArray(GSONDataTypeConverter.getMapFromString(testPayload),\n schemaObject);\n }", "title": "" }, { "docid": "4a7c4a55e67bbc1dbb52c96bcde64e2c", "score": "0.45176178", "text": "private void _smallFreeBlock() {\n\t\t\tlong\tsize= _flags & ~_smallFreeFlag;\n\n\t\t\t_key= null; // free block\n\t\t\t_headerSize= 1;\n\t\t\t_next= _offset + _headerSize + size; // size does not include flags byte\n\t\t}", "title": "" }, { "docid": "d53aa49f692de2b89a41fbcc0cee7074", "score": "0.44851124", "text": "public synchronized boolean isValidStartContainerRequest(\n ContainerTokenIdentifier tokenId) {\n ContainerId containerID = tokenId.getContainerID();\n ApplicationId applicationId =\n containerID.getApplicationAttemptId().getApplicationId();\n return !this.oldMasterKeys.containsKey(applicationId)\n || !this.oldMasterKeys.get(applicationId).containsKey(containerID);\n }", "title": "" }, { "docid": "a21f91fcf97f448377aaa012ea481a71", "score": "0.44802037", "text": "private void invalidData(Request request)\n throws CvqInvalidTransitionException {\n \n if (request.getDataState().equals(DataState.INVALID))\n return;\n \n if (request.getDataState().equals(DataState.PENDING))\n request.setDataState(DataState.INVALID);\n else\n throw new CvqInvalidTransitionException();\n }", "title": "" }, { "docid": "4f3a6e4a8bc7694e1f4d00e48186c203", "score": "0.44773278", "text": "private void loadAllowedBlocks() {\n allowedCores = new EnumMap<Material, Float>(Material.class);\n allowedShells = new EnumMap<Material, Float>(Material.class);\n for (String s : planetConfig.getStringList(\n \"worlds.\" + worldName + \".blocks.cores\", null)) {\n String[] sSplit = s.split(\"-\");\n Material newMat = Material.matchMaterial(sSplit[0]);\n if (newMat.isBlock()) {\n if (sSplit.length == 2) {\n allowedCores.put(newMat, Float.valueOf(sSplit[1]));\n } else {\n allowedCores.put(newMat, 1.0f);\n }\n }\n }\n for (String s : planetConfig.getStringList(\n \t\t\"worlds.\" + worldName + \".blocks.shells\", null)) {\n String[] sSplit = s.split(\"-\");\n Material newMat = Material.matchMaterial(sSplit[0]);\n if (newMat.isBlock()) {\n if (sSplit.length == 2) {\n allowedShells.put(newMat, Float.valueOf(sSplit[1]));\n } else {\n allowedShells.put(newMat, 1.0f);\n }\n }\n }\n }", "title": "" }, { "docid": "f29464d6fb3017a47f6250d5d3c082b9", "score": "0.446776", "text": "public void ensureCapacity (int minCapacity)\r\n {\r\n int oldCapacity = xx.length;\r\n\r\n if (minCapacity > oldCapacity) {\r\n int newCapacity = ((oldCapacity * 3) / 2) + 1;\r\n\r\n if (newCapacity < minCapacity) {\r\n newCapacity = minCapacity;\r\n }\r\n\r\n xx = Arrays.copyOf(xx, newCapacity);\r\n yy = Arrays.copyOf(yy, newCapacity);\r\n }\r\n }", "title": "" }, { "docid": "9522bce6bc2785cd3abbeabed92bca85", "score": "0.44631913", "text": "@Test\n public void validateFailedBatchRemovalMessageKeysInUninitializedBucketRegionQueue()\n throws Exception {\n assertFalse(this.bucketRegionQueue.isInitialized());\n assertEquals(0, this.bucketRegionQueue.getFailedBatchRemovalMessageKeys().size());\n\n // Create and process a ParallelQueueRemovalMessage (causes the failedBatchRemovalMessageKeys to\n // add a key)\n createAndProcessParallelQueueRemovalMessage();\n\n // Validate BucketRegionQueue after processing ParallelQueueRemovalMessage\n assertEquals(1, this.bucketRegionQueue.getFailedBatchRemovalMessageKeys().size());\n }", "title": "" }, { "docid": "50a1be35d00493d275b41f3d3103a786", "score": "0.44438702", "text": "private boolean checkBufferQuota() {\n // try not to go over total quota\n if (!this.getSourceManager().checkBufferQuota(this.source.getPeerId())) {\n Threads.sleep(sleepForRetries);\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "d003586df0d2380141fe75f13fb0d9ef", "score": "0.4436436", "text": "void checkRequest() throws RateLimitException;", "title": "" }, { "docid": "9ef759be0a664dcb7110eea549bbccdf", "score": "0.44197917", "text": "public void validate() throws org.apache.thrift.TException {\n if (!isSetPlan()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'plan' is unset! Struct:\" + toString());\n }\n\n if (!isSetPools()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'pools' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (plan != null) {\n plan.validate();\n }\n }", "title": "" }, { "docid": "7235e3deaa7cebcfaa289cfede3e01e9", "score": "0.44185922", "text": "@Test\n\tpublic void invalidMinimumSize() {\n\t\tassertThat(render(\"{level | min-size=-1}\", LogEntryBuilder.empty().level(Level.INFO).create())).isEqualTo(\"INFO\");\n\t\tassertThat(systemStream.consumeErrorOutput())\n\t\t\t.containsOnlyOnce(\"ERROR\")\n\t\t\t.containsOnlyOnce(\"min-size\")\n\t\t\t.containsOnlyOnce(\"-1\");\n\t}", "title": "" }, { "docid": "e5248fe8453ecf34d86fea8a1c8fa2f7", "score": "0.43719742", "text": "public void eatRequestLayout() {\n this.mEatRequestLayout++;\n if (this.mEatRequestLayout == 1 && !this.mLayoutFrozen) {\n this.mLayoutRequestEaten = false;\n }\n }", "title": "" }, { "docid": "c83668aa9780aadcf906d0b9e9e3e1ab", "score": "0.4371607", "text": "@Test\n public void testReturnUnusedCapacity() {\n capacityTracker.reserveAllAvailableCapacity();\n // Return unused capacity\n capacityTracker.commitCapacity(NUM_WORK_UNITS);\n\n int availableCapacity = capacityTracker.reserveAllAvailableCapacity();\n Assert.assertEquals(REMAINING_CAPACITY, availableCapacity);\n }", "title": "" }, { "docid": "75835218ceab12c0c2c584af1b6b036f", "score": "0.43705234", "text": "private void addBlock() {\n this.node_skeleton.createContext(\"/addblock\", (exchange -> {\n String respText = \"\";\n int returnCode = 200;\n\n if(this.sleep){\n returnCode = 400;\n respText = gson.toJson(new StatusReply(false));\n this.generateResponseAndClose(exchange, respText, returnCode);\n return;\n }\n if (\"POST\".equals(exchange.getRequestMethod())) {\n AddBlockRequest addBlockRequest = null;\n try {\n Gson gson = new Gson();\n InputStreamReader isr = new InputStreamReader(exchange.getRequestBody(), \"utf-8\");\n addBlockRequest = gson.fromJson(isr, AddBlockRequest.class);\n } catch (Exception e) {\n respText = \"Error during parse JSON object!\\n\";\n returnCode = 400;\n this.generateResponseAndClose(exchange, respText, returnCode);\n return;\n }\n \n int chain_id = addBlockRequest.getChainId();\n Block block = addBlockRequest.getBlock();\n LinkedList<Block> block_chain;\n int vote = 1;\n Boolean valid = false;\n if (chain_id == 1) {\n if(block.getId() == id_chain.size() &&\n block.getPreviousHash().equals( id_chain.getLast().getHash()) &&\n block.getHash().startsWith(\"00000\")){\n valid = true;\n }\n block_chain = id_chain;\n } else if (chain_id == 2) {\n if(block.getId() == vote_chain.size() && \n block.getPreviousHash().equals(vote_chain.getLast().getHash())){\n valid = true;\n }\n block_chain = vote_chain;\n } else {\n respText = \"wrong chain_id!\\n\";\n returnCode = 404;\n this.generateResponseAndClose(exchange, respText, returnCode);\n return;\n }\n\n if(!valid){\n returnCode = 409;\n StatusReply reply = new StatusReply(false);\n respText = gson.toJson(reply);\n this.generateResponseAndClose(exchange, respText, returnCode);\n return;\n }\n // PRECOMMIT\n for (int i = 0; i < ports.size(); i++) {\n if (i == this.nodeId) {\n continue;\n }\n BroadcastRequest request = new BroadcastRequest(chain_id, \"PRECOMMIT\", block);\n String uri = HOST_URI + ports.get(i) + BROADCAST_URI;\n \n StatusReply reply;\n try {\n reply = messageSender.post(uri, request, StatusReply.class);\n if (reply != null && reply.getSuccess())\n {\n vote++;\n }\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n Boolean success = false;\n int majority = (int) Math.ceil(ports.size() * 2.0 / 3);\n if(vote >= majority){\n //Commit\n block_chain.add(block);\n success = true;\n returnCode =200;\n for (int i = 0; i < ports.size(); i++) {\n if (i == this.nodeId) {\n continue;\n }\n BroadcastRequest request = new BroadcastRequest(chain_id, \"COMMIT\", block);\n String uri = HOST_URI + ports.get(i) + BROADCAST_URI;\n StatusReply reply;\n try {\n reply = messageSender.post(uri, request, StatusReply.class);\n if (reply != null && reply.getSuccess())\n {\n vote++;\n }\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n }else{\n returnCode = 409;\n }\n StatusReply reply = new StatusReply(success);\n respText = gson.toJson(reply);\n this.generateResponseAndClose(exchange, respText, returnCode);\n }else{\n respText = \"The REST method should be POST for <node>!\\n\";\n returnCode = 400;\n this.generateResponseAndClose(exchange, respText, returnCode);\n return;\n }\n }));\n }", "title": "" }, { "docid": "278b8018cc9f57ea1e079db8fcef4e22", "score": "0.43668163", "text": "private static boolean validateBucketNameFormat(String bucketName) {\n\t\t//check valid length\n\t\tif (bucketName.length() < 3 || bucketName.length() > 255) {\n\t\t\tSystem.out.println(\"ERROR: Bucket name must be between 3 and 255 characters long, inclusive\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//get the invalid characters in the bucket name\n\t\tString invalidCharsInBucketName = bucketName.replaceAll(BUCKET_NAME_VALID_REG_EX, \"\");\n\t\t\n\t\t//check only contains valid characters (lower case letters, numbers, dashes, periods)\n\t\tif (invalidCharsInBucketName.length() > 0) {\n\t\t\tSystem.out.println(\"ERROR: The following characters in your bucket name are invalid: \" + invalidCharsInBucketName);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//check that we do not have successive periods\n\t\tif (bucketName.indexOf(\"..\") > -1) {\n\t\t\tSystem.out.println(\"ERROR: Bucket names may not have successive periods\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//get labels by splitting on periods\n\t\tString[] bucketNameLabels = bucketName.split(PERIOD_REG_EX);\n\t\t\n\t\t//variables for iterating over labels\n\t\tString currLabel = \"\";\n\t\tString firstCharInLabelAsString = \"\";\n\t\tString lastCharInLabelAsString = \"\";\n\t\t\n\t\t//count the number of labels that are all numeric in order to reject IP-formatted bucket names\n\t\tint numAllNumericLabels = 0;\n\t\t\n\t\t//check valid labels\n\t\tfor (int i = 0; i < bucketNameLabels.length; i++) {\n\t\t\t//get the current label\n\t\t\tcurrLabel = bucketNameLabels[i];\n\t\t\t\n\t\t\t//get the current label's first and last characters\n\t\t\tfirstCharInLabelAsString = currLabel.substring(0,1);\n\t\t\tlastCharInLabelAsString = currLabel.substring(currLabel.length());\n\t\t\t\n\t\t\t//check that label does not begin or end with dash\n\t\t\tif (firstCharInLabelAsString.equals(DASH_STRING) || lastCharInLabelAsString.equals(DASH_STRING)) {\n\t\t\t\tSystem.out.println(\"ERROR: Labels may only begin with lower case letters or numbers - not dashes\");\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//see if label is all numeric to check against IP Address format\n\t\t\ttry {\n\t\t\t\t//try parsing the label into an integer\n\t\t\t\tInteger.parseInt(currLabel);\n\t\t\t\t\n\t\t\t\t//no exception thrown, this label is all numeric. increment number of all numeric labels\n\t\t\t\tnumAllNumericLabels++;\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t//bucket is not IP address formatted, set count of numeric labels to minimum integer value\n\t\t\t\tnumAllNumericLabels = Integer.MIN_VALUE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//if all labels in bucket are numeric, the bucket is formatted like an IP address, which is not allowed\n\t\tif (numAllNumericLabels == bucketNameLabels.length) {\n\t\t\tSystem.out.println(\"ERROR: Bucket name may not be formatted like an IP address (e.g. 192.168.5.4)\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//bucket name is of a valid format\n\t\treturn true;\n\t}", "title": "" }, { "docid": "669649a9bd6efe6db42e64d105f12b66", "score": "0.43580517", "text": "public void ensureCapacity(int expectedElements) {\n if (expectedElements > resizeAt || keys == null) {\n final KType[] prevKeys = Intrinsics.<KType[]> cast(this.keys);\n allocateBuffers(minBufferSize(expectedElements, loadFactor));\n if (prevKeys != null && !isEmpty()) {\n rehash(prevKeys);\n }\n }\n }", "title": "" }, { "docid": "440ffe2c025c9fe433ffdfc1a397a870", "score": "0.4356071", "text": "private void ensureCapacity(final int minimumCapacity) {\r\n int _oldCapacity = cachedBytes.length;\r\n if (minimumCapacity > _oldCapacity) {\r\n Object _oldCachedBytes = cachedBytes;\r\n cachedBytes =\r\n new byte[Math.max((_oldCapacity * 3) / 2 + 1, minimumCapacity)];\r\n System.arraycopy(\r\n _oldCachedBytes, 0, cachedBytes, 0, this.position + 1);\r\n }\r\n }", "title": "" }, { "docid": "989894760ed0ec8fd40aa92ea9a9316a", "score": "0.43533498", "text": "private void checkValidity() {\n if (type < HEADER || type > FOOTER) {\n throw new UnsupportedOperationException(\"Setting Adapter could not find a valid type. Found type of \" + type);\n }\n\n if ((type != HEADER && type != FOOTER) && (key == null || key.isEmpty())) {\n throw new UnsupportedOperationException(\"Setting Adapter could not find a valid key.\");\n }\n }", "title": "" }, { "docid": "b90eb903ea66270328f50a41d2c8035a", "score": "0.43494883", "text": "@Test\n public void notEnoughInventoriesNoAllocations() {\n Order order = new Order(); // one order\n order.addOrders(\"apple\",1);\n\n // one warehouse\n Warehouse warehouse1 = new Warehouse(\"owd\");\n warehouse1.addOrders(\"apple\", 0);\n List<Warehouse> warehouses = new ArrayList<>();\n warehouses.add(warehouse1);\n\n // shipments expected\n List<Shipment> expectedShipments = new ArrayList<>();\n List<Shipment> finalShipments = inventoryAllocator.allocateShipment(order, warehouses);\n\n /* empty list : [] */\n assertEquals(expectedShipments, finalShipments);\n }", "title": "" }, { "docid": "4ba5395b30d4b1e19f02c18a1eb60178", "score": "0.43486255", "text": "public Map<String, ? extends VolumeInfo> validateRequest(List<? extends RequestedItemCoordinates> idList) throws DataAPIException;", "title": "" }, { "docid": "b3d8fcab116d4e596d5cdad645511ebd", "score": "0.434725", "text": "private void validateTokens() throws PackageSpecificationValidationException {\n // validate the global constraints\n Stream<String> globalErrors = validateGlobalConstraints();\n\n // validate all products constraints\n Stream<String> productsErrors = getProducts().stream()\n .flatMap(this::validateProductConstraints);\n\n // create a single error message\n String errors = Stream.concat(globalErrors, productsErrors).collect(Collectors.joining(System.lineSeparator()));\n if (!errors.isEmpty()) {\n throw new PackageSpecificationValidationException(errors, lineNumber);\n }\n }", "title": "" }, { "docid": "428777549562dac3719b37f354b3efd0", "score": "0.4344892", "text": "private void blockInputNodes() {\n\t\tbtnGenAllReceipts.setDisable(true);\n\t\tdpckReceiptDate.setDisable(true);\t\n\t}", "title": "" }, { "docid": "dca50c929c551dd6c6d36793cb7f4b59", "score": "0.43399915", "text": "@Override\n \tpublic String allocateFlow(FlowRequest flowRequest)\n \t\t\tthrows FlowAllocationException, ProvisionerException {\n \n \t\ttry {\n \n \t\t\tString userId = \"alice\";\n \t\t\tif (!getQoSPDP().shouldAcceptRequest(userId, flowRequest)) {\n \t\t\t\tthrow new FlowAllocationRejectedException(\"Rejected by policy\");\n \t\t\t}\n \n \t\t\tString netId = getNetworkSelector().findNetworkForRequest(flowRequest);\n \t\t\tRoute route = getPathFinder().findPathForRequest(flowRequest, netId);\n \t\t\tString flowId = getNclController().allocateFlow(flowRequest, route, netId);\n \n \t\t\treturn flowId;\n \n \t\t} catch (FlowAllocationException fae) {\n \t\t\tthrow fae;\n \t\t} catch (Exception e) {\n \t\t\tthrow new ProvisionerException(e);\n \t\t}\n \t}", "title": "" }, { "docid": "edbbe03eb9bba39f963f0c90cc39deb6", "score": "0.43297684", "text": "public void validateRequest(String requestXml) throws MeteorSecurityException {\n \n \t\tByteArrayInputStream inputStream = new ByteArrayInputStream(requestXml.getBytes(IOUtils.UTF8_CHARSET));\n \t\ttry {\n \t\t\tDocumentBuilder docBuilder = createDocumentBuilder();\n \t\t\tDocument requestDom = docBuilder.parse(inputStream);\n \n \t\t\tElement sigNSContext = XMLUtils.createDSctx(requestDom, \"ds\", Constants.SignatureSpecNS);\n \t\t\tElement samlNSContext = XMLUtils.createDSctx(requestDom, \"saml\", SAML_10_NS);\n \n \t\t\tverifyAssertionSignature(requestDom, sigNSContext, samlNSContext);\n \t\t\tverifyBodySignature(requestDom, sigNSContext);\n \t\t\tverifyAssertionExpiry(requestDom, samlNSContext);\n \t\t} catch (Exception e) {\n \t\t\tthrow new MeteorSecurityException(\"Cannot validate HPC request\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tinputStream.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tthrow new MeteorSecurityException(\"Cannot validate HPC request\", e);\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "a96440dcea32952b114898dc0138f80a", "score": "0.43180344", "text": "public static boolean isPlausibleBlockHeader(byte[] blockHeader) {\n if (blockHeader.length != NONCE_END_POSITION + 1 && blockHeader.length != NONCE_END_POSITION_VBLAKE + 1) {\n return false;\n }\n\n int height = extractBlockHeightFromBlockHeader(blockHeader);\n\n if (height < 0) {\n // Cannot have height below 0!\n return false;\n }\n\n int progPowForkHeight = Context.get().getNetworkParameters().getProgPowForkHeight();\n if (height >= progPowForkHeight) {\n if (blockHeader.length != NONCE_END_POSITION + 1) {\n return false;\n }\n // 20M block limit for ProgPoW hash evaluation\n if (height <= 20000000) {\n // Check if embedded block height is reasonable considering its timestamp.\n // This avoids checking ProgPoW hash for a block hash which is obviously contextually invalid.\n // TODO: Update with new parameters on fork.\n\n int blocktimeSeconds = Context.get().getNetworkParameters().getBlockTimeSeconds();\n long startTimeEpoch = Context.get().getNetworkParameters().getProgPowStartTimeEpoch();\n int gracePeriodDays = 5;\n\n int timestamp = extractTimestampFromBlockHeader(blockHeader);\n\n if (timestamp < startTimeEpoch) {\n // Timestamp is before starting timestamp, invalid\n return false;\n }\n\n long upperBound = startTimeEpoch + (int)(((double)blocktimeSeconds * (double)(height-progPowForkHeight) * 1.2)) + (86400 * gracePeriodDays);\n long lowerBound = (startTimeEpoch) + (int)(((double)blocktimeSeconds * (double)(height-progPowForkHeight) / 1.2));\n lowerBound -= (86400 * gracePeriodDays);\n if (lowerBound < startTimeEpoch) {\n lowerBound = startTimeEpoch;\n }\n\n if (timestamp > upperBound) {\n // Timestamp is more than upper bound, invalid\n return false;\n }\n\n if (timestamp < lowerBound) {\n // Timestamp is less than upper bound, invalid\n return false;\n }\n\n return isMinerHashBelowTarget(blockHeader);\n } else {\n return false;\n }\n } else {\n if (blockHeader.length != NONCE_END_POSITION_VBLAKE + 1) {\n return false;\n }\n return isMinerHashBelowTarget(blockHeader);\n }\n }", "title": "" }, { "docid": "3dbc42f428dad9086984103a110f8640", "score": "0.4316115", "text": "private boolean validateBlockTransactions(Block block) {\n UTXOPool utxoPool = unprocessedTransactionOutputs.get(new ByteArrayWrapper(block.getPrevBlockHash()));\n TxHandler txHandler = new TxHandler(utxoPool);\n List<Transaction> blockTransactions = block.getTransactions();\n Transaction[] validTXs = txHandler.handleTxs(blockTransactions.toArray(new Transaction[0]));\n\n if (validTXs.length == 0 || validTXs.length != blockTransactions.size()) {\n // Remove all invalid transactions from the pool so they are not used in future blocks\n List<Transaction> invalidTxs = new ArrayList<>(blockTransactions);\n invalidTxs.removeAll(Arrays.asList(validTXs));\n invalidTxs.forEach(\n transaction -> globalTransactionPool.removeTransaction(transaction.getHash())\n );\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "c5ab0a0db7bd488fc23ced8316dd7d7b", "score": "0.43144047", "text": "private static boolean validateNewSize(final int level) {\r\n\t\t// check min and max level\r\n\t\tif(level < MIN_EXPAND || level > MAX_EXPAND) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "297c94663313f726f3b3f753276278de", "score": "0.43130088", "text": "private void verifyDynamicallyIncreaseBuffer(final int initialCapacity) throws Exception {\n // setting the initial capacity to very low\n // remember, the raw data is 505 bytes total\n final byte[] content = RawData.sipBuffer.getArray();\n final Buffer buffer = new InputStreamBuffer(initialCapacity, new ByteArrayInputStream(content));\n\n final Buffer initial = buffer.readBytes(50);\n assertContent(initial, content, 0, 50);\n\n final Buffer forty = buffer.readBytes(40);\n assertContent(forty, content, 50, 40);\n\n final Buffer fifty = buffer.readBytes(50);\n assertContent(fifty, content, 90, 50);\n\n // we are now at 140. Read another 300 bytes,\n final Buffer threehundred = buffer.readBytes(300);\n assertContent(threehundred, content, 140, 300);\n\n // which leaves us with 65 bytes. read those as well and check them\n final Buffer theRest = buffer.readBytes(65);\n assertContent(theRest, content, 440, 65);\n\n // and there should not be any more bytes left in the input stream\n assertThat(buffer.hasReadableBytes(), is(false));\n\n // so this should obviously fail as well\n try {\n buffer.readBytes(5);\n fail(\"expected an IndexOutOfBoundsException\");\n } catch (final IndexOutOfBoundsException e) {\n // expected\n }\n\n }", "title": "" }, { "docid": "4f31a86f2d318143185447921cfba908", "score": "0.43099567", "text": "private void insureCapacity(int requiredCapacity) {\n if(requiredCapacity <= getCapacity()){\n return;\n }\n\n final int newCapacity = Math.max(requiredCapacity, (getCapacity() * 3) / 2 +1);\n data = Arrays.copyOf(data,newCapacity);\n }", "title": "" }, { "docid": "4f017869910b52850540424d67447b53", "score": "0.43092456", "text": "void validate() throws InvalidClientMessageException;", "title": "" }, { "docid": "a1264bc667e415b0d1dc28bc9436b264", "score": "0.43089244", "text": "synchronized long getNumUnderConstructionBlocks() throws IOException {\n \n final AtomicLong numUCBlocks = new AtomicLong(0);\n for (final Lease lease : getSortedLeases()) {\n new HopsTransactionalRequestHandler(\n HDFSOperationType.GET_LISTING) {\n private Set<String> leasePaths = null;\n\n @Override\n public void setUp() throws StorageException {\n String holder = lease.getHolder();\n leasePaths = INodeUtil.findPathsByLeaseHolder(holder);\n if (leasePaths != null) {\n LOG.debug(\"Total Paths \" + leasePaths.size() + \" Paths: \" + Arrays.toString(leasePaths.toArray()));\n }\n }\n\n @Override\n public void acquireLock(TransactionLocks locks) throws IOException {\n String holder = lease.getHolder();\n LockFactory lf = LockFactory.getInstance();\n INodeLock il = lf.getINodeLock(INodeLockType.READ, INodeResolveType.PATH_AND_IMMEDIATE_CHILDREN,\n leasePaths.toArray(new String[leasePaths.size()]))\n .setNameNodeID(fsnamesystem.getNameNode().getId())\n .setActiveNameNodes(fsnamesystem.getNameNode().getActiveNameNodes().getActiveNodes());\n locks.add(il).add(lf.getLeaseLockAllPaths(LockType.READ, holder,\n fsnamesystem.getLeaseCreationLockRows()))\n .add(lf.getLeasePathLock(LockType.READ)).add(lf.getBlockLock())\n .add(lf.getBlockRelated(BLK.RE, BLK.CR, BLK.ER, BLK.UC, BLK.UR));\n }\n\n @Override\n public Object performTask() throws IOException {\n Lease transactionLease = EntityManager.find(Lease.Finder.ByHolder, lease.getHolder(), lease.getHolderID());\n if(transactionLease == null){\n //the lease does not exist anymore, no block will be under construction\n LOG.debug(\"the lease for holder: \" + lease.getHolder() + \" does not exist anymore\");\n return null;\n }\n for (LeasePath leasePath : transactionLease.getPaths()) {\n final String path = leasePath.getPath();\n final INodeFile cons;\n try {\n INode inode = fsnamesystem.getFSDirectory().getINode(path);\n if(inode == null ) {\n // Eventually this will be cleaned by the lease monitor\n LOG.warn(\"Unable to find inode for the lease \"+path);\n continue;\n }\n cons = inode.asFile();\n Preconditions.checkState(cons.isUnderConstruction());\n } catch (UnresolvedLinkException e) {\n throw new AssertionError(\"Lease files should reside on this FS\");\n }\n BlockInfoContiguous[] blocks = cons.getBlocks();\n if (blocks == null) {\n continue;\n }\n for (BlockInfoContiguous b : blocks) {\n if (!b.isComplete()) {\n numUCBlocks.incrementAndGet();\n }\n }\n }\n return null;\n }\n }.handle();\n }\n LOG.info(\"Number of blocks under construction: \" + numUCBlocks.get());\n return numUCBlocks.get();\n }", "title": "" }, { "docid": "ecb2ef36c139d7e51738ec6f2dddf579", "score": "0.43023092", "text": "@Override\n public ContainerRequest filter(ContainerRequest request) {\n try {\n final String jsonBody = readBodyAndResetRequest(request);\n final JsonSchemaFactory factory = JsonSchemaFactory.byDefault();\n final JsonNode inputData = JsonLoader.fromString(jsonBody);\n final JsonNode schemaData = JsonLoader.fromResource(\"/assets/schemas/\"+schemaName);\n final JsonSchema schema = factory.getJsonSchema(schemaData);\n final ListProcessingReport report = (ListProcessingReport)schema.validate(inputData);\n \n if (report.isSuccess()) {\n return request;\n } else {\n throw new WebApplicationException(\n Response.status(Response.Status.BAD_REQUEST).\n entity(report.asJson().toString()).build());\n }\n } catch (IOException|ProcessingException ex) {\n throw new WebApplicationException(\n Response.status(Response.Status.INTERNAL_SERVER_ERROR).build());\n }\n }", "title": "" }, { "docid": "24b776db04250b774499fd63524d8169", "score": "0.42957738", "text": "private void validateBusinessObjectDefinitionTagCreateRequest(BusinessObjectDefinitionTagCreateRequest request)\n {\n Assert.notNull(request, \"A business object definition tag create request must be specified.\");\n validateBusinessObjectDefinitionTagKey(request.getBusinessObjectDefinitionTagKey());\n }", "title": "" }, { "docid": "aaf524ba36057801e1002dbeb3bb1fa9", "score": "0.4288033", "text": "public static int minimumNumberOfBlocks()\n\t{\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "54880852902128deb0e8c3c4ef34fa00", "score": "0.42803362", "text": "private void validateIfPossibleToServe(Beverage beverage) throws UnsupportedIngredientException {\n try {\n readWriteLock.readLock().lock();\n for (Map.Entry<Ingredient, Integer> ingredientWithQty : beverage.getIngredientToQuantityMap().entrySet()) {\n if (!ingredientCapacityMap.containsKey(ingredientWithQty.getKey())) {\n throw new UnsupportedIngredientException(ingredientWithQty.getKey().getName());\n }\n }\n } finally {\n readWriteLock.readLock().unlock();\n }\n }", "title": "" }, { "docid": "4eae958e6578928fa4ab7c39ab241b4e", "score": "0.4277531", "text": "protected boolean implementsRecordSizeLimitChecks() {\n return false;\n }", "title": "" }, { "docid": "0b390e45aa2de173ddff7a7008dd65bb", "score": "0.42761153", "text": "static public boolean isValidSizeForApi(GeoBBox box) {\n\t\tint wx = box.right-box.left;\n\t\tint wy = box.top-box.bottom;\n\t\treturn (wx<=API_MAX_DOWNLOAD_DEGREES/2 && wy <= API_MAX_DOWNLOAD_DEGREES/2);\n }", "title": "" }, { "docid": "d06054acf2f321921c6fc4c476e2b342", "score": "0.4274839", "text": "public void integrityCheck()\n {\n byte[] bytes;\n if ((bytes = this.bytes) == null)\n throw new InternalError(\"bytes: null\");\n if (bytes.length <= 0 || lengthOf(bytes, 0) != bytes.length)\n throw new InternalError(\"Bad resource name\");\n }", "title": "" }, { "docid": "609b53bcb26e714a43e6d00a065dcd41", "score": "0.4268842", "text": "private void invalidateNonMainChainSuperblocks() throws Exception {\n for (Keccak256Hash superblockId : semiApprovedSet) {\n long semiApprovedHeight = ethWrapper.getSuperblockHeight(superblockId).longValue();\n Superblock mainChainSuperblock = superblockChain.getSuperblockByHeight(semiApprovedHeight);\n if (mainChainSuperblock != null) {\n long confirmations = ethWrapper.getSuperblockConfirmations();\n if (!mainChainSuperblock.getSuperblockId().equals(superblockId) &&\n ethWrapper.getChainHeight().longValue() >= semiApprovedHeight + confirmations) {\n logger.info(\"Semi-approved superblock {} not found in main chain. Invalidating.\", superblockId);\n ethWrapper.rejectClaim(superblockId, myAddress);\n }\n }\n }\n }", "title": "" }, { "docid": "a47e35d9320ccc2f528b89117b7d1ca6", "score": "0.42658535", "text": "public void validateConnectionGroup(String usefIdentifier) throws BusinessValidationException {\n if (connectionGroupRepository.find(usefIdentifier) == null) {\n throw new BusinessValidationException(AgrBusinessError.NON_EXISTING_GRID_POINT, usefIdentifier);\n }\n }", "title": "" }, { "docid": "686d34f2c9c31d876741581a66e3ef28", "score": "0.4262888", "text": "public void ensureAvail(int n) {\n //$DELAY$\n n+=pos;\n if ((n&sizeMask)!=0) {\n grow(n);\n }\n }", "title": "" }, { "docid": "d775e58e5cb1f5e5ccf82c657cc40066", "score": "0.4260587", "text": "@Test\n public void testEmptyBoxesAfterRequestProcessed() {\n final long bob = uc.createLab3AndBob();\n final long poll = uc.createPaul();\n final long joe = uc.createJoe();\n final Long instrumentId = uc.createInstrumentAndApproveIfNeeded(bob, uc.getLab3()).get();\n instrumentManagement.addOperatorDirectly(bob, instrumentId, poll);\n instrumentManagement.requestAccessToInstrument(joe, instrumentId);\n\n instrumentManagement.approveAccessToInstrument(poll, instrumentId, joe);\n\n assertEquals(requestsReader.myInstrumentInbox(bob).size(), 0);\n assertEquals(requestsReader.myInstrumentInbox(poll).size(), 0);\n assertEquals(requestsReader.myInstrumentInbox(joe).size(), 0);\n }", "title": "" }, { "docid": "be9cc74e92b6aab2568e28d11f8b850c", "score": "0.42569047", "text": "@Override\n @Inline\n protected Address allocPages(int reservedPages, int requiredPages, boolean zeroed) {\n if (VM.VERIFY_ASSERTIONS) VM.assertions._assert(metaDataPagesPerRegion == 0 || requiredPages <= PAGES_IN_CHUNK - metaDataPagesPerRegion);\n lock();\n boolean newChunk = false;\n int pageOffset = freeList.alloc(requiredPages);\n if (pageOffset == GenericFreeList.FAILURE && !contiguous) {\n pageOffset = allocateContiguousChunks(requiredPages);\n newChunk = true;\n }\n if (pageOffset == GenericFreeList.FAILURE) {\n unlock();\n return VM.ADDRESS_FAIL;\n } else {\n pagesCurrentlyOnFreeList -= requiredPages;\n if (pageOffset > highWaterMark) {\n if (highWaterMark == 0 || (pageOffset ^ highWaterMark) > EmbeddedMetaData.PAGES_IN_REGION) {\n int regions = 1 + ((pageOffset - highWaterMark) >> EmbeddedMetaData.LOG_PAGES_IN_REGION);\n int metapages = regions * metaDataPagesPerRegion;\n reserved += metapages;\n committed += metapages;\n newChunk = true;\n }\n highWaterMark = pageOffset;\n }\n Address rtn = start.plus(Conversions.pagesToBytes(pageOffset));\n Extent bytes = Conversions.pagesToBytes(requiredPages);\n // The meta-data portion of reserved Pages was committed above.\n commitPages(reservedPages, requiredPages);\n space.growSpace(rtn, bytes, newChunk);\n unlock();\n Mmapper.ensureMapped(rtn, requiredPages);\n if (zeroed)\n VM.memory.zero(zeroNT, rtn, bytes);\n VM.events.tracePageAcquired(space, rtn, requiredPages);\n return rtn;\n }\n }", "title": "" }, { "docid": "be2883b4b3c44cbca80dc832701ec993", "score": "0.42557725", "text": "public void markErrPduRefusedMgmtBlockRxCreate() throws JNCException {\n markLeafCreate(\"errPduRefusedMgmtBlockRx\");\n }", "title": "" }, { "docid": "989f9b97a27452eb306e0ad6f825faa2", "score": "0.42513773", "text": "static CandidateTablePruneCause storageNotAvailableInRange(List<TimeRange> ranges) {\n CandidateTablePruneCause cause = new CandidateTablePruneCause(STORAGE_NOT_AVAILABLE_IN_RANGE);\n cause.invalidRanges = ranges;\n return cause;\n }", "title": "" }, { "docid": "f81f4323c0a211d95cfee713fb3804b9", "score": "0.42328888", "text": "private void ensureBuckets(long start, long end) {\n // normalize incoming range to bucket boundaries\n start -= start % bucketDuration;\n end += (bucketDuration - (end % bucketDuration)) % bucketDuration;\n\n for (long now = start; now < end; now += bucketDuration) {\n // try finding existing bucket\n final int index = Arrays.binarySearch(bucketStart, 0, bucketCount, now);\n if (index < 0) {\n // bucket missing, create and insert\n insertBucket(~index, now);\n }\n }\n }", "title": "" }, { "docid": "f8b8a2f6cf11f9ef1453a77ef481fa25", "score": "0.42265162", "text": "private Vector<Assignment>[] checkAllocation(\n\t\t\tVector<Assignment>[] finalAllocation) {\n\t\tfor (int i = 0; i < finalAllocation.length; i++) {\n\t\t\tCollections.sort(finalAllocation[i], UtilityComparator.com);\n\n\t\t\tint coop1 = (int) coop - 1;\n\t\t\tfor (int j = 0; j < coop1; j++) {\n\t\t\t\tif (finalAllocation[i].get(j).getAgent() == finalAllocation[i]\n\t\t\t\t\t\t.get(j + 1).getAgent()) {\n\t\t\t\t\tfinalAllocation[i].get(j).setRatio(\n\t\t\t\t\t\t\tfinalAllocation[i].get(j).getRatio()\n\t\t\t\t\t\t\t\t\t+ finalAllocation[i].get(j + 1).getRatio());\n\t\t\t\t\tfinalAllocation[i].remove(j + 1);\n\t\t\t\t\tj--;\n\t\t\t\t\tcoop1--;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn divideAllocation(finalAllocation, input.length);\n\t}", "title": "" }, { "docid": "4a641e1f5abb492d1d49ae12bff25417", "score": "0.42262632", "text": "@Test\n public void testPermitDenyDeadCode() {\n RoutingPolicy policy_reference =\n _policyBuilderDelta.addStatement(new StaticStatement(Statements.ExitAccept)).build();\n RoutingPolicy policy_new =\n _policyBuilderBase\n .addStatement(new StaticStatement(Statements.ExitReject))\n .addStatement(new StaticStatement(Statements.ExitAccept))\n .build();\n\n org.batfish.minesweeper.question.compareroutepolicies.CompareRoutePoliciesQuestion question =\n new org.batfish.minesweeper.question.compareroutepolicies.CompareRoutePoliciesQuestion(\n DEFAULT_DIRECTION, policy_new.getName(), policy_reference.getName(), HOSTNAME);\n org.batfish.minesweeper.question.compareroutepolicies.CompareRoutePoliciesAnswerer answerer =\n new org.batfish.minesweeper.question.compareroutepolicies.CompareRoutePoliciesAnswerer(\n question, _batfish);\n\n TableAnswerElement answer =\n (TableAnswerElement)\n answerer.answerDiff(_batfish.getSnapshot(), _batfish.getReferenceSnapshot());\n\n BgpRouteDiffs diff = new BgpRouteDiffs(ImmutableSet.of());\n\n assertThat(\n answer.getRows().getData(),\n Matchers.contains(\n allOf(\n hasColumn(COL_NODE, equalTo(new Node(HOSTNAME)), Schema.NODE),\n hasColumn(COL_POLICY_NAME, equalTo(POLICY_NEW_NAME), Schema.STRING),\n hasColumn(COL_REFERENCE_POLICY_NAME, equalTo(POLICY_REFERENCE_NAME), Schema.STRING),\n hasColumn(COL_INPUT_ROUTE, anything(), Schema.BGP_ROUTE),\n hasColumn(baseColumnName(COL_ACTION), equalTo(DENY.toString()), Schema.STRING),\n hasColumn(deltaColumnName(COL_ACTION), equalTo(PERMIT.toString()), Schema.STRING),\n hasColumn(baseColumnName(COL_OUTPUT_ROUTE), anything(), Schema.BGP_ROUTE),\n hasColumn(COL_DIFF, equalTo(diff), Schema.BGP_ROUTE_DIFFS))));\n }", "title": "" }, { "docid": "25dfbb8c2d4815490cd3751171f463fa", "score": "0.42256385", "text": "Allocation createAllocation();", "title": "" }, { "docid": "fe163550a6ef934cb479d3e983671228", "score": "0.42177707", "text": "public void validateRequest()\n {\n \n }", "title": "" }, { "docid": "4fe091bbac90ebb1f83ccec877d8372a", "score": "0.42157224", "text": "private void ensureCapacity();", "title": "" }, { "docid": "4b7b3a2cc19b8ead2438c7109ddd7480", "score": "0.42135194", "text": "private void validateRequest() throws HttpProtocolException {\n if (majorVersion >= 1 && minorVersion >= 1 && request.getHeader(\"Host\") == null) {\n throw new HttpProtocolException(\"No Host header present.\");\n }\n \n // check methods\n if (majorVersion >= 1) {\n if (minorVersion == 0 && !(request.isGet() || request.isPost() || request.isHead())) {\n throw new HttpProtocolException(\"Invalid method for protcol \"\n + request.getProtocol());\n }\n }\n }", "title": "" }, { "docid": "3d338ee3356cbed2554dc526bda1cbf8", "score": "0.42087907", "text": "private boolean capactityExceeded() {\n\t\t\treturn ((maxCapacity > 0) && (getSize() > maxCapacity));\n\t\t}", "title": "" }, { "docid": "b538bb6095b42701481ea503cc6289b8", "score": "0.42077157", "text": "private boolean validateRequest(WhatsAppHttpReqeust request) {\n\t\tif (request != null\n\t\t\t\t&& (request.getHttpVersion() != null\n\t\t\t\t\t\t&& !request.getHttpVersion().toUpperCase()\n\t\t\t\t\t\t\t\t.equals(\"HTTP/1.1\") || request.getReqeustType() == HttpType.BAD_REQUEST))\n\t\t\treturn false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e82b063e53b134af9188b767858dab74", "score": "0.4189675", "text": "public void invalidateBlockReceiveRegion(int p_73031_1_, int p_73031_2_, int p_73031_3_, int p_73031_4_, int p_73031_5_, int p_73031_6_)\n {\n }", "title": "" }, { "docid": "b4d9b1229bd99f1d9db2147f3f331610", "score": "0.4187444", "text": "List<Request> findFreeRequests(int pageNumber, int size);", "title": "" }, { "docid": "ded59b97a3443107be647521a65b7a85", "score": "0.41851243", "text": "public void validateParameters(ConfigBundle bundle) {\n this.invalidFields.clear();\n if (!isValidNumber(bundle.getNumOfAlphaAtoms()))\n invalidFields.add(\"Invalid number of Alpha Atoms\\n\");\n if (!isValidNumber(bundle.getNumOfBetaAtoms()))\n invalidFields.add(\"Invalid number of Beta Atoms\\n\");\n if (!isValidNumber(bundle.getNumOfGammaAtoms()))\n invalidFields.add(\"Invalid number of Gamma Atoms\\n\");\n if (!isValidNumber(bundle.getNumOfSigmaAtoms()))\n invalidFields.add(\"Invalid number of Sigma Atoms\\n\");\n\n if (!isValidNumber(bundle.getNumOfAlphaPowerups()))\n invalidFields.add(\"Invalid number of Alpha Powerups\\n\");\n if (!isValidNumber(bundle.getNumOfBetaPowerups()))\n invalidFields.add(\"Invalid number of Beta Powerups\\n\");\n if (!isValidNumber(bundle.getNumOfGammaPowerups()))\n invalidFields.add(\"Invalid number of Gamma Powerups\\n\");\n if (!isValidNumber(bundle.getNumOfSigmaPowerups()))\n invalidFields.add(\"Invalid number of Sigma Powerups\\n\");\n\n if (!isValidNumber(bundle.getNumOfAlphaBlockers()))\n invalidFields.add(\"Invalid number of Alpha Blockers\\n\");\n if (!isValidNumber(bundle.getNumOfBetaBlockers()))\n invalidFields.add(\"Invalid number of Beta Blockers\\n\");\n if (!isValidNumber(bundle.getNumOfGammaBlockers()))\n invalidFields.add(\"Invalid number of Gamma Blockers\\n\");\n if (!isValidNumber(bundle.getNumOfSigmaBlockers()))\n invalidFields.add(\"Invalid number of Sigma Blockers\\n\");\n\n if (!isValidNumber(bundle.getNumOfAlphaMolecules()))\n invalidFields.add(\"Invalid number of Alpha Molecules\\n\");\n if (!isValidNumber(bundle.getNumOfBetaMolecules()))\n invalidFields.add(\"Invalid number of Beta Molecules\\n\");\n if (!isValidNumber(bundle.getNumOfGammaMolecules()))\n invalidFields.add(\"Invalid number of Gamma Molecules\\n\");\n if (!isValidNumber(bundle.getNumOfSigmaMolecules()))\n invalidFields.add(\"Invalid number of Sigma Molecules\\n\");\n\n if (!isValidNumber(bundle.getNumOfEtaShields()))\n invalidFields.add(\"Invalid number of Eta Shields\\n\");\n if (!isValidNumber(bundle.getNumOfLotaShields()))\n invalidFields.add(\"Invalid number of Lota Shields\\n\");\n if (!isValidNumber(bundle.getNumOfThetaShields()))\n invalidFields.add(\"Invalid number of Theta Shields\\n\");\n if (!isValidNumber(bundle.getNumOfZetaShields()))\n invalidFields.add(\"Invalid number of Zeta Shields\\n\");\n\n if (!isValidDifficulty(bundle.getDifficulty()))\n invalidFields.add(\"Invalid Difficulty number\\n\");\n if (!isValidLength(bundle.getL()))\n invalidFields.add(\"Invalid Value for L\\n\");\n if (invalidFields.isEmpty())\n validationListener.onValidParameters(bundle);\n else {\n validationListener.onInvalidParameters(invalidFields);\n }\n\n }", "title": "" }, { "docid": "53a3d0873a9d41a31c5ea5aad37b43f7", "score": "0.41835853", "text": "public void processData(Message request) throws NoSuchAlgorithmException {\n\t\tint assignedTo;\n\n\t\t// if our request starts with letter \"d\" then it a delete request\n\t\t// and key is located on positions 7:22 of byte array\n\t\tif (request.data[0] == 100) {\n\t\t\tassignedTo = this.hasher.get(Arrays\n\t\t\t\t\t.copyOfRange(request.data, 7, 23));\n\t\t// else, key is on positions 4:19 and we hash these entries\n\t\t} else {\n\t\t\tassignedTo = this.hasher.get(Arrays\n\t\t\t\t\t.copyOfRange(request.data, 4, 20));\n\t\t}\n\n\t\t// this piece of code may be used to check how load is balanced\n\t\t// uncomment to use\n\n\t\t// ----------------------------------------------------------\n\t\t// LOAD BALANCING CHECKER BEGIN\n\t\t// ----------------------------------------------------------\n\n\t\t/*\n\t\t *\n\t\t * this.assignmentTracker[assignedTo]++;\n\t\t *\n\t\t * if (this.counter % 100 == 0) { for (int i = 0; i < this.numServers;\n\t\t * i++) { if (i == this.numServers-1) {\n\t\t * System.out.println(this.assignmentTracker[i]); } else {\n\t\t * System.out.print(this.assignmentTracker[i] + \"\\t\"); } } }\n\t\t *\n\t\t * this.counter++;\n\t\t */\n\n\t\t// ----------------------------------------------------------\n\t\t// LOAD BALANCING CHECKER END\n\t\t// ----------------------------------------------------------\n\n\t\t// after obtaining assignment we want to know if we deal\n\t\t// with \"get\" or any other (\"set\", \"delete\") request\n\t\t// if first letter is \"g\", we put to queue for sync client\n\t\t// else, into async queue\n\t\t// before doing that we also start logging queue time\n\t\tif (request.data[0] == 103) {\n\n\t\t\tif (request.isLogged) {\n\t\t\t\trequest.queueTime = System.nanoTime();\n\t\t\t}\n\t\t\tgetQueues.get(assignedTo).add(request);\n\n\t\t} else {\n\n\t\t\tif (request.isLogged) {\n\t\t\t\trequest.queueTime = System.nanoTime();\n\t\t\t}\n\t\t\tsetQueues.get(assignedTo).add(request);\n\n\t\t}\n\t}", "title": "" }, { "docid": "32dce49fdf306815a7c5fb2c5add7e85", "score": "0.41785067", "text": "private void verifyRequest(CaptureRequest captureRequest) {\n if( captureRequest.getAmount() == null ){\n throw new IllegalArgumentException( \"The CaptureRequest is missing an amount\" );\n }\n }", "title": "" }, { "docid": "00b1711daba56539f6c6c3f6822b84bf", "score": "0.417835", "text": "public void validate() throws org.apache.thrift.TException {\n if (internalReq != null) {\n internalReq.validate();\n }\n }", "title": "" }, { "docid": "72ac0f6bc3cb8d5ed172555ea07eca98", "score": "0.41765544", "text": "public void validate() throws org.apache.thrift.TException {\n if (!isSetCompacts()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'compacts' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "title": "" }, { "docid": "2d99a9fe732c999b851069aca62d6605", "score": "0.41764453", "text": "@Then(\"user should be able to fetch all the stations with empty slots if available\")\n\tpublic void ValidateRequest()\n\t{\n\t Assert.assertEquals(\"Request failed\",HttpStatus.SC_OK, httpResponse.getStatusCode());\n\t Assert.assertTrue(httpResponse.contentType().contains(jsonMimeType));\n\t //gets all available stations for this particular network\n\t JSONObject json_body=new JSONObject(httpResponse.body().asString());\n\t JSONObject json_networks=json_body.getJSONObject(\"network\");\n\t JSONArray json_stations=json_networks.getJSONArray(\"stations\");\n\t //validates if the station node is populated\n\t Assert.assertFalse(\"No stations found\", json_stations.isEmpty());\n\t System.out.println(\"Total number of stations retrieved : \"+json_stations.length());\n\t //each station is checked to see if the empty bike slot is available , if so it is listed\n\t int totalStations=0;\n\t Iterator<Object> it=json_stations.iterator();\n\t while(it.hasNext())\n\t {\n\t\t JSONObject station=(JSONObject) it.next();\n\t\t int count=station.getInt(\"empty_slots\");\n\t\t if(count!=0)\n\t\t {\n\t\t\t totalStations++;\n\t\t\t System.out.println(\"Empty bike slot available in station : \"+station.getString(\"name\"));\n\t\t }\n\t\t\t \n\t }\n\t if(totalStations==0)\n\t\t System.out.println(\"No stations have empty bike slots\");\n\t}", "title": "" }, { "docid": "29314d18abb66215a3e8cae66d56121f", "score": "0.41742605", "text": "private boolean isBoardOffsetWrong(HttpServletRequest request) {\n\t\treturn getBoardListOffset(request) < 0;\r\n\t}", "title": "" }, { "docid": "cb329eec367ff1b5b442c8ed33f91ac5", "score": "0.41690308", "text": "@Test\n \tpublic void testAllocationDeallocation() {\n \n \t\tfinal String configDir = getConfigDir();\n \t\tif (configDir == null) {\n \t\t\tfail(\"Cannot find configuration directory for cluster manager test\");\n \t\t}\n \n \t\tGlobalConfiguration.loadConfiguration(configDir);\n \t\tfinal TestInstanceListener testInstanceListener = new TestInstanceListener();\n \t\tfinal ClusterManager cm = new ClusterManager();\n \t\tcm.setInstanceListener(testInstanceListener);\n \n \t\ttry {\n \n \t\t\tfinal String ipAddress = \"192.168.198.1\";\n \t\t\tfinal InstanceConnectionInfo instanceConnectionInfo = new InstanceConnectionInfo(\n \t\t\t\tInetAddress.getByName(ipAddress), ipAddress, null, 1234, 1235);\n \t\t\tfinal HardwareDescription hardwareDescription = HardwareDescriptionFactory.construct(8,\n \t\t\t\t8L * 1024L * 1024L * 1024L, 8L * 1024L * 1024L * 1024L);\n \t\t\tcm.reportHeartBeat(instanceConnectionInfo, hardwareDescription);\n \n \t\t\t// now we should be able to request two instances of type small and one of type medium\n \t\t\tfinal JobID jobID = new JobID();\n \t\t\tfinal Configuration conf = new Configuration();\n \n \t\t\tfinal InstanceRequestMap instanceRequestMap = new InstanceRequestMap();\n \n \t\t\tinstanceRequestMap.setNumberOfInstances(cm.getInstanceTypeByName(SMALL_INSTANCE_TYPE_NAME), 2);\n \t\t\tinstanceRequestMap.setNumberOfInstances(cm.getInstanceTypeByName(MEDIUM_INSTANCE_TYPE_NAME), 1);\n \n \t\t\ttry {\n \t\t\t\tcm.requestInstance(jobID, conf, instanceRequestMap, null);\n \t\t\t} catch (InstanceException ie) {\n \t\t\t\tfail(ie.getMessage());\n \t\t\t}\n \n \t\t\tClusterManagerTestUtils.waitForInstances(jobID, testInstanceListener, 3, MAX_WAIT_TIME);\n \n \t\t\tfinal List<AllocatedResource> allocatedResources = testInstanceListener.getAllocatedResourcesForJob(jobID);\n \t\t\tassertEquals(3, allocatedResources.size());\n \t\t\tIterator<AllocatedResource> it = allocatedResources.iterator();\n \t\t\tfinal Set<AllocationID> allocationIDs = new HashSet<AllocationID>();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal AllocatedResource allocatedResource = it.next();\n \t\t\t\tif (!LARGE_INSTANCE_TYPE_NAME.equals(allocatedResource.getInstance().getType().getIdentifier())) {\n \t\t\t\t\tfail(\"Allocated unexpected instance of type \"\n \t\t\t\t\t\t+ allocatedResource.getInstance().getType().getIdentifier());\n \t\t\t\t}\n \n \t\t\t\tif (allocationIDs.contains(allocatedResource.getAllocationID())) {\n \t\t\t\t\tfail(\"Discovered allocation ID \" + allocatedResource.getAllocationID() + \" at least twice\");\n \t\t\t\t} else {\n \t\t\t\t\tallocationIDs.add(allocatedResource.getAllocationID());\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// Try to allocate more resources which must result in an error\n \t\t\ttry {\n \t\t\t\tInstanceRequestMap instancem = new InstanceRequestMap();\n \t\t\t\tinstancem.setNumberOfInstances(cm.getInstanceTypeByName(MEDIUM_INSTANCE_TYPE_NAME), 1);\n \t\t\t\tcm.requestInstance(jobID, conf, instancem, null);\n \n \t\t\t\tfail(\"ClusterManager allowed to request more instances than actually available\");\n \n \t\t\t} catch (InstanceException ie) {\n \t\t\t\t// Exception is expected and correct behavior here\n \t\t\t}\n \n \t\t\t// Release all allocated resources\n \t\t\tit = allocatedResources.iterator();\n \t\t\ttry {\n \t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\tfinal AllocatedResource allocatedResource = it.next();\n \t\t\t\t\tcm.releaseAllocatedResource(jobID, conf, allocatedResource);\n \t\t\t\t}\n \t\t\t} catch (InstanceException ie) {\n \t\t\t\tfail(ie.getMessage());\n \t\t\t}\n \n \t\t\t// Now further allocations should be possible\n \t\t\ttry {\n \t\t\t\tInstanceRequestMap instancem = new InstanceRequestMap();\n \t\t\t\tinstancem.setNumberOfInstances(cm.getInstanceTypeByName(LARGE_INSTANCE_TYPE_NAME), 1);\n \t\t\t\tcm.requestInstance(jobID, conf, instancem, null);\n \t\t\t} catch (InstanceException ie) {\n \t\t\t\tfail(ie.getMessage());\n \t\t\t}\n \n \t\t} catch (UnknownHostException e) {\n \t\t\tfail(e.getMessage());\n \t\t} finally {\n \t\t\tif (cm != null) {\n \t\t\t\tcm.shutdown();\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "0ad81ddaef92a2c1cbd30e70f7d04633", "score": "0.41653022", "text": "public void validate() throws org.apache.thrift.TException {\n if (header != null) {\n header.validate();\n }\n if (request != null) {\n request.validate();\n }\n }", "title": "" }, { "docid": "0ad81ddaef92a2c1cbd30e70f7d04633", "score": "0.41653022", "text": "public void validate() throws org.apache.thrift.TException {\n if (header != null) {\n header.validate();\n }\n if (request != null) {\n request.validate();\n }\n }", "title": "" }, { "docid": "e7722ba5650807d3df0a6cea9bc20300", "score": "0.41637146", "text": "public void setRequestRequiredAcks(String requestRequiredAcks) {\r\n this.requestRequiredAcks = requestRequiredAcks;\r\n }", "title": "" }, { "docid": "cf5301707700594091e9f81421bc9c31", "score": "0.41591376", "text": "@Test\n public void testBadZkContents() throws Exception {\n ClientConfiguration conf = new ClientConfiguration();\n\n // bad type in zookeeper\n String root0 = \"/badzk0\";\n zkc.create(root0, new byte[0],\n Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);\n conf.setMetadataServiceUri(newMetadataServiceUri(root0, HierarchicalLedgerManagerFactory.NAME));\n\n LedgerLayout layout = new LedgerLayout(\"DoesNotExist\",\n 0xdeadbeef);\n\n ZkLayoutManager zkLayoutManager = new ZkLayoutManager(zkc, root0, ZooDefs.Ids.OPEN_ACL_UNSAFE);\n zkLayoutManager.storeLedgerLayout(layout);\n\n try {\n AbstractZkLedgerManagerFactory.newLedgerManagerFactory(conf, zkLayoutManager);\n fail(\"Shouldn't reach here\");\n } catch (Exception e) {\n LOG.error(\"Received exception\", e);\n assertTrue(\"Invalid exception\", e.getMessage().contains(\n \"Configured layout org.apache.bookkeeper.meta.HierarchicalLedgerManagerFactory\"\n + \" does not match existing layout DoesNotExist\"));\n }\n\n // bad version in zookeeper\n String root1 = \"/badzk1\";\n zkc.create(root1, new byte[0],\n Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);\n conf.setMetadataServiceUri(newMetadataServiceUri(root1));\n\n LedgerLayout layout1 = new LedgerLayout(HierarchicalLedgerManagerFactory.class.getName(),\n 0xdeadbeef);\n ZkLayoutManager zkLayoutManager1 = new ZkLayoutManager(zkc, root1, ZooDefs.Ids.OPEN_ACL_UNSAFE);\n zkLayoutManager1.storeLedgerLayout(layout1);\n\n try {\n AbstractZkLedgerManagerFactory.newLedgerManagerFactory(conf, zkLayoutManager1);\n fail(\"Shouldn't reach here\");\n } catch (Exception e) {\n LOG.error(\"Received exception\", e);\n assertTrue(\"Invalid exception\",\n e.getMessage().contains(\"Incompatible layout version found\"));\n }\n }", "title": "" }, { "docid": "87921cff33a23a607be826380e3bdc31", "score": "0.41581103", "text": "void validateKey(String key) throws SchemaViolationException;", "title": "" }, { "docid": "629ab8ab5a814386b0616a9b0e06bc13", "score": "0.4155091", "text": "@Override\n protected float allowedDeviationOwned(int numSegments, int actualNumOwners, int numNodes, float totalCapacity,\n float maxCapacityFactor) {\n\n return 1.25f * actualNumOwners * numSegments * maxCapacityFactor / totalCapacity;\n }", "title": "" }, { "docid": "272b49b0691ed8e8ce9808a63fa79cca", "score": "0.4153409", "text": "@Test\n @WithMockUser(username = username, password = password)\n public void getAllResourcesWithAllocationDetailsByInvalidSearchTermTest()\n throws Exception {\n\n this.mockMvc.perform(get(\n \"/v1/allocations?category_ID=1,2&page=0&size=20&searchText=sdvvcsgdfgdf&direction=asc&attrid=0\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(\"application/json;charset=UTF-8\"))\n .andExpect(jsonPath(\"$.data\").isEmpty())\n .andExpect(jsonPath(\"$.status\").value(200));\n }", "title": "" }, { "docid": "4c01a37516cc229c2349802b0fd6228a", "score": "0.41515264", "text": "private void validate(APIAttachL2NetworkToClusterMsg msg) {\n ClusterVO cls = dbf.findByUuid(msg.getClusterUuid(), ClusterVO.class);\n if (cls != null && !cls.getHypervisorType().equals(KVMConstant.KVM_HYPERVISOR_TYPE)) {\n return;\n }\n\n L2VlanNetworkVO l2 = dbf.findByUuid(msg.getL2NetworkUuid(), L2VlanNetworkVO.class);\n if (l2 == null) {\n return;\n }\n\n if (NetworkUtils.generateVlanDeviceName(l2.getPhysicalInterface(), l2.getVlan()).length()\n > L2NetworkConstant.LINUX_IF_NAME_MAX_SIZE) {\n throw new ApiMessageInterceptionException(argerr(\"cannot create vlan-device on %s because it's too long\"\n , l2.getPhysicalInterface()));\n }\n }", "title": "" }, { "docid": "3c156095404db0ccc15fb14bc803c660", "score": "0.41513875", "text": "private void verify() {\n\n\t\tSet<Long> seen = new TreeSet<Long>();\n\t\tList<Long> recs = WrappedIterator.create(getRecords()).toList();\n\t\tif (recs.size() != count()) {\n\t\t\tthrow new IllegalStateException(\"Root count() does not equal records count\");\n\t\t}\n\n\t\tseen.addAll(recs);\n\t\tif (seen.size() != recs.size()) {\n\t\t\tthrow new IllegalStateException(\"possible duplicate records in free list\");\n\t\t}\n\n\t\tfor (int i = 0; i < pages.size(); i++) {\n\t\t\tFreeNode node = pages.get(i);\n\t\t\trecs = WrappedIterator.create(node.getRecords()).toList();\n\t\t\tif (recs.size() != node.count()) {\n\t\t\t\tthrow new IllegalStateException(\"Page \" + i + \" count() does not equal records count\");\n\n\t\t\t}\n\t\t\tint oldCount = seen.size();\n\t\t\tseen.addAll(recs);\n\t\t\tint newCount = seen.size() - oldCount;\n\t\t\tif (newCount != recs.size()) {\n\t\t\t\tthrow new IllegalStateException(\"possible duplicate records on page \" + i + \" in free list\");\n\t\t\t}\n\n\t\t}\n\t\tfor (Long l : seen) {\n\t\t\tif ((l % MemoryMappedStorage.BLOCK_SIZE) != 0) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid block number \" + l);\n\t\t\t}\n\t\t}\n\t\tLOG.info(\"FreeList verified {} free nodes\", seen.size());\n\t}", "title": "" }, { "docid": "e1e5d640171725201165d60378f09e0b", "score": "0.41495818", "text": "public static int AllocateDataCenter(String req){\n return 0;\n }", "title": "" }, { "docid": "1cc6668b3a55308a420141a1f17bbb2c", "score": "0.414803", "text": "@Test\n public void getFullBlockAtTest() {\n Integer blockHeight = null;\n // List<String> response = api.getFullBlockAt(blockHeight);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "54fac5acb0cd024aae285f0fa4237448", "score": "0.4141477", "text": "private static boolean verify_slot(BeaconState state, BeaconBlock block) {\n return state.getSlot().compareTo(UnsignedLong.valueOf(block.getSlot())) == 0;\n }", "title": "" }, { "docid": "8e6c810cc38cc630bbd23196e6f6cfb0", "score": "0.4134421", "text": "public void validate() throws org.apache.thrift.TException {\n if (!is_set_connections()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'connections' is unset! Struct:\" + toString());\n }\n\n if (!is_set_connectionNum()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'connectionNum' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "title": "" }, { "docid": "0d13c6df2ae2c4081269834627f0848e", "score": "0.41315612", "text": "public boolean hasNeedIntimacy() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "title": "" } ]
613428ab8f751a6b193ebc358de553f2
Returns the configured context metadata, or null. This method may do work and results should be cached by context implementations.
[ { "docid": "3b3ca8b2417c189d882dce47fa7929b2", "score": "0.8046294", "text": "@NullableDecl\n protected final ContextMetadata getMetadata() {\n return metadata != null ? metadata.build() : null;\n }", "title": "" } ]
[ { "docid": "3f552cc140b79837c0e3970daad4cbd6", "score": "0.6411918", "text": "public Map<String, Object> getContextData();", "title": "" }, { "docid": "bb1d18e024a138259cd0b7f74aa438bd", "score": "0.6336269", "text": "public Map<String, Object> getContext() {\n return context;\n }", "title": "" }, { "docid": "70b2b79dff0ea44e4b64f2b06cdcc5a1", "score": "0.61400723", "text": "private Context getTheContext() {\n if (context == null) {\n context = getContext();\n }\n\n return context;\n }", "title": "" }, { "docid": "bfe8b23b66da54de388503c69509ffc7", "score": "0.6051156", "text": "Config.Context getContext() {\n return provider;\n }", "title": "" }, { "docid": "42d20b5bf1de757e73dc9de3a3820cbb", "score": "0.5977856", "text": "public static Optional<Context> context() {\n Stack<Context> contextStack = REGISTRY.get();\n\n if (contextStack.isEmpty()) {\n return Optional.empty();\n }\n\n return Optional.ofNullable(contextStack.peek());\n }", "title": "" }, { "docid": "898033c283b3965c0c810d83ea9197a5", "score": "0.5954293", "text": "@NonNull\n Context getContext();", "title": "" }, { "docid": "a482d4d4ede0ee3fb1068ccfc8d3afaa", "score": "0.5919267", "text": "Context getContext();", "title": "" }, { "docid": "a482d4d4ede0ee3fb1068ccfc8d3afaa", "score": "0.5919267", "text": "Context getContext();", "title": "" }, { "docid": "f38419a3b24a7aec3b998eacadaf7c6d", "score": "0.58976924", "text": "interface Context {\n\n /**\n * Retrieves a map of class metadata such as inheritance and current access levels.\n *\n * @return an inheritance map.\n * @throws IllegalStateException when no transformer declared that it wishes to use inheritance\n * information.\n */\n @NonNull\n ClassMetadata getClassMetadata();\n }", "title": "" }, { "docid": "7b26c414a47fb48a16eabc3a996aeb22", "score": "0.58652866", "text": "private Context getContext() {\n return context;\n }", "title": "" }, { "docid": "7b26c414a47fb48a16eabc3a996aeb22", "score": "0.58652866", "text": "private Context getContext() {\n return context;\n }", "title": "" }, { "docid": "7b26c414a47fb48a16eabc3a996aeb22", "score": "0.58652866", "text": "private Context getContext() {\n return context;\n }", "title": "" }, { "docid": "f46efc8cfd2a7d34fba9693502dcdebb", "score": "0.5858775", "text": "public String getContext() {\n return context;\n }", "title": "" }, { "docid": "ec3062510a8e77b6dc97578bdd18ee44", "score": "0.58059084", "text": "ContextContainer getContext();", "title": "" }, { "docid": "15c9c1ce5801aeab0d881d7065493df1", "score": "0.5774957", "text": "public Context getContext() {\n return context;\n }", "title": "" }, { "docid": "15c9c1ce5801aeab0d881d7065493df1", "score": "0.5774957", "text": "public Context getContext() {\n return context;\n }", "title": "" }, { "docid": "e2530fab3e20cc10fad468b2d9e2eab9", "score": "0.57717186", "text": "public MetaData getMetadata() {\n if (metadata == null) {\n metadata = new MetaData();\n }\n return metadata;\n }", "title": "" }, { "docid": "e03ceee3ef99e1687b8139f96bca6ab4", "score": "0.576715", "text": "public String getContext();", "title": "" }, { "docid": "01f4e3ebe1cee0bd435ef81bb63a8bfd", "score": "0.57568306", "text": "public String getContext() {\n return this.Context;\n }", "title": "" }, { "docid": "54159aea277e85025dbf01efef0a348e", "score": "0.5738675", "text": "Reference getContext();", "title": "" }, { "docid": "2d499be78c09adc4b859f5ff6aaa07f5", "score": "0.57228875", "text": "public String getContext() {\n\t\treturn this.context;\n\t}", "title": "" }, { "docid": "50777c8af5d6d7d59db65d581bd8d5ee", "score": "0.57196736", "text": "public int getContext() {\n return context_;\n }", "title": "" }, { "docid": "96803acd585a2c93550b4b3825d5bf45", "score": "0.5707746", "text": "public C getContext();", "title": "" }, { "docid": "364466bc399e16918fa79ae2ce6a4622", "score": "0.5689775", "text": "public int getContext() {\n return context_;\n }", "title": "" }, { "docid": "0da9af8fce9807bd3bb9d2ddf8c2311c", "score": "0.56896627", "text": "Map<String, Object> getMetadata();", "title": "" }, { "docid": "cbe06f212cf3b4cdf0334425545cf8ca", "score": "0.5675281", "text": "public Map<String, String> getContext( Object pluginObject ) throws MetaStoreException;", "title": "" }, { "docid": "e49ecfe144e850c47bb0e314bb97747d", "score": "0.5644541", "text": "public Context getContext() {\n return this.ctx;\n }", "title": "" }, { "docid": "47b597069654afc99876e74842801c8b", "score": "0.5621154", "text": "public Context getContext(){\n return context;\n }", "title": "" }, { "docid": "f5f526be460c27a7f49bc8ca90a66a07", "score": "0.5615951", "text": "public final Context context()\n\t{\n\t\treturn this.context;\n\t}", "title": "" }, { "docid": "7b11601436b4928c3efcc1809acb3a42", "score": "0.5612649", "text": "public Map<String, Object> getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "a41e358f6493a58ab6d0510eb8024b07", "score": "0.5609134", "text": "public StoreContext getContext() {\n return ctx;\n }", "title": "" }, { "docid": "927797d9d0b801292899975150ac73d7", "score": "0.560606", "text": "@Override\n public Optional<InfoLoggingContext> getInfoLoggingContext() {\n return Optional.empty();\n }", "title": "" }, { "docid": "84d22f9221eb38b451c934360d929af2", "score": "0.5600035", "text": "public short getContext() {\n return context;\n }", "title": "" }, { "docid": "cde01766caae09ff51c8c4142451e9f8", "score": "0.55998945", "text": "public Map<String, Object> getExtraContext()\r\n {\r\n return _extraContext;\r\n }", "title": "" }, { "docid": "0c8f9c6a584dc49c95710e999520bffe", "score": "0.55963665", "text": "@Override\n public Map<String, Object> getMetadata() {\n return null;\n }", "title": "" }, { "docid": "9d2aacf2591f7cd7b71cfc7166b0a658", "score": "0.55799973", "text": "public com.tencent.angel.psagent.task.TaskContext getContext() {\n return context;\n }", "title": "" }, { "docid": "44851484cda891f8c37c3209f8786c41", "score": "0.55790836", "text": "HttpContext getContext() {\n\t\treturn parser.getContext();\n\t}", "title": "" }, { "docid": "ef974fac2d631a7d32d6690fb70466b3", "score": "0.556498", "text": "public java.util.Map<String, String> getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "ef974fac2d631a7d32d6690fb70466b3", "score": "0.556498", "text": "public java.util.Map<String, String> getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "d471cfb061c8083bde02dd0b85122b31", "score": "0.55528176", "text": "public Context getContext() {\n return Context.NONE;\n }", "title": "" }, { "docid": "7ed32fb0de02c71939f1cff0bcf27047", "score": "0.555248", "text": "public Map<String, String> getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "dcd67e6a86a735372a2722942ccd907a", "score": "0.553622", "text": "public String getContext()\n\t{\n\t return core.getContext().toString();\n\t}", "title": "" }, { "docid": "d3f6d5470f49aaf340498d5b710b2295", "score": "0.5528512", "text": "public ApplicationContext getContext() {\n \t\treturn context;\n \t}", "title": "" }, { "docid": "5d42316d432a821d4954affdb58e62a8", "score": "0.55268997", "text": "default IPonyData getMetadata() {\n return getAttributes().metadata;\n }", "title": "" }, { "docid": "1df135196e20be1d809d5a5e851d6be9", "score": "0.5501706", "text": "int getContext();", "title": "" }, { "docid": "e2bffebc25e677442a5223c62b800caf", "score": "0.54963136", "text": "public Context getContext(){\n return this.context;\n }", "title": "" }, { "docid": "f1b372b905e371292952f72e2d234506", "score": "0.54918826", "text": "public static synchronized LazyContextDesign getContext() {\n if (context == null) {\n context = new LazyContextDesign();\n }\n return context;\n }", "title": "" }, { "docid": "65c6eb1a6e53625cf3b329d841d9b667", "score": "0.5490728", "text": "public Metadata getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "03163a76cb87905504ae93c33f218ec3", "score": "0.54687434", "text": "T getContext(String name);", "title": "" }, { "docid": "c4503ef6568205f61e64e2472ce9bd4e", "score": "0.5457292", "text": "public IContextManager getContextManager() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e457ebbde02bf5ea8a6d9378de829066", "score": "0.54485136", "text": "Metadata getMetadata();", "title": "" }, { "docid": "cfdeb8f52a9898397db1c0cecc2e9ba0", "score": "0.5443601", "text": "public ContextManager getContextManager();", "title": "" }, { "docid": "bbfda73a076030350ea1f7425242e8b6", "score": "0.54358494", "text": "protected Context CONTEXT() {\n return currentContext;\n }", "title": "" }, { "docid": "ee4ca34933ad41dc9bef6f73290fabaf", "score": "0.5435347", "text": "@Override\n public Context getContext() {\n return context;\n }", "title": "" }, { "docid": "4d38bc56a2ece485fff32b422dd82949", "score": "0.54238796", "text": "public static Context getCurrectContext() {\n return context;\n }", "title": "" }, { "docid": "0724ec4d5de2b38d1f95e6e6403f481b", "score": "0.5411012", "text": "public static Metadata getInstance(){\n if (metadata==null){\n metadata = new Metadata();\n }\n \n return metadata;\n \n }", "title": "" }, { "docid": "ff11cb095128b3a02f9c6bfa3a68a838", "score": "0.5410979", "text": "public Context createContext() {\n return null;\n }", "title": "" }, { "docid": "198ddff42ec6d27f644998e1601fb039", "score": "0.5404605", "text": "@Nullable\n\tpublic static CampaignInfo getCampaignInfo(Context context) {\n\t\tCampaignInfo campaignInfo = null;\n\t\tif(SampleAppStorage.getInstance(context).getCampaignId() != null || SampleAppStorage.getInstance(context).getEngagementId() != null ||\n\t\t\t\tSampleAppStorage.getInstance(context).getSessionId() != null || SampleAppStorage.getInstance(context).getVisitorId() != null){\n\n\t\t\ttry {\n\t\t\t\tcampaignInfo = new CampaignInfo(SampleAppStorage.getInstance(context).getCampaignId(), SampleAppStorage.getInstance(context).getEngagementId(),\n\t\t\t\t\t\tSampleAppStorage.getInstance(context).getInteractionContextId(),\n\t\t\t\t\t\tSampleAppStorage.getInstance(context).getSessionId(), SampleAppStorage.getInstance(context).getVisitorId());\n\t\t\t} catch (BadArgumentException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn campaignInfo;\n\t}", "title": "" }, { "docid": "6f5d59afdf9f823aeb2e69ea69798e0c", "score": "0.5389995", "text": "public Optional<InstanceStateContext> getInstanceStateContext() {\n return null == contextManager.getInstanceContext() ? Optional.empty() : Optional.ofNullable(contextManager.getInstanceContext().getInstance().getState());\n }", "title": "" }, { "docid": "49cb953c874a8626e261d168321be3f7", "score": "0.537528", "text": "Namespace getContext();", "title": "" }, { "docid": "0da6192ca7048a9fb68edd185848ce7d", "score": "0.5372062", "text": "Properties getMetadata();", "title": "" }, { "docid": "866e1d7ff6c9adf10cc7068eedb39aee", "score": "0.53482753", "text": "public Context getContext() {\n if (contextReference == null) {\n CompilerDirectives.transferToInterpreterAndInvalidate();\n contextReference = lookupContextReference(Language.class);\n }\n\n return contextReference.get();\n }", "title": "" }, { "docid": "1664adff3a1684b505fd019b0f883cb3", "score": "0.53473645", "text": "private Context getContext(Task task){\n\t\t\n\t\tContext context = null;\n\t\tProgramItem programItem = ProgramMapper.getInstance().getProgramItem(task.getProgramId());\n//\t\tif (programItem == null) {\n//\t\t\treturn context;\n//\t\t}\n\t\tcontext = new Context();\n\t\tcontext.setTaskId(task.getTaskId());\n\t\tcontext.setPriority(task.getTaskPriority());\n\t\tcontext.setJobPhase(task.getJobPhase());\n\t\tif (task.getTaskOperationRequirement() != null) {\n\t\t\tcontext.setJobExecutionMode(task.getTaskOperationRequirement().getJobExecutionMode());\n\t\t\tcontext.setJobReturnMode(task.getTaskOperationRequirement().getJobReturnMode());\n\t\t\tcontext.setTimeout(task.getTaskOperationRequirement().getTimeout());\n\t\t}\n\t\tcontext.setProgramId(task.getProgramId());\n\t\t\n//\t\tcontext.setProgramName(programItem.getProgramName());\n//\t\t// TODO context bundle type ZIP or JAR\n//\t\tcontext.setScriptName(programItem.getScriptName());\n//\t\tcontext.setScriptPath(programItem.getScriptPath());\n//\t\tcontext.setScriptMd5(programItem.getScriptMd5());\n//\t\tcontext.setExecutableName(programItem.getExecutableName());\n//\t\tcontext.setExecutablePath(programItem.getExecutablePath());\n//\t\tcontext.setExecutableMd5(programItem.getExecutableMd5());\n//\t\tcontext.setEnvVariables(programItem.getEnvVariables());\n\t\t\n\t\tcontext.setParameter(task.getTaskParameter());\n\t\t\n\t\t// FIXME test data here\n\t\tcontext.setBundleType(BundleType.ZIP);\n\t\tcontext.setEnvVariables(\"env=jar\");\n\t\tcontext.setExecutableMd5(\"test\");\n\t\tcontext.setExecutableName(\"test\");\n\t\tcontext.setExecutablePath(\"text\");\n\t\tcontext.setProgramId(1100000301L);\n\t\tcontext.setProgramName(\"test\");\n\t\tcontext.setScriptMd5(\"test\");\n\t\tcontext.setScriptName(\"test\");\n\t\tcontext.setScriptPath(\"test\");\n\t\t\n\t\t// TODO context result address\n\t\treturn context;\n\t}", "title": "" }, { "docid": "76e3a62a5eec3f232208ed1648f7a6d7", "score": "0.53418934", "text": "@DontInstrument\n T getContext(Context context);", "title": "" }, { "docid": "9dc050df5dd36feece4141a38dd48d2f", "score": "0.533412", "text": "public static KdcServerContext getServerContext() {\r\n return CONTEXTS.get();\r\n }", "title": "" }, { "docid": "7a24834e95317bba53909eb790871b60", "score": "0.53316253", "text": "private static Bundle m10867a(Context context) {\n try {\n return Wrappers.packageManager(context).getApplicationInfo(context.getPackageName(), 128).metaData;\n } catch (Context context2) {\n zzaok.m10002b(\"Failed to load metadata: Null pointer exception\", context2);\n return null;\n } catch (Context context22) {\n zzaok.m10002b(\"Failed to load metadata: Package name not found\", context22);\n return null;\n }\n }", "title": "" }, { "docid": "f4d3e2d258ead012ff04a7d6ad74d769", "score": "0.53250915", "text": "private static JobContext getContext() {\r\n\r\n return contextContainer.get();\r\n }", "title": "" }, { "docid": "d554417e4fa35b625d94683727f7aada", "score": "0.5300725", "text": "public SessionContext getContext() {\n return context;\n }", "title": "" }, { "docid": "0b1a33d6ece51549bd12ea0045a158ca", "score": "0.5298335", "text": "private Context getContext() {\n return mContext;\n }", "title": "" }, { "docid": "0b1a33d6ece51549bd12ea0045a158ca", "score": "0.5298335", "text": "private Context getContext() {\n return mContext;\n }", "title": "" }, { "docid": "0b1a33d6ece51549bd12ea0045a158ca", "score": "0.5298335", "text": "private Context getContext() {\n return mContext;\n }", "title": "" }, { "docid": "0b1a33d6ece51549bd12ea0045a158ca", "score": "0.5298335", "text": "private Context getContext() {\n return mContext;\n }", "title": "" }, { "docid": "53cc3d06fa748a49f75334274314019f", "score": "0.5289052", "text": "@Nullable\n public static PackageInfo getPackageInfo(@NonNull Context context) {\n try {\n return context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n } catch (PackageManager.NameNotFoundException e) {\n Crashlytics.logException(e);\n return null;\n }\n }", "title": "" }, { "docid": "404d4c47b09ac7723d94e0abbc24ac77", "score": "0.52875406", "text": "public String getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "c7ce1c3e27dcb5871afc8b88784be295", "score": "0.52868724", "text": "public String getContextPath() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "3b2b1b9c3fe305367e5ef02a00b93831", "score": "0.5284819", "text": "protected Properties getContextProperties() {\n UDFContext context = UDFContext.getUDFContext();\n Properties properties = context.getUDFProperties(this.getClass());\n return properties;\n }", "title": "" }, { "docid": "c9fd045e327c55a17094136d62b2a771", "score": "0.5277418", "text": "public final Context mo102678h() {\n Context context = mo102673c().getContext();\n if (context == null) {\n C32569u.m150511a();\n }\n return context;\n }", "title": "" }, { "docid": "4fac3ff5e7342f6e924e2b1118db0292", "score": "0.5277245", "text": "public static Context method_2295() {\n if (field_2788 == null) {\n throw new RuntimeException(\"ApplicationContext==null\");\n } else {\n return field_2788;\n }\n }", "title": "" }, { "docid": "144bf0a389776eaddeff5d2f846ab5bd", "score": "0.52747875", "text": "public java.lang.String getMetadata() {\n return instance.getMetadata();\n }", "title": "" }, { "docid": "9bdf4bf60cdc1b44a25524b649269a9a", "score": "0.52693015", "text": "public static PortletContext getPortletContext() {\n PortletConfig portletConfig = getPortletConfig();\n if (portletConfig == null) {\n throw new IllegalStateException(\"Cannot retrieve PortletConfig.\");\n }\n return portletConfig.getPortletContext();\n }", "title": "" }, { "docid": "6cd7e2f248c884a255aed4678ec088cf", "score": "0.52634007", "text": "public int getContextID() {\r\n return contextID;\r\n }", "title": "" }, { "docid": "aa76fc9985e03dd7cf79163bc7e9ce71", "score": "0.52537584", "text": "public java.lang.String getMetadata() {\n return metadata_;\n }", "title": "" }, { "docid": "2989d193fa5f5cc6639e327db9b81dee", "score": "0.52530384", "text": "public MetaInformation metaInformation() {\n return couchDbClient.metaInformation();\n }", "title": "" }, { "docid": "09cbb83d76968c14535e047d1fff4b8c", "score": "0.52441216", "text": "public Context getContext() {\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "856dfea15eaf6737a8989c11c5f2ab93", "score": "0.5242709", "text": "public org.tensorflow.example.ExampleOrBuilder getContextOrBuilder() {\n return getContext();\n }", "title": "" }, { "docid": "eb6dc2835b065f1267fc406d51ed8f4a", "score": "0.52362776", "text": "static BundleContext getContext() {\n\t\treturn context;\n\t}", "title": "" }, { "docid": "3b97bec51b3c27f6a87063401e18580a", "score": "0.52080464", "text": "public String getMetricsContext() {\n return metricsContext;\n }", "title": "" }, { "docid": "5ea3eee5d6b6035e22c55ca7cbe96c08", "score": "0.52071744", "text": "@Override\n\tpublic Map<String, Object> getMetaData() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "345d062e9f26a0036a9dad8472f69d08", "score": "0.52018994", "text": "public static\n\tModuleContext getContext()\n\t{\n\t\tClass c = sun.reflect.Reflection.getCallerClass(2);\n\t\treturn ModuleLoader.forClass(c).getContext();\n\t}", "title": "" }, { "docid": "9bcd5b48d834c78518dfcb5f4c8c36f0", "score": "0.5193476", "text": "public Context getContext() {\n return mContext;\n }", "title": "" }, { "docid": "fd4b7db8e671f83348eed7ce833182e2", "score": "0.5193446", "text": "@Override\n public JMSContext getContext() {\n return actualContext;\n }", "title": "" }, { "docid": "50e9412273399920fae4f8947933f702", "score": "0.5189961", "text": "@NonNull\n public static Optional<Context> findContext(@NonNull HttpServletRequest request) {\n Context attribute = (Context) request.getAttribute(CONTEXT_ATTRIBUTE);\n return Optional.ofNullable(attribute);\n }", "title": "" }, { "docid": "0529b568db99c3126b6cacccdbc3549f", "score": "0.51844466", "text": "public TaskContext(TaskMetaInfoProto taskMeta) {\n taskIdProto = taskMeta.getTaskId();\n taskId = ProtobufUtil.convertToId(taskIdProto);\n context = PSAgentContext.get().getTaskContext(taskId.getIndex());\n context.setEpoch(taskMeta.getIteration());\n List<MatrixClock> matrixClocks = taskMeta.getMatrixClockList();\n int size = matrixClocks.size();\n for (int i = 0; i < size; i++) {\n context.setMatrixClock(matrixClocks.get(i).getMatrixId(), matrixClocks.get(i).getClock());\n }\n }", "title": "" }, { "docid": "a8d4de0c4645572bb6ef5bc208f0075e", "score": "0.5184371", "text": "private String getExampleMetaData() {\r\n String exampleMetaData;\r\n try {\r\n ApplicationInfo ai = getPackageManager().getApplicationInfo(getPackageName(),\r\n PackageManager.GET_META_DATA);\r\n Bundle bundle = ai.metaData;\r\n exampleMetaData = bundle.getString(\"exampleMetaData\");\r\n } catch (PackageManager.NameNotFoundException e) {\r\n Log.e(LOG_TAG, \"Failed to load meta-data, NameNotFound: \" + e.getMessage());\r\n exampleMetaData = \"NameNotFoundError\";\r\n } catch (NullPointerException e) {\r\n Log.e(LOG_TAG, \"Failed to load meta-data, NullPointer: \" + e.getMessage());\r\n exampleMetaData = \"NullPointerException\";\r\n }\r\n return exampleMetaData;\r\n }", "title": "" }, { "docid": "734e02aacf22c4e0792a65e2734d51e5", "score": "0.5180522", "text": "boolean hasHasContextInformation();", "title": "" }, { "docid": "980f6695e1c9393e4832a46db3f8fbc0", "score": "0.5176208", "text": "public Object getDeviceTelemetryMessageContext()\n {\n // Codes_SRS_DEVICECLIENTCONFIG_11_011: [The function shall return the current message context.]\n return this.deviceTelemetryMessageContext;\n }", "title": "" }, { "docid": "f22d196ce59f5f2dc8975325cfba6578", "score": "0.51755273", "text": "public GameContext getContext() {\n\t\treturn context;\n\t}", "title": "" }, { "docid": "c597aeb701d7b7187d6916aae94a3181", "score": "0.5167546", "text": "@Nonnull\r\n String getContextPath ();", "title": "" }, { "docid": "61fb4e45cc49178036bb27cbfd2209ea", "score": "0.5163653", "text": "private static Bundle m5056d(Context context) {\n try {\n PackageManager packageManager = context.getPackageManager();\n if (packageManager == null) {\n Log.w(\"BackendRegistry\", \"Context has no PackageManager.\");\n return null;\n }\n ServiceInfo serviceInfo = packageManager.getServiceInfo(new ComponentName(context, TransportBackendDiscovery.class), 128);\n if (serviceInfo != null) {\n return serviceInfo.metaData;\n }\n Log.w(\"BackendRegistry\", \"TransportBackendDiscovery has no service info.\");\n return null;\n } catch (PackageManager.NameNotFoundException unused) {\n Log.w(\"BackendRegistry\", \"Application info not found.\");\n return null;\n }\n }", "title": "" }, { "docid": "ed88772e38f0e0ee1c58627f33ea17b8", "score": "0.5160915", "text": "String getContextName();", "title": "" } ]
87f73b6fd9b006cf9f2148272c6e999d
Convert the given object to string with each line indented by 4 spaces (except the first line).
[ { "docid": "8279fe35d1f3c688ad6983974b78755b", "score": "0.0", "text": "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
[ { "docid": "9e6d1b5dcd4619e079c1bbb422051363", "score": "0.7619209", "text": "private String toIndentedString(Object o) {\nif (o == null) {\nreturn \"null\";\n}\nreturn o.toString().replace(\"\\n\", \"\\n \");\n}", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.7462009", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
987b716f495db6e15c9d7a786e40e634
/ Given an LVComputationKind, return one of the same type/value sort / that records that it already has explicit visibility.
[ { "docid": "0a40154041770f4f026b408931fd9abc", "score": "0.55729246", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp\", line = 144,\n FQN=\"withExplicitVisibilityAlready\", NM=\"_ZL29withExplicitVisibilityAlready17LVComputationKind\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp -nm=_ZL29withExplicitVisibilityAlready17LVComputationKind\")\n//</editor-fold>\npublic static LVComputationKind withExplicitVisibilityAlready(LVComputationKind oldKind) {\n LVComputationKind newKind = /*static_cast*/LVComputationKind.valueOf(((/*uint*/int)(oldKind.getValue()))\n | IgnoreExplicitVisibilityBit);\n assert (oldKind != LVComputationKind.LVForType || newKind == LVComputationKind.LVForExplicitType);\n assert (oldKind != LVComputationKind.LVForValue || newKind == LVComputationKind.LVForExplicitValue);\n assert (oldKind != LVComputationKind.LVForExplicitType || newKind == LVComputationKind.LVForExplicitType);\n assert (oldKind != LVComputationKind.LVForExplicitValue || newKind == LVComputationKind.LVForExplicitValue);\n return newKind;\n}", "title": "" } ]
[ { "docid": "45ee55af3821432823e8ad9aa0cf315f", "score": "0.5118661", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp\", line = 138,\n FQN=\"hasExplicitVisibilityAlready\", NM=\"_ZL28hasExplicitVisibilityAlready17LVComputationKind\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp -nm=_ZL28hasExplicitVisibilityAlready17LVComputationKind\")\n//</editor-fold>\npublic static boolean hasExplicitVisibilityAlready(LVComputationKind computation) {\n return ((((/*uint*/int)(computation.getValue())) & IgnoreExplicitVisibilityBit) != 0);\n}", "title": "" }, { "docid": "2be1c64d5b2785be1c346ec66623a00c", "score": "0.506453", "text": "xla.Hlo.HloOrderingProto getHloOrdering();", "title": "" }, { "docid": "e04b643d533dd8da37cd0ff684ed0e7b", "score": "0.49114418", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic int compare(Viewer viewer, Object e1, Object e2) {\r\n \tif (criteria != MODELICA) {\r\n \t\treturn super.compare(viewer, e1, e2);\r\n \t}\r\n int cat1 = category(e1);\r\n int cat2 = category(e2);\r\n\r\n if (cat1 != cat2) {\r\n\t\t\treturn cat1 - cat2;\r\n\t\t}\r\n \t\r\n String name1;\r\n String name2;\r\n\r\n if (viewer == null || !(viewer instanceof ContentViewer)) {\r\n name1 = e1.toString();\r\n name2 = e2.toString();\r\n } \r\n else {\r\n IBaseLabelProvider prov = ((ContentViewer)viewer).getLabelProvider();\r\n if (prov instanceof ILabelProvider) {\r\n ILabelProvider lprov = (ILabelProvider)prov;\r\n name1 = lprov.getText(e1);\r\n name2 = lprov.getText(e2);\r\n } \r\n else {\r\n name1 = e1.toString();\r\n name2 = e2.toString();\r\n }\r\n }\r\n if (name1 == null) {\r\n\t\t\tname1 = \"\";//$NON-NLS-1$\r\n\t\t}\r\n if (name2 == null) {\r\n\t\t\tname2 = \"\";//$NON-NLS-1$\r\n\t\t}\r\n\r\n // use the comparator to compare the strings\r\n return getComparator().compare(name1, name2);\r\n }", "title": "" }, { "docid": "319e4bff275c5689f1d0a8e5ba28857f", "score": "0.4793359", "text": "xla.Hlo.HloOrderingProtoOrBuilder getHloOrderingOrBuilder();", "title": "" }, { "docid": "fd65f4cdb3473b353b750c5efc7d2fee", "score": "0.47728762", "text": "protected abstract ObservableList<TC> getSortOrder();", "title": "" }, { "docid": "cd8ece4ee4103e319b6dd8dbcdd31639", "score": "0.4762013", "text": "Optional<Integer> getSortValue();", "title": "" }, { "docid": "cd7cdca6e7969a78a782a4bff565a4cc", "score": "0.47178915", "text": "private static Comparator<SearchAlgorithm> makeEfficiencyComparator() {\n return new Comparator<SearchAlgorithm>() {\n public int compare( final SearchAlgorithm algorithmA, final SearchAlgorithm algorithmB ) {\n final double efficiencyA = algorithmA.getEfficiency();\n final double efficiencyB = algorithmB.getEfficiency();\n return efficiencyA < efficiencyB ? 1 : ( efficiencyA > efficiencyB ? -1 : algorithmA.getLabel().compareTo( algorithmB.getLabel() ) );\n }\n };\n }", "title": "" }, { "docid": "ef6e37f44fd3082429ba777f73332fa2", "score": "0.4712852", "text": "public abstract SortDefinition getSort();", "title": "" }, { "docid": "036add0da2989ee3bcf35ee5776f743c", "score": "0.46879342", "text": "io.dstore.values.IntegerValueOrBuilder getSortNoOrBuilder();", "title": "" }, { "docid": "cccbce58cc10955a7542a5b7b5f4b878", "score": "0.468064", "text": "io.dstore.values.IntegerValue getSortConditionId();", "title": "" }, { "docid": "d5f780e2429a915bc9e3793d0202f1e3", "score": "0.46647134", "text": "public WOComponent classeActAsc() {\r\n\t\tgetListener().caller().triSelected = EOIntervention.TRI_ATTRIBUT_ACTIVITE;\r\n\t\tgetListener().caller().setOrdreSelected(CktlSort.Ascending);\r\n\t\tgetListener().doFetchDisplayGroup();\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "805312c1a94f1441706bdd8eeedf6bc1", "score": "0.46273088", "text": "io.dstore.values.IntegerValue getSortNo();", "title": "" }, { "docid": "4a6c983d1068df4b00cc092a8eb5028c", "score": "0.46132526", "text": "private void sort() {\n\t\t// unordered registers\n\t\tif (!Utilities.leqReg(elem.val0,elem.val1)) {\n\t\t\tRegister auxR = elem.val0;\n\t\t\telem.val0 = elem.val1;\n\t\t\telem.val1 = auxR;\n\t\t\tFieldSet auxFs = elem.val2;\n\t\t\telem.val2 = elem.val3;\n\t\t\telem.val3 = auxFs;\n\t\t}\n\t\t// self-sharing\n\t\tif (elem.val0 == elem.val1) {\n\t\t\t// unordered fieldsets\n\t\t\tif (!FieldSet.leq(elem.val2,elem.val3)) {\n\t\t\t\tFieldSet auxFs = elem.val2;\n\t\t\t\telem.val2 = elem.val3;\n\t\t\t\telem.val3 = auxFs;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "13ddf19dffee631fe15a9a172ea9d8c5", "score": "0.46087584", "text": "int getKindValue();", "title": "" }, { "docid": "b8acf57c3321665ddb518ff14f2884c9", "score": "0.4592949", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp\", line = 405,\n FQN=\"hasDirectVisibilityAttribute\", NM=\"_ZL28hasDirectVisibilityAttributePKN5clang9NamedDeclE17LVComputationKind\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp -nm=_ZL28hasDirectVisibilityAttributePKN5clang9NamedDeclE17LVComputationKind\")\n//</editor-fold>\npublic static boolean hasDirectVisibilityAttribute(/*const*/ NamedDecl /*P*/ D, \n LVComputationKind computation) {\n switch (computation) {\n case LVForType:\n case LVForExplicitType:\n if (D.hasAttr(TypeVisibilityAttr.class)) {\n return true;\n }\n case LVForValue:\n case LVForExplicitValue:\n // fallthrough\n if (D.hasAttr(VisibilityAttr.class)) {\n return true;\n }\n return false;\n case LVForLinkageOnly:\n return false;\n }\n throw new llvm_unreachable(\"bad visibility computation kind\");\n}", "title": "" }, { "docid": "ce83347bed281c1753dd99c181b7b8a7", "score": "0.45407733", "text": "public Action getSortAction(int type){\r\n\t\tAction sortAction = null;\r\n\t\tswitch(type){\r\n\t\t\tcase 0:\r\n\t\t\t\tsortAction = new Action() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tsortingType = IMarker.MESSAGE;\r\n\t\t\t\t\t\treOriginateTree();\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\tsortAction.setText(\"Group by Description\");\r\n\t\t\t\tbreak;\r\n\t\t\t\t//CONFIGURATIONCOLUMN\r\n\t\t\t/*case 1:\r\n\t\t\t\tsortAction = new Action() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tsortingType = IMarker.TEXT;\r\n\t\t\t\t\t\treOriginateTree();\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\tsortAction.setText(\"Group by Configuration\");\r\n\t\t\t\tbreak;*/\r\n\t\t\tcase 2:\r\n\t\t\t\tsortAction = new Action() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tsortingType = IMarker.TASK;\r\n\t\t\t\t\t\treOriginateTree();\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\tsortAction.setText(\"Group by Feature\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn sortAction;\r\n\t}", "title": "" }, { "docid": "bffbc63979b1e375165ecc99a8126719", "score": "0.45246765", "text": "protected abstract Comparator<Class<?>> getComparator();", "title": "" }, { "docid": "ac5e3123db1b399bf85995e0c1cb8116", "score": "0.44918814", "text": "io.dstore.values.BooleanValue getAscendingSortOrder();", "title": "" }, { "docid": "53cef5312a07d4f8b1ab15bec2e982df", "score": "0.44817734", "text": "public int compare(DialogMetaInfo o1, DialogMetaInfo o2)\n { \n if (o1.isFolder() != o2.isFolder())\n {\n if (o1.isFolder())\n {\n if (sort.equals(VtiSort.ASC)) \n {\n return -1;\n }\n if (sort.equals(VtiSort.DESC)) \n {\n return 1;\n }\n } \n else\n {\n if (sort.equals(VtiSort.ASC)) \n {\n return 1;\n }\n if (sort.equals(VtiSort.DESC)) \n {\n return -1;\n }\n }\n }\n else\n {\n if (sort.equals(VtiSort.ASC))\n {\n if (sortField.equals(VtiSortField.TYPE))\n { \n int extIndex1 = o1.getName().lastIndexOf('.');\n int extIndex2 = o2.getName().lastIndexOf('.');\n String ext1, ext2;\n if (extIndex1 != -1 && o1.getName().length() > extIndex1 + 1)\n {\n ext1 = o1.getName().substring(extIndex1 + 1);\n }\n else\n {\n ext1 = \"\";\n }\n if (extIndex2 != -1 && o2.getName().length() > extIndex2 + 1)\n {\n ext2 = o2.getName().substring(extIndex2 + 1);\n }\n else\n {\n ext2 = \"\";\n } \n return ext1.compareToIgnoreCase(ext2); \n } \n if (sortField.equals(VtiSortField.NAME))\n {\n return o1.getName().compareToIgnoreCase(o2.getName());\n }\n if (sortField.equals(VtiSortField.MODIFIEDBY))\n {\n return o1.getModifiedBy().compareToIgnoreCase(o2.getModifiedBy());\n }\n if (sortField.equals(VtiSortField.MODIFIED))\n {\n return o1.getModifiedTime().compareToIgnoreCase(o2.getModifiedTime());\n }\n if (sortField.equals(VtiSortField.CHECKEDOUTTO))\n {\n return o1.getCheckedOutTo().compareToIgnoreCase(o2.getCheckedOutTo());\n }\n }\n if (sort.equals(VtiSort.DESC))\n {\n if (sortField.equals(VtiSortField.TYPE))\n { \n int extIndex1 = o1.getName().lastIndexOf('.');\n int extIndex2 = o2.getName().lastIndexOf('.');\n String ext1, ext2;\n if (extIndex1 != -1 && o1.getName().length() > extIndex1 + 1)\n {\n ext1 = o1.getName().substring(extIndex1 + 1);\n }\n else\n {\n ext1 = \"\";\n }\n if (extIndex2 != -1 && o2.getName().length() > extIndex2 + 1)\n {\n ext2 = o2.getName().substring(extIndex2 + 1);\n }\n else\n {\n ext2 = \"\";\n } \n return -ext1.compareToIgnoreCase(ext2); \n } \n if (sortField.equals(VtiSortField.NAME))\n {\n return -o1.getName().compareToIgnoreCase(o2.getName());\n }\n if (sortField.equals(VtiSortField.MODIFIEDBY))\n {\n return -o1.getModifiedBy().compareToIgnoreCase(o2.getModifiedBy());\n }\n if (sortField.equals(VtiSortField.MODIFIED))\n {\n return -o1.getModifiedTime().compareToIgnoreCase(o2.getModifiedTime());\n }\n if (sortField.equals(VtiSortField.CHECKEDOUTTO))\n {\n return -o1.getCheckedOutTo().compareToIgnoreCase(o2.getCheckedOutTo());\n } \n } \n } \n return 0;\n }", "title": "" }, { "docid": "79c696c15456086a7c9c9bfd33ae89b2", "score": "0.44808003", "text": "public WOComponent classeBatAsc() {\r\n\t\tgetListener().caller().triSelected = EOIntervention.TRI_ATTRIBUT_BATIMENT;\r\n\t\tgetListener().caller().setOrdreSelected(CktlSort.Ascending);\r\n\t\tgetListener().doFetchDisplayGroup();\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "1ced53c4d8f42d72e4f7be83f2685f68", "score": "0.44611025", "text": "@Override\n public EntryVal call() throws Exception {\n IdentityHashMap<AccessSection, Integer> srcMap = new IdentityHashMap<>();\n for (int i = 0; i < sections.size(); i++) {\n srcMap.put(sections.get(i), i);\n }\n ImmutableList<AccessSection> sorted =\n sections.stream()\n .sorted(new MostSpecificComparator(key.ref()))\n .collect(toImmutableList());\n ImmutableList.Builder<Integer> order = ImmutableList.builderWithExpectedSize(sections.size());\n for (int i = 0; i < sorted.size(); i++) {\n order.add(srcMap.get(sorted.get(i)));\n }\n return EntryVal.create(order.build());\n }", "title": "" }, { "docid": "62a48c1d7bbd377b0494bed7280341cc", "score": "0.44607377", "text": "public static String getSortMethod(String dataType)\n\t{\n String[] sortChoices;\n if (dataType.contains(\"cities\"))\n {\n sortChoices = new String[] {\"Area\", \"Population\", \"Latitude\",\n \"Longitude\", \"Elevation\",\n \"Lexicographic\", \"Random\"};\n }\n else if(dataType.contains(\"places of interest\"))\n {\n \tsortChoices = new String[] {\"Area\", \"Lexicographic\",\n \t\"Random\"};\n }\n else\n {\n sortChoices = new String[] {\"Area\", \"Population\", \"Lexicographic\",\n \"Random\"};\n }\n\n // Create radio buttons, a group in which to tie them together,\n // and a panel on which to place them\n JRadioButton[] buttons = new JRadioButton[sortChoices.length];\n ButtonGroup buttonGroup = new ButtonGroup();\n JPanel panel = new JPanel();\n panel.setLayout(new GridLayout(sortChoices.length,1));\n // Construct each button, add it to the group, and add it to the panel\n for (int i = 0; i < sortChoices.length; i++)\n {\n buttons[i] = new JRadioButton(sortChoices[i]);\n buttonGroup.add(buttons[i]);\n panel.add(buttons[i]);\n }\n buttons[0].setSelected(true);\n \n // Create a \"JOptionPane\" on which to put the panel\n JOptionPane optionPane = new JOptionPane();\n optionPane.setMessage(\"Sort by:\");\n optionPane.setMessageType(JOptionPane.QUESTION_MESSAGE);\n optionPane.add(panel, 1);\n // Create a JDialog on which to display the JOptionPane, with panel \n JDialog continueDialog = optionPane.createDialog(null,\n \"GeoGrapher\");\n continueDialog.setVisible(true);\n\n // Set the return String equal to the choice made\n String result = \"\";\n for (int i = 0; i < sortChoices.length; i++)\n {\n if (buttons[i].isSelected()) result = sortChoices[i];\n } \n \n return result;\n\t}", "title": "" }, { "docid": "c8a3f108f64c07227e1d93edb87be1c7", "score": "0.44422525", "text": "int getDisplayOrder();", "title": "" }, { "docid": "f3247320a22b2bab2f7051a676bdf675", "score": "0.44308648", "text": "public WOComponent classeNoAsc() {\r\n\t\tgetListener().caller().triSelected = EOIntervention.TRI_ATTRIBUT_NUMERO;\r\n\t\tgetListener().caller().setOrdreSelected(CktlSort.Ascending);\r\n\t\tgetListener().doFetchDisplayGroup();\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d64a8350f28d1fd0e4b449f7e5a63386", "score": "0.44277573", "text": "java.lang.String getKind();", "title": "" }, { "docid": "cf52cd18f31e9f140be9dc162d4972dd", "score": "0.4421939", "text": "@Converted(kind = Converted.Kind.MANUAL_SEMANTIC,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp\", line = 193,\n FQN=\"getVisibilityFromAttr\", NM=\"Tpl__ZL21getVisibilityFromAttrPKT_\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp -nm=Tpl__ZL21getVisibilityFromAttrPKT_\")\n//</editor-fold>\npublic static </*class*/ T extends Attr> Visibility getVisibilityFromAttr(/*const*/ T /*P*/ attr) {\n if (attr instanceof TypeVisibilityAttr) {\n switch (((TypeVisibilityAttr)attr).getVisibility()) {\n case Default:\n return Visibility.DefaultVisibility;\n case Hidden:\n return Visibility.HiddenVisibility;\n case Protected:\n return Visibility.ProtectedVisibility;\n }\n } else if (attr instanceof VisibilityAttr) {\n switch (((VisibilityAttr)attr).getVisibility()) {\n case Default:\n return Visibility.DefaultVisibility;\n case Hidden:\n return Visibility.HiddenVisibility;\n case Protected:\n return Visibility.ProtectedVisibility;\n }\n }\n throw new llvm_unreachable(\"bad visibility kind\");\n}", "title": "" }, { "docid": "4d5c10a4d5b07e1719ce3dfe6f3997e7", "score": "0.44142282", "text": "public void sortNormAscending();", "title": "" }, { "docid": "3f6653dd9652ebedbb86d5da63dbe5fe", "score": "0.44118866", "text": "public int getKind();", "title": "" }, { "docid": "3f6653dd9652ebedbb86d5da63dbe5fe", "score": "0.44118866", "text": "public int getKind();", "title": "" }, { "docid": "96acdb337be0e9b0fa6a35e4bbe674f7", "score": "0.44103009", "text": "@Override\n public int compareTo(Object c) {\n return getCurrentRepDegree() - ((Chunk) c).getCurrentRepDegree();\n }", "title": "" }, { "docid": "316296ccaa81fd9cdfe4f540a5cbae91", "score": "0.44097033", "text": "public void sortByCFR(Button button) {\n currentComparator = \"cfr\";\n updateGraph();\n }", "title": "" }, { "docid": "83b606aa0143f728bd0e6eca818190b3", "score": "0.44069198", "text": "public WOComponent classeNomAsc() {\r\n\t\tgetListener().caller().triSelected = EOIntervention.TRI_ATTRIBUT_DEMANDEUR;\r\n\t\tgetListener().caller().setOrdreSelected(CktlSort.Ascending);\r\n\t\tgetListener().doFetchDisplayGroup();\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b7ab910be805686e7a8c3e53d992e500", "score": "0.4388428", "text": "@Override\n\t\t\tpublic int compare(Entry<K, V> arg0, Entry<K, V> arg1) {\n\t\t\t\treturn arg1.getValue().compareTo(arg0.getValue());\n\t\t\t}", "title": "" }, { "docid": "1c13c00814530034057008ab5716d51f", "score": "0.4383396", "text": "private void OnItemsSortDescriptionsChanged(Object sender, NotifyCollectionChangedEventArgs e)\r\n { \r\n if (_ignoreSortDescriptionsChange || GroupingSortDescriptionIndices == null) \r\n {\r\n return; \r\n }\r\n\r\n switch (e.Action)\r\n { \r\n case NotifyCollectionChangedAction.Add:\r\n Debug.Assert(e.NewItems.Count == 1, \"SortDescriptionCollection should handle one element at a time\"); \r\n for (int i = 0, count = GroupingSortDescriptionIndices.Count; i < count; i++) \r\n {\r\n if (GroupingSortDescriptionIndices[i] >= e.NewStartingIndex) \r\n {\r\n GroupingSortDescriptionIndices[i]++;\r\n }\r\n } \r\n\r\n break; \r\n case NotifyCollectionChangedAction.Remove: \r\n Debug.Assert(e.OldItems.Count == 1, \"SortDescriptionCollection should handle one element at a time\");\r\n for (int i = 0, count = GroupingSortDescriptionIndices.Count; i < count; i++) \r\n {\r\n if (GroupingSortDescriptionIndices[i] > e.OldStartingIndex)\r\n {\r\n GroupingSortDescriptionIndices[i]--; \r\n }\r\n else if (GroupingSortDescriptionIndices[i] == e.OldStartingIndex) \r\n { \r\n GroupingSortDescriptionIndices.RemoveAt(i);\r\n i--; \r\n count--;\r\n }\r\n }\r\n\r\n break;\r\n case NotifyCollectionChangedAction.Move: \r\n // SortDescriptionCollection doesnt support move, atleast as an atomic operation. Hence Do nothing. \r\n break;\r\n case NotifyCollectionChangedAction.Replace: \r\n Debug.Assert(e.OldItems.Count == 1 && e.NewItems.Count == 1, \"SortDescriptionCollection should handle one element at a time\");\r\n GroupingSortDescriptionIndices.Remove(e.OldStartingIndex);\r\n break;\r\n case NotifyCollectionChangedAction.Reset: \r\n GroupingSortDescriptionIndices.Clear();\r\n break; \r\n } \r\n }", "title": "" }, { "docid": "5d7f966954065175acee37d3c858c2de", "score": "0.4376015", "text": "String getOrdering();", "title": "" }, { "docid": "72095107404df21eeba3e33b275f431e", "score": "0.437567", "text": "@Override\n public int compareTo(FsIndex_iicp<? extends FeatureStructure> cp) {\n final int typeCode1 = ((TypeImpl) this.fsIndex_singletype.getType()).getCode();\n final int typeCode2 = ((TypeImpl) cp.fsIndex_singletype.getType()).getCode();\n if (typeCode1 < typeCode2) {\n return -1;\n } else if (typeCode1 > typeCode2) {\n return 1;\n } else { // types are equal\n return this.fsIndex_singletype.getComparatorImplForIndexSpecs()\n .compareTo(cp.fsIndex_singletype.getComparatorImplForIndexSpecs());\n }\n }", "title": "" }, { "docid": "834b457e719cce7f204aae742835b9bc", "score": "0.43631992", "text": "public static Comparator<Map.Entry<String, Integer>> getDecComparatorByValue(){\n\t\tComparator<Map.Entry<String, Integer>> myComparator = new Comparator<Map.Entry<String, Integer>>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Map.Entry<String, Integer> e1, Map.Entry<String, Integer> e2) {\n\n\t\t\t\tInteger int1 = e1.getValue();\n\t\t\t\tInteger int2 = e2.getValue();\n\t\t\t\treturn int2.compareTo(int1);\n\t\t\t}\n\t\t};\n\t\t\n\t\treturn myComparator;\n\t}", "title": "" }, { "docid": "9b2a6d63f3ddde653ae3ee0fb944255b", "score": "0.43604884", "text": "private SortTypeEnum getSortType(SortTypeEnum sortType, int itemNumber) {\n SortTypeEnum finalSortType;\n\n switch (itemNumber) {\n case 0:\n switch (sortType) {\n case ALPHABETICAL:\n finalSortType = SortTypeEnum.ALPHABETICAL_ASC;\n break;\n case DATE_ADDED:\n finalSortType = SortTypeEnum.DATE_ADDED_DESC;\n break;\n case DATE_LAST_ACCESS:\n finalSortType = SortTypeEnum.DATE_LAST_ACCESS_DESC;\n break;\n case USAGE_COUNT:\n finalSortType = SortTypeEnum.USAGE_COUNT_DESC;\n break;\n default:\n finalSortType = SortTypeEnum.CUSTOM;\n break;\n }\n break;\n default:\n switch (sortType) {\n case ALPHABETICAL:\n finalSortType = SortTypeEnum.ALPHABETICAL_DESC;\n break;\n case DATE_ADDED:\n finalSortType = SortTypeEnum.DATE_ADDED_ASC;\n break;\n case DATE_LAST_ACCESS:\n finalSortType = SortTypeEnum.DATE_LAST_ACCESS_ASC;\n break;\n case USAGE_COUNT:\n finalSortType = SortTypeEnum.USAGE_COUNT_ASC;\n break;\n default:\n finalSortType = SortTypeEnum.CUSTOM;\n break;\n }\n break;\n }\n\n return finalSortType;\n }", "title": "" }, { "docid": "6c2ddfb0124c0bf9a7ad2a1a41d58055", "score": "0.43494844", "text": "public String getBrowsingSortForm(Descriptor descriptor) {\n return descriptor.getSortForm();\n }", "title": "" }, { "docid": "cd69bd77700f6bdec586f5a5db9b6604", "score": "0.43336764", "text": "public int getKindValue() {\n return kind_;\n }", "title": "" }, { "docid": "73c8dae37f8d054ff48ef34c9e7419af", "score": "0.43291557", "text": "private static boolean CanConvertToSortDescription(PropertyGroupDescription propertyGroupDescription) \r\n {\r\n if (propertyGroupDescription != null && \r\n propertyGroupDescription.Converter == null &&\r\n propertyGroupDescription.StringComparison == StringComparison.Ordinal)\r\n {\r\n return true; \r\n }\r\n\r\n return false; \r\n }", "title": "" }, { "docid": "b6d9a928d98cc795b272ed2bef25e97d", "score": "0.4328023", "text": "boolean hasSortConditionId();", "title": "" }, { "docid": "29101cd1197edc077368a64764d91fb1", "score": "0.43261975", "text": "@Override\r\n\tpublic int compareTo(SortHelp o) {\n\t\treturn new BigDecimal(this.value).compareTo(new BigDecimal(o.getValue()));\r\n\t}", "title": "" }, { "docid": "176795915f0def10c4bb36866935390e", "score": "0.43077978", "text": "@Override\r\n\tpublic List<Consigness> getSortList(Consigness t, String property, int r) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bef3624c2e2036e6427d56229fd1834c", "score": "0.42987147", "text": "private Collection sortRefinementValues(Collection refinementCollection) \n {\n Object[] arrayFacets = null;\n if (UtilValidate.isNotEmpty(refinementCollection)) \n {\n arrayFacets = refinementCollection.toArray();\n Collection sortedCollection = new ArrayList();\n String productFeatureGroupFacetSort = null;\n for (int i = 0; i < arrayFacets.length; i++) \n {\n GenericRefinement refinement = (GenericRefinement) arrayFacets[i];\n FacetValueSequenceComparator comparator = null;\n comparator = new FacetValueSequenceComparator(this.delegator, refinement.getProductFeatureGroupId());\n\n if (SolrConstants.TYPE_PRODUCT_CATEGORY.equals(refinement.getType()) || SolrConstants.TYPE_TOP_MOST_PRODUCT_CATEGORY.equals(refinement.getType())) \n {\n comparator.setUseSequenceNum(true);\n } \n else \n {\n productFeatureGroupFacetSort = refinement.getProductFeatureGroupFacetSort();\n comparator.setProductFeatureGroupSorting(productFeatureGroupFacetSort);\n if (SolrConstants.FACET_SORT_DB_SEQ.equals(productFeatureGroupFacetSort)) \n {\n comparator.populateSortOrder();\n }\n }\n\n Collection facetValues = (Collection) refinement.getRefinementValues();\n if (UtilValidate.isNotEmpty(facetValues)) \n {\n Collections.sort((List) facetValues, comparator);\n }\n }\n }\n return refinementCollection;\n }", "title": "" }, { "docid": "704333054b06ab16c71c153299147ce2", "score": "0.42941836", "text": "public int compareTo(VClassGroup o2) {\n \tCollator collator = Collator.getInstance();\n if (o2 == null) {\n log.error(\"object NULL in DisplayComparator()\");\n return 0;\n }\n int diff = (this.getDisplayRank() - o2.getDisplayRank());\n if (diff == 0 ) {\n \n //put null public name classgrups at end of list\n if( this.getPublicName() == null ){\n if( o2.getPublicName() == null )\n return 0; //or maybe collator.compare(this.getURI(),o2.getURI()) ???\n else\n return 1;\n }else if ( o2.getPublicName() == null ){\n return -1;\n }else{\n return collator.compare(this.getPublicName(),o2.getPublicName());\n }\n }\n return diff;\n }", "title": "" }, { "docid": "c4a06ff48950f49fd7c1a41bd6c4608e", "score": "0.42923206", "text": "boolean hasHloOrdering();", "title": "" }, { "docid": "66e7bb909cd30f65b4f108b465be4552", "score": "0.42903262", "text": "public Comparison getComparison();", "title": "" }, { "docid": "df101e479fb5875cee9608d932f0e80f", "score": "0.42880788", "text": "String kind();", "title": "" }, { "docid": "94133b8b32d2e18c5bcaa0613474ece5", "score": "0.4285202", "text": "private static Comparator<IState> comparatorUC(){\n\t\treturn new Comparator<IState>(){\n\t\t\tpublic int compare(IState x, IState y){\n\t\t\t\tif(x.getCurrentCost() < y.getCurrentCost())\n\t\t\t\t\treturn -1;\n\t\t\t\telse if (x.getCurrentCost() > y.getCurrentCost())\n\t\t\t\t\treturn 1;\n\t\t\t\telse\n\t\t\t\t\treturn 0;\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "209686b5dcb171095fde739cffc5eef4", "score": "0.4275599", "text": "public int getKindValue() {\n return kind_;\n }", "title": "" }, { "docid": "1c774eca8602684d816353a654dd9801", "score": "0.4274012", "text": "public String sortByPermission() {\n\t\tsortPermissionTask = true;\n\t\tsortIdTask = false;\n\t\tsortNameTask = false;\n\t\tsortStateTask = false;\n\t\tsortEtaTask = false;\n\t\tsortOwnerTask = false;\n\t\tsetLoadFunction(\"$('#MyTab a:first').tab('show')\");\n\t\tif (sortAscending) {\n\n\t\t\t// ascending order\n\t\t\tCollections.sort(task, new Comparator<TaskDef>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(TaskDef o1, TaskDef o2) {\n\n\t\t\t\t\treturn o1.getIfPublic().compareTo(o2.getIfPublic());\n\n\t\t\t\t}\n\n\t\t\t});\n\t\t\tsortAscending = false;\n\n\t\t} else {\n\n\t\t\t// descending order\n\t\t\tCollections.sort(task, new Comparator<TaskDef>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(TaskDef o1, TaskDef o2) {\n\n\t\t\t\t\treturn o2.getIfPublic().compareTo(o1.getIfPublic());\n\n\t\t\t\t}\n\n\t\t\t});\n\t\t\tsortAscending = true;\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8e76babcb48a61c9589631d4443ae14d", "score": "0.4271094", "text": "private FullyQualifiedComparator() {}", "title": "" }, { "docid": "11a827d1af44481d550d82f61f5ae952", "score": "0.42650485", "text": "Type getCompareType(Type t1,Type t2)\n {\n int r1 = t1.getTypeRank();\n int r2 = t2.getTypeRank();\n\n if( r1<0 && (r2&1)==1 ) // 3) pointer CMP integer\n {\n //toHir.warning(\"comparison between pointer and integer\"); //SF050215\n return t1;\n }\n if( (r1&1)==1 && r2<0 ) // 3) integer CMP pointer\n {\n //toHir.warning(\"comparison between integer and pointer\"); //SF050215\n return t2;\n }\n if( r1<0 && r2<0 ) // pointer CMP pointer\n {\n Type ptd1 = ((PointerType)t1).getPointedType();\n Type ptd2 = ((PointerType)t2).getPointedType();\n if( ptd1.getTypeKind()==Type.KIND_VOID ) // 4)\n return t2;\n if( ptd2.getTypeKind()==Type.KIND_VOID ) // 4)\n return t1;\n //SF050215[\n //return sym.pointerType( toHir.compositeType(ptd1,ptd2,false) ); // 2)\n Type ptd = toHir.compositeType(ptd1,ptd2,false);\n if( ptd==null )\n {\n toHir.warning(\"comparison of distinct pointer types lacks a cast\");\n ptd = toHir.symRoot.typeVoid;\n }\n return sym.pointerType(ptd); // 2)\n //SF050215]\n }\n return getUacType(t1,t2); // 1) arithmetic CMP arithmetic\n }", "title": "" }, { "docid": "3f53c90c5818b085c43f9b8968e99d8a", "score": "0.42582908", "text": "protected abstract TC getVisibleLeafColumn(int col);", "title": "" }, { "docid": "9b732964a8e575c424e0945099560292", "score": "0.4251805", "text": "public abstract boolean isSortNeeded();", "title": "" }, { "docid": "76de44f4c5ab1b7d31a1cf5bd6e7710f", "score": "0.42485505", "text": "public Comparator method_23() {\n return this.method_383().method_23();\n }", "title": "" }, { "docid": "45348160f6690aced414186d6b3ef6f9", "score": "0.42409083", "text": "protected Comparator<ITimeGraphEntry> getEntryComparator() {\n return fEntryComparator;\n }", "title": "" }, { "docid": "9527c043445f36176de9e86307740bd8", "score": "0.42348883", "text": "protected int _compare(StructuredType type) {\n\t\tif (!(type instanceof UnionType)) {\n\t\t\tthrow new IllegalArgumentException(\"UnionType._compare: \"\n\t\t\t\t\t+ \"The argument is not a UnionType.\");\n\t\t}\n\n\t\tif (this.equals(type)) {\n\t\t\treturn CPO.SAME;\n\t\t}\n\n\t\tif (_isLessThanOrEqualTo(this, (UnionType) type)) {\n\t\t\treturn CPO.LOWER;\n\t\t}\n\n\t\tif (_isLessThanOrEqualTo((UnionType) type, this)) {\n\t\t\treturn CPO.HIGHER;\n\t\t}\n\n\t\treturn CPO.INCOMPARABLE;\n\t}", "title": "" }, { "docid": "a304f19ad05c571373e0e35ed08977b7", "score": "0.42323297", "text": "public JwComparator<AcNestActionVo> getNestDisplayLabelComparatorNullsLower()\n {\n return NestDisplayLabelComparatorNullsLower;\n }", "title": "" }, { "docid": "ff5cc0d6c3f5660762ef67a65f24c6f6", "score": "0.42239794", "text": "public WOComponent classeDateAsc() {\r\n\t\tgetListener().caller().triSelected = EOIntervention.TRI_ATTRIBUT_DATE;\r\n\t\tgetListener().caller().setOrdreSelected(CktlSort.Ascending);\r\n\t\tgetListener().doFetchDisplayGroup();\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6ce772e1b3394810bb4e669e87ce057b", "score": "0.42222914", "text": "@Override\n\t\tpublic int compare(Capability c1, Capability c2) {\n\t\t\tboolean resolved1 = previouslyResolved.contains(c1.getResource());\n\t\t\tboolean resolved2 = previouslyResolved.contains(c2.getResource());\n\t\t\tif (resolved1 != resolved2)\n\t\t\t\treturn resolved1 ? -1 : 1;\n\n\t\t\tVersion v1 = getVersion(c1);\n\t\t\tVersion v2 = getVersion(c2);\n\t\t\tint versionCompare = -(v1.compareTo(v2));\n\t\t\tif (versionCompare != 0)\n\t\t\t\treturn versionCompare;\n\n\t\t\tModuleRevision m1 = getModuleRevision(c1);\n\t\t\tModuleRevision m2 = getModuleRevision(c2);\n\t\t\tLong id1 = m1.getRevisions().getModule().getId();\n\t\t\tLong id2 = m2.getRevisions().getModule().getId();\n\n\t\t\tif (id1.equals(id2) && !m1.equals(m2)) {\n\t\t\t\t// sort based on revision ordering\n\t\t\t\tList<ModuleRevision> revisions = m1.getRevisions().getModuleRevisions();\n\t\t\t\tint index1 = revisions.indexOf(m1);\n\t\t\t\tint index2 = revisions.indexOf(m2);\n\t\t\t\t// we want to sort the indexes from highest to lowest\n\t\t\t\treturn index2 - index1;\n\t\t\t}\n\t\t\treturn id1.compareTo(id2);\n\t\t}", "title": "" }, { "docid": "9ff2635a7610ea48c447b4014134ca35", "score": "0.42197287", "text": "public int compare( Value v ) {\n return compare( v, true );\n }", "title": "" }, { "docid": "90da133d486f400421a9d4786b731e42", "score": "0.42177176", "text": "com.conferma.cpapi.LocationResultsOrder.Enum getOrderBy();", "title": "" }, { "docid": "59d0dbae77f30ded1c945e7ca546eb01", "score": "0.4216593", "text": "public List<Primitive> getAllPrimitivesSorted() {\n // std::vector<Primitive*>\n\n List<Primitive> orderedPrimitives = new ArrayList<Primitive>();\n\n int size = primitives.size();\n\n Primitive[] primitiveArray = new Primitive[size];\n\n // Copy pointers to a temporary array\n for (int i = 0; i < size; i++) {\n primitiveArray[i] = primitives.get(i);\n }\n\n while (orderedPrimitives.size() != primitives.size()) {\n double xPointer = Double.MAX_VALUE;//std::numeric_limits<double>::max();\n int indexPointer = Integer.MIN_VALUE;//std::numeric_limits<int>::min();\n\n for (int j = 0; j < size; j++) {\n if (primitiveArray[j] != null) {\n if (primitiveArray[j].getXmin() <= xPointer) {\n xPointer = primitiveArray[j].getXmin();\n indexPointer = j;\n }\n }\n }\n orderedPrimitives.add(primitives.get(indexPointer)); // TODO check if it equals push_back();\n primitiveArray[indexPointer] = null;\n }\n return orderedPrimitives;\n }", "title": "" }, { "docid": "020cbbbdf83f1be51be89576dc5031a1", "score": "0.42086798", "text": "String getKind();", "title": "" }, { "docid": "e903af5f343f2c028b46a9704b913911", "score": "0.4205641", "text": "private int typeSpecificCompare(String typeName, Object v1, Object v2)\n {\n int ret;\n switch (typeName) {\n case \"boolean\":\n ret = ((Boolean) v1).compareTo((Boolean) v2);\n break;\n case \"byte\":\n ret = ((Byte) v1).compareTo((Byte) v2);\n break;\n case \"char\":\n ret = ((Character) v1).compareTo((Character) v2);\n break;\n case \"short\":\n ret = ((Short) v1).compareTo((Short) v2);\n break;\n case \"integer\":\n ret = ((Integer) v1).compareTo((Integer) v2);\n break;\n case \"long\":\n ret = ((Long) v1).compareTo((Long) v2);\n break;\n case \"float\":\n ret = ((Float) v1).compareTo((Float) v2);\n break;\n case \"double\":\n ret = ((Double) v1).compareTo((Double) v2);\n break;\n case \"biginteger\":\n ret = ((BigInteger) v1).compareTo((BigInteger) v2);\n break;\n case \"bigdecimal\":\n ret = ((BigDecimal) v1).compareTo((BigDecimal) v2);\n break;\n case \"string\":\n ret = ((String) v1).compareTo((String) v2);\n break;\n case \"date\":\n ret = ((Date) v1).compareTo((Date) v2);\n break;\n default:\n LOG.debug(\"Property type not catered for in compare function\");\n ret = 0;\n }\n return ret;\n\n }", "title": "" }, { "docid": "c2b112216b2f527f68b0d155d63ff01e", "score": "0.4205386", "text": "public JwComparator<AcNestActionVo> getLastResultTypeLabelComparatorNullsLower()\n {\n return LastResultTypeLabelComparatorNullsLower;\n }", "title": "" }, { "docid": "84e59c03535859a939633566d6976b51", "score": "0.419238", "text": "private void OnItemsGroupDescriptionsChanged(Object sender, NotifyCollectionChangedEventArgs e)\r\n { \r\n if (!_sortingStarted) \r\n {\r\n return; \r\n }\r\n\r\n switch (e.Action)\r\n { \r\n case NotifyCollectionChangedAction.Add:\r\n Debug.Assert(e.NewItems.Count == 1, \"GroupDescriptionCollection should handle one element at a time\"); \r\n if (CanConvertToSortDescription(e.NewItems[0] as PropertyGroupDescription)) \r\n {\r\n RegenerateGroupingSortDescriptions(); \r\n }\r\n\r\n break;\r\n case NotifyCollectionChangedAction.Remove: \r\n Debug.Assert(e.OldItems.Count == 1, \"GroupDescriptionCollection should handle one element at a time\");\r\n if (CanConvertToSortDescription(e.OldItems[0] as PropertyGroupDescription)) \r\n { \r\n RegenerateGroupingSortDescriptions();\r\n } \r\n\r\n break;\r\n case NotifyCollectionChangedAction.Move:\r\n // Do Nothing \r\n break;\r\n case NotifyCollectionChangedAction.Replace: \r\n Debug.Assert(e.OldItems.Count == 1 && e.NewItems.Count == 1, \"GroupDescriptionCollection should handle one element at a time\"); \r\n if (CanConvertToSortDescription(e.OldItems[0] as PropertyGroupDescription) ||\r\n CanConvertToSortDescription(e.NewItems[0] as PropertyGroupDescription)) \r\n {\r\n RegenerateGroupingSortDescriptions();\r\n }\r\n\r\n break;\r\n case NotifyCollectionChangedAction.Reset: \r\n RemoveGroupingSortDescriptions(); \r\n break;\r\n } \r\n }", "title": "" }, { "docid": "549abd040cdfe79002849b10e522c9be", "score": "0.41853574", "text": "@Override\r\n\t\t\t\t\tpublic int compare(Entry<Integer, Double> o1,\r\n\t\t\t\t\t\t\tEntry<Integer, Double> o2) {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn o2.getValue().compareTo(o1.getValue());\r\n\t\t\t\t\t}", "title": "" }, { "docid": "d60abca2ff8c99da8bd4abfd8f9f29b0", "score": "0.41839898", "text": "@FXML\n\tprivate void sortByOccurences(ActionEvent event) {\n\t\tif (lastSort == SortType.Occurences) {\n\t\t\t//reverse sort\n\t\t\twordCountPairs.sort((Pair<String, Integer> a, Pair<String, Integer> b) -> {\n\t\t\t\treturn a.getValue().compareTo(b.getValue());\n\t\t\t});\n\t\t\tlastSort = null;\n\t\t} else {\n\t\t\t//sort\n\t\t\twordCountPairs.sort((Pair<String, Integer> a, Pair<String, Integer> b) -> {\n\t\t\t\treturn b.getValue().compareTo(a.getValue());\n\t\t\t});\n\t\t\tlastSort = SortType.Occurences;\n\n\t\t}\n\t\tsetGUIList();\n\t}", "title": "" }, { "docid": "477b8454179645e44ed202b5d4cd6235", "score": "0.41751748", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp\", line = 206,\n FQN=\"getVisibilityOf\", NM=\"_ZL15getVisibilityOfPKN5clang9NamedDeclENS0_22ExplicitVisibilityKindE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp -nm=_ZL15getVisibilityOfPKN5clang9NamedDeclENS0_22ExplicitVisibilityKindE\")\n//</editor-fold>\npublic static Optional<Visibility> getVisibilityOf(/*const*/ NamedDecl /*P*/ D, \n NamedDecl.ExplicitVisibilityKind kind) {\n // If we're ultimately computing the visibility of a type, look for\n // a 'type_visibility' attribute before looking for 'visibility'.\n if (kind == NamedDecl.ExplicitVisibilityKind.VisibilityForType) {\n {\n /*const*/ TypeVisibilityAttr /*P*/ A = D.getAttr(TypeVisibilityAttr.class);\n if ((A != null)) {\n return new Optional<Visibility>(JD$T$RR.INSTANCE, getVisibilityFromAttr(A));\n }\n }\n }\n {\n \n // If this declaration has an explicit visibility attribute, use it.\n /*const*/ VisibilityAttr /*P*/ A = D.getAttr(VisibilityAttr.class);\n if ((A != null)) {\n return new Optional<Visibility>(JD$T$RR.INSTANCE, getVisibilityFromAttr(A));\n }\n }\n \n // If we're on Mac OS X, an 'availability' for Mac OS X attribute\n // implies visibility(default).\n if (D.getASTContext().getTargetInfo().getTriple().isOSDarwin()) {\n for (/*const*/ AvailabilityAttr /*P*/ A : D.specific_attrs(AvailabilityAttr.class)) {\n if (A.getPlatform().getName().equals(/*STRINGREF_STR*/\"macos\")) {\n return new Optional<Visibility>(JD$T$RR.INSTANCE, Visibility.DefaultVisibility);\n }\n }\n }\n \n return new Optional<Visibility>(None);\n}", "title": "" }, { "docid": "2391c236c21f7fc9f704b64312986676", "score": "0.41732177", "text": "public WOComponent classeServiceAsc() {\r\n\t\tgetListener().caller().triSelected = EOIntervention.TRI_ATTRIBUT_SERVICE;\r\n\t\tgetListener().caller().setOrdreSelected(CktlSort.Ascending);\r\n\t\tgetListener().doFetchDisplayGroup();\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f8552a59034e76112fc907376e972b1a", "score": "0.4169911", "text": "private void changeToolbarSortTV() {\n String sortMethod = getSortOrderFromSharedPrefs();\n if (sortMethod.equals(getString(R.string.setting_order_by_rating_value))) {\n mMenu.findItem(R.string.setting_order_by_rating_key).setVisible(false); // if we're sorting by popularity\n mMenu.findItem(R.string.setting_order_by_popularity_key).setVisible(true); // give the alternate option to sort by rating.\n } else {\n mMenu.findItem(R.string.setting_order_by_popularity_key).setVisible(false); // and if we're sorting by rating\n mMenu.findItem(R.string.setting_order_by_rating_key).setVisible(true); // give the option to sort by popularity\n }\n }", "title": "" }, { "docid": "1519adea6b9492122b6e79079940a4b2", "score": "0.41621232", "text": "Kind get(Integer id);", "title": "" }, { "docid": "f98f1ae42984030be2220d0925d2578d", "score": "0.41407177", "text": "java.lang.String getComparator();", "title": "" }, { "docid": "f98f1ae42984030be2220d0925d2578d", "score": "0.41407177", "text": "java.lang.String getComparator();", "title": "" }, { "docid": "e2a07d6a7f1232e7812e8255b4bc0439", "score": "0.41376722", "text": "public void sort(int type);", "title": "" }, { "docid": "348dfda42fda2e5768ad614f05dd69c7", "score": "0.41299498", "text": "public interface RasterSummaryCollator<TResult> {\n /**\n * Add a single pixel value to the raster summary. Will be called once for each non-NODATA pixel in the raster.\n * @param value The pixel value.\n * @throws IOException Thrown if the operation fails.\n */\n void addValue(double value) throws IOException;\n\n /**\n * Returns the result of the summary operation. Will be called after all calls to addValue.\n * @return The summary result.\n * @throws IOException Thrown if the operation fails.\n */\n TResult getSummary() throws IOException;\n}", "title": "" }, { "docid": "cc07901a1e650999929feb401ee5d341", "score": "0.4125979", "text": "public synchronized Vector getAllOptionsSortedByRank(String a_lang)\n\t{\n\t\tthis.setSortingLanguage(a_lang);\n\t\t//Collections.sort(sortedOptions,this); //Java 1.2 only, unfortunately\n\t\tsortVector();\n\t\tVector sortedOptions = (Vector) m_paymentOptions.clone(); //so the member Vector remains unchanged the Getter\n\t\treturn sortedOptions;\n\t}", "title": "" }, { "docid": "3cef49eaf744aebd437596bbc126d34e", "score": "0.4120719", "text": "public interface C14363j<T> extends Comparable<T> {\n C14349f getPriority();\n}", "title": "" }, { "docid": "131f853eae4bed228f04c0e4c189daff", "score": "0.41199037", "text": "@Override\r\n public void otherColumnDescriptorSorted() {\n }", "title": "" }, { "docid": "475f14dd35e8eacf07dd4eb3c009146d", "score": "0.41181934", "text": "private Comparator<Object> getClassAndIdPlanningComparator(DefaultConstraintJustification other) {\n if (classAndIdPlanningComparator != null) {\n return classAndIdPlanningComparator;\n } else if (other.classAndIdPlanningComparator != null) {\n return other.classAndIdPlanningComparator;\n } else {\n /*\n * FIXME Using reflection will break Quarkus once we don't open up classes for reflection any more.\n * Use cases which need to operate safely within Quarkus should use SolutionDescriptor's MemberAccessorFactory.\n */\n classAndIdPlanningComparator =\n new ClassAndPlanningIdComparator(new MemberAccessorFactory(), DomainAccessType.REFLECTION, false);\n other.classAndIdPlanningComparator = classAndIdPlanningComparator;\n return classAndIdPlanningComparator;\n }\n }", "title": "" }, { "docid": "ecf9ba648113a0d6c1e7482f3b794ed6", "score": "0.41131893", "text": "private String betterValue(List<TestResult> results) {\n results.sort(Comparator.comparing(TestResult::getValue).reversed());\n if (results.get(0).getValue() == results.get(1).getValue()) {\n return \"none\";\n } else {\n return results.get(0).getName();\n }\n }", "title": "" }, { "docid": "6272ed34addd9c54b47b23cef7d8dead", "score": "0.41119054", "text": "public ConstructorCall kind(Kind kind) {\n\tConstructorCall_c n = (ConstructorCall_c) copy();\n\tn.kind = kind;\n\treturn n;\n }", "title": "" }, { "docid": "1dd0f0bb17d5cc713622ad2d89b043db", "score": "0.4109823", "text": "public String sortByOwner() {\n\t\tsortIdTask = false;\n\t\tsortNameTask = false;\n\t\tsortStateTask = false;\n\t\tsortEtaTask = false;\n\t\tsortPermissionTask = false;\n\n\t\tsortOwnerTask = true;\n\t\tsetLoadFunction(\"$('#MyTab a:first').tab('show')\");\n\t\tif (sortAscending) {\n\n\t\t\t// ascending order\n\t\t\tCollections.sort(task, new Comparator<TaskDef>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(TaskDef o1, TaskDef o2) {\n\n\t\t\t\t\treturn o1.getOwner().compareTo(o2.getOwner());\n\n\t\t\t\t}\n\n\t\t\t});\n\t\t\tsortAscending = false;\n\n\t\t} else {\n\n\t\t\t// descending order\n\t\t\tCollections.sort(task, new Comparator<TaskDef>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(TaskDef o1, TaskDef o2) {\n\n\t\t\t\t\treturn o2.getOwner().compareTo(o1.getOwner());\n\n\t\t\t\t}\n\n\t\t\t});\n\t\t\tsortAscending = true;\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e70dfbafb28b9c2f453a2108b7d4c522", "score": "0.410398", "text": "public abstract void onSortChanged();", "title": "" }, { "docid": "23c27ea69d008bdffb30f77029888075", "score": "0.4103258", "text": "Comparable getMetadata(String key);", "title": "" }, { "docid": "884fd0141041a0127bca9a16ab469f5f", "score": "0.41012028", "text": "@Test\n public void testCreatedTemplateIsComparable() {\n BuiltinTemplateStore builtinStore = new BuiltinTemplateStore(typeLocator);\n builtinStore.setTemplateLocator(new TemplateLocator(new IStore[] { builtinStore }));\n types.put(\"String\", new JavaTypeDescriptor(\"String\", \"String\", null));\n\n Map<String, Object> criteria = new MiniMap(1);\n criteria.put(\"type\", types.get(\"a\"));\n\n Iterator<IClusterConfig> clusters = builtinStore.find(criteria);\n assertTrue(clusters.hasNext());\n\n IClusterConfig cluster = clusters.next();\n assertTrue(cluster.getReferences().contains(\"model.compareTo\"));\n }", "title": "" }, { "docid": "d0f8ebfa059ec512061a2def935477ca", "score": "0.4097201", "text": "io.dstore.values.BooleanValueOrBuilder getAscendingSortOrderOrBuilder();", "title": "" }, { "docid": "ab1488153ea40e8d47b856df45f78488", "score": "0.4093685", "text": "io.dstore.values.IntegerValueOrBuilder getSortConditionIdOrBuilder();", "title": "" }, { "docid": "926e67e4b3fb74c18a63cc59152d6010", "score": "0.4090725", "text": "Kind getKind();", "title": "" }, { "docid": "db5fc1cac2c3e6a21f1d65c86105c075", "score": "0.40882066", "text": "public Comparison present() {\n return new Comparison(value + \" pr \");\n }", "title": "" }, { "docid": "eefe7abb40927e149297041842555b6a", "score": "0.40848047", "text": "private void AddGroupingSortDescriptions() \r\n { \r\n boolean originalIgnoreSortDescriptionChanges = _ignoreSortDescriptionsChange;\r\n _ignoreSortDescriptionsChange = true; \r\n try\r\n {\r\n int insertIndex = 0;\r\n for/*each*/ (GroupDescription groupDescription : Items.GroupDescriptions) \r\n {\r\n PropertyGroupDescription propertyGroupDescription = groupDescription as PropertyGroupDescription; \r\n if (CanConvertToSortDescription(propertyGroupDescription)) \r\n {\r\n SortDescription sortDescription = new SortDescription(propertyGroupDescription.PropertyName, ListSortDirection.Ascending); \r\n Items.SortDescriptions.Insert(insertIndex, sortDescription);\r\n if (GroupingSortDescriptionIndices == null)\r\n {\r\n GroupingSortDescriptionIndices = new List<int>(); \r\n }\r\n\r\n GroupingSortDescriptionIndices.Add(insertIndex++); \r\n }\r\n } \r\n }\r\n finally\r\n {\r\n _ignoreSortDescriptionsChange = originalIgnoreSortDescriptionChanges; \r\n }\r\n }", "title": "" }, { "docid": "c7f8bb265a6531ae1b1722d0129e471a", "score": "0.40828133", "text": "protected int compare(Entry<K,V> a, Entry<K,V> b){\n return comp.compare(a.getKey(), b.getKey());\n }", "title": "" }, { "docid": "7c4bfaa8bbba07c4d38dbd21867074ee", "score": "0.40792263", "text": "boolean hasSortNo();", "title": "" }, { "docid": "0fa2d0123796ab1af8b3fd63e775ae10", "score": "0.40779403", "text": "public java.util.Collection<kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor> getContributedDescriptors(kotlin.reflect.jvm.internal.impl.resolve.scopes.DescriptorKindFilter r5, kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.name.Name, java.lang.Boolean> r6) {\n /*\n r4 = this;\n java.lang.String r0 = \"kindFilter\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r5, r0)\n java.lang.String r0 = \"nameFilter\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r6, r0)\n kotlin.reflect.jvm.internal.impl.resolve.scopes.DescriptorKindFilter$Companion r0 = kotlin.reflect.jvm.internal.impl.resolve.scopes.DescriptorKindFilter.Companion\n int r0 = r0.getCLASSIFIERS_MASK()\n kotlin.reflect.jvm.internal.impl.resolve.scopes.DescriptorKindFilter$Companion r1 = kotlin.reflect.jvm.internal.impl.resolve.scopes.DescriptorKindFilter.Companion\n int r1 = r1.getNON_SINGLETON_CLASSIFIERS_MASK()\n r0 = r0 | r1\n boolean r5 = r5.acceptsKinds(r0)\n if (r5 != 0) goto L_0x0024\n java.util.List r5 = kotlin.collections.CollectionsKt.emptyList()\n java.util.Collection r5 = (java.util.Collection) r5\n goto L_0x006f\n L_0x0024:\n kotlin.reflect.jvm.internal.impl.storage.NotNullLazyValue r5 = r4.getAllDescriptors()\n java.lang.Object r5 = r5.invoke()\n java.lang.Iterable r5 = (java.lang.Iterable) r5\n java.util.ArrayList r0 = new java.util.ArrayList\n r0.<init>()\n java.util.Collection r0 = (java.util.Collection) r0\n java.util.Iterator r5 = r5.iterator()\n L_0x0039:\n boolean r1 = r5.hasNext()\n if (r1 == 0) goto L_0x006a\n java.lang.Object r1 = r5.next()\n r2 = r1\n kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r2 = (kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor) r2\n boolean r3 = r2 instanceof kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor\n if (r3 == 0) goto L_0x0063\n kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor r2 = (kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor) r2\n kotlin.reflect.jvm.internal.impl.name.Name r2 = r2.getName()\n java.lang.String r3 = \"it.name\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r3)\n java.lang.Object r2 = r6.invoke(r2)\n java.lang.Boolean r2 = (java.lang.Boolean) r2\n boolean r2 = r2.booleanValue()\n if (r2 == 0) goto L_0x0063\n r2 = 1\n goto L_0x0064\n L_0x0063:\n r2 = 0\n L_0x0064:\n if (r2 == 0) goto L_0x0039\n r0.add(r1)\n goto L_0x0039\n L_0x006a:\n java.util.List r0 = (java.util.List) r0\n r5 = r0\n java.util.Collection r5 = (java.util.Collection) r5\n L_0x006f:\n return r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaPackageScope.getContributedDescriptors(kotlin.reflect.jvm.internal.impl.resolve.scopes.DescriptorKindFilter, kotlin.jvm.functions.Function1):java.util.Collection\");\n }", "title": "" }, { "docid": "4a3d14fd0747f41a040e6184ba197d48", "score": "0.407506", "text": "private DBSort.SortBuilder determineSort() {\n\n if (this.searchWithin == SearchWithin.contactName) return DBSort.asc(\"lastName\");\n if (this.searchWithin == SearchWithin.postcode) return DBSort.asc(\"addresses.postcode\");\n\n return DBSort.asc(\"companyName\");\n }", "title": "" }, { "docid": "8fc74516046f15ac64e2ebd7ecd03b9a", "score": "0.40670714", "text": "public void sortNormDescending();", "title": "" }, { "docid": "d63fa82523a02fab32e596bb27c536d1", "score": "0.40636873", "text": "public static void sortListByImportance(ObservableList<Task> list) { //Sorts a list by importance\n Comparator<Task> comparator = Comparator.comparingInt(Task::getImportance);\n FXCollections.sort(list, comparator);\n }", "title": "" } ]
c81c02f69a22c7b48bf34f3ba9652b3b
coversPublication method of TopKWSubscription subscriptions should not be used, except in the mobile broker, to check coverage of a new publication with received subscriptions
[ { "docid": "cc43385158bf31a8daa2f706314dc9bf", "score": "0.681667", "text": "@Override\r\n\tpublic abstract boolean coversPublication(Publication pub);", "title": "" } ]
[ { "docid": "b922cb136e1f50c2039137572b50ab3d", "score": "0.67634803", "text": "@Test\n public void testNeverAnySubscibers() {\n ServiceLocator locator = Utilities.getLocatorWithTopics();\n \n ServiceLocatorUtilities.addClasses(locator, ZeroPublisher.class);\n \n ZeroPublisher publisher = locator.getService(ZeroPublisher.class);\n \n publisher.publish();\n \n }", "title": "" }, { "docid": "fc695a719a2af08119cff44682f1b473", "score": "0.6173689", "text": "@Override\n \tpublic boolean isSubscribed() throws CloudException, InternalException {\n \t\treturn true;\n \t}", "title": "" }, { "docid": "6aae3610fe8dda8af042be6302ab4e6e", "score": "0.5825142", "text": "@Test\n public void TC9d_SubscribeThruReader() throws Throwable\n {\n \thomePageObject.clickReadVijayavani();\n \teditionsReadPaperPageObject.clickRead();\n \treaderPaperPageObject.clickSubscribe();\n \tcartPageObject.proceedCart();\n \tmyPaperPageObject.verifySubscribedPaperVijayavani();\t\t\t\t\t\t\t\t\t\t\t/*verifying Subscribed paper from My Papers*/\n \tThread.sleep(6000);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/* Thread Sleep needed because Toast message is overlapping on Logout button till 6sec */\n }", "title": "" }, { "docid": "6655769c8416b5c4a2840031d8de7b1c", "score": "0.5666731", "text": "@Test\n public void publishNoPublishToInactiveSession() {\n m_sessionStore.createNewSession(\"Subscriber\", false);\n\n SubscriptionsDirectory mockedSubscriptions = mock(SubscriptionsDirectory.class);\n Subscription inactiveSub = new Subscription(\"Subscriber\", new Topic(\"/topic\"), MqttQoS.AT_LEAST_ONCE);\n List<Subscription> inactiveSubscriptions = Collections.singletonList(inactiveSub);\n when(mockedSubscriptions.matches(eq(new Topic(\"/topic\")))).thenReturn(inactiveSubscriptions);\n m_processor = new ProtocolProcessor();\n m_processor.init(mockedSubscriptions, m_messagesStore, m_sessionStore, null, true, new PermitAllAuthorizator(),\n NO_OBSERVERS_INTERCEPTOR);\n\n // Exercise\n MqttPublishMessage msg = MqttMessageBuilders.publish().topicName(\"/topic\").qos(MqttQoS.AT_MOST_ONCE)\n .payload(Unpooled.copiedBuffer(\"Hello\".getBytes())).retained(true).build();\n\n NettyUtils.clientID(m_channel, \"Publisher\");\n m_processor.processPublish(m_channel, msg);\n\n // Verify no message is received\n assertNull(m_channel.readOutbound());\n }", "title": "" }, { "docid": "f1e7fa410ae8a653de9e1b04212c5d92", "score": "0.56619406", "text": "@Test\n public void testPublishOfRetainedMessage_afterNewSubscription() throws Exception {\n final Subscription subscription =\n new Subscription(FAKE_PUBLISHER_ID, new Topic(FAKE_TOPIC), MqttQoS.AT_MOST_ONCE);\n\n // subscriptions.matches(topic) redefine the method to return true\n SubscriptionsDirectory subs = new SubscriptionsDirectory() {\n\n @Override\n public List<Subscription> matches(Topic topic) {\n if (topic.toString().equals(FAKE_TOPIC)) {\n return Collections.singletonList(subscription);\n } else {\n throw new IllegalArgumentException(\"Expected \" + FAKE_TOPIC + \" buf found \" + topic);\n }\n }\n };\n MemoryStorageService storageService = new MemoryStorageService();\n subs.init(storageService.sessionsStore());\n\n // simulate a connect that register a clientID to an IoSession\n m_processor.init(subs, m_messagesStore, m_sessionStore, null, true, new PermitAllAuthorizator(),\n NO_OBSERVERS_INTERCEPTOR);\n MqttConnectMessage connectMessage = MqttMessageBuilders.connect().clientId(FAKE_PUBLISHER_ID)\n .protocolVersion(MqttVersion.MQTT_3_1).cleanSession(true).build();\n\n m_processor.processConnect(m_channel, connectMessage);\n assertConnAckAccepted(m_channel);\n MqttPublishMessage pubmsg = MqttMessageBuilders.publish().topicName(FAKE_TOPIC).qos(MqttQoS.AT_MOST_ONCE)\n .payload(Unpooled.copiedBuffer(\"Hello\".getBytes())).retained(true).build();\n\n NettyUtils.clientID(m_channel, FAKE_PUBLISHER_ID);\n m_processor.processPublish(m_channel, pubmsg);\n NettyUtils.cleanSession(m_channel, false);\n\n // Exercise\n MqttSubscribeMessage msg = MqttMessageBuilders.subscribe().messageId(10).addSubscription(MqttQoS.AT_MOST_ONCE, \"#\")\n .build();\n m_processor.processSubscribe(m_channel, msg);\n\n // Verify\n // wait the latch\n Object pubMessage = m_channel.readOutbound();\n assertNotNull(pubMessage);\n assertTrue(pubMessage instanceof MqttPublishMessage);\n assertEquals(FAKE_TOPIC, ((MqttPublishMessage) pubMessage).variableHeader().topicName());\n }", "title": "" }, { "docid": "301368a5bb57deb6d87e24f4cf4e606c", "score": "0.5624577", "text": "public boolean isSubscribed() throws CloudException, InternalException;", "title": "" }, { "docid": "3e868de26172171e988a7ab17aa05161", "score": "0.5607512", "text": "@Test\n public void testCleanRetainedStoreAfterAQoS0AndRetainedTrue() {\n // force a connect\n connMsg = MqttMessageBuilders.connect().protocolVersion(MqttVersion.MQTT_3_1).clientId(\"Publisher\")\n .cleanSession(true).build();\n m_processor.processConnect(m_channel, connMsg);\n // prepare and existing retained store\n NettyUtils.clientID(m_channel, \"Publisher\");\n MqttPublishMessage msg = MqttMessageBuilders.publish().topicName(FAKE_TOPIC).qos(MqttQoS.AT_LEAST_ONCE)\n .payload(Unpooled.copiedBuffer(\"Hello\".getBytes())).retained(true).messageId(100).build();\n m_processor.processPublish(m_channel, msg);\n\n Collection<IMessagesStore.StoredMessage> messages = m_messagesStore.searchMatching(new IMatchingCondition() {\n\n public boolean match(Topic key) {\n return key.match(new Topic(FAKE_TOPIC));\n }\n });\n assertFalse(messages.isEmpty());\n\n // Exercise\n MqttPublishMessage cleanPubMsg = MqttMessageBuilders.publish().topicName(FAKE_TOPIC).qos(MqttQoS.AT_MOST_ONCE)\n .payload(Unpooled.copiedBuffer(\"Hello\".getBytes())).retained(true).build();\n\n m_processor.processPublish(m_channel, cleanPubMsg);\n\n // Verify\n messages = m_messagesStore.searchMatching(new IMatchingCondition() {\n\n public boolean match(Topic key) {\n return key.match(new Topic(FAKE_TOPIC));\n }\n });\n assertTrue(messages.isEmpty());\n }", "title": "" }, { "docid": "402ef99eaabe2fa20713a7810cb7c96a", "score": "0.55115074", "text": "public void publish(Publication publication) {\r\n synchronized (subscriptionListMutex) {\r\n for (Subscription subscritpion : brokerSubs) {\r\n if (!subscritpion.isValid()) {\r\n brokerSubs.remove(subscritpion);\r\n continue;\r\n }\r\n if (subscritpion.coversPublication(publication)) {\r\n if (connected) {\r\n Message sendMsg = new PublishMessage(publication, false);\r\n this.sendMessage(sendMsg);\r\n log.writeToLog(\"Publication \" + publication + \" sent to broker.\");\r\n //TODO no confirmation is waited for here...\r\n activePubs.add(publication);\r\n allPubs.add(publication);\r\n } else {\r\n outboxPubs.add(publication);\r\n allPubs.add(publication);\r\n log.writeToLog(\"Publication \" + publication + \" put in outbox because not connected to broker.\");\r\n }\r\n return;\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "24f8d95fc62f5032e08d9cc074b5778f", "score": "0.5509619", "text": "@Test\n\tpublic void testCanGetItemsFromSubscribedPrivateChannel() throws Exception {\n\t\tString node = createNode();\n\t\tTestPacket makeNodePrivate = getPacket(\"resources/channel/node/configure/success.request\");\n\t\tmakeNodePrivate.setVariable(\"$AFFILIATION\", \"member\");\n\t\tmakeNodePrivate.setVariable(\"$ACCESS_MODEL\", \"authorize\");\n\t\tmakeNodePrivate.setVariable(\"$NODE\", node);\n\t\tsendPacket(makeNodePrivate);\n\t\t\n\t\tTestPacket postItem = getPacket(\"resources/channel/node/item-post/create.request\");\n\t\tpostItem.setVariable(\"$NODE\", node);\n\t\tPacket postItemReply = sendPacket(postItem);\n\t\tString itemId = getValue(postItemReply, \"/iq/pubsub/publish/item/@id\");\n\t\t\n\t\t// Subscribe to the node and retrieve posts\n\t\tTestPacket subscribeToNode = getPacket(\"resources/channel/node/subscribe/success.request\", 2);\n\t\tsubscribeToNode.setVariable(\"$NODE\", node);\n\t\tsendPacket(subscribeToNode, 2);\n\t\t\n\t\t// Approve subscription\n\t\tTestPacket approveSubscription = getPacket(\"resources/channel/node/subscribe/approve-request.request\");\n\t\tapproveSubscription.setVariable(\"$NODE\", node);\n\t\tapproveSubscription.setVariable(\"$SUBSCRIBING_JID\", \"\\\\$USER2_JID\");\n\t\tvariableReplacement(approveSubscription, 1, null);\n sendPacket(approveSubscription);\n\t\t\n\t\tTestPacket packet = getPacket(\"resources/channel/node/item-retrieval/success.request\");\n\t\tpacket.setVariable(\"$NODE\", node);\n\t\tPacket reply = sendPacket(packet, 2);\n\t\t\n\t\tAssert.assertEquals(\"result\", getValue(reply, \"/iq/@type\"));\n\t\tAssert.assertEquals(itemId, getValue(reply, \"/iq/pubsub/items/item/@id\"));\n\t}", "title": "" }, { "docid": "03ba1f918a08972f8538c79ffe878ea2", "score": "0.5449251", "text": "@Test\n public void TC9a_SubscribePaperHome() throws Throwable\n {\n \thomePageObject.clickSubscribeKannadaPrabha();\n \teditionsSubscribePaperPageObject.clickAdd();\n \tcartPageObject.proceedCart();\n \tmyPaperPageObject.verifySubscribedPaperKannadaPrabha();\t\t\t\t\t\t\t\t\t\t\t/*verifying Subscribed paper from My Papers*/\n \tThread.sleep(6000);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/* Thread Sleep needed because Toast msg is overlapping on Logout button till 6sec */\n }", "title": "" }, { "docid": "3fca2553ea2d2b03b95c8b1eb0053488", "score": "0.5407401", "text": "public boolean handlesSubscriptions()\r\n {\r\n return true;\r\n }", "title": "" }, { "docid": "db0de9490ac40293b78404c8a9d57ae8", "score": "0.53885967", "text": "@Test\n public void testNotSubscribed()\n {\n BackingMapContext mockCtx = createMockContext();\n StorageDispatcher dispatcher = new StorageDispatcher(mockCtx);\n\n assertFalse(dispatcher.isSubscribed(EntryEvent.Type.INSERTED));\n assertFalse(dispatcher.isSubscribed(EntryEvent.Type.INSERTING));\n assertFalse(dispatcher.isSubscribed(EntryEvent.Type.UPDATED));\n assertFalse(dispatcher.isSubscribed(EntryEvent.Type.UPDATING));\n assertFalse(dispatcher.isSubscribed(EntryEvent.Type.REMOVED));\n assertFalse(dispatcher.isSubscribed(EntryEvent.Type.REMOVING));\n assertFalse(dispatcher.isSubscribed(EntryProcessorEvent.Type.EXECUTING));\n assertFalse(dispatcher.isSubscribed(EntryProcessorEvent.Type.EXECUTED));\n assertFalse(dispatcher.isSubscribed(CacheLifecycleEvent.Type.CREATED));\n assertFalse(dispatcher.isSubscribed(CacheLifecycleEvent.Type.TRUNCATED));\n assertFalse(dispatcher.isSubscribed(CacheLifecycleEvent.Type.DESTROYED));\n }", "title": "" }, { "docid": "efe78d4c1c4859ad1e2035d0880b0b41", "score": "0.53663087", "text": "private boolean validateConsumerSubscription(ConsumerSubscription consumerSubscription) {\n if (consumerSubscription == null) {\n throw new ProductException(\"User is not subscribed for this type of subscription and product\");\n }\n return true;\n }", "title": "" }, { "docid": "2714b01c7dfed41919a4dbf5cd3484b9", "score": "0.53644305", "text": "@Test\n public void TC9c_SubscribeRecommendation() throws Throwable\n {\n \thomePageObject.clickMySubscription();\n \tmyPaperPageObject.clickRecomendationSubscribeButton();\n \tcartPageObject.proceedCart();\n \tThread.sleep(6000);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/* Thread Sleep needed because Toast message is overlapping on Logout button till 6sec */\n }", "title": "" }, { "docid": "0a7eb194b723734c96b9b1ad26836ba3", "score": "0.5345838", "text": "@Override\n public boolean hasPrescription(Prescription prescription) {\n return false;\n }", "title": "" }, { "docid": "75d18f007319bd946224b21156c1d777", "score": "0.5330031", "text": "@Test\n public void testPerLookupDestroyedAfterPassedToSubscriptionMethod() {\n ServiceLocator locator = Utilities.getLocatorWithTopics();\n \n ServiceLocatorUtilities.addClasses(locator, FooPublisher.class,\n PerLookupService.class,\n ServiceWithPerLookupSubscription.class);\n \n ServiceWithPerLookupSubscription subscriber = locator.getService(ServiceWithPerLookupSubscription.class);\n FooPublisher publisher = locator.getService(FooPublisher.class);\n \n publisher.publishBar(10);\n \n Assert.assertTrue(subscriber.isSubscriptionServiceDead());\n }", "title": "" }, { "docid": "99f4425ed42b422838d3f633610a283d", "score": "0.5295387", "text": "protected void noSubscribers() {\n // default implementation is empty\n }", "title": "" }, { "docid": "20532f2a7797af15588b1725932295ea", "score": "0.5250274", "text": "@Test\n public void TC9b_SubscribeMagazineHome() throws Throwable\n {\n \thomePageObject.clickSubscribeAragini();\n \teditionsSubscribeMagazinePageObject.clickAdd();\n \tcartPageObject.proceedCart();\n \tmyPaperPageObject.clickMyMagazines();\n \tmyPaperPageObject.verifySubscribedMagazineAragini();\t\t\t\t\t\t\t\t\t\t\t/*verifying Subscribed Magazine from My Magazines*/\n \tThread.sleep(6000);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/* Thread Sleep needed because Toast message is overlapping on Logout button till 6sec */\n }", "title": "" }, { "docid": "fb815cb40fc40c2fb00bceadf207faba", "score": "0.5241463", "text": "public void forcePublish(Publication publication) {\r\n if (connected) {\r\n Message sendMsg = new PublishMessage(publication, false);\r\n this.sendMessage(sendMsg);\r\n log.writeToLog(\"Publication \" + publication + \" sent to broker.\");\r\n //TODO no confirmation is waited for here...\r\n activePubs.add(publication);\r\n allPubs.add(publication);\r\n } else {\r\n outboxPubs.add(publication);\r\n allPubs.add(publication);\r\n log.writeToLog(\"Publication \" + publication + \" put in outbox because not connected to broker.\");\r\n }\r\n }", "title": "" }, { "docid": "5809e20700bd8773275b714690f546bc", "score": "0.51733327", "text": "private void topicSanity() {\n findDuplicateAssociations();\n \n //Get all the topics without name, and print them to screen.\n getNoNameTopics();\n \n //Get all the topics with duplicated occurrences, and print them to screen.\n getDuplicateOccurrences();\n \n //Get all the topics with duplicated names, and print them to screen.\n getDuplicatedNames();\n\n }", "title": "" }, { "docid": "9ef30c3867396c4da7a5b712a951b59c", "score": "0.5168595", "text": "@Override\r\n\tpublic void doPublish(int publisherId) {\n\r\n\t}", "title": "" }, { "docid": "90ec2ab2cca09c88e12375866327fed2", "score": "0.5163935", "text": "@Test(priority = 81)\n\tpublic static void SalesInvoice_Creationfor_India_SEZ_WOPAY_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Sales_Invoice SI = new GST_Sales_Invoice();\n\t\tSI.createSalesInvoice_NIL_Rated_Exempted_Non_GST(driver, SEZ_WOPAY, NonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "b20241aa37229f22d36eb47e912d388a", "score": "0.5157691", "text": "private void populateSubscriptionProvider(Connection conn)\n throws SQLException {\n final String DEBUG_HEADER = \"populateSubscriptionProvider(): \";\n if (log.isDebug2()) log.debug2(DEBUG_HEADER + \"Starting...\");\n\n if (conn == null) {\n throw new IllegalArgumentException(\"Null connection\");\n }\n\n Long previousPublicationSeq = null;\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n\n try {\n // Get all the subscriptions and publication data.\n statement = prepareStatement(conn, GET_ALL_SUBSCRIPTION_PUBLISHERS_QUERY);\n resultSet = executeQuery(statement);\n\n // Loop through all the subscriptions and publication data.\n while (resultSet.next()) {\n\t// Get the subscription identifier.\n\tLong subscriptionSeq = resultSet.getLong(SUBSCRIPTION_SEQ_COLUMN);\n\tif (log.isDebug3())\n\t log.debug3(DEBUG_HEADER + \"subscriptionSeq = \" + subscriptionSeq);\n\n\t// Get the publication identifier.\n\tLong publicationSeq = resultSet.getLong(PUBLICATION_SEQ_COLUMN);\n\tif (log.isDebug3())\n\t log.debug3(DEBUG_HEADER + \"publicationSeq = \" + publicationSeq);\n\n\t// Get the publisher name.\n\tString publisherName = resultSet.getString(PUBLISHER_NAME_COLUMN);\n\tif (log.isDebug3())\n\t log.debug3(DEBUG_HEADER + \"publisherName = '\" + publisherName + \"'\");\n\n\t// Get the provider primary key for the publisher.\n\tLong providerSeq = findOrCreateProvider(conn, null, publisherName);\n\tif (log.isDebug3())\n\t log.debug3(DEBUG_HEADER + \"providerSeq = \" + providerSeq);\n\n\t// Check whether this is not the same publication as the previous one.\n\tif (!publicationSeq.equals(previousPublicationSeq)) {\n\t // Yes: Update the subscription provider.\n\t updateSubscriptionProvider(conn, subscriptionSeq, providerSeq);\n\n\t // Remember this publication.\n\t previousPublicationSeq = publicationSeq;\n\t if (log.isDebug3()) log.debug3(DEBUG_HEADER\n\t + \"previousPublicationSeq = \" + previousPublicationSeq);\n\t}\n }\n } catch (SQLException sqle) {\n log.error(\"Cannot populate subscription provider\", sqle);\n log.error(\"SQL = '\" + GET_ALL_SUBSCRIPTION_PUBLISHERS_QUERY + \"'.\");\n throw sqle;\n } catch (RuntimeException re) {\n log.error(\"Cannot populate subscription provider\", re);\n log.error(\"SQL = '\" + GET_ALL_SUBSCRIPTION_PUBLISHERS_QUERY + \"'.\");\n throw re;\n } finally {\n JdbcBridge.safeCloseResultSet(resultSet);\n JdbcBridge.safeCloseStatement(statement);\n }\n\n if (log.isDebug2()) log.debug2(DEBUG_HEADER + \"Done.\");\n }", "title": "" }, { "docid": "38d7d627629fc8a20c7d29c0d385d783", "score": "0.5134672", "text": "@Test(groups = {\"wso2.ei\"}, description = \"workday {getSubscriptions} integration test with mandatory parameters.\")\n public void testGetSubscriptionsWithMandatoryParameters() throws Exception {\n SOAPEnvelope eiSoapResponse = sendSOAPRequest(proxyUrl, \"eiGetSubscriptionsMandatory.xml\", null, \"mediate\",\n SOAP_HEADER_XPATH_EXP, SOAP_BODY_XPATH_EXP);\n\n OMElement eiResponseElement = AXIOMUtil.stringToOM(eiSoapResponse.getBody().toString());\n String xPathExp = \"string(/env:Body/text())\";\n String eiResponse = (String) xPathEvaluate(eiResponseElement, xPathExp, nameSpaceMap);\n Assert.assertNotNull(eiResponse);\n }", "title": "" }, { "docid": "157bc6ca86986fc3002181a69f09f739", "score": "0.5118918", "text": "@Test(priority = 79)\n\tpublic static void SalesInvoice_Creationfor_India_Composition_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Sales_Invoice SI = new GST_Sales_Invoice();\n\t\tSI.createSalesInvoice_NIL_Rated_Exempted_Non_GST(driver, Composition_Customer_Code_InterState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "b86fc5fab08a9992cf36ac5dae7c190b", "score": "0.5113201", "text": "private Pubs() {\n super(\"pubs\", null);\n }", "title": "" }, { "docid": "962cd1ce0863ed7a92fcba553814bfb2", "score": "0.50978804", "text": "@Test(priority = 104)\n\tpublic static void AdvancedReceipt_Creationfor_India_SEZ_WPAY_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Advanced_Received AR = new GST_Advanced_Received();\n\t\tAR.createAdvancedReceived_NIL_Rated_Exempted_Non_GST(driver, SEZ_WPAY, NonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "61907d78478e2805d5122542bb46d837", "score": "0.5084409", "text": "@Test(priority = 80)\n\tpublic static void SalesInvoice_Creationfor_India_SEZ_WPAY_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Sales_Invoice SI = new GST_Sales_Invoice();\n\t\tSI.createSalesInvoice_NIL_Rated_Exempted_Non_GST(driver, SEZ_WPAY, NonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "294015b6d6d9c05b317dbe301a5e4fc5", "score": "0.5066855", "text": "@Test(priority = 103)\n\tpublic static void AdvancedReceipt_Creationfor_India_Composition_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Advanced_Received AR = new GST_Advanced_Received();\n\t\tAR.createAdvancedReceived_NIL_Rated_Exempted_Non_GST(driver, Composition_Customer_Code_InterState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "e0f07446591360ce9c98a313a096723a", "score": "0.50656015", "text": "@Test\n\tpublic void agregarSuscripcionesTest() {\n\t\tplan.agregarSubscripcion(subscripcion1);\n\t\tplan.agregarSubscripcion(subscripcion2);\n\n\t\tassertEquals(plan.getSubscripciones().size(), 2);\n\t\tassertTrue(plan.getSubscripciones().contains(subscripcion1));\n\t\tassertTrue(plan.getSubscripciones().contains(subscripcion2));\n\t}", "title": "" }, { "docid": "a225a2b4a02f4fc8b3cb5d56a1262bbb", "score": "0.5062349", "text": "@Test\n public void multiplePublishersOneSubscriberTest() throws Exception {\n\n final int messagesCount = 15;\n int publishersCount = 5;\n\n Assert.assertTrue(feedManager.createFeed(FEED1));\n try {\n // Create a subscribing process\n final AtomicBoolean assertionOk = new AtomicBoolean(true);\n final int[] receiveCounts = new int[publishersCount];\n\n Cancellable cancellable = notificationService.subscribe(FEED1, new NotificationHandler<SimpleNotification>() {\n @Override\n public Type getNotificationType() {\n return SimpleNotification.class;\n }\n\n @Override\n public void received(SimpleNotification notification, NotificationContext notificationContext) {\n LOG.debug(\"Received notification payload: {}\", notification);\n try {\n Assert.assertEquals(\"fake-payload-\" + receiveCounts[notification.getPublisherId()],\n notification.getPayload());\n receiveCounts[notification.getPublisherId()]++;\n } catch (Throwable t) {\n assertionOk.set(false);\n Throwables.propagate(t);\n }\n }\n });\n\n // Give the subscriber some time to prepare for published messages before starting the publisher\n TimeUnit.MILLISECONDS.sleep(500);\n\n List<Thread> publisherThreads = Lists.newArrayList();\n for (int i = 0; i < publishersCount; i++) {\n final int k = i;\n Runnable publisherRunnable = new Runnable() {\n @Override\n public void run() {\n try {\n Random r = new Random();\n for (int j = 0; j < messagesCount; j++) {\n notificationService.publish(FEED1, new SimpleNotification(k, String.format(\"fake-payload-%d\", j)));\n TimeUnit.MILLISECONDS.sleep(r.nextInt(200));\n }\n } catch (Throwable e) {\n Throwables.propagate(e);\n }\n }\n };\n Thread publisherThread = new Thread(publisherRunnable);\n publisherThread.start();\n publisherThreads.add(publisherThread);\n }\n\n for (Thread t : publisherThreads) {\n t.join();\n }\n TimeUnit.MILLISECONDS.sleep(2000);\n cancellable.cancel();\n\n Assert.assertTrue(assertionOk.get());\n for (int i : receiveCounts) {\n Assert.assertEquals(messagesCount, i);\n }\n } finally {\n feedManager.deleteFeed(FEED1);\n }\n }", "title": "" }, { "docid": "38c073471cd88ab16e1bf6ba38c3f64c", "score": "0.5053388", "text": "@Test(priority = 101)\n\tpublic static void AdvancedReceipt_Creationfor_India_UnRegistered_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Advanced_Received AR = new GST_Advanced_Received();\n\t\tAR.createAdvancedReceived_NIL_Rated_Exempted_Non_GST(driver, UnRegistered_Customer_Code_InterState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "bf342beedd5462004b9591814f68b510", "score": "0.5052066", "text": "@Test(priority = 77)\n\tpublic static void SalesInvoice_Creationfor_India_UnRegistered_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Sales_Invoice SI = new GST_Sales_Invoice();\n\t\tSI.createSalesInvoice_NIL_Rated_Exempted_Non_GST(driver, UnRegistered_Customer_Code_InterState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "ba75a3a7a512a25c949eee0021158964", "score": "0.50494987", "text": "@Test\n public void testPublisherHealthCheck() throws Exception {\n String originalValue = CONFIG_SESSION.getProperty(KEY_HEALTHCHECK_PUBLISHERCONNECTIONS);\n if (!\"true\".equals(originalValue)) {\n CONFIG_SESSION.updateProperty(KEY_HEALTHCHECK_PUBLISHERCONNECTIONS, \"true\");\n }\n // Create a random publisher that's not connected to anything.\n final LdapPublisher ldapPublisher = new LdapPublisher();\n ldapPublisher.setHostnames(\"nowhere\");\n final String publisherName = \"testPublisherHealthCheck\";\n int publisherId = PUBLISHER_PROXY_SESSION.addPublisher(admin, publisherName, ldapPublisher);\n final String caName = \"testPublisherHealthCheck\";\n CaTestCase.createTestCA(caName);\n final CAInfo caInfo = CA_SESSION.getCAInfo(admin, caName);\n caInfo.setCRLPublishers(Collections.singletonList(publisherId));\n CA_SESSION.editCA(admin, caInfo);\n try {\n final HttpURLConnection response = performHealthCheckGetRequest();\n assertEquals(\"Response code was not 500\", 500, response.getResponseCode());\n final String responseStr = Streams.asString(response.getErrorStream());\n assertTrue(\"Response did not contain correct error message, was: \" + responseStr,\n responseStr.contains(\"Error when testing the connection with publisher\"));\n } finally {\n PUBLISHER_PROXY_SESSION.removePublisherInternal(admin, publisherName);\n CaTestCase.removeTestCA(caName);\n CONFIG_SESSION.updateProperty(KEY_HEALTHCHECK_PUBLISHERCONNECTIONS, originalValue);\n }\n }", "title": "" }, { "docid": "334f1ee57896a8d79725ef808f32e6c1", "score": "0.50467676", "text": "private boolean subscribedTo(String topic) {\n return this.myTopics.contains(topic);\n }", "title": "" }, { "docid": "e98b7a471859ea1fc3fa06405a8f179d", "score": "0.50408816", "text": "@Test @org.junit.Ignore\n public void testUnboundServiceNoLongerGetsNotified() {\n ServiceLocator locator = Utilities.getLocatorWithTopics();\n \n ServiceLocatorUtilities.enableImmediateScope(locator);\n \n List<ActiveDescriptor<?>> added = ServiceLocatorUtilities.addClasses(locator, FooPublisher.class,\n ImmediateSubscriber.class,\n PerLookupSubscriber.class,\n SingletonSubscriber.class);\n \n FooPublisher publisher = locator.getService(FooPublisher.class);\n SingletonSubscriber singletonSubscriber = locator.getService(SingletonSubscriber.class);\n ImmediateSubscriber immediateSubscriber = locator.getService(ImmediateSubscriber.class);\n \n publisher.publishFoo(-12);\n \n // Now remove everything except the publisher\n ServiceLocatorUtilities.removeOneDescriptor(locator, added.get(1));\n ServiceLocatorUtilities.removeOneDescriptor(locator, added.get(2));\n ServiceLocatorUtilities.removeOneDescriptor(locator, added.get(3));\n \n publisher.publishFoo(20);\n \n // These guys should still have -12 since they should NOT have received the\n // event setting the value to 20\n Foo singletonFoo = singletonSubscriber.getAndClearLastEvent();\n Assert.assertNotNull(singletonFoo);\n Assert.assertEquals(-12, singletonFoo.getFooValue());\n \n Foo perLookupFoo1 = singletonSubscriber.getAndClearDependentLastEvent();\n Assert.assertNotNull(perLookupFoo1);\n Assert.assertEquals(-12, perLookupFoo1.getFooValue());\n \n Foo immediateFoo = immediateSubscriber.getAndClearLastEvent();\n Assert.assertNotNull(immediateFoo);\n Assert.assertEquals(-12, immediateFoo.getFooValue());\n \n Foo perLookupFoo2 = immediateSubscriber.getAndClearDependentLastEvent();\n Assert.assertNotNull(perLookupFoo2);\n Assert.assertEquals(-12, perLookupFoo2.getFooValue());\n }", "title": "" }, { "docid": "dbcb24b4b48043dc3ab239b09a991331", "score": "0.5026638", "text": "@Test(priority = 78)\n\tpublic static void SalesInvoice_Creationfor_India_Composition_IntraState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Sales_Invoice SI = new GST_Sales_Invoice();\n\t\tSI.createSalesInvoice_NIL_Rated_Exempted_Non_GST(driver, Composition_Customer_Code_IntraState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "902c12bda58bbb2f9086b1acf9b021d7", "score": "0.501795", "text": "@Override\n protected void checkSubscribe(final Set<String> uniqueIds) {\n checkLimitRemaining(uniqueIds.size());\n super.checkSubscribe(uniqueIds);\n }", "title": "" }, { "docid": "d97fb89d5067a7613b71715df2a23f3f", "score": "0.5006625", "text": "public boolean tx_publish() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "35bd732133cbeb5a818066395cac96ed", "score": "0.50040877", "text": "public void validateSubscriptions() {\n Workflow wf = ((PlanningFactory)domainService.getFactory(\"planning\")).newWorkflow();\n Task codeTask = makeTask(\"CODE\", null, wf);\n subscriptionAssert(codeTask, true);\n\n //test the DESIGN plan element subscription\n AllocationResult estAR = null;\n Task designTask = makeTask(\"DESIGN\", codeTask, wf);\n Expansion deisgnExp = ((PlanningFactory)domainService.getFactory(\"planning\")).createExpansion(designTask.getPlan(), designTask, wf, estAR);\n subscriptionAssert(deisgnExp, true);\n\n //test the DEVELOP expansion\n Task developTask = makeTask(\"DEVELOP\", designTask, wf);\n Expansion developExp = ((PlanningFactory)domainService.getFactory(\"planning\")).createExpansion(developTask.getPlan(), designTask, wf, estAR);\n subscriptionAssert(developExp, true);\n\n //test the DEVELOP expansion\n Task testTask = makeTask(\"TEST\", developTask, wf);\n Expansion testExp = ((PlanningFactory)domainService.getFactory(\"planning\")).createExpansion(testTask.getPlan(), designTask, wf, estAR);\n subscriptionAssert(testExp, true);\n }", "title": "" }, { "docid": "c6049f7bf0756ebd8d1019384d34719a", "score": "0.49897516", "text": "private void waitForSubscription() {\n\n synchronized (subscribed) {\n while (!subscribed.get()) {\n\n try {\n subscribed.wait();\n } catch (InterruptedException e) {\n LOG.log(Level.SEVERE, \"InterruptedException occurred.\", e);\n }\n\n }\n\n }\n\n }", "title": "" }, { "docid": "d7f9c5d54bd8f661a3e30f0079fca866", "score": "0.4987145", "text": "public void allInOneMethod() {\n client.setURI(BASE_URI);\n\n client.create(new CoapHandler() {\n @Override\n public void onLoad(CoapResponse response) {\n System.out.println(\"ExamplePublishClient: responseCode to create sub-topic 'devRT45' is \" + response.getCode());\n subscribeAllInOneMthod();\n }\n\n @Override\n public void onError() {\n System.err.println(\"ExamplePublishClient: Error in createDevRT45SenosorData\");\n }\n\n }, \"devRT45\", MediaTypeRegistry.TEXT_PLAIN);\n }", "title": "" }, { "docid": "b0774a55db7a0eae9876f0bcb7b40199", "score": "0.4986807", "text": "@Override protected void publish(final Object event, final String topic, final Object eventObj,\n\t final List subscribers, final List vetoSubscribers, StackTraceElement[] callingStack) {\n\t\t SpikeEvent spikeEvent = (SpikeEvent)eventObj;\n\t\t long eventTime;\n\t\t if (spikeEvent != null){\n\t\t\t eventTime = spikeEvent.getTime();\n\t\t } else {\n\t\t\t return;\n\t\t }\n\t\t if (eventTime != ReservoirNetwork.getClock()){\n\t\t\t BufferedEventObject obj = new BufferedEventObject();\n\t\t\t obj.setEventObj(eventObj);\n\t\t\t obj.setTopic(topic);\n\t\t\t eventBuffer.put(eventTime, obj);\n\t\t\t \n\t\t } else {\n\t\t\t //First this is first, try and see if there are any buffered events for the current time\n\t\t\t List<BufferedEventObject> buff = eventBuffer.get(ReservoirNetwork.getClock());\n\t\t\t if (buff.size() != 0){\n\t\t\t\t //remove from the list since you just re-published it, need to make a copy because the current\n\t\t\t\t //buff is a reference to the list \n\t\t\t\t List<BufferedEventObject> eventsToRepublish = new ArrayList<BufferedEventObject>(buff);\n\t\t\t\t eventBuffer.removeAll(ReservoirNetwork.getClock());\n\t\t\t\t for (BufferedEventObject obj : eventsToRepublish){\n\t\t\t\t\t// eventBuffer.remove(CLOCK, obj);\n\t\t\t\t\t publish(obj.getTopic(), obj.getEventObj());\n\t\t\t\t }\n\n\t\t\t }\n\t\t\t \n\t\t\t if (event == null && topic == null) {\n\t\t throw new IllegalArgumentException(\"Can't publish to null topic/event.\");\n\t\t }\n\t\n\t\t setStatus(PublicationStatus.Initiated, event, topic, eventObj);\n\t\t //topic or event\n\t\n\t\t //Check all veto subscribers, if any veto, then don't publish or cache\n\t\t \n\t\t setStatus(PublicationStatus.Queued, event, topic, eventObj);\n\t\t \n\t\n\t\t addEventToCache(event, topic, eventObj);\n\t\n\t\t if (subscribers == null || subscribers.isEmpty()) {\n\t\t if (LOG.isLoggable(Level.DEBUG)) {\n\t\t LOG.debug(\"No subscribers for event or topic. Event:\" + event + \", Topic:\" + topic);\n\t\t }\n\t\t } else {\n\t\t if (LOG.isLoggable(Level.DEBUG)) {\n\t\t LOG.debug(\"Publishing to subscribers:\" + subscribers);\n\t\t }\n\t\t setStatus(PublicationStatus.Publishing, event, topic, eventObj);\n\t\t for (int i = 0; i < subscribers.size(); i++) {\n\t\t Object eh = subscribers.get(i);\n\t\t if (event != null) {\n\t\t EventSubscriber eventSubscriber = (EventSubscriber) eh;\n\t\t long start = System.currentTimeMillis();\n\t\t try {\n\t\t eventSubscriber.onEvent(event);\n\t\t // checkTimeLimit(start, event, eventSubscriber, null);\n\t\t } catch (Throwable e) {\n\t\t // checkTimeLimit(start, event, eventSubscriber, null);\n\t\t handleException(event, e, callingStack, eventSubscriber);\n\t\t }\n\t\t } else {\n\t\t EventTopicSubscriber eventTopicSubscriber = (EventTopicSubscriber) eh;\n\t\t try {\n\t\t eventTopicSubscriber.onEvent(topic, eventObj);\n\t\t } catch (Throwable e) {\n\t\t onEventException(topic, eventObj, e, callingStack, eventTopicSubscriber);\n\t\t }\n\t\t }\n\t\t }\n\t\t }\n\t\t setStatus(PublicationStatus.Completed, event, topic, eventObj); \n\t\t \n\t\t }\n\t }", "title": "" }, { "docid": "89671a6bb288a087a7577c9c75b5cfbc", "score": "0.4976058", "text": "@Test(priority = 89)\n\tpublic static void CreditNote_Creationfor_India_SEZ_WOPAY_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Credit_Note CN = new GST_Credit_Note();\n\t\tCN.createCreditNote_NIL_Rated_Exempted_Non_GST(driver, SEZ_WOPAY, NonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "3481cc8230a0f90cac95f555c1a0a515", "score": "0.49683756", "text": "@WebMethod(operationName = \"getPublicationSubscriptions\")\n public Collection<Subscription> getPublicationSubscriptions(@WebParam(name = \"publicationId\")long publicationId)\n {\n try\n {\n RecycleSQLConnection sqlConn = new RecycleSQLConnection();\n Connection conn = RecycleSQLConnection.getConnection();\n \n return sqlConn.readPublicationSubscriptions(conn, publicationId); \n \n } \n catch (Exception ex) \n {\n Logger.getLogger(RecycleWebService.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "title": "" }, { "docid": "2e027dc7483262ec1ae466cebd8ab77b", "score": "0.49649394", "text": "@Test(priority = 100)\n\tpublic static void AdvancedReceipt_Creationfor_India_UnRegistered_IntraState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Advanced_Received AR = new GST_Advanced_Received();\n\t\tAR.createAdvancedReceived_NIL_Rated_Exempted_Non_GST(driver, UnRegistered_Customer_Code_IntraState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "6a6f7dc22eb661df32e2b1646c765d1c", "score": "0.49604517", "text": "@Test\n void suppliesCreditsWhenSubscribers() throws InterruptedException {\n // Arrange\n final int backPressure = 8;\n final CountDownLatch semaphore = new CountDownLatch(8);\n final AtomicInteger counter = new AtomicInteger();\n\n when(amqpReceiveLink.getCredits()).thenReturn(PREFETCH);\n\n final Disposable subscription = consumer.receiveFromPartition(PARTITION_ID, EventPosition.earliest()).subscribe(\n e -> {\n LOGGER.info(\"Event received\");\n final int count = counter.incrementAndGet();\n if (count > backPressure) {\n Assertions.fail(\"Shouldn't have more than \" + backPressure + \" events. Count: \" + count);\n }\n\n semaphore.countDown();\n },\n error -> Assertions.fail(error.toString()),\n () -> {\n LOGGER.info(\"Complete\");\n }, sub -> {\n LOGGER.info(\"requesting backpressure: {}\", backPressure);\n sub.request(backPressure);\n });\n\n try {\n // Act\n sendMessages(messageProcessor, 11, PARTITION_ID);\n\n // Assert\n Assertions.assertTrue(semaphore.await(10, TimeUnit.SECONDS));\n Assertions.assertEquals(backPressure, counter.get());\n } finally {\n subscription.dispose();\n }\n }", "title": "" }, { "docid": "0439b44494d12699d8735235947a435b", "score": "0.49553013", "text": "@Test(priority = 76)\n\tpublic static void SalesInvoice_Creationfor_India_UnRegistered_IntraState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Sales_Invoice SI = new GST_Sales_Invoice();\n\t\tSI.createSalesInvoice_NIL_Rated_Exempted_Non_GST(driver, UnRegistered_Customer_Code_IntraState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "589a052211a76150911497e743e54d02", "score": "0.49507153", "text": "@Test(priority = 102)\n\tpublic static void AdvancedReceipt_Creationfor_India_Composition_IntraState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Advanced_Received AR = new GST_Advanced_Received();\n\t\tAR.createAdvancedReceived_NIL_Rated_Exempted_Non_GST(driver, Composition_Customer_Code_IntraState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "c270711780fa1b14c01d1ac71188db6c", "score": "0.49397552", "text": "public void setSubscription()\n {\n fullyPaid = true;\n }", "title": "" }, { "docid": "63fd4e72f46371c537ac9cd3a1996d3c", "score": "0.49303067", "text": "void subscribe(Set<TopicKey> topicKeys);", "title": "" }, { "docid": "9a245b486c3bf60ac4c0e6a715be3dca", "score": "0.49265414", "text": "@Test\n public void twoFeedsPublishOneFeedSubscribeTest() throws Exception {\n\n final int messagesCount = 15;\n Assert.assertTrue(feedManager.createFeed(FEED1));\n Assert.assertTrue(feedManager.createFeed(FEED2));\n try {\n\n // Create a subscribing process\n final AtomicInteger receiveCount = new AtomicInteger(0);\n final AtomicBoolean assertionOk = new AtomicBoolean(true);\n\n Cancellable cancellable = notificationService.subscribe(FEED1, new NotificationHandler<String>() {\n @Override\n public Type getNotificationType() {\n return String.class;\n }\n\n @Override\n public void received(String notification, NotificationContext notificationContext) {\n LOG.debug(\"Received notification payload: {}\", notification);\n try {\n Assert.assertEquals(\"fake-payload-\" + receiveCount.get(), notification);\n receiveCount.incrementAndGet();\n } catch (Throwable t) {\n assertionOk.set(false);\n Throwables.propagate(t);\n }\n }\n });\n // Give the subscriber some time to prepare for published messages before starting the publisher\n TimeUnit.MILLISECONDS.sleep(500);\n\n Runnable publisherRunnable1 = new Runnable() {\n @Override\n public void run() {\n try {\n Random r = new Random();\n for (int j = 0; j < messagesCount; j++) {\n notificationService.publish(FEED1, String.format(\"fake-payload-%d\", j));\n TimeUnit.MILLISECONDS.sleep(r.nextInt(200));\n }\n } catch (Throwable e) {\n Throwables.propagate(e);\n }\n }\n };\n Thread publisherThread1 = new Thread(publisherRunnable1);\n publisherThread1.start();\n\n Runnable publisherRunnable2 = new Runnable() {\n @Override\n public void run() {\n try {\n Random r = new Random();\n for (int j = 0; j < messagesCount; j++) {\n notificationService.publish(FEED2, String.format(\"fake-payload2-%d\", j));\n TimeUnit.MILLISECONDS.sleep(r.nextInt(200));\n }\n } catch (Throwable e) {\n Throwables.propagate(e);\n }\n }\n };\n Thread publisherThread2 = new Thread(publisherRunnable2);\n publisherThread2.start();\n\n publisherThread1.join();\n publisherThread2.join();\n TimeUnit.MILLISECONDS.sleep(2000);\n cancellable.cancel();\n\n Assert.assertTrue(assertionOk.get());\n Assert.assertEquals(messagesCount, receiveCount.get());\n } finally {\n feedManager.deleteFeed(FEED1);\n feedManager.deleteFeed(FEED2);\n }\n }", "title": "" }, { "docid": "195aa46cbcd75578f2512f4b60b3b768", "score": "0.49247584", "text": "@Test(priority = 88)\n\tpublic static void CreditNote_Creationfor_India_SEZ_WPAY_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Credit_Note CN = new GST_Credit_Note();\n\t\tCN.createCreditNote_NIL_Rated_Exempted_Non_GST(driver, SEZ_WPAY, NonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "d5f00ceca8a0f30e22dc7c60a42124f0", "score": "0.49202484", "text": "Publication createPublication();", "title": "" }, { "docid": "54ded8720862ef15612826418195423b", "score": "0.49175808", "text": "protected boolean isPublishing() {\n return publishing.get();\n }", "title": "" }, { "docid": "2eaf644b5d5f63ff5ae9f90e7f326295", "score": "0.49127513", "text": "public Boolean getPublishable() {\r\n\r\n if (this.getReference() == null)\r\n return false;\r\n\r\n if (this.getSelectionProcedureRef() == null)\r\n return false;\r\n\r\n // if (this.getWebsite() == null)\r\n // return false;\r\n\r\n if (this.getStartDate() == null)\r\n return false;\r\n\r\n if (this.getEndDate() == null)\r\n return false;\r\n\r\n if (this.getPublicationType() == null)\r\n return false;\r\n\r\n if (this.getProgramme() == null)\r\n return false;\r\n\r\n if (this.getOrganisations() == null)\r\n return false;\r\n\r\n if (this.getPublicationDirectTargetGroups().isEmpty())\r\n return false;\r\n\r\n if (this.getPublicationPolicyAreas().isEmpty())\r\n return false;\r\n\r\n if (this.getPublicationUltimateTargetGroups().isEmpty())\r\n return false;\r\n\r\n if (this.getInitialEuContribution() == null || BigDecimal.ZERO.compareTo(this.getInitialEuContribution()) >= 0)\r\n return false;\r\n\r\n if (this.getInitialTotalCost() == null || BigDecimal.ZERO.compareTo(this.getInitialTotalCost()) >= 0)\r\n return false;\r\n\r\n if (this.getFinalEuContribution() == null || BigDecimal.ZERO.compareTo(this.getFinalEuContribution()) >= 0)\r\n return false;\r\n\r\n if (this.getFinalTotalCost() == null || BigDecimal.ZERO.compareTo(this.getFinalTotalCost()) >= 0)\r\n return false;\r\n\r\n if (this.translationsXml == null) {\r\n return false;\r\n } else {\r\n // Check for translations errors\r\n try {\r\n InputStream is = getClass().getClassLoader().getResourceAsStream(\"publication.xml\");\r\n Document publicationForm = XMLUtils.stringToDocument(IOUtils.toString(is, \"UTF-8\"));\r\n Document existingData = XMLUtils.stringToDocument(this.getTranslationsXml());\r\n\r\n // Now we have to put transformated data + publication form and\r\n // return it\r\n DynForm dynForm = new DynForm(publicationForm);\r\n dynForm.addValues(existingData);\r\n dynForm.evaluate();\r\n\r\n if (dynForm.hasErrors() == true) {\r\n return false;\r\n }\r\n } catch (IOException e) {\r\n throw new RuntimeException(e);\r\n } catch (XPathExpressionException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "6c29b576a877a3ca190df25bfb3719a2", "score": "0.49126357", "text": "boolean hasTopic();", "title": "" }, { "docid": "6c29b576a877a3ca190df25bfb3719a2", "score": "0.49126357", "text": "boolean hasTopic();", "title": "" }, { "docid": "6c29b576a877a3ca190df25bfb3719a2", "score": "0.49126357", "text": "boolean hasTopic();", "title": "" }, { "docid": "7c423918037e92253bd435d1a497233c", "score": "0.49122864", "text": "public SubscriptionResponse subscribeWithBackgroundMessageEmission() throws Throwable {\n ScheduledExecutorService scheduler = null;\n if (acceptanceProps.isEmitBackgroundMessages()) {\n log.debug(\"Emit a background message every second during subscription\");\n scheduler = Executors.newSingleThreadScheduledExecutor();\n scheduler.scheduleAtFixedRate(\n () -> {\n try {\n topicClient.publishMessageToTopic(\n consensusTopicId,\n \"backgroundMessage\".getBytes(StandardCharsets.UTF_8),\n getSubmitKeys());\n } catch (Exception e) {\n log.error(\"Error publishing to topic\", e);\n }\n },\n 0,\n 1,\n TimeUnit.SECONDS);\n }\n\n SubscriptionResponse subscriptionResponse;\n\n try {\n subscriptionResponse = mirrorClient.subscribeToTopicAndRetrieveMessages(\n sdkClient, topicMessageQuery, messageSubscribeCount, latency);\n assertEquals(\n messageSubscribeCount,\n subscriptionResponse.getMirrorHCSResponses().size());\n } finally {\n if (scheduler != null) {\n scheduler.shutdownNow();\n }\n }\n\n return subscriptionResponse;\n }", "title": "" }, { "docid": "f97d9c873845a22d1bc8c2b794771739", "score": "0.49106756", "text": "@Test(expected=SubscriberException.class)\n\tpublic void test7_1() throws BadParametersException, SubscriberException {\n\t\tdefaultPlayer.setNbTokens(0L);\n\t\tdefaultPlayer.debitSubscriber(150L);\n\t}", "title": "" }, { "docid": "ce822de3402239d099ba8d9035956c58", "score": "0.49100038", "text": "private void processSubscriptions() throws IllegalAccessException, InstantiationException, ClassNotFoundException,\r\n\t\t\tSQLException, IOException, ConfigurationException {\n\t\tif (connectAccessServer)\r\n\t\t\tconnectServerDS();\r\n\r\n\t\t// If this is the first time, or when triggered by an interval,\r\n\t\t// reinitialize loggers\r\n\t\tif (initLoggers)\r\n\t\t\tinitializeLoggers();\r\n\r\n\t\t// Get current timestamp\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tTimestamp collectTimestamp = new Timestamp(cal.getTimeInMillis());\r\n\r\n\t\t// Process all subscriptions listed before and retrieve info if\r\n\t\t// triggered\r\n\t\tif (subscriptionList instanceof ResultStringTable) {\r\n\t\t\tfor (int i = 0; i < subscriptionList.getRowCount(); i++) {\r\n\t\t\t\tString subscriptionName = subscriptionList.getValueAt(i, \"SUBSCRIPTION\");\r\n\t\t\t\tString targetDatastore = subscriptionList.getValueAt(i, \"TARGET DATASTORE\");\r\n\t\t\t\t// Collect status and metrics for subscription (if selected and\r\n\t\t\t\t// triggered by timer)\r\n\t\t\t\tif (parms.subscriptionList == null || parms.subscriptionList.contains(subscriptionName)) {\r\n\t\t\t\t\tint subscriptionCheckFrequency = settings.getInt(\r\n\t\t\t\t\t\t\t\"checkFrequencySeconds-\" + parms.datastore + \"-\" + subscriptionName,\r\n\t\t\t\t\t\t\tsettings.getInt(\"checkFrequencySeconds\", 60));\r\n\t\t\t\t\tif (timer.isSubscriptionActivityDue(parms.datastore, subscriptionName, subscriptionCheckFrequency))\r\n\t\t\t\t\t\tcollectSubscriptionInfo(collectTimestamp, subscriptionName, parms.datastore, targetDatastore);\r\n\t\t\t\t} else\r\n\t\t\t\t\tlogger.debug(\r\n\t\t\t\t\t\t\t\"Subscription \" + subscriptionName + \" skipped, not in list of selected subscriptions\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fc7a809e9e3ae2dac39ebffd4e22786d", "score": "0.4905078", "text": "boolean isTranscribeable();", "title": "" }, { "docid": "7591dcb7e283d14c1dd9905b42782a82", "score": "0.49011773", "text": "@Test(priority = 99)\n\tpublic static void AdvancedReceipt_Creationfor_India_Registered_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Advanced_Received AR = new GST_Advanced_Received();\n\t\tAR.createAdvancedReceived_NIL_Rated_Exempted_Non_GST(driver, Registered_Customer_Code_InterState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "3498602eb6d69e458e796b64fb22f338", "score": "0.48926544", "text": "public interface NewsLetter {\n\t\n\tpublic void registerSubscriber(Subscriber s);\n\tpublic void unSubscribe(Subscriber s);\n\tpublic void updateSubscribers();\n\n}", "title": "" }, { "docid": "b1a825cb60409dd17647142edf9e5c72", "score": "0.48835826", "text": "@Override\n\tprotected boolean areProducersOk() {\n\t return false;\n\t}", "title": "" }, { "docid": "8a40185f9b12f18f525ce5c5c0e30266", "score": "0.4869056", "text": "@Test(priority = 75)\n\tpublic static void SalesInvoice_Creationfor_India_Registered_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Sales_Invoice SI = new GST_Sales_Invoice();\n\t\tSI.createSalesInvoice_NIL_Rated_Exempted_Non_GST(driver, Registered_Customer_Code_InterState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "6520c0226ceaff4a9da6bf114598c25a", "score": "0.48684964", "text": "public boolean areSubscriptionsSupported() {\n return mHelper.subscriptionsSupported();\n }", "title": "" }, { "docid": "5b6639a94c8e07fc0ab43e9a2ef3bc99", "score": "0.48653919", "text": "protected void firstSubscriber() {\n // default implementation is empty\n }", "title": "" }, { "docid": "28263456f2089e6daf6d604adfdbb74d", "score": "0.48571527", "text": "@Test(priority = 87)\n\tpublic static void CreditNote_Creationfor_India_Composition_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Credit_Note CN = new GST_Credit_Note();\n\t\tCN.createCreditNote_NIL_Rated_Exempted_Non_GST(driver, Composition_Customer_Code_InterState, NonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "b1919aeb2111dac0c82e86c0fb817d37", "score": "0.48490965", "text": "private void subscribeToSibMqttTopics() throws ConnectionToSIBException {\n\n\t\tsubscribeToMqttTopic(MqttConstants.getSsapResponseMqttTopic(mqttClientId));\n\t\tsubscribeToMqttTopic(MqttConstants.getSsapIndicationMqttTopic(mqttClientId));\n\n\t\t// Launch a Thread to receive notifications\n\t\tif (this.subscriptionThread == null || this.subscriptionThread.isStopped()) {\n\t\t\tlog.info(\"Starting subscription thread of the internal MQTT client {}.\", mqttClientId);\n\t\t\tthis.subscriptionThread = new MqttSubscriptionThread(this);\n\t\t\tthis.subscriptionThread.start();\n\t\t}\n\n\t}", "title": "" }, { "docid": "ff9c53a0ceafcec798186c6ea3e077a9", "score": "0.48462662", "text": "@Test(priority = 85)\n\tpublic static void CreditNote_Creationfor_India_UnRegistered_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Credit_Note CN = new GST_Credit_Note();\n\t\tCN.createCreditNote_NIL_Rated_Exempted_Non_GST(driver, UnRegistered_Customer_Code_InterState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "bd98f5b35e723fef3c3efbfeacb5ed99", "score": "0.48410246", "text": "public boolean hasSubscribers() {\n\t\treturn getSubscriberCount() > 0;\n\t}", "title": "" }, { "docid": "412960af3bfee2a046c7c985b9ad913f", "score": "0.48392823", "text": "@Override\n public void canConsume()\n {\n \n }", "title": "" }, { "docid": "0f6d1a540a85cb243bc8eea3e710d429", "score": "0.4839188", "text": "public boolean subscribe(String publisherName){\n boolean success;\n if(publisherName.length()!=0){\n try {\n success= userStub.subscribe(userName, userIP, userPort, publisherName);\n if(success){\n System.out.println(\"You've subscribed to \"+ publisherName+\"'s account!\");\n mainView.showSubscribedNotification();\n }else{\n System.out.println(\"Failure! Couldn't subscribe to \"+ publisherName+\"'s account!\");\n return false;\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "053e1ab3ba7c9e0c086335d619559c52", "score": "0.48381004", "text": "@Test\n public void testInstallPublishers() throws Exception {\n MockFaultHandler faultHandler = new MockFaultHandler(\"testInstallPublishers\");\n List<MockPublisher> publishers = asList(new MockPublisher(\"a\"),\n new MockPublisher(\"b\"),\n new MockPublisher(\"c\"));\n try (MetadataLoader loader = new MetadataLoader.Builder().\n setFaultHandler(faultHandler).\n setHighWaterMarkAccessor(() -> OptionalLong.empty()).\n build()) {\n loader.installPublishers(publishers.subList(0, 2)).get();\n }\n assertTrue(publishers.get(0).closed);\n assertNull(publishers.get(0).latestImage);\n assertTrue(publishers.get(1).closed);\n assertNull(publishers.get(1).latestImage);\n assertFalse(publishers.get(2).closed);\n assertNull(publishers.get(2).latestImage);\n faultHandler.maybeRethrowFirstException();\n }", "title": "" }, { "docid": "6f0b01bd37c6aa37ec13c6a51bc63183", "score": "0.48226312", "text": "public static boolean isFigsharePublishReady(JsonArray fields) throws MissingMetadataFields {\n\n\n log.info(\"Checking fields!\");\n\n boolean hasTitle = false;\n boolean hasAuthors = false;\n boolean hasCategories = false;\n boolean hasItemType = false;\n boolean hasKeywords = false;\n boolean hasDescription = false;\n boolean hasLicense = false;\n\n for(Object o : fields) {\n JsonObject json = (JsonObject) o;\n JsonObject key = json.getJsonObject(\"key\");\n JsonObject keyParent = key.getJsonObject(\"parent\");\n JsonObject value = json.getJsonObject(\"value\");\n\n //TODO - change this to check for uuids once we have persistence for metadata fields\n if(keyParent != null && keyParent.getString(\"name\").equals(\"Figshare Publish\")){\n\n switch (key.getString(\"name\")){\n case \"Title\":\n hasTitle = value != null;\n break;\n case \"Authors\":\n hasAuthors = value != null;\n break;\n case \"Categories\":\n hasCategories = value != null;\n break;\n case \"Item Type\":\n hasItemType = value != null;\n break;\n case \"Keywords\":\n hasKeywords = value != null;\n break;\n case \"Description\":\n hasDescription = value != null;\n break;\n case \"License\":\n hasLicense = value != null;\n break;\n }\n }\n }\n\n if(hasTitle &&\n hasAuthors &&\n hasCategories &&\n hasItemType &&\n hasKeywords &&\n hasDescription &&\n hasLicense\n ){\n log.info(\"Document ready to publish on figshare!\");\n return true;\n }else{\n\n log.info(\"Document not ready to publish on figshare!\");\n\n JsonArray missingFields = new JsonArray();\n\n if(!hasTitle){\n missingFields.add(\"Title\");\n }\n\n if(!hasAuthors){\n missingFields.add(\"Authors\");\n }\n\n if(!hasCategories){\n missingFields.add(\"Categories\");\n }\n\n if(!hasItemType){\n missingFields.add(\"Item Type\");\n }\n\n if(!hasKeywords){\n missingFields.add(\"Key Words\");\n }\n\n if(!hasDescription){\n missingFields.add(\"Description\");\n }\n\n if(!hasLicense){\n missingFields.add(\"License\");\n }\n\n throw new MissingMetadataFields(missingFields);\n\n }\n\n }", "title": "" }, { "docid": "1f768fe3f676d12642911d2a98e63c9b", "score": "0.48067787", "text": "public boolean publicationDeliveryExists(int publicationId){\n String query = \"select count(*) as total from delivery where publication_id = \" + publicationId + \";\";\n return exists(query);\n }", "title": "" }, { "docid": "93319d72db01318d7878d0d35c7c0963", "score": "0.48052764", "text": "@Test(priority = 98)\n\tpublic static void AdvancedReceipt_Creationfor_India_Registered_IntraState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Advanced_Received AR = new GST_Advanced_Received();\n\t\tAR.createAdvancedReceived_NIL_Rated_Exempted_Non_GST(driver, Registered_Customer_Code_IntraState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "9c3916a9c517d7fae6355e67e32a2d90", "score": "0.4798561", "text": "@Test\n public void testSSLConfigKSPWSourceNotImplemented() {\n ReplicationSSLConfig rsc = new ReplicationSSLConfig();\n rsc.setSSLKeyStore(stdProps.getProperty(SSL_KEYSTORE_FILE));\n rsc.setSSLKeyStorePasswordClass(DummyFactory.class.getName());\n\n try {\n DataChannelFactoryBuilder.construct(rsc);\n fail(\"Expected exception\");\n } catch (IllegalArgumentException iae) {\n }\n }", "title": "" }, { "docid": "a5fd2a61a8ede7e83605878649eafce6", "score": "0.47948644", "text": "@Test(priority = 86)\n\tpublic static void CreditNote_Creationfor_India_Composition_IntraState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Credit_Note CN = new GST_Credit_Note();\n\t\tCN.createCreditNote_NIL_Rated_Exempted_Non_GST(driver, Composition_Customer_Code_IntraState, NonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "b0f07c775b9ffdd229b747c8bfc62961", "score": "0.47888508", "text": "protected boolean checkCanSubscribe(Entity producer) {\n if (destroyed.get()) return false;\n if (producer==null) throw new IllegalStateException(this+\" given a null target for subscription\");\n if (entity==null) throw new IllegalStateException(this+\" cannot subscribe to \"+producer+\" because it is not associated to an entity\");\n if (((EntityInternal)entity).getManagementSupport().isNoLongerManaged()) throw new IllegalStateException(this+\" cannot subscribe to \"+producer+\" because the associated entity \"+entity+\" is no longer managed\");\n return true;\n }", "title": "" }, { "docid": "9f32110d971ff05271caf9458c81d29a", "score": "0.47768313", "text": "public boolean allowsPublishing() {\n return publish;\n }", "title": "" }, { "docid": "638a11270ab799c263b18992544773dd", "score": "0.47691596", "text": "@Test(priority = 74)\n\tpublic static void SalesInvoice_Creationfor_India_Registered_IntraState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Sales_Invoice SI = new GST_Sales_Invoice();\n\t\tSI.createSalesInvoice_NIL_Rated_Exempted_Non_GST(driver, Registered_Customer_Code_IntraState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "10d446c0276e58390b0c5560487436a5", "score": "0.47686258", "text": "@Test(priority = 15)\n\tpublic static void SalesInvoice_Creationfor_India_Composition_InterState_NIL_Rated()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Sales_Invoice SI = new GST_Sales_Invoice();\n\t\tSI.createSalesInvoice_NIL_Rated_Exempted_Non_GST(driver, Composition_Customer_Code_InterState,\n\t\t\t\tNIL_Rated_Product_ID);\n\n\t}", "title": "" }, { "docid": "790c463b21ceca565b875667182b5ef7", "score": "0.47634202", "text": "public boolean subscribeBase() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\ttry {\n\t\t\tSystem.out.println(\"Enter the Pack you wish to subscribe: (Silver: ‘S’, Gold: ‘G’)\");\n\t\t\tString packType = scanner.nextLine();\n\t\t\tchar pack = packType.charAt(0);\n\t\t\tswitch (pack) {\n\t\t\tcase 'G':\n\t\t\t\tBasePack goldPack = new GoldPack();\n\t\t\t\tthis.setBasePack(goldPack);\n\t\t\t\tbreak;\n\t\t\tcase 'S':\n\t\t\t\tBasePack silverPack = new SilverPack();\n\t\t\t\tthis.setBasePack(silverPack);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Invalid subscription\");\n\t\t\t\tSystem.out.println(\"Please enter S or G\");\n\t\t\t\treturn false;\n\n\t\t\t}\n\t\t\tBasicPackages packages = BasicPackages.valueOf(packType);\n\t\t\tSystem.out.println(\"Enter of Months: \");\n\t\t\tint duration = scanner.nextInt();\n\t\t\tint subscribedAmount = packages.getValue() * duration;\n\t\t\tif (duration >= 3) {\n\t\t\t\tSystem.out.println(\"You are Eligible for 10 % Discount\");\n\t\t\t\tfinal int discount = (subscribedAmount * 10) / 100;\n\t\t\t\tSystem.out.println(\"Discount applied:\" + discount);\n\t\t\t\tsubscribedAmount -= discount;\n\t\t\t\tSystem.out.println(\"Final Price after discount: \" + subscribedAmount);\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Subscribed amout is: \" + subscribedAmount + \" this amoutn is: \" + this.getBalance());\n\t\t\tif (subscribedAmount > this.getBalance()) {\n\t\t\t\tthrow new InsufficiantBalanceException(\"insufficiant balance\");\n\t\t\t}\n\n\t\t\tthis.setBalance(this.getBalance() - subscribedAmount);\n\t\t\tSystem.out.println(\"You have successfully subscribed the following packs: \" + packages.getKey());\n\t\t\tSystem.out.println(\"Monthly Package price is: \" + packages.getValue());\n\t\t\tSystem.out.println(\"Number of month: \" + duration);\n\t\t\tSystem.out.println(\"Subscription Amount: \" + subscribedAmount);\n\t\t\tSystem.out.println(\"Account balance: \" + this.getBalance());\n\t\t\tthis.setSubScribed(true);\n\n\t\t\t// write service\n\t\t\tSystem.out.println(\"Email notification sent successfully\");\n\t\t\tSystem.out.println(\"SMS notification sent successfully\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Please enter Valid Input: \" + e.getMessage());\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "87079354febd54f6aaef8d463b598d6f", "score": "0.47577325", "text": "@Test(priority = 84)\n\tpublic static void CreditNote_Creationfor_India_UnRegistered_IntraState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Credit_Note CN = new GST_Credit_Note();\n\t\tCN.createCreditNote_NIL_Rated_Exempted_Non_GST(driver, UnRegistered_Customer_Code_IntraState,\n\t\t\t\tNonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "c1cbb4b46a069807f3a07b61eaadd4d7", "score": "0.475734", "text": "@Test\n public void testAvailableCopiesEmptySet() {\n Library library = makeLibrary();\n Book book = new Book(\"A New World Power\", Arrays.asList(\"Steve Hawks\", \"Thomas King\"), 2000);\n\n assertTrue(\"book set should be empty\", library.availableCopies(book).isEmpty());\n }", "title": "" }, { "docid": "ec4a3837340509a8c3076f8bcbe0e96f", "score": "0.47560468", "text": "@Test\n public void testEventDistributionByType() {\n ServiceLocator locator = Utilities.getLocatorWithTopics();\n \n ServiceLocatorUtilities.addClasses(locator, FooPublisher.class,\n ColorPublisher.class,\n DifferentTypesSubscriber.class);\n \n FooPublisher publisher = locator.getService(FooPublisher.class);\n ColorPublisher colorPublisher = locator.getService(ColorPublisher.class);\n \n DifferentTypesSubscriber subscriber = locator.getService(DifferentTypesSubscriber.class);\n \n // Will only activate the Foo subscription, not the Bar subscription\n publisher.publishFoo(1);\n \n Assert.assertEquals(1, subscriber.getFooValue());\n Assert.assertEquals(0, subscriber.getBarValue());\n Assert.assertNull(subscriber.getLastColorEvent());\n \n // Will activate both the Foo and Bar subscribers\n publisher.publishBar(1);\n \n Assert.assertEquals(3, subscriber.getFooValue()); // One for Foo subscriber, One for Bar subscriber, One from previous publish\n Assert.assertEquals(1, subscriber.getBarValue()); // One from the Bar subscriber\n Assert.assertNull(subscriber.getLastColorEvent());\n \n colorPublisher.publishBlackEvent();\n \n Assert.assertEquals(3, subscriber.getFooValue()); // One for Foo subscriber, One for Bar subscriber, One from previous publish\n Assert.assertEquals(1, subscriber.getBarValue()); // One from the Bar subscriber\n Assert.assertEquals(Color.BLACK, subscriber.getLastColorEvent());\n \n }", "title": "" }, { "docid": "ba59feadd46fe5ddee02515e616c2a06", "score": "0.47540313", "text": "void pollSharedPublishesForClient(\n @NotNull String client,\n @NotNull String sharedSubscription,\n int qos,\n boolean retainAsPublished,\n @Nullable Integer subscriptionIdentifier,\n @NotNull Channel channel);", "title": "" }, { "docid": "81901abe91c2da93a2c6e622d07ec145", "score": "0.47496313", "text": "public void producePublications() throws TarlException {\n\t\tCollection collection;\n\t\tIterator iterator;\n\n\t\tcollection = authorManager.partitionActiveAuthors();\n\t\titerator = collection.iterator();\n\n\t\twhile (iterator.hasNext())\n\t\t\tpublicationManager.producePublications((AuthorsTopicBucket)iterator\n\t\t\t .next());\n\t}", "title": "" }, { "docid": "84ae361831205ad5d7065ee2e9d70803", "score": "0.4736057", "text": "boolean isPublished();", "title": "" }, { "docid": "d8b277f4a647e6d55ec71280eb4a6c0e", "score": "0.4731247", "text": "@Test\n void emitsDoesNotAutoCompleteOrRenew() {\n // Arrange\n final ServiceBusMessageProcessor processor = createMessageSink(message1, message2, message3, message4)\n .subscribeWith(new ServiceBusMessageProcessor(false, false, Duration.ZERO,\n retryOptions, errorContext, onComplete, onAbandon, onRenewLock));\n\n // Act & Assert\n StepVerifier.create(processor)\n .expectNext(message1, message2, message3, message4)\n .verifyComplete();\n\n verifyZeroInteractions(onComplete);\n }", "title": "" }, { "docid": "ba3f99da076dea5a10aeb859ae4118f1", "score": "0.47248828", "text": "@Test\n public void testRemovePublisher() throws Exception {\n MockFaultHandler faultHandler = new MockFaultHandler(\"testRemovePublisher\");\n List<MockPublisher> publishers = asList(new MockPublisher(\"a\"),\n new MockPublisher(\"b\"),\n new MockPublisher(\"c\"));\n try (MetadataLoader loader = new MetadataLoader.Builder().\n setFaultHandler(faultHandler).\n setHighWaterMarkAccessor(() -> OptionalLong.of(1L)).\n build()) {\n loader.installPublishers(publishers.subList(0, 2)).get();\n loader.removeAndClosePublisher(publishers.get(1)).get();\n MockSnapshotReader snapshotReader = MockSnapshotReader.fromRecordLists(\n new MetadataProvenance(100, 50, 2000),\n asList(asList(new ApiMessageAndVersion(\n new FeatureLevelRecord().\n setName(MetadataVersion.FEATURE_NAME).\n setFeatureLevel(IBP_3_3_IV2.featureLevel()), (short) 0))));\n assertFalse(snapshotReader.closed);\n loader.handleLoadSnapshot(snapshotReader);\n loader.waitForAllEventsToBeHandled();\n assertTrue(snapshotReader.closed);\n publishers.get(0).firstPublish.get(1, TimeUnit.MINUTES);\n loader.removeAndClosePublisher(publishers.get(0)).get();\n }\n assertTrue(publishers.get(0).closed);\n assertEquals(IBP_3_3_IV2,\n publishers.get(0).latestImage.features().metadataVersion());\n assertTrue(publishers.get(1).closed);\n assertNull(publishers.get(1).latestImage);\n assertFalse(publishers.get(2).closed);\n assertNull(publishers.get(2).latestImage);\n faultHandler.maybeRethrowFirstException();\n }", "title": "" }, { "docid": "2c8dbc518e189cffb3b23c32b62b005b", "score": "0.47218865", "text": "@Test(priority = 83)\n\tpublic static void CreditNote_Creationfor_India_Registered_InterState_NonGST()\n\t\t\tthrows InterruptedException, AWTException, IOException {\n\n\t\tGST_Credit_Note CN = new GST_Credit_Note();\n\t\tCN.createCreditNote_NIL_Rated_Exempted_Non_GST(driver, Registered_Customer_Code_InterState, NonGST_Product_ID);\n\n\t}", "title": "" }, { "docid": "05301d014b04307f7fb80630cba042f8", "score": "0.4717978", "text": "void onSubscriptionInfo(SubscriptionInfo info);", "title": "" }, { "docid": "dd6ad191f660649ac88ec043f39415af", "score": "0.47075862", "text": "public void unpublish(Publication publication) {\r\n\r\n if (activePubs.contains(publication)) {\r\n if (connected) {\r\n Message sendMsg = new PublishMessage(publication, true);\r\n this.sendMessage(sendMsg);\r\n log.writeToLog(\"Unpublication request sent to broker.\");\r\n }\r\n activePubs.remove(publication);\r\n } else if (outboxPubs.contains(publication)) {\r\n outboxPubs.remove(publication);\r\n log.writeToLog(\"Publication unpublished from outbox. No need to contact the broker.\");\r\n } else {\r\n log.writeToLog(\"Unpublication impossible because publication is not active.\");\r\n }\r\n }", "title": "" }, { "docid": "a52fccdc91c91d6a7b4bf1c0b8b15a9c", "score": "0.4702502", "text": "void pollSharedPublishes(@NotNull String sharedSubscription);", "title": "" }, { "docid": "2caaa52488ee2f900a52a89922340c1e", "score": "0.47003427", "text": "private void publishTelemetryData(String topic, SmartObjectResource smartObjectResource) throws MqttException, JsonProcessingException {\n //logger.info(\"Publishing to Topic: {} Smart Object: {}\", topic, telemetryMessage);\n\n Optional<String> senMLPayload = smartObjectResource.getJsonSenmlResponse(); // DAN ****************\n\n //logger.info(\"Publishing to Topic: {} Smart Object: {}\", topic, smartObjectResource.getJsonSenmlResponse().toString()); // per configurare i messaggi vedi telemetryMessagge\n logger.info(\"Publishing to Topic: {} Smart Object: {}\", topic, senMLPayload.get()); // DAN ****************\n\n\n //if (mqttClient.isConnected() && telemetryMessage != null && topic != null) {\n //if (mqttClient.isConnected() && smartObjectResource.getJsonSenmlResponse().toString() != null && topic != null) {\n if (mqttClient.isConnected() && senMLPayload.isPresent() && topic != null) { // DAN ****************\n\n\n //MqttMessage msg = new MqttMessage(smartObjectResource.getJsonSenmlResponse().toString().getBytes());\n MqttMessage msg = new MqttMessage(senMLPayload.get().getBytes()); // DAN ****************\n\n\n //Set com.station.cooking.cheese.message QoS\n msg.setQos(this.smartObjectConfiguration.getMqttOutgoingClientQoS());\n\n mqttClient.publish(topic,msg);\n\n this.messageCount++;\n\n logger.info(\"Data Correctly Published to topic: {}\", topic);\n\n } else{\n logger.error(\"Error: Topic or Msg = Null or MQTT Client is not Connected !\");\n }\n\n }", "title": "" }, { "docid": "93e17f0049911042d4ee0bbf23b29c35", "score": "0.46989474", "text": "public boolean isSetSubscription() {\n return this.subscription != null;\n }", "title": "" } ]
4674077e255fd7d1180e3eeda7791366
Get Delivery List to send to customers. Ascending by Departure Dates
[ { "docid": "c8782bea8a91807c267c99f8663b228c", "score": "0.59308803", "text": "private void getDelivery() {\n\t\t// TODO Auto-generated method stub\n\t\tdialog = ProgressDialog.show(DeliveryActivity.this, \"\", \"Please wait ...\", true);\n\t\tdialog.setCancelable(true);\n\t\t\n\t\tLog.i(\"\", \"Access Token: \"+AppLoginUser.getAccessToken());\n\t\t\n\t\tNetworkEngine.setIP(\"starticketmyanmar.com\");\n\t\tNetworkEngine.getInstance().getDeliveryList(AppLoginUser.getAccessToken(), new Callback<List<Delivery>>() {\n\n\t\t\tpublic void failure(RetrofitError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (arg0.getResponse() != null) {\n\t\t\t\t\tLog.e(\"\",\n\t\t\t\t\t\t\t\"Item Request Error : Response Code = \"\n\t\t\t\t\t\t\t\t\t+ arg0.getResponse()\n\t\t\t\t\t\t\t\t\t\t\t.getStatus());\n\t\t\t\t\t//Log.e(\"\", \"Error URL: \"+arg0.getUrl());\n\t\t\t\t\tshowAlert(\"Something's Wrong in Server!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (dialog != null) {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpublic void success(List<Delivery> arg0, Response arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (arg0 != null) {\n\t\t\t\t\t\n\t\t\t\t\tLog.i(\"\", \"delivery list \"+arg0.toString());\n\t\t\t\t\t\n\t\t\t\t\tlst_delivery = arg0;\n\t\t\t\t\t\n\t\t\t\t\tif (lst_delivery != null && lst_delivery.size() > 0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*for (int i = 0; i < lst_delivery.size(); i++) {\n\t\t\t\t\t\t\tThreeDaySale sale = (ThreeDaySale)lst_delivery.get(i);\n\t\t\t\t\t\t\tsale.setDepartureDate(changeDate(lst_threeday_sale.get(i).getDepartureDate()));\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t\tlv_delivery.setAdapter(new DeliveryListViewAdapter(DeliveryActivity.this, lst_delivery, AppLoginUser.getAccessToken()));\n\t\t\t\t\t\tlv_delivery.setDividerHeight(0);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tshowAlert(\"No Delivery List!\");\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tshowAlert(\"No Delivery List!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (dialog != null) {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" } ]
[ { "docid": "3e5c03e0f6b1b4573479e8b5f7d7a2e6", "score": "0.7143507", "text": "public List<Delivery> getAllDeliverys();", "title": "" }, { "docid": "2a286fe58203ae18b4c91058161b09f3", "score": "0.7114613", "text": "public List<ClientOrder> getClientOrdersByDelivery(Delivery delivery);", "title": "" }, { "docid": "f913ec4881efd6bf352b5b4227b32276", "score": "0.6266353", "text": "List<Order> selectAvailableDelivery(User courier) throws DaoException;", "title": "" }, { "docid": "9f35ba30ac3bb87e29e6f1d979aaa198", "score": "0.62494516", "text": "public ArrayList<Order> deliveriesOnDay(java.sql.Date deliveryDate) {\n String sqlCommand = \"SELECT * FROM Orders WHERE delivery_date = '\" + deliveryDate + \"' AND take_away = 0;\";\n return getOrders(sqlCommand);\n }", "title": "" }, { "docid": "a004a0b6a3d988acc26b8d61a4b78d22", "score": "0.6157165", "text": "public ArrayList<Order> deliveriesToday() {\n String sqlCommand = \"SELECT * FROM Orders WHERE delivery_date = CURDATE() AND take_away = 0 ORDER BY delivery_time ASC;\";// + now + \";\";\n return getOrders(sqlCommand);\n }", "title": "" }, { "docid": "e6c582f7ad3601794d010499c9632ee1", "score": "0.60545146", "text": "List<Order> selectCompleteDelivery(User courier) throws DaoException;", "title": "" }, { "docid": "fe66d0d53d94eca3b534b9310eba7126", "score": "0.5989145", "text": "public List<ClientOrder> getClientOrdersWithDateAfter(java.util.Date _minDate);", "title": "" }, { "docid": "cb7f391cd899f4180d91424b9e921580", "score": "0.59357077", "text": "ArrayList<Order> getOrderListByDate(LocalDate userDate, ArrayList<Order> orderList);", "title": "" }, { "docid": "680e5de8945ddd64eafe1e10a7893594", "score": "0.5870977", "text": "public ArrayList<Order> deliveriesTomorrow() {\n String sqlCommand = \"SELECT * FROM Orders WHERE delivery_date = CURDATE() + INTERVAL 1 DAY AND take_away = 0;\";\n return getOrders(sqlCommand);\n }", "title": "" }, { "docid": "046f4433309984436ffe41e311a1821c", "score": "0.58632374", "text": "public List<Flight> getFlightsDeparting(Airport airportCode, DateTime date);", "title": "" }, { "docid": "198319fa27918d007fb0b2d485c84238", "score": "0.58629006", "text": "@GetMapping(\"/getCashOnDelivery\")\n public List<OrderDetails> getCashOnDelivery(){\n List<OrderDetails> orderDetails = orderDetailsRepository.findAll();\n List<OrderDetails> filterOrders = new ArrayList<OrderDetails>();\n for(int i=0; i<orderDetails.size(); i++) {\n if(orderDetails.get(i).getDelete_status() == 0\n && orderDetails.get(i).getOrder_type().equals(\"cash on delivery\")) {\n filterOrders.add(orderDetails.get(i));\n }\n }\n return filterOrders;\n }", "title": "" }, { "docid": "93975bc2375da9fbf816b626732ad910", "score": "0.5848941", "text": "public ArrayList<Dish> getAllDeliveredDishes() {\n ArrayList<Dish> dishes = new ArrayList<>();\n for (Order order : this.order) {\n for (Dish d : order.getDishes()) {\n if (d.hasBeenDelivered()) {\n dishes.add(d);\n }\n }\n }\n return dishes;\n }", "title": "" }, { "docid": "6399e132cfb4c6d8aebc29b882e2539e", "score": "0.58479977", "text": "public ArrayList<ArrayList<Order>> splitDeliveriesToday() {\n ArrayList<ArrayList<Order>> allDeliveries = new ArrayList<ArrayList<Order>>();\n ArrayList<Order> orders = new ArrayList<Order>();\n ArrayList<Order> tmp = new ArrayList<Order>();\n tmp = deliveriesToday();\n for(int i = 0; i < tmp.size(); i++) {\n orders.add(tmp.get(i));\n }\n\n ArrayList<Order> deliveriesInterval = new ArrayList<Order>();\n if(orders.get(0) != null) {\n deliveriesInterval.add(orders.get(0));\n if (orders.size() == 1) {\n allDeliveries.add(deliveriesInterval);\n }\n\n double count = orders.get(0).getDeliveryTime();\n\n for (int i = 1; i < orders.size(); i++) {\n if ((orders.get(i).getDeliveryTime() - count) < 1.0) {\n deliveriesInterval.add(orders.get(i));\n } else {\n count = orders.get(i).getDeliveryTime();\n allDeliveries.add(deliveriesInterval);\n deliveriesInterval = new ArrayList<Order>();\n deliveriesInterval.add(orders.get(i));\n if(i == orders.size()-1) {\n allDeliveries.add(deliveriesInterval);\n }\n }\n }\n }\n return allDeliveries;\n }", "title": "" }, { "docid": "5e160c02a75a209977b732a2b245ff20", "score": "0.58322984", "text": "List<Order> selectProcessingDelivery(User courier) throws DaoException;", "title": "" }, { "docid": "e31b433979815d21b888f1615b81baf6", "score": "0.5817086", "text": "List<OrderDTO> getOrdersCreatedBetween(LocalDate start, LocalDate end);", "title": "" }, { "docid": "960396ef803ca33764fc9b15005f2232", "score": "0.5791421", "text": "public List<DeliveryForApi> getDeliveryForApiList() {\n return deliveryForApiList;\n }", "title": "" }, { "docid": "6b14ac8e6bc83e514afde13be6c94fea", "score": "0.5731714", "text": "public ArrayList<CustomerOrder> viewAllOrders() {\n\t\tArrayList<CustomerOrder> coaList = new ArrayList<CustomerOrder>();\n\t\tIterator<CustomerOrder> itr = deliveryQueue.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tcoaList.add(itr.next());\n\t\t}\n\t\treturn coaList;\n\t}", "title": "" }, { "docid": "dec4f49fd6999b8d83beb09502d5833e", "score": "0.5680436", "text": "List<OrderDTO> getOrders();", "title": "" }, { "docid": "6a6b025396a560c2a1b8c7b8ecf6f597", "score": "0.56633765", "text": "public List<Delivery> searchDeliverys(String _searchString, int _maxResults);", "title": "" }, { "docid": "78231310ff72d4fbca6ffa74d10080dd", "score": "0.5602363", "text": "public List<ClientOrder> getClientOrdersWithDateBefore(java.util.Date _maxDate);", "title": "" }, { "docid": "dfeb9076f8708c1c17b7ee20659ab51d", "score": "0.5581692", "text": "@JsonIgnore public Collection<java.util.Date> getDateReceiveds() {\n final Object current = myData.get(\"dateReceived\");\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 }", "title": "" }, { "docid": "5bc9fda4a866b7bbe3587067046053cc", "score": "0.5577555", "text": "public ArrayList<Order> deliveriesThisWeek() {\n String sqlCommand = \"SELECT * FROM Orders WHERE WEEK(delivery_date) = WEEK(CURDATE()) AND YEAR(delivery_date) = YEAR(CURDATE()) AND delivery_date >= CURDATE() AND take_away = 0;\";\n return getOrders(sqlCommand);\n }", "title": "" }, { "docid": "af81777ad08ff6191e47a0f6969a6a13", "score": "0.55566305", "text": "public List<ClientOrder> searchClientOrderWithDelivery(final Delivery delivery, String _searchString, int _maxResults);", "title": "" }, { "docid": "0a5b6a6d36f4d38d4534421f5f2eefce", "score": "0.55524486", "text": "public ArrayList<DPDeliveryChallanAcceptDTO> vewAllSerialsOfDeliveryChallan(String invoiceNo) throws DPServiceException;", "title": "" }, { "docid": "53c981e81f7529491976f710d7ead6dc", "score": "0.5544739", "text": "public List<Order> getFifoDeliveries() {\n return fifoDeliveries;\n }", "title": "" }, { "docid": "538f496c2a807e91777dfba76e18d291", "score": "0.5538464", "text": "@Override\n public List<DeliveryType> getDeliveryTypes(URI baseURI) {\n List<IPSDeliveryType> types = pubService.findAllDeliveryTypes();\n List<DeliveryType> response = new ArrayList<>();\n for(IPSDeliveryType t : types){\n response.add(copyDeliveryType(t));\n }\n return response;\n }", "title": "" }, { "docid": "f2ed2b9f19775c3ae1c40f66db9117e4", "score": "0.553596", "text": "@Override\n\tpublic List<DossierClient> listByDateandStatus() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "58e57e78a1328d9b368f7e90c265c690", "score": "0.5529255", "text": "public AascOrderSearchBean searchOrderNumbers(int clientId, java.sql.Date shipment_fromDate, \n java.sql.Date shipment_toDate, String customer_name);", "title": "" }, { "docid": "f74e85d1d3a2d59950be5558366c531c", "score": "0.55065125", "text": "public List<List<Order>> getActiveOrderList(String emailId);", "title": "" }, { "docid": "697a87f4f97d1f9c03f236252ff467dc", "score": "0.55048305", "text": "List<OrderDTO> getOrdersCreatedBetweenWithState(LocalDate start, LocalDate end, OrderState state);", "title": "" }, { "docid": "67e41fa20bf29e0e281d90493d39ebcd", "score": "0.55016375", "text": "public List<List<Order>> getOrderList(String emailId);", "title": "" }, { "docid": "b65d1e933d98757a5443bc34cb4b7ce2", "score": "0.5500832", "text": "public List getPurchaseDueDatesDetailsForReport(){\r\n\r\n\t\tHibernateUtility hbu=null;\r\n\t\tSession session=null;\r\n\t\tList<SupplierPaymentDetail> productList=null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSimpleDateFormat dateFormat1 = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\t\tDate dateobj = new Date();\r\n\t\t\tString todayDate = dateFormat1.format(dateobj);\r\n\t\t\thbu = HibernateUtility.getInstance();\r\n\t\t\tsession = hbu.getHibernateSession();\r\n\t\t\tQuery query=session.createSQLQuery(\"SELECT s.supplier_name, gross_total,purchaseDate,dueDate,bill_number FROM goods_receive LEFT JOIN supplier_details s on s.pk_supplier_id = fk_supplier_id WHERE DATEDIFF(dueDate,'\"+todayDate+\"')<=5 AND DATEDIFF(dueDate,'\"+todayDate+\"')>0 GROUP BY bill_number\");\r\n\t\t\tList<Object[]> list = query.list();\r\n\t\t\tproductList= new ArrayList<SupplierPaymentDetail>(0);\t\r\n\t\t\tfor (Object[] o : list) {\r\n\t\t\t\tSystem.out.println(Arrays.toString(o));\r\n\r\n\t\t\t\tSupplierPaymentDetail reports = new SupplierPaymentDetail();\r\n\t\t\t\treports.setSupplierName(o[0].toString());\r\n\t\t\t\treports.setTotalAmount(Double.parseDouble(o[1].toString()));\r\n\t\t\t\treports.setPaymentDate(o[2].toString());\r\n\t\t\t\treports.setDueDate(o[3].toString());\r\n\t\t\t\treports.setBillNumber(o[4].toString());\r\n\t\t\t\tproductList.add(reports);\t\t\r\n\t\t\t}}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif(session!=null){\r\n\t\t\t\thbu.closeSession(session);\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn productList;\r\n\t}", "title": "" }, { "docid": "48d5cb695c36f62eebddfb48c86b565e", "score": "0.5491724", "text": "@GET\r\n\t@Path(\"/view/cdate\")\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic List<TaskBean> sortByCompletionDate()\r\n\t{\r\n\t\tTaskService getAllTask = new TaskService();\r\n\t\tList<TaskBean> allTasks = getAllTask.getTaskByCompletionDate();\r\n\t\treturn allTasks;\r\n\t}", "title": "" }, { "docid": "cfd9f12c269871d42eb3a85c6d5865f6", "score": "0.5478263", "text": "public List<Flight> getFlightsArrivingAt(Airport airportCode, DateTime date);", "title": "" }, { "docid": "0fc8d6904a0e74a871292af5e8e52670", "score": "0.5477277", "text": "public int getDeliverDays() {\n return deliverDays;\n }", "title": "" }, { "docid": "2ba6a1698e5ef0a7a9befadf7dace4a4", "score": "0.5477013", "text": "long[] getOrder(java.util.Date dateTo, java.util.Date dateFrom) throws java.io.IOException;", "title": "" }, { "docid": "4be2dbd068f4ca1772f713558a3ab7d6", "score": "0.5467049", "text": "@Override\n\tpublic List<OrderDTO> bringOrderList() {\n\t\treturn dao.selectOrderList();\n\t}", "title": "" }, { "docid": "d1141dcf63f50aa0773221f4e811d2b7", "score": "0.5459357", "text": "@java.lang.Override\n public long getDeliveryDate() {\n return deliveryDate_;\n }", "title": "" }, { "docid": "224966d9462a15efb40096d29fb93d36", "score": "0.5457705", "text": "Delivery getDelivery();", "title": "" }, { "docid": "33be72cf8611a79c18ef7dd1ed431ccd", "score": "0.54483706", "text": "public List<Freelancer> getFreelancers();", "title": "" }, { "docid": "5715fd5d5e127190bf4af72128f40c84", "score": "0.5430459", "text": "List<OrderDTO> getOrdersLastDay();", "title": "" }, { "docid": "aa3ae072a91eca4bd0d89b7d6802bebd", "score": "0.5415114", "text": "@java.lang.Override\n public long getDeliveryDate() {\n return deliveryDate_;\n }", "title": "" }, { "docid": "25ab44d031f9cd45e1d2b56b1ae31f46", "score": "0.5397276", "text": "public void setDeliveryForApiList(List<DeliveryForApi> deliveryForApiList) {\n this.deliveryForApiList = deliveryForApiList;\n }", "title": "" }, { "docid": "47e2a9715b13493c38e7718b2e425135", "score": "0.539508", "text": "java.util.List<com.google.cloud.channel.v1.Offer> \n getOffersList();", "title": "" }, { "docid": "b7230aeed04bab389bf94fed6f0e8cef", "score": "0.5385873", "text": "java.lang.String[] getBill(java.util.Date dateTo, java.util.Date dateFrom) throws java.io.IOException;", "title": "" }, { "docid": "670787b2d43ea46dca7fcfff49aa84a5", "score": "0.5380184", "text": "List<OrderDTO> getOrdersLastWeek();", "title": "" }, { "docid": "a680e6ae565e6e65d25e830425899998", "score": "0.53785646", "text": "List<Order> orderList(OrderSizeRequest orderSizeReques);", "title": "" }, { "docid": "d1328d3f1323a9ddce6d27d7c635b80b", "score": "0.53563136", "text": "@Override\r\n\tpublic List<Deliver> selectByDate(Map<String, String> map) {\n\t\treturn deliverMapper.selectByDate(map);\r\n\t}", "title": "" }, { "docid": "15918f691b48331a1f347ef5b804fbf7", "score": "0.5348693", "text": "public String deliveriesList(DropPoint idDropPoint) {\n List<String> aux = new ArrayList<>();\n\n ResultSet executeQuery = executeQuery(\"select e.id_entrega, e.data_fecha_prateleira, p.id_prateleira \"\n + \" from entrega e, prateleira p, armario a, droppoint d\"\n + \" where e.id_prateleira = p.id_prateleira\"\n + \" and p.id_armario = a.id_armario\"\n + \" and a.id_droppoint = d.id_droppoint\"\n + \" and d.id_droppoint = \" + idDropPoint.getId());\n\n try {\n String str = \"\";\n while (executeQuery.next()) {\n\n str += \" ID: \" + executeQuery.getString(\"id_entrega\") + \" Delivery date: \" + executeQuery.getString(\"data_fecha_prateleira\") + \". ID Cell: \" + executeQuery.getString(\"id_prateleira\") + \"\\n\";\n aux.add(str);\n }\n if (str.isEmpty()) {\n str = \"Does not exist.\";\n }\n\n return str;\n } catch (SQLException ex) {\n Logger.getLogger(DropPointDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return null;\n }", "title": "" }, { "docid": "a031821cd1834fe38fa78336d7657fce", "score": "0.534079", "text": "ArrayList<DPDeliveryChallanAcceptDTO> getInitDeliveryChallan(long loginUserId)throws DPServiceException;", "title": "" }, { "docid": "689fec4f668a345cdf0b7076671a4bf4", "score": "0.5311643", "text": "public List<ClientOrder> getAllClientOrders();", "title": "" }, { "docid": "35b287ba1809367b4024e85ffbcdc21a", "score": "0.5308842", "text": "private List<DemandDetails> getOrderedDemandDetails(List<DemandDetails> demandDetails) {\n\t\tdemandDetails.sort((d1, d2) -> d1.getPeriodStartDate().compareTo(d2.getPeriodStartDate()));\n\n\t\tList<DemandDetails> orderedDemandDetailsList = new LinkedList<>();\n\t\tMap<Date, List<DemandDetails>> demandDetailsMap = getDemandDetailsMap(demandDetails);\n\t\t\n\t\tSet<Date> installmentDates = demandDetailsMap.keySet();\n\t\tfor (Date installmentDate : installmentDates) {\n\t\t\tSet<DemandDetails> demandDetailsSet = new LinkedHashSet<>();\n\t\t\tMap<String, DemandDetails> demandReasonMap = new HashMap<>();\n\t\t\tList<DemandDetails> installmentDemands = demandDetailsMap.get(installmentDate);\n\t\t\tfor (DemandDetails demandDetail : installmentDemands) {\n\n\t\t\t\tdemandReasonMap.put(demandDetail.getTaxReasonCode(), demandDetail);\n\n\t\t\t}\n\t\t\tif (demandReasonMap.containsKey(\"ADVANCE_TAX\")) {\n\t\t\t\tdemandDetailsSet.add(demandReasonMap.get(\"ADVANCE_TAX\"));\n\t\t\t}\n\t\t\tif (demandReasonMap.containsKey(\"GOODWILL_AMOUNT\")) {\n\t\t\t\tdemandDetailsSet.add(demandReasonMap.get(\"GOODWILL_AMOUNT\"));\n\t\t\t}\n\t\t\tif (demandReasonMap.containsKey(\"RENT\")) {\n\t\t\t\tdemandDetailsSet.add(demandReasonMap.get(\"RENT\"));\n\t\t\t}\n\t\t\tif (demandReasonMap.containsKey(PENALTY)) {\n\t\t\t\tdemandDetailsSet.add(demandReasonMap.get(PENALTY));\n\t\t\t}\n\t\t\tif (demandReasonMap.containsKey(\"SERVICE_TAX\")) {\n\t\t\t\tdemandDetailsSet.add(demandReasonMap.get(\"SERVICE_TAX\"));\n\t\t\t}\n\t\t\tif (demandReasonMap.containsKey(\"CENTRAL_GST\")) {\n\t\t\t\tdemandDetailsSet.add(demandReasonMap.get(\"CENTRAL_GST\"));\n\t\t\t}\n\t\t\tif (demandReasonMap.containsKey(\"STATE_GST\")) {\n\t\t\t\tdemandDetailsSet.add(demandReasonMap.get(\"STATE_GST\"));\n\t\t\t}\n\t\t\torderedDemandDetailsList.addAll(demandDetailsSet);\n\n\t\t}\n\t\treturn orderedDemandDetailsList;\n\n\t}", "title": "" }, { "docid": "37ac2cbd9ae3abb8e26b3851652f3d01", "score": "0.5301259", "text": "DeliveryDateParameters getDeliveryDateReference();", "title": "" }, { "docid": "e9a08179639caf2a59f482d2b5522c65", "score": "0.52952325", "text": "ArrayList<Order> getOrderList();", "title": "" }, { "docid": "fe39b1b06fd94658a4ac15d724e7bbdb", "score": "0.5291204", "text": "public ArrayList<ArrayList<String>> splittedAddressesAndTimeToday() {\n ArrayList<ArrayList<Order>> splittedDeliveriesToday = splitDeliveriesToday();\n ArrayList<ArrayList<String>> addresses = new ArrayList<ArrayList<String>>();\n ArrayList<String> addressList;// = new ArrayList<String>();\n\n for(ArrayList<Order> innerList : splittedDeliveriesToday) {\n addressList = new ArrayList<String>();\n for(Order order : innerList) {\n addressList = new ArrayList<String>();\n String orderAddress = order.getDeliveryTime() + \"|\" + order.getAddress() + \", \" + order.getZipCode();\n addressList.add(orderAddress);\n }\n addresses.add(addressList);\n }\n return addresses;\n }", "title": "" }, { "docid": "069b61069b10f5a894476f9f9e7949a6", "score": "0.52554554", "text": "List<CompanyOrderDTO> getCompanyOrderByCurrentUser();", "title": "" }, { "docid": "9f63c2c15cb798277fb23a3e9264f9c9", "score": "0.5235326", "text": "public List<DealerOrder> getDealerOrders() {\n return dealerOrders;\n }", "title": "" }, { "docid": "cf0839f78e07da51239d6118c56eb4e9", "score": "0.5229547", "text": "List<MeitaoOrder> getOrderList();", "title": "" }, { "docid": "b0e84c6923f90356c03d9d38f6be1264", "score": "0.5222497", "text": "public String getPurchaseDepartments() {\n return purchaseDepartments;\n }", "title": "" }, { "docid": "29f301f52971bb48720e5e2043212dc0", "score": "0.52127796", "text": "List<Payment> settle(List<Debt> debts);", "title": "" }, { "docid": "b5ecc17bc9b1a062ed0cf999a247748e", "score": "0.5199537", "text": "List<Departamento> getDepartamentos();", "title": "" }, { "docid": "963bfc76083d87a9b4f2561bab6bb937", "score": "0.51958305", "text": "@JsonIgnore public Collection<java.util.Date> getDateSents() {\n final Object current = myData.get(\"dateSent\");\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 }", "title": "" }, { "docid": "765980d462ca18bf7848bd22e2d99445", "score": "0.5193944", "text": "DeliveryType getDelivery();", "title": "" }, { "docid": "c070f7ab2a48abeb841ddea12a9fa96a", "score": "0.5178423", "text": "private static final void listDailyArchives(Document downloadPage, DataDate startDate,\n List<EtoArchive> list) {\n final Pattern dailyPattern = Settings.getEtoDailyPattern();\n\n DataDate now = DataDate.today().next();\n\n final NodeList dailyOptions = downloadPage\n .getElementById(ETO_DAILY_ID)\n .getElementsByTagName(\"option\");\n for (int i = 0; i < dailyOptions.getLength(); ++i) {\n final String path = ((Element)dailyOptions.item(i)).getAttribute(\"value\");\n\n // Extract the year and month with a regular expression\n final Matcher matcher = dailyPattern.matcher(path);\n if (matcher.matches()) {\n final int year = Integer.parseInt(matcher.group(1)) + 2000; // Group only contains two digits\n final int month = Integer.parseInt(matcher.group(2));\n final int day = Integer.parseInt(matcher.group(3));\n\n try {\n final DataDate lastDate = new DataDate(day, month, year);\n\n // Only add newer archives that extend past the start date\n if (lastDate.compareTo(startDate) >= 0 && lastDate.compareTo(now) <= 0) {\n list.add(EtoArchive.daily(year, month, day));\n }\n } catch (IllegalArgumentException e) { // The ETo portal occasionally provides non-existent dates.\n System.out.println(String.format(\"ETo portal provided non-existent date: %d-%d-%d\", month, day, year));\n }\n }\n }\n }", "title": "" }, { "docid": "6720684de0d61305c741fbd28b62b7c0", "score": "0.51524687", "text": "private List<PartnerDTO> toDTOs(List<Partner> partners){\n return partners.stream().map(this::toDTO).collect(Collectors.toList());\n }", "title": "" }, { "docid": "7b1e737670dd1a74c4c1410d16008b6a", "score": "0.51418126", "text": "private static List<Donation> findDonors()\n {\n\n Set<String> emailSet = new HashSet<String>();\n List<Donation> listDonations = new ArrayList<Donation>();\n List<Donation> everyDonation = Donation.findAll();\n\n /**\n * cycle through everyDonation and if a User email is unique i.e. would be\n * added to the HashSet, then add that donation to the donation list to be\n * returned.\n */\n\n for (Donation donations : everyDonation)\n {\n if (emailSet.add(donations.from.email))\n {\n listDonations.add(donations);\n }\n }\n\n return listDonations;\n }", "title": "" }, { "docid": "addb569663b87a39e8077fe11076da77", "score": "0.5141015", "text": "public List<Date> getDates(){\n\t\treturn this.dates;\n\t}", "title": "" }, { "docid": "d09af8bfdd4f5a29bc80cb418daf64d9", "score": "0.51380056", "text": "public List<Client> getClientsMarketingCampaign (Player player){\n player.cash -= 250.0;\n return getNClients(5) ;\n }", "title": "" }, { "docid": "b5b98c57d3f09d800389b162c1e7628e", "score": "0.5136534", "text": "public List<ClientOrder> getClientOrdersByPaymentType(PaymentType paymentType);", "title": "" }, { "docid": "de20235b3107c0251076f857d6df6468", "score": "0.5123083", "text": "public Delivery getDeliveryDeparture() {\n\t\treturn deliveryDeparture;\n\t}", "title": "" }, { "docid": "51cea822a66b5720478570a56f7dec86", "score": "0.5114293", "text": "private void generateOrders(){\n\t\tfor(Pub p : pub){\n\t\t\ttodayOrders.add(p.makeOrder());\n\t\t}\n\t}", "title": "" }, { "docid": "4003225d746119eafccba3cef19c90e5", "score": "0.5109908", "text": "@Override\r\n\tpublic List<Deliver> selectAll() {\n\t\treturn deliverMapper.selectAll();\r\n\t}", "title": "" }, { "docid": "bacc0a2b04cc506a7b57675de9b1507b", "score": "0.5106018", "text": "public List<Departamento> buscartodosDepartamentos();", "title": "" }, { "docid": "f886ce687c1f085ef47eb26a544d571f", "score": "0.510424", "text": "public List<ClientOrder> getClientOrdersByUser(User user);", "title": "" }, { "docid": "eea2cd32f5f53a7d141f6e11bf978c76", "score": "0.51018", "text": "String getDeliveryPoint();", "title": "" }, { "docid": "ee914f6bd36c1c4411f18d7474674e85", "score": "0.50964576", "text": "public static ArrayList<String> getFutureDates() {\n ArrayList<String> dateList = new ArrayList<>();\n SimpleDateFormat df2 = new SimpleDateFormat(\"dd MMM yyyy\", Locale.ENGLISH);\n Date date = new Date();\n\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n dateList.add(df2.format(date));\n for (int i = 0; i < 13; i++) {\n cal.add(Calendar.DATE, 1); // add 10 days\n date = cal.getTime();\n dateList.add(df2.format(date));\n }\n\n return dateList;\n }", "title": "" }, { "docid": "448449338539f0b2989d68c729de7b80", "score": "0.5094188", "text": "@CrossOrigin\n\t@GetMapping(value=\"/report\", produces=MediaType.APPLICATION_JSON_VALUE)\n\tpublic List<PurchaseOrder> getReport(@RequestParam Date from, @RequestParam Date to){\n\t\treturn purchaseOrderService.getReport(from,to);\t\n\t}", "title": "" }, { "docid": "7b8f37b27ad567fda241004ebaadb7b9", "score": "0.50725156", "text": "@Override\n\t@GetMapping(value = url)\n\tpublic ResponseEntity<List<CustomerOrder>> list() {\n\t\treturn super.list();\n\t}", "title": "" }, { "docid": "4c5ae35a81f818036adcc71662246a1d", "score": "0.50718886", "text": "List<OrderDTO> getOrdersWithState(OrderState state);", "title": "" }, { "docid": "db400355e8a346c5fd06c56ceb5689f5", "score": "0.50694245", "text": "private ArrayList<Dealer> getDealers()\n {\n ArrayList<Dealer> dealers=new ArrayList<Dealer>();\n for(int i=0;i<3;i++)\n {\n dealers.add(new Dealer(DealerName.get(i),DealerAddress.get(i)));\n }\n return dealers;\n }", "title": "" }, { "docid": "5f7acb87fdc2257598da33fe8b788c8b", "score": "0.50596035", "text": "public List<SupplierPaymentDetail> getCreditCustPaymentDetailsForSingleDate(\r\n\t\t\tString fDate) {\r\n\r\n\t\tHibernateUtility hbu=null;\r\n\t\tSession session=null;\r\n\t\tList<SupplierPaymentDetail> supplierList = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\thbu = HibernateUtility.getInstance();\r\n\t\t\tsession = hbu.getHibernateSession();\r\n\t\t\tQuery query = session.createSQLQuery(\"select supplier_name, bill_no, total_amount, balance, payment, payment_mode,person_name,paymentType,insert_date FROM supplier_details RIGHT JOIN supplier_payment ON supplier_details.pk_supplier_id = supplier_payment.fk_supplier_id WHERE DATE(insert_date)=:isInsertDate \");\r\n\t\t\tquery.setParameter(\"isInsertDate\", fDate);\r\n\t\t\tList<Object[]> list = query.list();\r\n\t\t\tsupplierList = new ArrayList<SupplierPaymentDetail>(0);\r\n\r\n\r\n\t\t\tfor (Object[] object : list) {\r\n\r\n\t\t\t\tSupplierPaymentDetail reports = new SupplierPaymentDetail();\r\n\t\t\t\tString paymentType = object[7].toString();\r\n\t\t\t\treports.setSupplierName(object[0].toString());\r\n\t\t\t\treports.setBillNo((BigInteger)object[1]);\r\n\t\t\t\treports.setTotalAmount(Double.parseDouble(object[2].toString()));\r\n\t\t\t\treports.setBalanceAmount(Double.parseDouble(object[3].toString()));\r\n\t\t\t\tif(paymentType.equals(\"credit\")){\r\n\t\t\t\t\treports.setCreditAmount(Double.parseDouble(object[4].toString()));\r\n\t\t\t\t\treports.setDebitAmount(0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse if(paymentType.equals(\"debit\")){\r\n\t\t\t\t\treports.setDebitAmount(Double.parseDouble(object[4].toString()));\r\n\t\t\t\t\treports.setCreditAmount(0.0);\r\n\t\t\t\t}\r\n\t\t\t\treports.setPaymentMode(object[5].toString());\r\n\t\t\t\treports.setAccountantName(object[6].toString());\r\n\t\t\t\treports.setPaymentDate(object[8].toString());\r\n\t\t\t\tsupplierList.add(reports); \r\n\r\n\t\t\t}}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\t\r\n\t\t}\r\n\t\treturn supplierList;\t\r\n\t}", "title": "" }, { "docid": "6c0e20b124dad9fc15e20dbe70727a82", "score": "0.50555545", "text": "public Collection<Order> getTodaysOrders() {\n\t\tList<Order> orders = new ArrayList<Order>();\n\n\t\tUser user = new User(1, \"romanlum\", \"\", \"Roman\", \"Lumetsberger\", false,\n\t\t\t\ttrue);\n\n\t\tMenu menu = new Menu(1, \"Wienerschnitzel mit Pommes\", 0, null, null,\n\t\t\t\tnew MenuCategory());\n\n\t\tLocalDateTime time = LocalDateTime.now();\n\t\t\n\t\torders.add(new Order(1, menu, user,time ,\n\t\t\t\t\"ohne Preiselbeeren\"));\n\t\ttime = time.minusHours(1);\n\t\tuser = new User(1, \"christophlum\", \"\", \"Christoph\", \"Lumetsberger\", false,\n\t\t\t\ttrue);\n\t\torders.add(new Order(1, menu, user,time,\n\t\t\t\t\"mit Preiselbeeren\"));\n\t\ttime = time.minusMinutes(1);\n\t\tuser = new User(1, \"romanlum\", \"\", \"Moe\", \"Sislec\", false,\n\t\t\t\ttrue);\n\t\torders.add(new Order(1, menu, user,time,\n\t\t\t\t\"normal\"));\n\t\treturn orders;\n\t}", "title": "" }, { "docid": "d41ea3c0a1ad5ff7e92c9613d03b45c5", "score": "0.50487536", "text": "private void sortDates() {\n DateTimeFormatter dbDateFormatToDateTimeFormat = DateTimeFormat.forPattern(\"EEE MMM dd yyyy\");\n for (String distinctUserPlannedDate : distinctUserPlannedDates) {\n DateTime dateTime = DateTime.parse(distinctUserPlannedDate, dbDateFormatToDateTimeFormat);\n localDatesUnformatted.add(dateTime);\n }\n Collections.sort(localDatesUnformatted);\n distinctUserPlannedDates.clear();\n for (DateTime aLocalDatesUnformatted : localDatesUnformatted) {\n String unformattedDate = aLocalDatesUnformatted.toString(dbDateFormatToDateTimeFormat);\n distinctUserPlannedDates.add(unformattedDate);\n }\n localDatesUnformatted.clear();\n \n }", "title": "" }, { "docid": "199483c64e7f7584559285cee099b032", "score": "0.5046703", "text": "public OrderBean(LocalDateTime _dtDelivery, String _nrCliente) {\n this._dtDelivery = _dtDelivery;\n this._nrCliente = _nrCliente;\n }", "title": "" }, { "docid": "e4328507b73b36cdee5874eefe1153c2", "score": "0.5034404", "text": "void sortContactListBy(OrderType orderType);", "title": "" }, { "docid": "38dce31bfbdb73c451459b7327b5074e", "score": "0.50313514", "text": "private List<String> getCardsToExchange() {\n\t\tList<String> toReturn = null;\n\t\tHashMap<String,Integer> cardsPairsCount = new HashMap<String,Integer>();\n\t\tfor(String s: getCardsAcquired()) {\n\t\t\tif(cardsPairsCount.containsKey(s)) {\n\t\t\t\tcardsPairsCount.put(s,cardsPairsCount.get(s)+1);\n\t\t\t}else {\n\t\t\t\tcardsPairsCount.put(s,1);\n\t\t\t}\n\t\t}\n\t\tString temp =\"\";\n\t\t for(String s:cardsPairsCount.keySet()) {\n\t\t\t if(cardsPairsCount.get(s)>=3) {\n\t\t\t\t temp=s;\n\t\t\t }\n\t\t }\n\t\t if(temp!=\"\") {\n\t\t\t String[] strs = {temp,temp,temp };\n\t\t\t toReturn =Arrays.asList( strs );\n\t\t }else {\n\t\t\t String[] strs = {\"CAVALRY\",\"INFANTRY\",\"ARTILLERY\" };\n\t\t\t toReturn =Arrays.asList( strs );\n\t\t }\n\t\t return toReturn;\n\t}", "title": "" }, { "docid": "f2d1fc8bfe4ae031a8c7a374e0b9c654", "score": "0.50155914", "text": "public ArrayList<LocalDate> getDates() {\n ArrayList<LocalDate> dateList = new ArrayList<>();\n for (TodoItem item : items) {\n dateList.add(item.getDate());\n }\n return dateList;\n }", "title": "" }, { "docid": "ae04e2bc8b6238bc8899ce1a3fab52c9", "score": "0.50122696", "text": "List<Order> getOpenOrders(OrderRequest orderRequest);", "title": "" }, { "docid": "fd2f78acd7747b1a88033e6a1a3edbe1", "score": "0.50106555", "text": "@Test\n public void testShipment_Sorted_By_Date(){\n \t widgets = WidgetUtils.getSampleWidgets();\n widgetCount = widgets.size();\n \n List<Widget> widgetsSortedByDate = widgets\n .stream()\n .sorted(Comparator.comparing(Widget::getProductionDate))\n .collect(Collectors.toList());\n List<Shipment> shipments = new ArrayList<>();\n for (int i = 0; i < 3; i++) {\n Shipment shipment = new Shipment();\n while (!shipment.isFull() && widgetsSortedByDate.size() > 0) {\n Widget widget = widgetsSortedByDate.get(0);\n shipment.addWidget(widget);\n widgetsSortedByDate.remove(widget);\n }\n shipments.add(shipment);\n }\n\n }", "title": "" }, { "docid": "3dc5fc5fed02df7e675fd2ee13140d82", "score": "0.5007997", "text": "List<OrderDTO> getOrdersLastDayWithState(OrderState state);", "title": "" }, { "docid": "05ea76ff0b62f52afab4799ddf666405", "score": "0.5006969", "text": "protected List<EntrepriseDto> getEntreprises(HttpServletRequest req) {\n List<EntrepriseDto> listeEntreprise = entrepriseUcc.getEntreprises().stream()\n .sorted(comparing(EntrepriseDto::getNomEntreprise)).collect(toList());\n return listeEntreprise;\n }", "title": "" }, { "docid": "9ecf394fb33f0a32505a1904f5dbb797", "score": "0.50043786", "text": "@GetMapping(\"/getProcessingOrderDetails/{nic}\")\n public List<DPOrderResponse> getOrderDetails(@PathVariable String nic){\n List<OrderDetails> orderDetails = orderDetailsRepository.findAll();\n List<DPOrderResponse> dpOrderResponses = new ArrayList<DPOrderResponse>();\n\n for(int i=0; i<orderDetails.size(); i++){\n System.out.println(orderDetails.get(i).getDelivery_id());\n\n if((orderDetails.get(i).getDelivery_id().contains(nic))\n && (orderDetails.get(i).getOrder_status().contains(\"Processing\"))){\n\n DPOrderResponse dpOrderResponse = new DPOrderResponse();\n dpOrderResponse.setOrder_id(orderDetails.get(i).getOrder_id());\n dpOrderResponse.setOrder_type(orderDetails.get(i).getOrder_type());\n dpOrderResponse.setAddress(orderDetails.get(i).getAddress());\n dpOrderResponse.setCity(orderDetails.get(i).getCity());\n dpOrderResponse.setMobile(orderDetails.get(i).getMobile());\n dpOrderResponse.setTotal_price(orderDetails.get(i).getTotal_price());\n\n Customer customer = orderDetails.get(i).getCustomer();\n dpOrderResponse.setFirst_name(customer.getFirst_name());\n dpOrderResponse.setLast_name(customer.getLast_name());\n System.out.println(orderDetails.get(i).getOrder_id());\n dpOrderResponses.add(dpOrderResponse);\n }\n }\n\n return dpOrderResponses;\n }", "title": "" }, { "docid": "568ccd55ab60b8b09115535b3b5929b4", "score": "0.50013715", "text": "public Vector<Offer> getOffers(Date firstDay, Date lastDay) {\r\n\r\n Vector<Offer> availableOffers = new Vector<Offer>();\r\n Iterator<Offer> e = offers.iterator();\r\n Offer offer;\r\n while (e.hasNext()) {\r\n offer = e.next();\r\n if ((offer.getFirstDay().compareTo(firstDay) >= 0) && (offer.getLastDay().compareTo(lastDay) <= 0))\r\n availableOffers.add(offer);\r\n }\r\n return availableOffers;\r\n\r\n }", "title": "" }, { "docid": "79a533ab66baee921c8823757ab6d8b2", "score": "0.49992585", "text": "public ArrayList<String> getAddressesFromToday() {\n String sqlCommand = \"SELECT zip, address FROM Orders WHERE delivery_date = CURDATE() AND take_away = 0;\";\n\n return null;\n }", "title": "" }, { "docid": "f12d58a7183560bc7fa7437d9df81940", "score": "0.49891287", "text": "@GET\r\n @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\r\n public Response getFlights(@QueryParam(\"origin\") String origin,\r\n @QueryParam(\"destination\") String destination,\r\n @QueryParam(\"departure\") String dateString){\r\n if (dateString==null || destination==null || origin==null ) \r\n return Response.status(Response.Status.BAD_REQUEST).entity(\"You must specify search criteria\").build(); //Prettyfication - not part of requirements.\r\n \r\n dateString = dateString.replace(\"\\\"\", \"\");\r\n String[] dateStrings = dateString.split(\"-\");\r\n System.out.println(dateStrings[0] + \", \" + dateStrings[1] + \", \" + dateStrings[2]);\r\n XMLGregorianCalendar date = getDate(Integer.parseInt(dateStrings[0]), Integer.parseInt(dateStrings[1]), Integer.parseInt(dateStrings[2]), 0, 0);\r\n List<FlightInformation> flights = DataSingleton.getInstance().getFlights(origin, destination, date);\r\n if (flights == null) flights = new ArrayList<FlightInformation>();\r\n GenericEntity<List<FlightInformation>> wrap = new GenericEntity<List<FlightInformation>>(flights){};\r\n Response response = addCreateLinks(Response.ok(wrap))\r\n .build(); \r\n return response;\r\n }", "title": "" }, { "docid": "7025ecb723105c5f40530dea56f87ccb", "score": "0.49870688", "text": "java.util.List<String> getDateList();", "title": "" }, { "docid": "310c0cccd58f1e3ed5eb0bd7ec8d4fbd", "score": "0.49767616", "text": "public void fetchDailyRevenue() {\n LocalDateTime now = LocalDateTime.now();\n LocalDateTime dateFrom = now.minusDays(1);\n List<ShippingDetail> shippingDetailList = shippingDetailService.getShippingDetailsBetweenDates(dateFrom,\n now);\n\n Map<Location, BigDecimal> shippingDetailMap = new HashMap<>();\n for (ShippingDetail shippingDetail : shippingDetailList) {\n if (!shippingDetailMap.containsKey(shippingDetail.getLocation())) {\n shippingDetailMap.put(shippingDetail.getLocation(), BigDecimal.ZERO);\n }\n BigDecimal oldValue = shippingDetailMap.get(shippingDetail.getLocation());\n BigDecimal newValue = oldValue.add(\n shippingDetail.getProduct().getPrice().multiply(BigDecimal.valueOf(shippingDetail.getQuantity())));\n shippingDetailMap.put(shippingDetail.getLocation(), newValue);\n }\n\n List<Revenue> revenueList = new ArrayList<>();\n for (Map.Entry<Location, BigDecimal> entry : shippingDetailMap.entrySet()) {\n revenueList.add(new Revenue(entry.getKey(), now, entry.getValue()));\n }\n\n revenueRepository.saveAll(revenueList);\n }", "title": "" }, { "docid": "6ee0da72de6b39fee78a89bbe6d15468", "score": "0.49743718", "text": "public ArrayList<Flights_List_Dto> Flights_List(String date_value) {\n\n\t\tArrayList<Flights_List_Dto> arrayList = new ArrayList<Flights_List_Dto>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\t\tSystem.out.println(date_value);\n\t\ttry {\n\t\t\tconnection = dataSource.getConnection(); // dataSource 경로의 디비 실행\n\n\t\t\tString select1 = \"SELECT distinct DATE_FORMAT(Departures_Date,'%m월 %d일') AS SELECT_DATE , DATE_FORMAT(Departures_Date, '%Y-%m-%d') AS SEARCH_DATE \\n\";\n\t\t\tString from1 = \"FROM 4menAir.Flights \\n\";\n\t\t\tString where1 = \"WHERE Departures_Date BETWEEN DATE_ADD(\" + date_value + \", INTERVAL -3 DAY) AND DATE_ADD(\"\n\t\t\t\t\t+ date_value + \", INTERVAL 4 DAY)\";\n\t\t\tPreparedStatement preparedStatement2 = connection.prepareStatement(select1 + from1 + where1);\n\t\t\tResultSet resultSet2 = preparedStatement2.executeQuery();\n\t\t\tSystem.out.println(select1 + from1 + where1);\n\n\t\t\twhile (resultSet2.next()) {\n\t\t\t\tString select_date = resultSet2.getString(\"SELECT_DATE\");\n\t\t\t\tString search_date = resultSet2.getString(\"SEARCH_DATE\");\n\n\t\t\t\tFlights_List_Dto flights_Date_List_Dto = new Flights_List_Dto(select_date, search_date);\n\n\t\t\t\tarrayList.add(flights_Date_List_Dto);\n\t\t\t}\n\n\t\t\tString select2_1 = \"SELECT Flights_Code, Departures, \";\n\t\t\tString select2_2 = \"CAST(Departures_Date AS date) AS Departures_Date, CAST(Departures_Date AS time) AS Departures_Time, Arrivals, CAST(Arrivals_Date AS date) AS Arrivals_Date, CAST(Arrivals_Date AS time) AS Arrivals_Time, \";\n\t\t\tString select2_3 = \"Passengers, Payments, Create_Date, DATE_FORMAT(Departures_Date,'%m월 %d일') AS SELECT_DATE \\n\";\n\t\t\tString from2 = \"FROM 4menAir.Flights \\n\";\n\t\t\tString where2 = \"WHERE DATE_FORMAT(Departures_Date, '%Y%m%d') = \" + date_value;\n\t\t\tpreparedStatement = connection.prepareStatement(select2_1 + select2_2 + select2_3 + from2 + where2);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\tSystem.out.println(select2_1 + select2_2 + select2_3 + from2 + where2);\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tint flights_Code = resultSet.getInt(\"Flights_Code\");\n\t\t\t\tString departures = resultSet.getString(\"Departures\");\n\t\t\t\tString departures_Date = resultSet.getString(\"Departures_Date\");\n\t\t\t\tString departures_Time = resultSet.getString(\"Departures_Time\");\n\t\t\t\tString arrivals = resultSet.getString(\"Arrivals\");\n\t\t\t\tString arrivals_Date = resultSet.getString(\"Arrivals_Date\");\n\t\t\t\tString arrivals_Time = resultSet.getString(\"Arrivals_Time\");\n\t\t\t\tString passengers = resultSet.getString(\"Passengers\");\n\t\t\t\tString payments = resultSet.getString(\"Payments\");\n\t\t\t\tString create_Date2 = resultSet.getString(\"Create_Date\");\n\n\t\t\t\tFlights_List_Dto flights_List_Dto = new Flights_List_Dto(flights_Code, departures, departures_Date,\n\t\t\t\t\t\tdepartures_Time, arrivals, arrivals_Date, arrivals_Time, passengers, payments, create_Date2);\n\n\t\t\t\tarrayList.add(flights_List_Dto);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (resultSet != null) {\n\t\t\t\t\tresultSet.close();\n\t\t\t\t}\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e2) {\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn arrayList;\n\t}", "title": "" }, { "docid": "5cc63fc011c03af6aeb40d83a2f646b8", "score": "0.4969902", "text": "public String getEarliestDepartureDateString();", "title": "" }, { "docid": "dbf45ad5831f86d19fa3e3b6269a4d8c", "score": "0.49663153", "text": "List<OrderDTO> getOrdersLastWeekWithState(OrderState state);", "title": "" } ]
7b725327b240ad6221d8e0a6b589cc18
Pertoken weighted statistics. .tensorflow.metadata.v0.NaturalLanguageStatistics.TokenStatistics token_statistics = 5;
[ { "docid": "d1134c496f9f66057c097fc0680e45b0", "score": "0.63031495", "text": "public NaturalLanguageStatistics.TokenStatistics getTokenStatistics() {\n if (tokenStatisticsBuilder_ == null) {\n return tokenStatistics_ == null ? NaturalLanguageStatistics.TokenStatistics.getDefaultInstance() : tokenStatistics_;\n } else {\n return tokenStatisticsBuilder_.getMessage();\n }\n }", "title": "" } ]
[ { "docid": "de48832fed83e295d2493192feb9d190", "score": "0.73383904", "text": "NaturalLanguageStatistics.TokenStatistics getTokenStatistics(int index);", "title": "" }, { "docid": "72dc804b545626145bd57ab0108b0f9d", "score": "0.70799154", "text": "TokenWeight createTokenWeight();", "title": "" }, { "docid": "eabf90a8ea68bb2742af0217b4cf57e9", "score": "0.6788525", "text": "int getTokenStatisticsCount();", "title": "" }, { "docid": "3ad3aa23a52e3007a0c6bb4fa8969322", "score": "0.67059726", "text": "@Override\n public NaturalLanguageStatistics.TokenStatisticsOrBuilder getTokenStatisticsOrBuilder() {\n return getTokenStatistics();\n }", "title": "" }, { "docid": "e298d5d5c493e0796fb3f1a304200189", "score": "0.66496485", "text": "@Override\n public NaturalLanguageStatistics.TokenStatistics getTokenStatistics() {\n return tokenStatistics_ == null ? NaturalLanguageStatistics.TokenStatistics.getDefaultInstance() : tokenStatistics_;\n }", "title": "" }, { "docid": "a38f1f2c6f9fe37e79ecda21191fe7ca", "score": "0.6575965", "text": "double getAvgTokenLength();", "title": "" }, { "docid": "2ae4b0c737d13dc2918f08520d218eeb", "score": "0.6551729", "text": "NaturalLanguageStatistics.TokenStatisticsOrBuilder getTokenStatisticsOrBuilder(\n int index);", "title": "" }, { "docid": "780445b1ba47a9a6a8be36b809869b94", "score": "0.64427876", "text": "@Override\n public double getAvgTokenLength() {\n return avgTokenLength_;\n }", "title": "" }, { "docid": "3ec3717adfb2ecd6502daaee170e7ad6", "score": "0.6384229", "text": "@Override\n public double getAvgTokenLength() {\n return avgTokenLength_;\n }", "title": "" }, { "docid": "7110562ef970496d8a5f79c4a4193af6", "score": "0.60994613", "text": "public void tfIdfWeighting(){\n weight = (1 + Math.log10(freqToken)) * 1;\n }", "title": "" }, { "docid": "4ba1db7bc386f349d3037b8d095ddc49", "score": "0.60457784", "text": "java.util.List<NaturalLanguageStatistics.TokenStatistics>\n getTokenStatisticsList();", "title": "" }, { "docid": "f95f7953a82cc159c4101bf33588af2f", "score": "0.5946042", "text": "int getHeterodyneExperimentTokenCount();", "title": "" }, { "docid": "d7c592164ec9aafd27f47c2b60680e44", "score": "0.59404546", "text": "public Builder setTokenStatistics(NaturalLanguageStatistics.TokenStatistics value) {\n if (tokenStatisticsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n tokenStatistics_ = value;\n onChanged();\n } else {\n tokenStatisticsBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "0ddfdb5ab2a5bd47d69745518064d065", "score": "0.5854112", "text": "public NaturalLanguageStatistics.TokenStatisticsOrBuilder getTokenStatisticsOrBuilder() {\n if (tokenStatisticsBuilder_ != null) {\n return tokenStatisticsBuilder_.getMessageOrBuilder();\n } else {\n return tokenStatistics_ == null ?\n NaturalLanguageStatistics.TokenStatistics.getDefaultInstance() : tokenStatistics_;\n }\n }", "title": "" }, { "docid": "a61658625d853dfa93381fc50829d1d2", "score": "0.5753771", "text": "@Override\n public boolean hasTokenStatistics() {\n return tokenStatistics_ != null;\n }", "title": "" }, { "docid": "647f049a27cea4dc04b0975ed94d9f06", "score": "0.5664975", "text": "public double getWeight(String tweet)\n {\n tweet = preprocessor.getProcessed(tweet);\n Instance i = new Instance(tweet, \"terrorism\", null, null);\n testing.addThruPipe(i);\n\n //tweet words\n TokenSequence tokens = (TokenSequence) i.getData();\n\n //corresponding weights\n ArrayList<Double> words_weight = new ArrayList<>();\n\n for (Token token : tokens)\n {\n double w = 0.0;\n String word = token.getText();\n if (dictionary.containsKey(word))\n {\n w = dictionary.get(word);\n words_weight.add(w);\n }\n System.out.println(\"Word : \" + word + \" Weight = \" + w);\n }\n\n //Tweet Score\n double result = 0.0;\n for (Double w: words_weight)\n result += w;\n\n double numweighted = (double) words_weight.size();\n double numtokens = (double) tokens.size();\n Double tweet_tendency = result / numtokens;\n Double words_scores = result / numweighted;\n //Double tweetscore = tweet_tendency * words_scores;\n Double tweetscore = (tweet_tendency + words_scores)/2;\n System.out.println(\"--------------------------\\nToken size = \"+numtokens+\"\\nToken found = \"+numweighted);\n System.out.println(\"(+) Score = \"+result);\n System.out.println(\"tweet_tendency = \"+tweet_tendency);\n System.out.println(\"words_scores = \"+words_scores);\n System.out.println(\"Tweet score = \"+tweetscore);\n\n\n testing.remove(0);\n if (tweetscore.isNaN())\n return 0.0;\n else\n return tweetscore;\n }", "title": "" }, { "docid": "e8a7dba0530d53e9acff800f5017e5f6", "score": "0.5612297", "text": "java.util.List<? extends NaturalLanguageStatistics.TokenStatisticsOrBuilder>\n getTokenStatisticsOrBuilderList();", "title": "" }, { "docid": "55d51a13ff80bdfcdd9b26ed150a4bb9", "score": "0.55991054", "text": "public int length() {return labelsPerToken.length;}", "title": "" }, { "docid": "8802afaec63a36830cd9c0f5c0ba934f", "score": "0.55885166", "text": "int getNumTokens();", "title": "" }, { "docid": "b016b929d660c988263592d85fa9fd83", "score": "0.5526237", "text": "public NaturalLanguageStatistics.TokenStatistics.Builder getTokenStatisticsBuilder() {\n \n onChanged();\n return getTokenStatisticsFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "d904294ffd3ff407c165953a14837a1e", "score": "0.5483145", "text": "public int getTokenCount() {\n\t\treturn mTokenCount;\n\t}", "title": "" }, { "docid": "221716577914359db65fc6ba45ecd149", "score": "0.5412602", "text": "public boolean hasTokenStatistics() {\n return tokenStatisticsBuilder_ != null || tokenStatistics_ != null;\n }", "title": "" }, { "docid": "aa76672911bd773eb4f1adda88b04ea1", "score": "0.5386587", "text": "public double percent(String token) {\n if (!this.words.containsKey(token)) {\n return -1;\n }\n\n return ((double) count(token) / this.parameterListSize);\n }", "title": "" }, { "docid": "d1d44fd93dceab655175e41ba6c7d396", "score": "0.5375594", "text": "Histogram getTokenLengthHistogram();", "title": "" }, { "docid": "c2c24793d379e6d5483dfda34ef770d2", "score": "0.53635997", "text": "public Builder setTokenStatistics(\n NaturalLanguageStatistics.TokenStatistics.Builder builderForValue) {\n if (tokenStatisticsBuilder_ == null) {\n tokenStatistics_ = builderForValue.build();\n onChanged();\n } else {\n tokenStatisticsBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "title": "" }, { "docid": "9eaed7c2801925dfe5384048c7b43642", "score": "0.5317716", "text": "int getUserTokenInfoCount();", "title": "" }, { "docid": "0d1468b049fabf81231decb66c356ac3", "score": "0.5316759", "text": "public int count(String token) {\n return this.words.get(token);\n }", "title": "" }, { "docid": "dd475b6391848dd9f46923a44783759e", "score": "0.52750695", "text": "int getNumberOfTokens() {\n\t\treturn (tokenTable.getNumberOfTokens());\n\t}", "title": "" }, { "docid": "5fa966252a718b36bdfa1231df596339", "score": "0.5255433", "text": "private double probTokenByIndexArray(int catIndex, double[] tokenCounts) {\r\n double tokenCatCount = tokenCounts[catIndex];\r\n if (tokenCatCount < 0) {\r\n tokenCatCount = 0;\r\n }\r\n double totalCatCount = sum_x[catIndex];\r\n// double totalWordsCount = 0;\r\n// for (String featureStr : targetKnowledge.wordCountInPerClass.keySet()) {\r\n// totalWordsCount += knowledge.wordCountInPerClass.get(featureStr)[catIndex];\r\n// }\r\n\r\n return (tokenCatCount + param.smoothingPriorForFeatureInNaiveBayes)\r\n / (totalCatCount + featureIndexerAllDomains.size()\r\n * param.smoothingPriorForFeatureInNaiveBayes);\r\n // Note: featureIndexerAllDomains.size() is the size of knowledge vocabulary.\r\n // targetKnowledge.wordCountInPerClass.size() is the size of target vocabulary.\r\n }", "title": "" }, { "docid": "2b2070edf5dc2648bcc28dd6898787ab", "score": "0.5251172", "text": "int getWordConfidenceCount();", "title": "" }, { "docid": "5420a43c0a02e42d501af057e0767978", "score": "0.52415454", "text": "public void seeTokens() { tf.seeTokenFile(); }", "title": "" }, { "docid": "ce681ae384bd8ab49b2bc1360bf90203", "score": "0.5203455", "text": "@Override\n public Histogram getTokenLengthHistogram() {\n return tokenLengthHistogram_ == null ? Histogram.getDefaultInstance() : tokenLengthHistogram_;\n }", "title": "" }, { "docid": "1572ef6cfbbed78eafc7d6a32d21bc4c", "score": "0.51926243", "text": "int getUserTokenListCount();", "title": "" }, { "docid": "b70c87797e642dfe75671896b4aece0d", "score": "0.51432645", "text": "public int getWordCount() {\n return 10;\n }", "title": "" }, { "docid": "a23b1f35774edf2402d9b56acd96062a", "score": "0.5132283", "text": "WeightedNaturalLanguageStatistics getWeightedNlStatistics();", "title": "" }, { "docid": "e2cce1acc684020156dae8cb54f7d8b4", "score": "0.5125046", "text": "@Nonnegative\n @SuppressWarnings(\"WeakerAccess\")\n protected int getTokenLength() {\n return DEFAULT_TOKEN_SIZE;\n }", "title": "" }, { "docid": "2874c4e6d6a0b9ea709a552f2c412935", "score": "0.51236033", "text": "boolean hasTokenLengthHistogram();", "title": "" }, { "docid": "5514e72d8d416658144f11d67a25a431", "score": "0.5100391", "text": "public void processToken(String token) {\n\n tokenOccurrence += 1;\n\n if (keywordMap.containsKey(token)) {\n\n //autoboxing happening when adding occurence\n keywordMap.get(token).add(tokenOccurrence);\n }\n }", "title": "" }, { "docid": "3eb0b175a4b0fa6fd0ad080c5fc5d3de", "score": "0.5090783", "text": "@Override\n\tpublic int getTokenIndex() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "2a3e62ce15352499b5417bf97cbceffb", "score": "0.5090184", "text": "public void processToken(String token) {\n if (token.length() >= minimumWordLength) {\n\n // System.out.println(\"processToken IF statement hit\" + token); /* TEMP TEST LINE */\n bigWords.add(token);\n }\n }", "title": "" }, { "docid": "c705dc84c6000fe27ac4191403c29423", "score": "0.5088016", "text": "public int getUserTokenInfoCount() {\n return userTokenInfo_.size();\n }", "title": "" }, { "docid": "bdeb2c65980d81292291f61e00400f29", "score": "0.5087271", "text": "public WordStatisticsResults calculateWordStatistics(String text);", "title": "" }, { "docid": "3c78c721c0c699bf87dd9005d9b2ed1e", "score": "0.5083558", "text": "private void logWeightWordFrequency() {\n\t\tfor (String word : keywordImportance.keySet()) {\n\t\t\tkeywordImportance.put(word, Math.log10(keywordImportance.get(word)) + 1);\n\t\t\tSystem.out.println(keywordImportance.get(word));\n\t\t}\t\n\t}", "title": "" }, { "docid": "504aa9892a08acc81c92938cf861265b", "score": "0.5076099", "text": "@Override\n public HistogramOrBuilder getTokenLengthHistogramOrBuilder() {\n return getTokenLengthHistogram();\n }", "title": "" }, { "docid": "283fdbce59d5a23f31e3a3ed0807cacc", "score": "0.5044492", "text": "public int getUserTokenInfoCount() {\n return userTokenInfo_.size();\n }", "title": "" }, { "docid": "5694482956baff6c3ee4ffeac101d176", "score": "0.5030228", "text": "void updateCalculatedWeights() {\n\t\tEnumeration tokenTypes = typeTable.elements();\n\t\twhile (tokenTypes.hasMoreElements()) {\n\t\t\t((TokenType) tokenTypes.nextElement()).updateWeight();\n\t\t}\n\t}", "title": "" }, { "docid": "519491294de3cf6e24592785620f163d", "score": "0.5025629", "text": "public Builder mergeTokenStatistics(NaturalLanguageStatistics.TokenStatistics value) {\n if (tokenStatisticsBuilder_ == null) {\n if (tokenStatistics_ != null) {\n tokenStatistics_ =\n NaturalLanguageStatistics.TokenStatistics.newBuilder(tokenStatistics_).mergeFrom(value).buildPartial();\n } else {\n tokenStatistics_ = value;\n }\n onChanged();\n } else {\n tokenStatisticsBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "1e2e25fab4cdf6289de3d9e224f20bc6", "score": "0.50127995", "text": "private void updateIndexerStatistics(List<Integer> tokens, Set<Integer> uniqueTerms) {\n for (int index : tokens) {\n uniqueTerms.add(index);\n termFrequency.put(index, termFrequency.get(index) + 1);\n ++totalTermFrequency;\n }\n }", "title": "" }, { "docid": "d0898ad148468d44a851f532828ca5e2", "score": "0.4975108", "text": "public FavorToken(int numberOfFavorToken) {\n this.numberOfFavorToken = numberOfFavorToken;\n }", "title": "" }, { "docid": "1ec865d792bf7ddf472ba0b9c47d57d1", "score": "0.49681622", "text": "public int getWordCount() {\n\t\treturn 10;\n\t}", "title": "" }, { "docid": "8a4411bacaca527851b38812b7344b48", "score": "0.4954585", "text": "SemanticMemoryStatistics getStatistics();", "title": "" }, { "docid": "cf753b7b09619023bbb05c30bb223db4", "score": "0.49514967", "text": "public int getHeterodyneExperimentTokenCount() {\n return heterodyneExperimentToken_.size();\n }", "title": "" }, { "docid": "6f039ee5eaff85e1fce7ae232bea8e24", "score": "0.49323255", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n NaturalLanguageStatistics.TokenStatistics, NaturalLanguageStatistics.TokenStatistics.Builder, NaturalLanguageStatistics.TokenStatisticsOrBuilder>\n getTokenStatisticsFieldBuilder() {\n if (tokenStatisticsBuilder_ == null) {\n tokenStatisticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n NaturalLanguageStatistics.TokenStatistics, NaturalLanguageStatistics.TokenStatistics.Builder, NaturalLanguageStatistics.TokenStatisticsOrBuilder>(\n getTokenStatistics(),\n getParentForChildren(),\n isClean());\n tokenStatistics_ = null;\n }\n return tokenStatisticsBuilder_;\n }", "title": "" }, { "docid": "798db5c8231efa5b1434276538cf6ea9", "score": "0.49204645", "text": "private void increment(String token, BSTnode node){\n\t\t\n\n\t\t\tnode = wordCounter.search(token);\n\t\t\tif (node != null) {\n\n\t\t\t\tInteger freq = (Integer) node.data;\n\t\t\t\tfreq++;\n\t\t\t\tnode = wordCounter.search(token);\n\t\t\t\tnode.data = freq;\n\n\t\t\t} else {\n\t\t\t\tint frequency = 1;\n\t\t\t\twordCounter.insert(new StringMaker(token), frequency);\n\t\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "6b74a048a0b0abe3cd62b09ad54ff3db", "score": "0.49165893", "text": "WeightedNaturalLanguageStatisticsOrBuilder getWeightedNlStatisticsOrBuilder();", "title": "" }, { "docid": "ec0552a7e18ac6481101f34ecb609c9e", "score": "0.4897095", "text": "public int getHeterodyneExperimentTokenCount() {\n return heterodyneExperimentToken_.size();\n }", "title": "" }, { "docid": "1b80abdd6b8bf20b8c660f126284bcd6", "score": "0.48965496", "text": "TokenizerExpression getTokenize();", "title": "" }, { "docid": "59106c8ef5cd563c4b569c9b11a095b2", "score": "0.48914263", "text": "@Override\n public boolean hasTokenLengthHistogram() {\n return tokenLengthHistogram_ != null;\n }", "title": "" }, { "docid": "b6f3b7cd94b31067a117dbb5631a161f", "score": "0.48610374", "text": "TokenRank(int abs, float rel) {\n absoluteRank = abs;\n relativeRank = rel;\n }", "title": "" }, { "docid": "7ef6a496ba5241ea3bd38b1a541f01b2", "score": "0.48430306", "text": "public WordCountConfig() {\n this.wordStatsTable = \"wordStats\";\n }", "title": "" }, { "docid": "a581b990c2e1602e596e9707050b0efb", "score": "0.48399642", "text": "public int getUserTokenListCount() {\n return userTokenList_.size();\n }", "title": "" }, { "docid": "f499d865217de8f6484983c1a1a0bf4e", "score": "0.47973838", "text": "public int getUserTokenListCount() {\n return userTokenList_.size();\n }", "title": "" }, { "docid": "b0ad378eeaaeb27f6ae4d97247e13ce0", "score": "0.47833186", "text": "@SuppressWarnings({\"unchecked\"})\n private void process(Result result) {\n if (result.isFinal()) {\n collectStatistics(result);\n } else {\n List<Token> tokenList = result.getActiveTokens().getTokens();\n if (tokenList.size() > 0) {\n Collections.sort(tokenList, Token.COMPARATOR);\n Token bestToken = tokenList.get(0);\n int rank = 0;\n for (Token token : tokenList) {\n float scoreDiff = bestToken.getScore() -\n token.getScore();\n assert scoreDiff >= 0;\n\n token.getTokenProps().put(TOKEN_RANK, new TokenRank(rank++, scoreDiff));\n // checkRank(token);\n }\n }\n }\n }", "title": "" }, { "docid": "d563e64ae47108e3e41e0bd1e847fef0", "score": "0.47811145", "text": "@Override\r\n\tpublic int getNumWords(){\r\n\t\t//Returns at least one of each upper or lowercase letter only\r\n\t\tList<String> words = getTokens(\"[a-zA-Z]+\");\r\n\t return words.size();\r\n\t}", "title": "" }, { "docid": "41fb81d884eb4a5092cb9d5f1355b5d1", "score": "0.47803462", "text": "public void getTopicWordData() throws Exception {\n\t\ttopicWordFreq = new HashMap<String,Double>();\n\t\tfor (Sentence s : sentences) {\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tif (s.isTopicWord(i)) {\n\t\t\t\t\tdouble count = topicWordFreq.containsKey(s.getToken(i)) ? topicWordFreq.get(s.getToken(i)) : 0;\n\t\t\t\t\ttopicWordFreq.put(s.getToken(i), count + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\ts.loadDependencies();\n\t\t\ts.findClauses();\n\t\t\ts.calculateDepth();\n\t\t}\n\t}", "title": "" }, { "docid": "ec8a66f50904cfa0ddcc7847de680546", "score": "0.4772207", "text": "public static void generateNMTData(String fopInput,String fopOutput) {\n\t\tString fpVocab=fopOutput+\"countVocab.txt\";\n\t\tint numAppearInCorpus=10;\n\t\t\n\t\tnew File(fopOutput).mkdir();\n\t\tString[] arrVocabs=FileIO.readStringFromFile(fpVocab).split(\"\\n\");\n\t\tHashMap<String,Integer> mapVocabs=new HashMap<String, Integer>();\n\t\tfor(int i=0;i<arrVocabs.length;i++) {\n\t\t\tString[] itemVocab=arrVocabs[i].split(\"\\t\");\n\t\t\tif(itemVocab.length>=2) {\n\t\t\t\tint numItem=Integer.parseInt(itemVocab[1]);\n\t\t\t\tif((!itemVocab[0].isEmpty()) && numItem>=numAppearInCorpus){\n\t\t\t\t\tmapVocabs.put(itemVocab[0], numItem);\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tHashSet<String> setVocabSource=new HashSet<String>();\n\t\tHashSet<String> setVocabTarget=new HashSet<String>();\n\t\t\n\t\t\n\t\tremoveSparseTokens(fopInput+\"train.s\",fopOutput+\"train.s\",fopInput+\"train.t\",fopOutput+\"train.t\",mapVocabs,setVocabSource,setVocabTarget);\n\t\tremoveSparseTokens(fopInput+\"tune.s\",fopOutput+\"tune.s\",fopInput+\"tune.t\",fopOutput+\"tune.t\",mapVocabs,setVocabSource,setVocabTarget);\n\t\tFileIO.copyFileReplaceExist(fopInput+\"test.s\", fopOutput+\"test.s\");\n\t\tFileIO.copyFileReplaceExist(fopInput+\"test.t\", fopOutput+\"test.t\");\n\t\t\n\t\tStringBuilder sbVocabSource=new StringBuilder();\n\t\tsbVocabSource.append(\"<unk>\\n<s>\\n</s>\\n\");\n\t\tfor(String str:setVocabSource) {\n\t\t\tsbVocabSource.append(str+\"\\n\");\n\t\t}\n\t\tFileIO.writeStringToFile(sbVocabSource.toString(), fopOutput+\"vocab.s\");\n\n\t\t\n\t\tStringBuilder sbVocabTarget=new StringBuilder();\n\t\tsbVocabTarget.append(\"<unk>\\n<s>\\n</s>\\n\");\n\t\tfor(String str:setVocabTarget) {\n\t\t\tsbVocabTarget.append(str+\"\\n\");\n\t\t}\n\t\tFileIO.writeStringToFile(sbVocabTarget.toString(), fopOutput+\"vocab.t\");\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d487c5dee101403606fef50e350385b8", "score": "0.47708124", "text": "@Transactional(readOnly = true)\r\n @RolesAllowed(RoleSet.OBSERVER)\r\n public List<VocabularyTermWithStats> listVocabularyTermsWithStatistics(String sessionToken,\r\n Vocabulary vocabulary);", "title": "" }, { "docid": "373c2dab36f0438fd180fb68c06f400a", "score": "0.47600698", "text": "public int size() {\n\t\treturn numberOfTokens;\n\t}", "title": "" }, { "docid": "b16b908461c47b3a66b09f0ddbb5a3d0", "score": "0.47489214", "text": "HistogramOrBuilder getTokenLengthHistogramOrBuilder();", "title": "" }, { "docid": "21debefde01598f65af093979d7559b7", "score": "0.47479063", "text": "@Override\n protected String getEvaluableToken() {\n return TOKEN;\n }", "title": "" }, { "docid": "21debefde01598f65af093979d7559b7", "score": "0.47479063", "text": "@Override\n protected String getEvaluableToken() {\n return TOKEN;\n }", "title": "" }, { "docid": "c25ffdb866e7512a52cda40eb32bf42e", "score": "0.47438", "text": "@Override\n\tpublic String toString()\n\t{\n\t\treturn CommonNames.PARSER.CORE.TOKENS.TOKENIZER_STATE.WORD;\n\t}", "title": "" }, { "docid": "dd84105ad4d2870e4ec25d022144e580", "score": "0.47364536", "text": "float getWordConfidence(int index);", "title": "" }, { "docid": "84a04f85e779eca40d26766f798dca39", "score": "0.47260195", "text": "private WeightedNaturalLanguageStatistics(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "78d3358572efe0405efefd68a9018ab2", "score": "0.47257075", "text": "public int getWordCount(){\r\n\t\treturn wordCount;\r\n\t}", "title": "" }, { "docid": "b66a65c4a37272f5189db2574502bbd6", "score": "0.4713885", "text": "protected int getKrb5TokenSize() throws GSSException {\n return getTokenSize();\n }", "title": "" }, { "docid": "5f7f17bca5f180e52b70e084bd27b80f", "score": "0.47096628", "text": "int getMultilangFeatureScoreCount();", "title": "" }, { "docid": "60f90117350f8749a546e25cf1affdca", "score": "0.47093722", "text": "public int getWordConfidenceCount() {\n return wordConfidence_.size();\n }", "title": "" }, { "docid": "fd78c5b2165b88d6532342dfb56e2aba", "score": "0.47090837", "text": "public void setTokenProcessor(TokenProcessor tokenProcessor);", "title": "" }, { "docid": "24a688669b6d304f75513b135e320e88", "score": "0.46853018", "text": "com.mogujie.tt.protobuf.IMBaseDefine.UserTokenInfo getUserTokenInfo(int index);", "title": "" }, { "docid": "a4c778768c5998686bae09b4b42082a2", "score": "0.4672487", "text": "public void setToken(String token) {\n this.token = token;\n }", "title": "" }, { "docid": "ac82cf41d6c5e20810bd34ca087b1ef9", "score": "0.4657393", "text": "String getWord(int tokenID);", "title": "" }, { "docid": "7c55bb3e161f17198af35dbefdcc298d", "score": "0.46525955", "text": "public void getNGramTagCounts(String text, int maxOrder) {\n\t\ttokens = new HashSet<String>();\n\t\tgramCounts = new ArrayList<Map<String, Double>>();\n\t\tfor (int i=0; i<maxOrder; i++) {\n\t\t\tgramCounts.add(new LinkedHashMap<String, Double>());\n\t\t}\n\t\tsymbolCounts = new LinkedHashMap<String, Map<String, Integer>>();\n\t\tinitialCounts = new HashMap<String, Integer>();\n\t\tif (maxOrder > 0) {\n\t\t\tList<List<String[]>> lines = ParseUtils.getLinesAsPOSSentences(text);\n\t\t\tint startI=0;\n\t\t\tint currentN=0;\n\t\t\tString gramStr = \"\";\n\t\t\tfor (int lineI=0; lineI<lines.size(); lineI++) {\n\t\t\t\tList<String[]> line = lines.get(lineI);\n\t\t\t\tString tempBOS = \"BOS_BOS\";\n\t\t\t\tfor (int i=2; i<maxOrder; i++) {\n\t\t\t\t\tStatUtils.incrementDouble(gramCounts.get(i-1), tempBOS);\n\t\t\t\t\ttempBOS += \"_BOS\";\n\t\t\t\t}\n\t\t\t\tgramStr = \"\";\n\t\t\t\t\n\t\t\t\tfor (startI=0; startI<line.size(); startI++) {\n\t\t\t\t\tfor (currentN=0; currentN<maxOrder; currentN++) { // All n-grams for the current last word.\n\t\t\t\t\t\tint endI = startI+currentN;\n\t\t\t\t\t\tif (endI >= line.size()) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString[] token = line.get(endI);\n\t\t\t\t\t\tif (currentN == 0) {\n//\t\t\t\t\t\t\tif (endI == 0 || endI == line.size()-1) { // Don't include <s> or </s> as unigrams.\n//\t\t\t\t\t\t\t\tcontinue;\n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// POS to unigram symbol counts.\n\t\t\t\t\t\t\tif (startI>0) {\n\t\t\t\t\t\t\t\tStatUtils.incrementOneMap(symbolCounts, token[1], token[0]);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tStatUtils.incrementOne(initialCounts, token[1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttokens.add(token[0]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tgramStr += \"_\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgramStr += token[1];\n\t\t\t\t\t\tStatUtils.incrementDouble(gramCounts.get(currentN),gramStr);\n//\t\t\t\t\t\tSystem.out.println(\"incrementing gramStr: \"+gramStr);\n\t\t\t\t\t}\n//\t\t\t\t\tSystem.out.println(\"gramStr: \"+gramStr+\" last count: \"+gramCounts.get(currentN-2).get(gramStr));\n\t\t\t\t\tgramStr = \"\";\n\t\t\t\t}\n\t\t\t\tString tempEOS = \"EOS_EOS\";\n\t\t\t\tfor (int i=2; i<maxOrder; i++) {\n//\t\t\t\t\tSystem.out.println(\"Incrementing \"+tempEOS+\" for gram \"+i);\n\t\t\t\t\tgramCounts.set(i,StatUtils.incrementDouble(gramCounts.get(i-1), tempEOS));\n\t\t\t\t\ttempEOS += \"_EOS\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttags = new ArrayList<String>(gramCounts.get(0).keySet());\n\t}", "title": "" }, { "docid": "06e661622f7548236cac35da4c359ff6", "score": "0.46506646", "text": "@Override\n public double calculateEntropy () {\n int cardinality = BruteForce.getBrutForceCardinality(getToken());\n return Math.max(0, log2(cardinality * getRepeat()));\n }", "title": "" }, { "docid": "973708cd6a27ee08658ebaf1f335f61f", "score": "0.4636899", "text": "public Builder clearTokenStatistics() {\n if (tokenStatisticsBuilder_ == null) {\n tokenStatistics_ = null;\n onChanged();\n } else {\n tokenStatistics_ = null;\n tokenStatisticsBuilder_ = null;\n }\n\n return this;\n }", "title": "" }, { "docid": "195bc3da693f41f753a31f09649a082c", "score": "0.46337986", "text": "public int getTokenNumber() {\n if (Ngram_Type.featOkTst && ((Ngram_Type)jcasType).casFeat_tokenNumber == null)\n jcasType.jcas.throwFeatMissing(\"tokenNumber\", \"xiangl2.infosystem.content.Ngram\");\n return jcasType.ll_cas.ll_getIntValue(addr, ((Ngram_Type)jcasType).casFeatCode_tokenNumber);}", "title": "" }, { "docid": "1dda826689de50f9a19b05dd9ff45558", "score": "0.46307144", "text": "@Override\r\n\tpublic int getNumSentences(){\r\n\t\tList<String> sentences = getTokens(\"[^.!?]+\");\r\n\t\treturn sentences.size();\r\n\t}", "title": "" }, { "docid": "519f0869484e778058a2c4a720e7b481", "score": "0.4629845", "text": "public int getMaximumTokens() {\n return this.maximumTokens;\n }", "title": "" }, { "docid": "939a1ec048582752e8258bf5eefd1c70", "score": "0.46265593", "text": "@Override\n protected void genPostProcess(TokenContext<T> tokenContext) throws TokenException {\n }", "title": "" }, { "docid": "10d46279c994d180e868d51bd1825349", "score": "0.46162364", "text": "public int getWordCount() {\n return wordCount;\n }", "title": "" }, { "docid": "234bda880de48748c016e80b592fe827", "score": "0.46075588", "text": "public static long totalTokens(String fileName) {\r\n\t\tBufferedReader in = null;\r\n\t\ttry {\r\n\t\t\tFileReader fileReader = new FileReader(fileName);\r\n\t\t\tin = new BufferedReader(fileReader);\r\n\t\t\treturn wordCount(fileName, in);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "95cfeaf669e3c8c6bde82ee137a2bc34", "score": "0.46073198", "text": "public int getWordConfidenceCount() {\n return wordConfidence_.size();\n }", "title": "" }, { "docid": "95cfeaf669e3c8c6bde82ee137a2bc34", "score": "0.46073198", "text": "public int getWordConfidenceCount() {\n return wordConfidence_.size();\n }", "title": "" }, { "docid": "6b8b336302504e2c674e9ff6601cb057", "score": "0.45994034", "text": "public String randomToken() {\n ArrayList<String> keys = new ArrayList<>(this.words.keySet());\n int randSelection = (int) (Math.random() * keys.size());\n return keys.get(randSelection);\n }", "title": "" }, { "docid": "7aec705c2265507c7872af40f5b3e986", "score": "0.45964137", "text": "@Override\n\t\t\tpublic void token(Token token, String pos, String lemma) {\n\t\t\t\tsynchronized (casMon) {\n\t\t\t\t\t// do not create Wordform on punctuation and special tokens\n\t\t\t\t\t// TODO MTE Rus TreeTagger also outputs tag 'SENT' for sentence end?\n\t\t\t\t\tif (pos != null && (token instanceof W || token instanceof NUM)) {\n\t\t\t\t\t\tpos = pos.intern();\n\t\t\t\t\t\tWord w = new Word(jCas, token.getBegin(), token.getEnd());\n\t\t\t\t\t\tw.setToken(token);\n\n\t\t\t\t\t\tWordform wf = new Wordform(jCas);\n\t\t\t\t\t\tif (lemma != null) {\n\t\t\t\t\t\t\twf.setLemma(lemma);\n\t\t\t\t\t\t}\n\t\t\t\t\t\twf.setPos(postProcessExternalTag(pos));\n\n\t\t\t\t\t\twf.setWord(w);\n\t\t\t\t\t\tFSArray wfArr = new FSArray(jCas, 1);\n\t\t\t\t\t\twfArr.set(0, wf);\n\t\t\t\t\t\tw.setWordforms(wfArr);\n\n\t\t\t\t\t\tif (words[count.get()] != null) {\n\t\t\t\t\t\t\tthrow new IllegalStateException();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twords[count.get()] = w;\n\t\t\t\t\t}\n\t\t\t\t\t//\n\t\t\t\t\tcount.getAndIncrement();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "d3d1c9a478f80880bbe963632437ce19", "score": "0.45961386", "text": "private long getTotalNumberOfTerms() {\n return this.termAccumulator.getTotalFrequency();\n }", "title": "" }, { "docid": "55a5c2af7ba10c722efad471f90e4db7", "score": "0.459471", "text": "public Builder setAvgTokenLength(double value) {\n \n avgTokenLength_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f0e14e69362e3a94162786a1f3882b37", "score": "0.4587775", "text": "public interface TokenProcessor {\n\t/**\n\t * Normalizes a token into a list of terms.\n\t */\n\tList<String> processToken(String token);\n}", "title": "" }, { "docid": "1b6f0e38c391a2f993311dc56d13ace1", "score": "0.45838654", "text": "public void calcTFIDF()\n\t{\n\t\t//tokenize the set first\n\t\tHashMap<String, String[]> tokenizedCorpus = tokenizeCorpus();\n\t\n\t\t//iterate over documents\n\t\tfor (String Key : tokenizedCorpus.keySet())\n\t\t{\n\t\t\tWordFreqIndex.put(Key, new HashMap<String, Integer>());\n\t\t\t\n\t\t\tfor(String word : tokenizedCorpus.get(Key))\n\t\t\t{\n\t\t\t\n\t\t\t\t//have we seen this word before\n\t\t\t\tif(WordFreq.containsKey(word))\n\t\t\t\t{\n\t\t\t\t\t//increment count\n\t\t\t\t\tdouble temp = WordFreq.get(word);\n\t\t\t\t\t\n\t\t\t\t\ttemp = temp + 1.0; //+ Math.log(temp);\n\t\t\t\t\t//temp++;\n\t\t\t\t\tWordFreq.put(word, temp);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//initialize the value in the hashmap\n\t\t\t\t\tWordFreq.put(word, 1.0);\n\t\t\t\t}\n\t\t\t\t//calculate per document term frequency\n\t\t\t\tif(WordFreqIndex.get(Key).containsKey(word))\n\t\t\t\t{\n\t\t\t\t\t//increment count\n\t\t\t\t\tint count = WordFreqIndex.get(Key).get(word);\n\t\t\t\t\tcount++;\n\t\t\t\t\tWordFreqIndex.get(Key).put(word, count);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//initialize the value in the hashmap\n\t\t\t\t\tWordFreqIndex.get(Key).put(word, 1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Let's add word to our doc index\n\t\t\t\tif (WordIdMap.containsKey(word))\n\t\t\t\t{\n\t\t\t\t\tWordIdMap.get(word).add(Key);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//add a new list to store index\n\t\t\t\t\tArrayList<String> init = new ArrayList<String>();\n\t\t\t\t\tinit.add(Key);\n\t\t\t\t\tWordIdMap.put(word, init);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "dc021e42fcfa1c45677133c9db281828", "score": "0.4580791", "text": "private static void parseSimpleToken(String token) {\n\t\tString stemmedWord = \"\";\n\t\tstemmer.add(token.toCharArray(), token.length());\n\t\tstemmer.stem();\n\t\tstemmedWord = stemmer.toString();\n\t\tif (!stemmedWord.isEmpty()) {\n\t\t\tif (stemmedTokenMap.containsKey(stemmedWord)) {\n\t\t\t\tstemmedTokenMap.put(stemmedWord,\n\t\t\t\t\t\tstemmedTokenMap.get(stemmedWord) + 1);\n\t\t\t} else {\n\t\t\t\tstemmedTokenMap.put(stemmedWord, 1);\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
cc5c22280ef403060f09d4a0f10e9e40
/ Ensures that the move follows the piece specific rules fromX initial X position of the piece in the board fromY initial Y position of the piece in the board toX final X position of the piece in the board toY final Y position of the piece in the board
[ { "docid": "2684997d7969f1b0ad7173049e379f72", "score": "0.70323557", "text": "@Override\n public boolean isValidMove(int fromX, int fromY, int toX, int toY) {\n if(toX > 7 || toY > 7 || toX < 0 || toY < 0){ //is the next position in the board\n return false;\n }\n\n int row = Math.abs(toX - fromX);\n int col = Math.abs(toY - fromY);\n return ((row == 2 && col == 1) || (row == 1 && col == 2));\n }", "title": "" } ]
[ { "docid": "f6d896ef2ae6144547c9bf1a2883db1a", "score": "0.77901936", "text": "public boolean moveValidation(Board board, Piece piece, int sourceX, int sourceY, int targetX, int targetY){\n int diffX = targetX - sourceX;\n int diffY = targetY - sourceY;\n if(diffX==0 && diffY == 1 && piece.getColour() == Colour.BLACK && !board.isPieceAtLocation(targetX, targetY))//NORMAL MOVE\n return true;\n else if(diffX == 0 && diffY == -1 && piece.getColour() == Colour.WHITE && !board.isPieceAtLocation(targetX, targetY) )//NORMAL MOVE\n return true;\n else if(diffX == -1 && diffY == -1 && piece.getColour() == Colour.WHITE && board.isPieceAtLocationCapturable(piece.getColour(), targetX, targetY))//CAPTURING MOVE\n return true;\n else if(diffX == 1 && diffY == -1 && piece.getColour() == Colour.WHITE && board.isPieceAtLocationCapturable(piece.getColour(), targetX, targetY))//CAPTURING MOVE\n return true;\n else if(diffX == -1 && diffY == 1 && piece.getColour() == Colour.BLACK && board.isPieceAtLocationCapturable(piece.getColour(), targetX, targetY))//CAPTURING MOVE\n return true;\n else if(diffX == 1 && diffY == 1 && piece.getColour() == Colour.BLACK && board.isPieceAtLocationCapturable(piece.getColour(), targetX, targetY))//CAPTURING MOVE\n return true;\n if(diffX==0 && diffY == 2&& piece.getColour() == Colour.BLACK && isFirstMove() && !board.isPieceAtLocation(targetX, targetY))//FIRST MOVE\n return true;\n else if(diffX == 0 && diffY ==-2 && piece.getColour() == Colour.WHITE && isFirstMove() && !board.isPieceAtLocation(targetX, targetY))//FIRST MOVE\n return true;\n return false;\n }", "title": "" }, { "docid": "d9d25574962a7d4ed42fc499e2b292eb", "score": "0.7238283", "text": "@Test\r\n\tpublic void setValidMoveTest() {\t\t\r\n\t\ttry {\r\n\t\t\tpieceToBeMovedPosition.setX(3);\r\n\t\t\tpieceToBeMovedPosition.setY(2);\r\n\t\t\t\r\n\t\t\tendPosition.setX(2);\r\n\t\t\tendPosition.setY(1);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tTestCase.fail();\r\n\t\t}\r\n\t\t\r\n\t\tpieceToBeMoved.setPiecePosition(pieceToBeMovedPosition);\r\n\t\ttry {\r\n\t\t\tpiecePlacement[0] = pieceToBeMoved;\r\n\t\t\tboard.setPiecePlacement(piecePlacement);\r\n\t\t\tSingleMove move = new SingleMove(pieceToBeMoved, null, endPosition);\r\n\t\t\tTestCase.assertTrue(board.validateMove(move));\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tTestCase.fail();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c9bf7e04a630df676f3691d8a9f08210", "score": "0.72018397", "text": "public abstract boolean isValidMove(int currentX,int currentY,int xDesired,int yDesired);", "title": "" }, { "docid": "9e6c03f9eef400dfc9165d75a265b219", "score": "0.7183423", "text": "private void setPieceLocation(Pieces piece, int destinationX, int destinationY) {\n\n endGameMessage = null;\n //during checks for stalemate, checkmate and check, we turn off the checks for player turns\n checkForTurns = false;\n\n sourcePiece = piece;\n sourcePieceCoordinate = new coordinates(piece.boardCoordinates.x, piece.boardCoordinates.y);\n\n //make the piece coordinates on the board = null\n if(piece.getPieceType() != King) chess.board[piece.boardCoordinates.x][piece.boardCoordinates.y] = null;\n\n Pieces whiteKing = chess.getKing(WHITE);\n Pieces blackKing = chess.getKing(BLACK);\n\n // ======================================= CHECK IF MOVE PLACES KING IN CHECK ============================================== //\n //check if the move places king in check, if it does, don't move!\n if((piece.getPieceColor() == WHITE && isKingInCheck(whiteKing, whiteKing.boardCoordinates.x, whiteKing.boardCoordinates.y)) ||\n (piece.getPieceColor() == BLACK && isKingInCheck(blackKing, blackKing.boardCoordinates.x, blackKing.boardCoordinates.y))) {\n System.out.println(\"MOVE ERROR: Your move places your king in check.\");\n errorMessage = \"Your move places you king in check.\";\n chess.board[piece.boardCoordinates.x][piece.boardCoordinates.y] = piece;\n checkForTurns = true;\n return;\n }\n\n\n if(piece.getPieceType() == King) {\n int kingCoordinateX = piece.boardCoordinates.x;\n int kingCoordinateY = piece.boardCoordinates.y;\n\n chess.board[piece.boardCoordinates.x][piece.boardCoordinates.y] = null;\n piece.boardCoordinates.x = destinationX;\n piece.boardCoordinates.y = destinationY;\n chess.board[destinationX][destinationY] = piece;\n\n\n //check if move places king in check\n if(isKingInCheck(piece, piece.boardCoordinates.x, piece.boardCoordinates.y)) {\n errorMessage = \"Your move places your king in check.\";\n System.out.println(\"Your move places your king in check.\");\n\n //revert back to old configuration\n chess.board[piece.boardCoordinates.x][piece.boardCoordinates.y] = null;\n piece.boardCoordinates.x = kingCoordinateX;\n piece.boardCoordinates.y = kingCoordinateY;\n chess.board[kingCoordinateX][kingCoordinateY] = piece;\n checkForTurns = true;\n return;\n }\n\n //revert back to old configuration\n chess.board[piece.boardCoordinates.x][piece.boardCoordinates.y] = null;\n piece.boardCoordinates.x = kingCoordinateX;\n piece.boardCoordinates.y = kingCoordinateY;\n chess.board[kingCoordinateX][kingCoordinateY] = piece;\n\n }\n\n\n if(piece.getPieceType() == King) chess.board[piece.boardCoordinates.x][piece.boardCoordinates.y] = null;\n\n //if it's the players first move, toggle it to false\n if(piece.getPieceType() == Pawn && piece.isFirstTurn) {\n piece.isFirstTurn = false;\n piece.howManyTimesPlayed++;\n }\n\n //toggle turns of black and white pieces\n toggleTurns();\n\n //remove the player which is being killed from the appropriate arrayLists\n if(chess.board[destinationX][destinationY] != null) {\n Pieces removePiece = chess.board[destinationX][destinationY];\n if (removePiece.getPieceColor() == WHITE) {\n chess.player1.playerPieces.remove(removePiece);\n chess.player2.opponentPieces.remove(removePiece);\n } else if(removePiece.getPieceColor() == BLACK){\n chess.player2.playerPieces.remove(removePiece);\n chess.player1.opponentPieces.remove(removePiece);\n }\n }\n\n //update the piece's new coordinates\n piece.boardCoordinates.x = destinationX;\n piece.boardCoordinates.y = destinationY;\n\n //update destination piece and coordinates for undo functions\n destinationPiece = chess.board[destinationX][destinationY];\n destinationPieceCoordinate = new coordinates(destinationX, destinationY);\n\n //place the piece at its new location\n chess.board[destinationX][destinationY] = piece;\n\n //get kings back\n whiteKing = chess.getKing(WHITE);\n blackKing = chess.getKing(BLACK);\n\n //check for check\n if(isKingInCheck(whiteKing, whiteKing.boardCoordinates.x, whiteKing.boardCoordinates.y)\n && !isKingInCheckmate(whiteKing)) {\n errorMessage = \"white king in check\";\n System.out.println(\"ALERT: white king in check\");\n checkForTurns = true;\n return;\n } else if(isKingInCheck(blackKing, blackKing.boardCoordinates.x, blackKing.boardCoordinates.y) &&\n !isKingInCheckmate(blackKing)) {\n errorMessage = \"black king in check\";\n System.out.println(\"ALERT: black king in check\");\n checkForTurns = true;\n return;\n }\n\n //check for checkmate\n if(isKingInCheckmate(whiteKing)) {\n endGameMessage = \"white king is in checkmate, player2 won, do you want to play again?\";\n System.out.println(\"ALERT: white king is in checkmate, player2 won. Do you want to play again?\");\n chess.player2.score++;\n checkForTurns = true;\n return;\n } else if(isKingInCheckmate(blackKing)) {\n endGameMessage = \"black king is in checkmate, player1 won, do you want to play again?\";\n System.out.println(\"ALERT: black king is in checkmate, player1 won. Do you want to play again?\");\n chess.player2.score++;\n chess.player1.score++;\n checkForTurns = true;\n return;\n }\n\n //we do need to check for player turns, turn it back on\n checkForTurns = true;\n\n //no errors if piece moved okay!\n errorMessage = null;\n }", "title": "" }, { "docid": "9ea3b6e1e8f83dafafca6fef9b14af64", "score": "0.70809406", "text": "private boolean validateMove(Piece piece, Grid from, Grid to) {\n // Invalidated when \"from\" or \"to\" is out of bound\n if (from.getCol() < MIN_COL || from.getCol() > MAX_COL ||\n from.getRow() < MIN_ROW || from.getRow() > MAX_ROW ||\n to.getCol() < MIN_COL || to.getCol() > MAX_COL ||\n to.getRow() < MIN_ROW || to.getRow() > MAX_ROW) {\n return false;\n }\n\n // Invalidated when no piece is on \"from\" grid\n if (!board.contains(from.getCol(), from.getRow())) {\n return false;\n }\n\n // Invalidated when piecetype is wrong\n Piece boardPiece = board.get(from.getCol(), from.getRow());\n if (boardPiece.getPieceType() != piece.getPieceType()) {\n return false;\n }\n\n // Invalidated when wrong camp\n if (piece.getCamp() != boardPiece.getCamp() ||\n piece.getCamp() != this.turn) {\n return false;\n }\n\n // Invalidated when ally piece is already on \"to\" grid\n if (board.contains(to.getCol(), to.getRow()) && board.get(to.getCol(), to.getRow()).getCamp() == piece.getCamp()) {\n return false;\n }\n\n boolean validated = false;\n switch (piece.getPieceType()) {\n case HORSE:\n case ELEPHANT:\n validated = validateJumpyPieceMove(piece, from, to);\n break;\n\n case GENERAL:\n case GUARD:\n validated = validateCastlePieceMove(piece, from, to);\n break;\n\n case SOLDIER:\n validated = validateSoldierPieceMove(piece, from, to);\n break;\n\n case CHARIOT:\n case CANNON:\n validated = validateStraightPieceMove(piece, from, to);\n break;\n }\n\n return validated;\n }", "title": "" }, { "docid": "8f81dfcb178b9f7cc490576d07a1c555", "score": "0.70225525", "text": "@Override\n public boolean isValidMove(Position newPosition, Piece[][] board) {\n if(!super.isValidMove(position, board)){\n return false;\n }\n // If we passed the first test then check for the specific bishop movement\n if(Math.abs(newPosition.getCol() - this.position.getCol()) == Math.abs(newPosition.getRow() - this.position.getRow())){\n int positionsBetween = Math.abs(newPosition.getCol() - this.position.getCol()) - 1;\n if(newPosition.getRow() > this.position.getRow() && newPosition.getCol() > this.position.getCol()) {\n int r = this.position.getRow() + 1;\n int c = this.position.getCol() + 1;\n while(positionsBetween > 0) {\n if(board[r][c] != null) {\n return false;\n }\n r += 1;\n c += 1;\n positionsBetween -= 1;\n }\n return true;\n }else if(newPosition.getRow() > this.position.getRow() && newPosition.getCol() <= this.position.getCol()){\n int r = this.position.getRow() + 1;\n int c = this.position.getCol() - 1;\n while(positionsBetween > 0) {\n if(board[r][c] != null) {\n return false;\n }\n r += 1;\n c -= 1;\n positionsBetween -= 1;\n }\n return true;\n }else if(newPosition.getRow() <= this.position.getRow() && newPosition.getCol() > this.position.getCol()){\n int r = this.position.getRow() - 1;\n int c = this.position.getCol() + 1;\n while(positionsBetween > 0) {\n if(board[r][c] != null) {\n return false;\n }\n r -= 1;\n c += 1;\n positionsBetween -= 1;\n }\n return true;\n // else -> newPosition.getRow() <= this.position.getRow() && newPosition.getCol() <= this.position.getCol()\n }else{\n int r = newPosition.getRow() + 1;\n int c = newPosition.getCol() + 1;\n while(positionsBetween > 0) {\n if(board[r][c] != null) {\n return false;\n }\n r += 1;\n c += 1;\n positionsBetween -= 1;\n }\n return true;\n }\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "0005f1d6f5a5d8981ca640f9dab43b64", "score": "0.6994123", "text": "@Test\r\n\tpublic void setInvalidMoveTest() {\r\n\t\ttry {\r\n\t\t\tpieceToBeMovedPosition.setX(1);\r\n\t\t\tpieceToBeMovedPosition.setY(2);\r\n\t\t\t\r\n\t\t\tendPosition.setX(2);\r\n\t\t\tendPosition.setY(2);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tTestCase.fail();\r\n\t\t}\r\n\t\r\n\t\ttry {\r\n\r\n\t\t\tpieceToBeMoved.setPiecePosition(pieceToBeMovedPosition);\r\n\t\t\tpiecePlacement[0] = pieceToBeMoved;\r\n\t\t\tboard.setPiecePlacement(piecePlacement);\r\n\t\t\tSingleMove move = new SingleMove(pieceToBeMoved, null, endPosition);\r\n\t\t\tTestCase.assertFalse(board.validateMove(move));\t\t\t\r\n\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tTestCase.fail();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c17186f9be17adda7e34c24a558b6416", "score": "0.6988266", "text": "@Override\r\n\tpublic boolean moveValid(int xs, int ys, int xe, int ye) {\n\t\tif((Math.abs(xe-xs)==0&&Math.abs(ye-ys)==1)||(Math.abs(ye-ys)==0&&Math.abs(xe-xs)==1)||(Math.abs(ye-ys)==1&&Math.abs(xe-xs)==1)) {\r\n\t\t\tif(!sameSide(getBoard().getChessPiece(xe, ye))&&!getBoard().checkKing(new Point(xe,ye),getColor())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c4b976e91856d8b0790184c899c3fa9c", "score": "0.69082534", "text": "private boolean ValidMove() {\n if (hasPiece() && isSame()) {\n return false;\n } else {\n \n return tiles[clickPoint.y][clickPoint.x].piece.isValidMove(clickPoint.x, clickPoint.y, point.x, point.y, tiles);\n }\n }", "title": "" }, { "docid": "e23dec51a28404b1cf2654bb01ea3ffe", "score": "0.68036884", "text": "public int TryMoveFromInput(String s) {\n\t/**\n\t * @method ParseInput\n\t * Parse String Input, and return coordinate From and To array\n\t * @author Maury Johnson\n\t */\n\tint [] TrueIn = ParseInput(s);\n\t/**\n\t * Check if integer array is valid\n\t * @author Maury Johnson\n\t */\n\tif(TrueIn==null) {\n\t\treturn -1;\n\t}\n\t\n\t/**\n\t * Get from Position and verify it's a piece\n\t * @author Maury Johnson\n\t */\n\tint[] MyPose = {TrueIn[0],TrueIn[1]};\n\tPiece MyPiece = GetPiece(MyPose);\n\t\n\t/**\n\t * Check if not valid piece or the piece is not my piece\n\t * Then return -1 status\n\t * @author Maury Johnson\n\t */\n\tif(MyPiece==null||MyPiece.Player!=Me.Player) {\n\t\t/**\n\t\t * System.out.println(\"Illegal move, try again\");\n\t\t * @author Maury Johnson\n\t\t */\n\t\treturn -1;\n\t}\n\t\n\t/**\n\t * For each type piece, cast it to that \n\t * @author Maury Johnson\n\t */\n\t/**\n\t * @method GetPiece\n\t * Gets piece given coordinated\n\t * Get To position and perform returnstatusmove on it\n\t * @author Maury Johnson\n\t */\n\tint[] To = {TrueIn[2],TrueIn[3]};\n\tPiece ToPiece = GetPiece(To);\n\t\n\t/**\n\t * Check if Player Me piece is a king piece\n\t * @author Maury Johnson\n\t */\n\tif(MyPiece instanceof King<?,?,?>) {\n\t/**\n\t * Then King wants to castle a rooke, King -> Rooke type of click\n\t * @author Maury Johnson\n\t */\n\tif(ToPiece instanceof Rooke<?,?,?>) {\n\t\t/**\n\t\t * Just switch piece and perform rooke castle movement to king\n\t\t * @author Maury Johnson\n\t\t */\n\t\tTo[0] = MyPiece.CurrentPosition[0];\n\t\tTo[1] = MyPiece.CurrentPosition[1];\n\t\t\n\t\tMyPiece = ToPiece;\n\t\t\n\t}\n\t/**\n\t * Check if king wants to move twice over.. then another castling attempt\n\t * @author Maury Johnson\n\t */\n\telse if(Math.abs(MyPiece.CurrentPosition[1]-To[1])==2 && MyPiece instanceof King<?,?,?>) {\n\t\t\n\t\tSystem.out.println(\"CASTLE\");\n\t\t\n\t\t/**\n\t\t * If negative dist, then rooke is to right side\n\t\t * @author Maury Johnson\n\t\t */\n\t\tif(MyPiece.CurrentPosition[1]-To[1]==-2) {\n\t\t\t/**\n\t\t\t * Now get Rooke on right side of king\n\t\t\t * @author Maury Johnson\n\t\t\t */\n\t\t\tint [] getR = {MyPiece.CurrentPosition[0],7};\n\t\t\t\n\t\t\t/**\n\t\t\t * Now set To[] array to king's current position\n\t\t\t * @author Maury Johnson\n\t\t\t */\n\t\t\tTo[0]=MyPiece.CurrentPosition[0];\n\t\t\tTo[1]=MyPiece.CurrentPosition[1];\n\t\t\t\n\t\t\t/**\n\t\t\t * @method GetPiece\n\t\t\t * Set king piece object to rooke object, while also\n\t\t\t * Setting To parameter to king's position, in order to correctly use\n\t\t\t * GetMatchingMove function \n\t\t\t * If piece is not rooke, return status -1 error!!\n\t\t\t *@author Maury Johnson\n\t\t\t */\n\t\t\tMyPiece = GetPiece(getR);\n\t\t\tif(MyPiece==null || !(MyPiece instanceof Rooke<?,?,?>)) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\n\t\t\t/**\n\t\t\t *@method ReturnStatusMove\n\t\t\t *Return status of movement which implements a move\n\t\t\t *@method get\n\t\t\t *get 7th piece for current player, which will be right rook for both players\n\t\t\t *@method TryRookeLeftCastle\n\t\t\t *Try to castle left for rooke\n\t\t\t * @author Maury Johnson\n\t\t\t *\n\t\t\t */\n\t\t\t\n\t\t\treturn ReturnStatusMove(((Rooke<int[],int[],int[]>)Me.Pieces.get(7)).TryRookeLeftCastle());\n\t\t\n\t\t}\n\t\t/**\n\t\t * If positive dist, then rooke is to left side\n\t\t *@author Maury Johnson\n\t\t */\n\t\telse if(MyPiece.CurrentPosition[1]-To[1]==2 && MyPiece instanceof King<?,?,?>) {\n\t\t\t\n\t\t\t/**\n\t\t\t * Get Left side rooke\n\t\t\t * @author Maury Johnson\n\t\t\t */\n\t\t\tint [] getR = {MyPiece.CurrentPosition[0],0};\n\t\t\t/**\n\t\t\t * Set to position to king again, for castle type move\n\t\t\t * @author Maury Johnson\n\t\t\t */\n\t\t\tTo[0]=MyPiece.CurrentPosition[0];\n\t\t\tTo[1]=MyPiece.CurrentPosition[1];\n\t\t\t\n\t\t\t/**\n\t\t\t * @method GetPiece\n\t\t\t * Set king piece object to rooke object, while also\n\t\t\t * Setting To parameter to king's position, in order to correctly use\n\t\t\t * GetMatchingMove function\n\t\t\t * If piece doesn't exist, return -1, error!! \n\t\t\t *@author Maury Johnson\n\t\t\t */\n\t\t\tMyPiece = GetPiece(getR);\n\t\t\tif(MyPiece==null|| !(MyPiece instanceof Rooke<?,?,?>)) {\n\t\t\t\t//System.out.println(\"Illegal move, try again\");\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t/**\n\t\t\t *@method ReturnStatusMove\n\t\t\t *Return status of movement which implements a move\n\t\t\t *@method get\n\t\t\t *get 0th piece for current player, which will be left rook for both players\n\t\t\t *@method TryRookeRightCastle\n\t\t\t *Try to castle right for rooke\n\t\t\t * @author Maury Johnson\n\t\t\t *\n\t\t\t */\n\t\t\treturn ReturnStatusMove(((Rooke<int[],int[],int[]>)Me.Pieces.get(0)).TryRookeRightCastle());\n\t\t}\n\t\t\n\t}\n\t\n\t}\n\t\n\t/**\n\t * @method GetMatchingMove\n\t * For a traditional move\n\t * Set Return variable to GetMatchingMove,\n\t * gets return status\n\t * @author Maury Johnson\n\t */\n\tint Ret = GetMatchingMove(MyPiece, To);\n\t\n\t/**\n\t * Check if MY piece to move is Pawn\n\t * @author Maury Johnson\n\t */\n\tif(MyPiece instanceof Pawn<?,?,?> ) {\n\t\t/**\n\t\t * Check if my piece position reached the end of board, promotion available\n\t\t * @author Maury Johnson\n\t\t */\n\t\tif(MyPiece.CurrentPosition[0]==0||MyPiece.CurrentPosition[0]==7) {\n\t\t\t/**\n\t\t\t* Promote to the last character given\n\t\t\t*\n\t\t\t*\n\t\t\tSystem.out.printf(\"Promotion!!! @ [%d,%d]\\n\",MyPiece.CurrentPosition[0],MyPiece.CurrentPosition[1]);\n\t\t\t* @author Maury Johnson\n\t\t\t*/\n\t\t\t/**\n\t\t\t * Validate parsed string length\n\t\t\t * @author Maury Johnson\n\t\t\t */\n\t\t\tif(s.length()==7) {\n\t\t\tPiece NewP = NewPiece(s.charAt(s.length()-1));\t\n\t\t\t/**\n\t\t\t * \n\t\t\t * @author Maury Johnson\n\t\t\t */\n\t\t\tif(NewP!=null) {\n\t\t\t\t\n\t\t\t\tReplacePiece(NewP,MyPiece);\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t/**\n\t\t\t\t * Invalid argument?!?!\n\t\t\t\t * No piece exists from given piece to promote to, error\n\t\t\t\t * @author Maury Johnson\n\t\t\t\t return -1;\n\t\t\t\t */ \n\t\t\t}\n\t\t\t}\n\t\t\t/**\n\t\t\t * If no promotion piece is given, then default promotion given is queen\n\t\t\t * @author Maury Johnson\n\t\t\t */\n\t\t\telse {\n\t\t\tQueen<int[],int[],int[]> Q = new Queen<int[],int[],int[]>(Me.Player);\n\t\t\tQ.Piece = 'Q';\n\t\t\tReplacePiece(Q,MyPiece);\n\t\t\t}\n\t\t\tif(OpponentInCheck()) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn Ret;\n}", "title": "" }, { "docid": "8a87e7313432bf7a9c778d0da9f30aee", "score": "0.6769578", "text": "public boolean checkMoveConstraints(Pieces piece, int destinationX, int destinationY) {\n //check if player turns are correct\n if(checkForTurns) {\n if (piece.getPieceColor() == BLACK && !isBlackTurn) {\n System.out.println(\"MOVE ERROR: It's white piece's turn.\");\n errorMessage = \"It's \" + playerOneName + \"'s turn.\";\n return false;\n } else if (piece.getPieceColor() == WHITE && !isWhiteTurn) {\n System.out.println(\"MOVE ERROR: It's black piece's turn.\");\n errorMessage = \"It's \" + playerTwoName + \"'s turn.\";\n return false;\n }\n }\n //if destination is same as current coordinate, render move as invalid\n if(destinationX == piece.boardCoordinates.x && destinationY == piece.boardCoordinates.y) {\n System.out.println(\"MOVE ERROR: current and final coordinates are same.\");\n errorMessage = \"Current and final coordinates are same.\";\n return false;\n }\n else {\n if(canLeap(piece, destinationX, destinationY) && isInBounds(destinationX, destinationY) &&\n isDestinationOnSamePieceColor(piece, destinationX, destinationY)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "da81a245601bc647a513b61c6e365326", "score": "0.6767362", "text": "@Override\n public boolean isValidMove() {\n boolean valid = false;\n\n // Top left diagonal movement\n if (this.X1 > this.X2 && this.Y1 > this.Y2 && (Math.abs(this.X2 - this.X1) == Math.abs(this.Y2 - this.Y1))) {\n\n if ((this.X1 - this.X2 != 1) && (this.Y1 - this.Y2 != 1)) {\n\n for (int i = 1; i < Math.abs(this.X2 - this.X1); i++) {\n \n if (this.board[this.X1-i][this.Y1-i].equals(\"·\")) {\n continue;\n }\n return valid = false; \n }\n }\n\n if (this.board[this.X2][this.Y2].equals(\"·\") || this.board[this.X2][this.Y2].matches(this.pattern)) {\n valid = true;\n }\n }\n \n // Top right diagonal movement\n if (this.X1 > this.X2 && this.Y1 < this.Y2 && (Math.abs(this.X2 - this.X1) == Math.abs(this.Y2 - this.Y1))){\n\n if ((this.X1 - this.X2 != 1) && (this.Y2 - this.Y1 != 1)) {\n\n for (int i = 1; i < Math.abs(this.X2 - this.X1); i++) {\n \n if (this.board[this.X1-i][this.Y1+i].equals(\"·\")) {\n continue;\n }\n return valid = false; \n }\n }\n\n if (this.board[this.X2][this.Y2].equals(\"·\") || this.board[this.X2][this.Y2].matches(this.pattern)) {\n valid = true;\n }\n }\n \n // Bottom right diagonal movement\n if (this.X1 < this.X2 && this.Y1 < this.Y2 && (Math.abs(this.X2 - this.X1) == Math.abs(this.Y2 - this.Y1))){\n\n if ((this.X1 - this.X2 != 1) && (this.Y2 - this.Y1 != 1)) {\n\n for (int i = 1; i < Math.abs(this.X2 - this.X1); i++) {\n \n if (this.board[this.X1+i][this.Y1+i].equals(\"·\")) {\n continue;\n }\n return valid = false; \n }\n }\n\n if (this.board[this.X2][this.Y2].equals(\"·\") || this.board[this.X2][this.Y2].matches(this.pattern)) {\n valid = true;\n }\n }\n \n // Bottom left diagonal movement\n if (this.X1 < this.X2 && this.Y1 > this.Y2 && (Math.abs(this.X2 - this.X1) == Math.abs(this.Y2 - this.Y1))){\n\n if ((this.X1 - this.X2 != 1) && (this.Y2 - this.Y1 != 1)) {\n\n for (int i = 1; i < Math.abs(this.X2 - this.X1); i++) {\n \n if (this.board[this.X1+i][this.Y1-i].equals(\"·\")) {\n continue;\n }\n return valid = false; \n }\n }\n\n if (this.board[this.X2][this.Y2].equals(\"·\") || this.board[this.X2][this.Y2].matches(this.pattern)) {\n valid = true;\n }\n }\n \n return valid;\n }", "title": "" }, { "docid": "e801384e394c71849621462eb4e614ea", "score": "0.6767031", "text": "public static void MakeMove(int boardX, int boardY)\n {\n if (wait_for_timer || !player_turn || wait_for_computer || !canMove()) return;\n if (MainPage.game_state == GameState.OUT_OF_GAME || MainPage.game_state == GameState.END_GAME || (checkerX == -1 && checkerY == -1)) return;\n\n if (game_type == GameState.SINGLE_PLAYER) player_turn = false;\n wait_for_timer = true;\n Move m;\n try\n {\n PieceColor whoseTurn = logic.whoseMove();\n int locX = checkerX;\n int locY = checkerY;\n // Unhighlight the selected piece\n handleHighlighting(checkerX, checkerY);\n m = logic.makeMove(locY, locX, boardY, boardX);\n \n handleMove(m);\n if (whoseTurn.Equals(logic.whoseMove()))\n {\n checkerX = boardX;\n checkerY = boardY;\n multi_jump = true;\n }\n\n TURN_TIMER.Start();\n }\n catch (PlayerMustJumpException)\n {\n MessageBox.Show(\"You must take an available jump!\");\n wait_for_timer = false;\n player_turn = true;\n }\n catch (WrongMultiJumpPieceException)\n {\n MessageBox.Show(\"You must finish the multijump!\");\n wait_for_timer = false;\n player_turn = true;\n }\n catch (InvalidMoveException)\n {\n System.Diagnostics.Debug.WriteLine(\"invalid move\");\n wait_for_timer = false;\n player_turn = true;\n }\n }", "title": "" }, { "docid": "df7a43a464f41f913b958d88b41482b4", "score": "0.6758962", "text": "private boolean validMove(int xi, int yi, int xf, int yf){\n\n if(xi < 0 || yi < 0 || xf < 0 || yf < 0 || xi>7 || xf > 7 || yi > 7 || yf > 7){\n return false;\n }\n Piece holder = pieces[xi][yi];\n \tPiece occupied = pieces[xf][yf];\n \tboolean crowned = holder.isKing();\n \tif(occupied != null){\n \t\treturn false;\t\t\n \t}\n \t//case for regular move\n \tif((Math.abs(xf - xi) == 1)){\n if(crowned && (Math.abs(yf - yi) == 1)){\n return true;\n }\n else if(holder.isFire()){\n if(yf - yi == 1){\n return true;\n }\n }\n else if (!holder.isFire()){\n if(yf - yi == -1){\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "28257e9086423000d1ce5491e80a0a77", "score": "0.67548627", "text": "@Test\n void PawnMoveForwardFail() {\n Board board = new Board(8, 8);\n Piece pawn1 = new Pawn(board, 4, 5, 1);\n Piece pawn2 = new Pawn(board, 4, 4, 2);\n\n board.getBoard()[4][5] = pawn1;\n board.getBoard()[4][4] = pawn2;\n\n board.movePiece(pawn1, 4, 4);\n\n Assertions.assertEquals(pawn1, board.getBoard()[4][5]);\n Assertions.assertEquals(pawn2, board.getBoard()[4][4]);\n\n }", "title": "" }, { "docid": "9acb297520700b0c61fb553162200c38", "score": "0.6712221", "text": "@Override\n public List<Move> getValidMoves(Location location, BoardState boardState)\n {\n List<Move> validMoves = new ArrayList<>();\n if (location == null) return validMoves;\n Piece thisPiece = boardState.getPiece(location);\n if (!(thisPiece instanceof PieceKing)) return validMoves;\n PlayerColor playerColor = thisPiece.getColor();\n PlayerColor opponentColor = GameProperties.getOpponentColor(playerColor);\n \n Location startLocation = Location.copyOf(location);\n Location[] moveLocations = { Location.left(startLocation),\n Location.right(startLocation),\n Location.up(startLocation),\n Location.down(startLocation),\n Location.upLeft(startLocation),\n Location.upRight(startLocation),\n Location.downLeft(startLocation),\n Location.downRight(startLocation)};\n \n for (Location nextLocation : moveLocations)\n {\n startLocation = Location.copyOf(location);\n Move newMove = validateMove(startLocation,nextLocation,boardState);\n if (newMove != null)\n validMoves.add(newMove);\n }\n \n Location kingLocation;\n Location newLocation;\n Location rookLocation;\n int rookFile;\n int kingRank;\n Piece rook;\n \n // castle left\n kingLocation = Location.copyOf(location);\n newLocation = Location.left2(location);\n kingRank = Location.getRow(location);\n rookFile = 0;\n rookLocation = Location.of(rookFile,kingRank);\n rook = null;\n if (!boardState.isEmpty(rookLocation))\n rook = boardState.getPiece(rookLocation);\n if ((rook != null) && (rook instanceof PieceRook))\n {\n if (history.isEmpty() && rook.history.isEmpty())\n {\n MoveCastle moveCastle = validateLeftCastle(kingLocation,newLocation,rookLocation,boardState);\n if (moveCastle != null) validMoves.add(moveCastle);\n }\n }\n \n // castle right\n kingLocation = Location.copyOf(location);\n newLocation = Location.right2(location);\n kingRank = Location.getRow(location);\n rookFile = 7;\n //kingRank = 7;\n rookLocation = Location.of(rookFile,kingRank);\n rook = null;\n if (!boardState.isEmpty(rookLocation))\n rook = boardState.getPiece(rookLocation);\n if ((rook != null) && (rook instanceof PieceRook))\n {\n if (history.isEmpty() && rook.history.isEmpty())\n {\n MoveCastle moveCastle = validateRightCastle(kingLocation,newLocation,rookLocation,boardState);\n if (moveCastle != null) validMoves.add(moveCastle);\n }\n }\n\n return validMoves;\n }", "title": "" }, { "docid": "a484ef060aa7c8462950befc2eea90c2", "score": "0.66992986", "text": "@Test // 4\n\tpublic void outOfBoundsCoordinatesMoveReturnIllegalMove()\n\t{\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(-1, -1), mkc(3, 3)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(-1, 6), mkc(3, 3)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(-1, 10), mkc(3, 3)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(5, 10), mkc(3, 3)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(11, 10), mkc(3, 3)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(11, 5), mkc(3, 3)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(11, -1), mkc(3, 3)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(5, -1), mkc(3, 3)));\n\t\t\n\t\t// all valid source + invalid destination\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(3, 3), mkc(-1, -1)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(3, 3), mkc(-1, 6)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(3, 3), mkc(-1, 10)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(3, 3), mkc(5, 10)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(3, 3), mkc(11, 10)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(3, 3), mkc(11, 5)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(3, 3), mkc(11, -1)));\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(mkc(3, 3), mkc(5, -1)));\n\t}", "title": "" }, { "docid": "13dd89a044b499e678fba4824b7e5ce8", "score": "0.6690641", "text": "private void checkRep() {\n Set<Coordinate> validTargets = piece().moveSet(squareFrom.coordinate());\n \n assert validTargets.contains(squareTo.coordinate());\n }", "title": "" }, { "docid": "af4ed28924ca33354c404dca0df008f3", "score": "0.66877455", "text": "public void calcValidMoves() {\n\t\tsuper.calcValidMoves();\n\n\t\tfor (int y = -1; y < 2; y++) {\n\t\t\tfor (int x = -1; x < 2; x++) {\n\t\t\t\trays: for (int z = 1; z < Math.max(Game.BOARD_WIDTH, Game.BOARD_HEIGHT); z++) {\n\t\t\t\t\tVector2 pos = new Vector2(position.getX() + (x * z), position.getY() + (y * z));\n\t\t\t\t\tif (Board.isInBounds(pos)) {\n\t\t\t\t\t\tSquare square = Board.getSquareOnPosition(pos);\n\t\t\t\t\t\tif (square.getPiece() == null) {\n\t\t\t\t\t\t\tvalidMoves.add(square);\n\t\t\t\t\t\t} else if (square.getPiece().getSide() != side) {\n\t\t\t\t\t\t\tvalidMoves.add(square);\n\t\t\t\t\t\t\tbreak rays;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbreak rays;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "af7f9bcc33aceb018a96717d81cb5edd", "score": "0.66844904", "text": "@Override\r\n public boolean MoveIsValid (Spot current_position , Spot new_position) {\n if (current_position.getX_position() != new_position.getX_position() && \r\n current_position.getY_position() != new_position.getY_position() ) {\r\n \r\n return false; \r\n }\r\n // check if new position is not equal to the current_position\r\n else if (current_position.getX_position() == new_position.getX_position() && \r\n current_position.getY_position() == new_position.getY_position() ) {\r\n \r\n return false; \r\n }\r\n // check if there is no pieces blocking the way from current position to new position\r\n else if (current_position.getX_position() != new_position.getX_position()) {\r\n int y = current_position.getY_position();\r\n if (new_position.getX_position() > current_position.getX_position()) {\r\n for (int i = current_position.getX_position() ; i < new_position.getX_position() ; i++) {\r\n // board is class unfinished \r\n // getSpot method returns spot in the board with coordinates x & y\r\n if (Board.getSpot(i , y).getPiece() != null) {\r\n return false;\r\n }\r\n }\r\n }\r\n else {\r\n for (int i = current_position.getX_position() ; i > new_position.getX_position() ; i--) {\r\n // board is class unfinished \r\n // getSpot method returns spot in the board with coordinates x & y\r\n if (Board.getSpot(i , y).getPiece() != null) {\r\n return false;\r\n }\r\n }\r\n }\r\n if (new_position.getPiece() != null) {\r\n if (new_position.getPiece().isWhite() == this.isWhite()) {\r\n return false;\r\n }\r\n }\r\n }\r\n else if (current_position.getY_position() != new_position.getY_position()) {\r\n int x = current_position.getX_position();\r\n if (new_position.getY_position() > current_position.getY_position()) {\r\n for (int j = current_position.getY_position() ; j < new_position.getY_position() ; j++) {\r\n // board is class unfinished \r\n // getSpot method returns spot in the board with coordinates x & y\r\n if (Board.getSpot(x , j).getPiece() != null) {\r\n return false;\r\n }\r\n }\r\n }\r\n else {\r\n for (int j = current_position.getY_position() ; j > new_position.getY_position() ; j--) {\r\n // board is class unfinished \r\n // getSpot method returns spot in the board with coordinates x & y\r\n if (Board.getSpot(x , j).getPiece() != null) {\r\n return false;\r\n }\r\n }\r\n }\r\n if (new_position.getPiece() != null) {\r\n if (new_position.getPiece().isWhite() == this.isWhite()) {\r\n return false;\r\n }\r\n }\r\n }\r\n // check if new position is outside the board\r\n else if (new_position.getX_position() >= 8 || new_position.getX_position() < 0 ||\r\n new_position.getY_position() >= 8 || new_position.getX_position() < 0) {\r\n \r\n return false;\r\n }\r\n else {\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "7e684a00ef5eef92d32f78af0bc8940a", "score": "0.6684074", "text": "@Override\n\t// Used to determine if the piece is capable of making any legal moves\n\tpublic Boolean AbleToMove(Board board) {\n\t\tfor(int row = 1; row <= 8; row++) {\n\t\t\tif(row == rNum) continue;\n\t\t\tif(checkMove(row, cNum, board)) return true;\n\t\t}\n\t\t// Check every col in the current row\n\t\tfor(int col = 1; col <= 8; col++) {\n\t\t\tif(col == cNum) continue;\n\t\t\tif(checkMove(rNum, col, board)) return true;\n\t\t}\n\t\t// Checks the outward diagonal in all 4 directions (check move handles if its out of bounds)\n\t\tfor(int i = 1; i <= 8; i++) {\n\t\t\tif(checkMove(rNum-i, cNum-i, board)) return true;\n\t\t\telse if(checkMove(rNum-i, cNum+i, board)) return true;\n\t\t\telse if(checkMove(rNum+i, cNum-i, board)) return true;\n\t\t\telse if(checkMove(rNum+i, cNum+i, board)) return true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8f624dae93839e6e2e81e8f953b4b254", "score": "0.6676544", "text": "private static void validMoves() {\n\t\tif (!game.possibleMove(game.getCurrentPlayer().getPiece(), game.getOtherPlayer().getPiece()) \n\t\t\t\t\t\t&& !game.possibleMove(game.getOtherPlayer().getPiece(), game.getCurrentPlayer().getPiece())) {\n\t\t\tendGame();\n\t\t} else if (!game.possibleMove(game.getCurrentPlayer().getPiece(), game.getOtherPlayer().getPiece())) {\n\t\t\tSystem.out.println(game.getCurrentPlayer().toString() + \" passes.\");\n\t\t\tgame.switchPlayers();\n\t\t}\n\t}", "title": "" }, { "docid": "a890429f891c6123301821d3bf22e5f4", "score": "0.6662458", "text": "private void checkPawnMoves() {\n for (Point other : PAWN_MOVE_MATRIX) {\n Piece obstacle;\n Point tester = new Point(position);\n tester.translate((int) other.getX(), (int) other.getY() * vector);\n if (chessboard.checkPositionInBoardLimits(tester)) {\n obstacle = chessboard.getPieceAtPosition((int) tester.getX(), (int) tester.getY());\n if (obstacle == null) {\n possible_moves.add(new Point(tester));\n }\n }\n\n if (!this.getFirstMove()) {\n break;\n }\n }\n }", "title": "" }, { "docid": "65cb9c33e016e180efa5b5fbbe38e295", "score": "0.6657435", "text": "public boolean canMoveTo(Square square){\n \tif (square.getCheckerType() != CheckerType.None) return false;\n \tswitch (getCheckerType()){\n //White checkers can only move to square where xAxis-1 and yAxis+1 or xAxis-1 and yAxis-1\n\t\t\tcase White:\n\t\t\t\tif ( getSquareX() - 1 == square.getSquareX()) {\n\t\t\t\t\tif ((getSquareY() + 1 == square.getSquareY()) || (getSquareY() - 1 == square.getSquareY()))\n\t\t\t\t\t\treturn true; }\n\n\t\t\t\tif ( getSquareX() - 2 == square.getSquareX()) {\n\t\t\t\t\tif ((getSquareY() + 2 == square.getSquareY()) || (getSquareY() - 2 == square.getSquareY()))\n\t\t\t\t\t\treturn true; }\n\n return false;\n \n case Red:\n if ( getSquareX() + 1 == square.getSquareX()) {\n if ((getSquareY() + 1 == square.getSquareY()) || (getSquareY() - 1 == square.getSquareY()))\n return true; }\n\n if ( getSquareX() + 2 == square.getSquareX()) {\n if ((getSquareY() + 2 == square.getSquareY()) || (getSquareY() - 2 == square.getSquareY()))\n return true; }\n return false;\n\n case WhiteKing:\n if ( getSquareX() + 1 == square.getSquareX() || (getSquareX() - 1 == square.getSquareX())) {\n if ((getSquareY() + 1 == square.getSquareY()) || (getSquareY() - 1 == square.getSquareY()))\n return true; }\n\n if ( getSquareX() + 2 == square.getSquareX() || (getSquareX() - 2 == square.getSquareX())) {\n if ((getSquareY() + 2 == square.getSquareY()) || (getSquareY() - 2 == square.getSquareY()))\n return true; }\n return false;\n \n \n case RedKing:\n default: return false;\n\t\t}\n\n }", "title": "" }, { "docid": "e07acba723cdbfb9fbd82b8287ec493b", "score": "0.6645655", "text": "private boolean isMoveValidForCharacter(Move move){\n\n /*Analyzes the coordinates as the actual grid [1-8][A-H] .. (not zero index)*/\n\n String from = move.getFrom();\n String to = move.getTo();\n\n\n int fromRow = Character.getNumericValue(from.charAt(1));\n int fromColumn = getLetterIndex(from.charAt(0))+1;\n\n int toRow = Character.getNumericValue(to.charAt(1));\n int toColumn = getLetterIndex(to.charAt(0))+1;\n\n\n\n /* Rules for the larva */\n if(isLarvaAtPosition(from)){\n\n int rowDifference = fromRow - toRow;\n int columnDifference = fromColumn - toColumn;\n\n /* moving one column and one row diagonally in any directions*/\n if( Math.abs(rowDifference)==1 && Math.abs(columnDifference)==1){\n return true;\n }\n else {\n return false;\n }\n\n }\n\n /* Rules for the birds */\n else if (isBirdAtPosition(from)){\n\n int rowDifference = fromRow - toRow;\n int columnDifference = fromColumn - toColumn;\n\n /* moving one column and one row diagonally going forward */\n if( rowDifference == -1 && Math.abs(columnDifference)==1){\n return true;\n }\n else{\n return false;\n }\n\n\n }\n\n //When trying to move an empty parcel..\n return false;\n\n\n }", "title": "" }, { "docid": "a44e5484d528df47227e4b4a60a5f537", "score": "0.6640415", "text": "public void movePieceTo(Pieces piece, int destinationX, int destinationY) {\n if (piece.canMove(destinationX, destinationY)) {\n if (checkMoveConstraints(piece, destinationX, destinationY)) {\n setPieceLocation(piece, destinationX, destinationY);\n }\n } else {\n System.out.println(\"MOVE ERROR: This is not a valid move for the piece.\");\n errorMessage = \"This is not a valid move for the piece.\";\n }\n }", "title": "" }, { "docid": "c0cd7192087f653340662e3a9fe18f62", "score": "0.6634746", "text": "@Override\n public boolean canMove(Board board, Square start, Square end){\n if(end.getPiece()!=null){\n if(end.getPiece().isWhite() == this.isWhite()){\n return false;\n }\n }\n\n int x1 = start.getPos()[0];\n int y1 = start.getPos()[1];\n int x2 = end.getPos()[0];\n int y2 = end.getPos()[1];\n\n //check straight movement\n if((x2-x1)==0 && (this.isWhite() == true && (y2-y1)==-1 || this.isWhite() == false && (y2-y1)==1) && board.getSquare(x2,y2).getPiece() == null){\n return true;\n }\n\n //check take\n if( (Math.abs(x2-x1)) == 1 && (this.isWhite() == true && (y2-y1)==-1 || this.isWhite() == false && (y2-y1)==1) && board.getSquare(x2,y2).getPiece() != null){\n return true;\n }\n\n //check jumpmove\n if((x2-x1) == 0 && ((this.isWhite() == true && (y2-y1)==-2) || (this.isWhite() == false && (y2-y1)==2)) && this.hasMoved == false && board.getSquare(x2,y2).getPiece() == null){\n return true;\n }\n \n //somehow check eP?\n if( (Math.abs(x2-x1)) == 1 && ((this.isWhite() == true && (y2-y1)==-1) || (this.isWhite() == false && (y2-y1)==1)) && board.getSquare(x2,y2).getPiece() == null){\n if(this.isWhite()){\n if(board.getSquare(x2,y2+1).getPiece() instanceof Pawn){\n if(((Pawn)(board.getSquare(x2,y2+1).getPiece())).ePvalid() && board.getSquare(x2,y2+1).getPiece().isWhite() != this.isWhite()){\n return true;\n }\n }\n }\n else{\n if(board.getSquare(x2,y2-1).getPiece() instanceof Pawn){\n if(((Pawn)(board.getSquare(x2,y2-1).getPiece())).ePvalid() && board.getSquare(x2,y2-1).getPiece().isWhite() != this.isWhite()){\n return true;\n }\n }\n }\n \n }\n\n\n return false;\n }", "title": "" }, { "docid": "b74d88b71f8446b1f73216850d93e23a", "score": "0.6617215", "text": "private boolean isMoveLegal(Move move) {\n\t\tBoardConfiguration oldBoard = this.config.snapshot();\r\n\t\t\r\n\t\t//get the location this move is supposed to play at\r\n\t\tPoint location = move.getVertex().getLocation();\r\n\t\t\r\n\t\t//for starters, move is not legal if space is occupied\r\n\t\tDefaultVertex existingVertex = (DefaultVertex) this.config.vertexAt(location.x, location.y);\r\n\t\tif (existingVertex.getState() != State.NEUTRAL) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t//also, move is illegal if it violates Ko by resulting in an identical board state\r\n\t\t//to just before the last opposing move so long as each move would be a capture\r\n\t\t//rules for Ko,\r\n\t\t//\t1. this move captures one piece\r\n\t\t//\t2. last move captured one piece\r\n\t\t//\t3. this move results in identical board state to before last move\r\n\t\t\r\n\t\t//determine the color tile being placed by the move\r\n\t\tboolean black = move.getVertex().getState() == State.BLACK;\r\n\t\t\r\n\t\t//try to color the tile and see if it runs out of liberties\r\n\t\texistingVertex.setState(black ? State.BLACK : State.WHITE);\r\n\t\tif (existingVertex.countLiberties() == 0) {\r\n\t\t\t//this means we have placed a stone with 0 liberties\r\n\t\t\t//we need to determine if this results in a capture\r\n\t\t\t//which will restore one or more liberties to the placed piece\r\n\t\t\t//look for pieces of the opposite color with 0 liberties\r\n\t\t\t//and capture them. After the capture, check the current move\r\n\t\t\t//again to see if any liberties are restored\r\n\t\t\t\r\n\t\t\t//now to capture the opposite colored pieces\r\n\t\t\t//first let's find them all\r\n\t\t\tState enemyColor = black ? State.BLACK : State.WHITE;\r\n\t\t\tList<DefaultVertex> stonesToCapture = new LinkedList<>();\r\n\t\t\tfor (DefaultVertex v : this.config.getAllVerticesWithState(enemyColor)) {\r\n\t\t\t\tif (v.countLiberties() == 0) {\r\n\t\t\t\t\tstonesToCapture.add(v);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint caps = 0;\r\n\t\t\t//now let's capture them\r\n\t\t\tfor (DefaultVertex v : stonesToCapture) {\r\n\t\t\t\tv.setState(State.NEUTRAL);\r\n\t\t\t\tcaps++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//now let's see if we restored a liberty to the piece\r\n\t\t\t\t//if not then the move is not legal\r\n\t\t\tif (existingVertex.countLiberties() == 0) {\r\n\t\t\t\t//let's restore the board state and return false\r\n\t\t\t\tthis.config = (DefaultBoardConfiguration) oldBoard;\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\t//even if the piece now has a liberty, the last thing to check\r\n\t\t\t\t\t//is if this move violated Ko\r\n\t\t\t\tDefaultBoardConfiguration now = this.config;\r\n\t\t\t\tif (now.equals(this.boardHistory.get(this.boardHistory.size()-2))\r\n\t\t\t\t\t\t&& caps == 1) {\r\n\t\t\t\t\t//ko violated, return false after resetting board state\r\n\t\t\t\t\tthis.config = (DefaultBoardConfiguration) oldBoard;\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//before we say the move is legal, let's make sure the board state is restored\r\n\t\tthis.config = (DefaultBoardConfiguration) oldBoard;\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "450ea1508242a758f01adf1ccf6f587d", "score": "0.6615641", "text": "@Test\n public void testPawnsForwardMove() {\n /* _ P\n * _ _ _ P _ _\n * _ _ _ _ _ P\n * _ p _ p _ p\n * _\n * _\n */\n Piece topPawn = PieceFactory.makePiece(PieceType.PAWN, PlayerType.TOP_PLAYER);\n Piece bottomPawn = PieceFactory.makePiece(PieceType.PAWN, PlayerType.BOTTOM_PLAYER);\n this.board.setPieceAt(2, 1, Optional.of(bottomPawn));\n this.board.setPieceAt(2, 3, Optional.of(bottomPawn));\n this.board.setPieceAt(2, 5, Optional.of(bottomPawn));\n this.board.setPieceAt(5, 1, Optional.of(topPawn));\n this.board.setPieceAt(4, 3, Optional.of(topPawn));\n this.board.setPieceAt(3, 5, Optional.of(topPawn));\n\n /* unmoved pawn has 2 possible moves */\n Set<Move> pawn51Moves = new HashSet<>(topPawn.getAllMovesFrom(this.board, 5, 1));\n Set<Move> pawn21Moves = new HashSet<>(bottomPawn.getAllMovesFrom(this.board, 2, 1));\n Set<Move> pawn51ExpectedMoves = new HashSet<>();\n Set<Move> pawn21ExpectedMoves = new HashSet<>();\n pawn51ExpectedMoves.add(MoveFactory.makeRegularMove(Position.of(5, 1), Position.of(4, 1)));\n pawn51ExpectedMoves.add(MoveFactory.makeRegularMove(Position.of(5, 1), Position.of(3, 1)));\n pawn21ExpectedMoves.add(MoveFactory.makeRegularMove(Position.of(2, 1), Position.of(3, 1)));\n pawn21ExpectedMoves.add(MoveFactory.makeRegularMove(Position.of(2, 1), Position.of(4, 1)));\n assertEquals(\"downward 2 possible moves\\n\", pawn51ExpectedMoves, pawn51Moves);\n assertEquals(\"upward 2 possible moves\\n\", pawn21ExpectedMoves, pawn21Moves);\n\n /* unmoved pawn where 2-stride move is blocked */\n Set<Move> pawn43Moves = new HashSet<>(topPawn.getAllMovesFrom(this.board, 4, 3));\n Set<Move> pawn23Moves = new HashSet<>(bottomPawn.getAllMovesFrom(this.board, 2, 3));\n Set<Move> pawn43ExpectedMoves = new HashSet<>();\n Set<Move> pawn23ExpectedMoves = new HashSet<>();\n pawn43ExpectedMoves.add(MoveFactory.makeRegularMove(Position.of(4, 3), Position.of(3, 3)));\n pawn23ExpectedMoves.add(MoveFactory.makeRegularMove(Position.of(2, 3), Position.of(3, 3)));\n assertEquals(\"downward 1 possible moves\\n\", pawn43ExpectedMoves, pawn43Moves);\n assertEquals(\"upward 1 possible moves\\n\", pawn23ExpectedMoves, pawn23Moves);\n\n /* unmoved pawn where both forward moves are blocked */\n Set<Move> pawn35Moves = new HashSet<>(topPawn.getAllMovesFrom(this.board, 3, 5));\n Set<Move> pawn25Moves = new HashSet<>(bottomPawn.getAllMovesFrom(this.board, 2, 5));\n Set<Move> pawn35ExpectedMoves = new HashSet<>();\n Set<Move> pawn25ExpectedMoves = new HashSet<>();\n assertEquals(\"forward move blocked\\n\", pawn35ExpectedMoves, pawn35Moves);\n assertEquals(\"forward move blocked\\n\", pawn25ExpectedMoves, pawn25Moves);\n\n\n /* set all pawns to moved state */\n topPawn = topPawn.setMoved(true);\n bottomPawn = bottomPawn.setMoved(true);\n\n /* moved pawn has 1 possible moves */\n pawn51Moves = new HashSet<>(topPawn.getAllMovesFrom(this.board, 5, 1));\n pawn21Moves = new HashSet<>(bottomPawn.getAllMovesFrom(this.board, 2, 1));\n pawn51ExpectedMoves = new HashSet<>();\n pawn21ExpectedMoves = new HashSet<>();\n pawn51ExpectedMoves.add(MoveFactory.makeRegularMove(Position.of(5, 1), Position.of(4, 1)));\n pawn21ExpectedMoves.add(MoveFactory.makeRegularMove(Position.of(2, 1), Position.of(3, 1)));\n assertEquals(\"downward 1 possible moves\\n\", pawn51ExpectedMoves, pawn51Moves);\n assertEquals(\"upward 1 possible moves\\n\", pawn21ExpectedMoves, pawn21Moves);\n }", "title": "" }, { "docid": "3bf19dfe422f457f4167a926a6ae0e9d", "score": "0.66104245", "text": "private void testMoveIntoEmptySpace(PieceType piece) throws StrategyException{\n \t\taddToConfiguration(piece, RED, 0, 1);\n \t\taddToConfiguration(piece, BLUE, 0, 4);\n \n \t\tgame = gameFactory.makeBetaStrategyGame(redConfiguration, blueConfiguration);\n \t\tgame.startGame();\n \t\t\n \t\tMoveResult moveResult = game.move(piece, new Location2D(0,1), new Location2D(0,2));\n \t\tassertEquals(\"Expected <\" + MoveResultStatus.OK + \"> with piece type <\" + piece + \">!\", MoveResultStatus.OK, moveResult.getStatus());\n \t\tassertNull(\"Expected null BattleWinner with piece type <\" + piece + \">!\", moveResult.getBattleWinner());\n \t\t\n \t\t//Reset \n \t\tsetup();\n \t}", "title": "" }, { "docid": "cfc54106e1b5c1b25fff5128a0c42369", "score": "0.66089946", "text": "private boolean checkIfValidMove(int proposedX, int proposedY){\r\n if (map.getMap()[proposedY][proposedX] != '#'){\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "487096e6e78018683ab9b8cef49141ef", "score": "0.6603866", "text": "private boolean checkIfInValidMove(int xPos, int yPos, Player turn){\n return (xPos<0 || xPos>= ConnectFourConstant.ROW || yPos <0 || yPos>=ConnectFourConstant.COL)\n || (xPos+1 < ConnectFourConstant.ROW && playBoard[xPos+1][yPos] == null)\n || playBoard[xPos][yPos]!=null;\n }", "title": "" }, { "docid": "f70697ec3cf0f7ddc985f91285a836fe", "score": "0.66021556", "text": "@Override\n public boolean validMove(int targetCol, int targetRow, IBoard board) {\n // ensures the piece is not trying to move on top of its own team's piece\n IPiece currentPiece = board.getPieceAt(targetCol, targetRow);\n if (currentPiece != null) {\n if (currentPiece.getTeam() == this.team) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "804e9caaedb18baf84d7ae8cfc40f9de", "score": "0.65934855", "text": "@Test\r\n\tpublic void HexGameInvalidMoveTest(){\r\n\t\tBoardGame hex = new Hex(14,14);\r\n\t\tassertTrue(hex.getCurrentPlayer()==1);\r\n\t\t\r\n\t\t\r\n\t\thex.takeTurn(0, 0);\r\n\t\tassertTrue(hex.getCurrentPlayer()==2);\r\n\t\t\r\n\t\t\r\n\t\thex.takeTurn(0, 0);//Location already used, current player should remain the same(i.e. player 2)\r\n\t\tassertTrue(hex.getCurrentPlayer()==2);\r\n\t\t\r\n\t\thex.takeTurn(10, 10);\r\n\t\tassertTrue(hex.getCurrentPlayer()==1);\r\n\t\t\r\n\t\thex.takeTurn(14, 10);//invalid Coordinate\r\n\t\tassertTrue(hex.getCurrentPlayer()==1);\r\n\t\t\r\n\t\thex.takeTurn(1, -10);//invalid Coordinate\r\n\t\tassertTrue(hex.getCurrentPlayer()==1);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d8672717cd8a4e3d5f7b2f6d5070c274", "score": "0.65929115", "text": "public static void computerMove()\n\t{\n\t\tRandom rand = new Random();\n\t\t\n\t\t//Choosing a piece to move\n\t\touter: for(int i = rand.nextInt(8) ; i<8; i++)\n\t\t{\n\t\t\tfor(int j=0; j<8; j++)\n\t\t\t{\n\t\t\t\tif(Chess.position[i][j] != null && Chess.position[i][j].color.equals(\"white\"))\n\t\t\t\t{\n\t\t\t\t\tx1 = j;\n\t\t\t\t\ty1 = i;\n\t\t\t\t\tbreak outer;\n\t\t\t\t\t//break if the piece is white\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t//choosing a place to move\n\t\t\touterloop: for(int i=0; i<8; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<8; j++)\n\t\t\t\t{\n\t\t\t\t\tboolean isTrue = Chess.position[y1][x1].canMove(x1, y1, i, j);\n\t\t\t\t\tif(isTrue==true)\n\t\t\t\t\t{\n\t\t\t\t\t\tx2 = i;\n\t\t\t\t\t\ty2 = j;\n\t\t\t\t\t\tbreak outerloop;\n\t\t\t\t\t\t//break if the destination is valid\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Computer moves \" + Chess.position[y1][x1] + Chess.position[y1][x1].color+ \" to\" + x2 + \" \" + y2);\n\t}", "title": "" }, { "docid": "d29423ea4c0081f1041bd64c75201b24", "score": "0.65827364", "text": "public boolean isValidMove(int x, int y, int player) {\n if (player != PLAYER_ONE && player != PLAYER_TWO)\n return (false);\n\n // Check if we're out of bounds.\n if (x < 0 || x >= gameGrid.getSize() || y < 0 || y >= gameGrid.getSize())\n return (false);\n\n // New disks can only be placed on empty cells.\n if (gameGrid.getCellData(x, y) != EMPTY)\n return (false);\n\n return (checkMove(x, y, player));\n}", "title": "" }, { "docid": "dc98f1baf593ad042bba5f65c0dc05d2", "score": "0.6581515", "text": "public void move(){\n\t\tint mx=posx;\n\t\tint my=posy;\n\t\t if(\"NORTH\".equals(pdirection))\n\t\t\tmy=my+1;\n\t\t if(\"SOUTH\".equals(pdirection))\n\t\t\tmy=my-1;\n\t\t if(\"EAST\".equals(pdirection))\n\t\t\tmx=mx+1;\n\t\t if(\"WEST\".equals(pdirection))\n\t\t\tmx=mx-1;\n\t\t\n\t\tboolean verdict=isValid(mx,my);\n\t\tif (verdict==true)\n\t\t{\n\t\t\tposx=mx;\n\t\t\tposy=my;\n\t\t}\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"Invalid position\");\n\t}", "title": "" }, { "docid": "a94768ea86adb97ff42ea9f92ded8291", "score": "0.65715283", "text": "public static void computerGoFirstGeneralMovingRules() {\n if(!Check.noughtsOrCross('O')){ //check if there are two 'O' on the same row, column or diagonal\n if(!Check.noughtsOrCross('X')){ //check if there are two 'X' on the same row, column or diagonal\n if(!Check.corner()){ //check if the corners are empty\n Check.checkEmpty(); //the computer will make a move\n }\n }\n }\n }", "title": "" }, { "docid": "3a8e4a982e3066e0bc225ab659c981f1", "score": "0.6563849", "text": "private boolean castleIsAllowed(Board board, Player player, int k_column_end, int r_column_start, int r_column_end){\n\n int color = player.getColor();\n Piece piece_k = board.getBoard()[color*(Board.BOARD_HEIGHT-1)][KING_CASTLING_COLUMN_START];\n Piece piece_r = board.getBoard()[color*(Board.BOARD_HEIGHT-1)][r_column_start];\n int castle_dir = 1;\n\n /* Determine the direction of the castling: little or big */\n if ( r_column_start < k_column_end )\n castle_dir = -1;\n\n /* Check that no piece between the rook and the king */\n for (int j=Math.min(KING_CASTLING_COLUMN_START+castle_dir, r_column_start-castle_dir);\n j<=Math.max(KING_CASTLING_COLUMN_START+castle_dir, r_column_start-castle_dir); j++){\n if ( board.getBoard()[color*(Board.BOARD_HEIGHT-1)][j] != null )\n return false;\n }\n\n /* Check king not in castle / not going through one a castle / both rook and king can move */\n /* No need to check color as can_castle ensure the color */\n if ( !piece_k.str().equals(\"king\") || !((King) piece_k).canCastle() ||\n !piece_r.str().equals(\"rook\") || !((Rook) piece_r).canCastle() ||\n player.isInCheck(board) ||\n !piece_r.canMove(board, player, Arrays.asList(color*(Board.BOARD_HEIGHT-1), r_column_start),\n Arrays.asList(color*(Board.BOARD_HEIGHT-1), r_column_end)) ||\n !piece_k.canMove(board, player, Arrays.asList(color*(Board.BOARD_HEIGHT-1), KING_CASTLING_COLUMN_START),\n Arrays.asList(color*(Board.BOARD_HEIGHT-1), KING_CASTLING_COLUMN_START+castle_dir)) )\n return false;\n\n /* Have to simulate because moving 2 is not an allowed move for the king */\n Board new_board = board.getClone();\n new_board.simulation(Arrays.asList(color*7, KING_CASTLING_COLUMN_START), Arrays.asList(color*7, KING_CASTLING_COLUMN_START+2*castle_dir));\n return !player.isInCheck(new_board);\n }", "title": "" }, { "docid": "3241a07d677f2854cf4aa66f93803a05", "score": "0.65627205", "text": "public boolean isLegalMove(int x, int y)\n {\n //not a legal move if there is already a real piece here\n if(null != _board[x][y] &&\n _board[x][y]._isReal)\n {\n return false;\n }\n\n for(int i = 0; i < kBOARD_SIZE; i++)\n {\n for(int j = 0; j < kBOARD_SIZE; j++)\n {\n if(Math.abs(x - i) <= 1 && Math.abs(y - j) <= 1)\n {\n if(null != _board[i][j] && \n _board[i][j]._isWhite != _isWhiteTurn)\n {\n int a = i + (i - x);\n int b = j + (j - y);\n while(a > -1 && a < kBOARD_SIZE && b > -1 && b < kBOARD_SIZE)\n {\n if(null != _board[a][b])\n {\n if(_board[a][b]._isWhite == _isWhiteTurn)\n {\n return true;\n }\n }\n //empty spot, not a legal move according to this direction\n else\n {\n break;\n }\n\n a += (i - x);\n b += (j - y);\n }\n }\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "fddcb299c1f928ac021b0f964c0dac7b", "score": "0.65604365", "text": "public boolean isValidMoveType(Board board, int nx, int ny) {\n \t\n \tint direction; // check pawn can not move backwards\n int startX;\n \tint diffX = nx-x;\n int diffY = ny-y;\n int abs_diffX = Math.abs(nx-x);\n int abs_diffY = Math.abs(ny-y);\n \n\n if(this.getColor() == Color.black){\n direction = 1;\n startX = 1;\n }\n else{\n direction = -1;\n startX = 6;\n }\n\n \n // the first time a pawn moves, it has the option of advancing two squares\n if (x == startX) {\n \tif (diffY == 0 && (diffX == 2*direction || diffX == direction) && isNotBlocked(board,nx,ny,direction))\n \t\treturn true;\n \n }\n \n else {\n \t// normally a pawn moves by advancing a single square\n \tif (diffY == 0 && diffX == direction && !board.isOccupied(nx,ny))\n \t\treturn true;\n \t\n \t// pawn capture by moving a step diagonally \n \tif (abs_diffX == abs_diffY && diffX == direction && board.isOccupied(nx, ny) \n \t\t\t&& board.getPiece(nx,ny).getColor() != this.getColor())\n \t\treturn true;\n }\n \n System.out.println(\"Invalid movement: Check https://en.wikipedia.org/wiki/Pawn_(chess) to see legal moves for pawn\");\n return false;\n \n }", "title": "" }, { "docid": "748f4224cfe1ef20c7a90bcde9b50d87", "score": "0.6549017", "text": "@Override\n public Collection<Move> calculateLegalMoves(Board board) {\n // list of legal moves\n List<Move> legalMoves = new ArrayList<>();\n // check each square around the chief\n for(int currentCandidateOffset : CANDIDATE_MOVE_COORDINATES){\n // take its coordinate\n int candidateDestinationCoordinate = this.piecePosition + currentCandidateOffset;\n\n // check if destination coordinate is a valid coordinate\n if(BoardUtils.isValidTileCoordinate(candidateDestinationCoordinate)){\n // if chief is on the first or seventh column we need to calculate possible moves differently\n if(isFirstColumnExclusion(this.piecePosition, currentCandidateOffset) || isSeventhColumnExclusion(this.piecePosition, currentCandidateOffset)){\n continue;\n }\n final Tile candidateDestinationTile = board.getTile(candidateDestinationCoordinate);\n // if destination tile is not occupied\n if(!(candidateDestinationTile.isTileOccupied())){\n // add major move\n legalMoves.add(new MajorMove(board, this, candidateDestinationCoordinate));\n }\n // destination tile is occupied\n else {\n // take piece from destination tile\n final Piece pieceAtDestination = candidateDestinationTile.getPiece();\n // take its color\n final Alliance pieceAlliance = pieceAtDestination.getPieceAlliance();\n\n // if color is different from chiefs color, add atack move\n if (this.pieceAlliance != pieceAlliance) {\n legalMoves.add(new AttackMove(board, this, candidateDestinationCoordinate, pieceAtDestination));\n }\n }\n }\n }\n\n // return the list of legal moves\n return Collections.unmodifiableList(legalMoves);\n }", "title": "" }, { "docid": "1efb77dc214d61c9597fc457bf92ac23", "score": "0.6541258", "text": "private static ArrayList<Point> getMoves(Point point) {\n // Checks whether the piece is a king\n boolean isKing = sState[point.y][point.x] == BoxState.WHITE_KING ||\n sState[point.y][point.x] == BoxState.BLACK_KING;\n\n ArrayList<Point> optionalMoves = new ArrayList<>();\n ArrayList<Point> mandatoryMoves = new ArrayList<>();\n Point move;\n Point captureMove;\n for (Point direction : Direction.AllDirections) {\n if (isKing) {\n // If the piece is a king, different rules apply\n\n // Whether the path is behind an opposite piece (that makes it mandatory)\n boolean behindOppositePiece = false;\n\n // Calculate new move\n move = new Point(point.x + direction.x, point.y + direction.y);\n\n // Kings can go as far as the board allows\n while (!isOutsideBoard(move)) {\n // If the space is empty, it is allowed\n if (sState[move.y][move.x] == BoxState.EMPTY) {\n if (behindOppositePiece) {\n // If we're behind an opposite piece, its mandatory\n mandatoryMoves.add(move);\n sMandatoryPieces.add(point);\n } else {\n // If we're not behind an opposite piece, its optional\n optionalMoves.add(move);\n }\n } else if (isPlayerPiece(sActivePlayer, move)) {\n // Can't continue in this direction, can't jump over own pieces\n break;\n } else if (isOppositePlayerPiece(sActivePlayer, move)) {\n // From now on, empty spaces are behind an opposite player piece\n // and therefore are mandatory\n behindOppositePiece = true;\n }\n // Go one step further in the same direction\n move = new Point(move.x + direction.x, move.y + direction.y);\n }\n } else {\n // If the piece is not a king, you can only take one step\n // Calculate new point for the move\n move = new Point(point.x + direction.x, point.y + direction.y);\n\n // If move is not outside board, can't go that direction\n if (isOutsideBoard(move)) {\n continue;\n }\n\n // Check the validity of the move\n if (sState[move.y][move.x] == BoxState.EMPTY) {\n // Check if the move is in a valid direction\n if (sActivePlayer == Player.BLACK && direction.y == -1) {\n // Black player can only move in -y direction\n optionalMoves.add(move);\n } else if (sActivePlayer == Player.WHITE && direction.y == 1) {\n // White player can only move in +y direction\n optionalMoves.add(move);\n }\n } else if (isOppositePlayerPiece(sActivePlayer, move)) {\n // Box is occupied with other player, check if we can capture it\n // Move one step further\n captureMove = new Point(move.x + direction.x, move.y + direction.y);\n\n // If move is not outside board, can't go that direction\n if (isOutsideBoard(captureMove)) {\n continue;\n }\n\n // If next move is empty, move is valid and mandatory\n if (sState[captureMove.y][captureMove.x] == BoxState.EMPTY) {\n // Move is valid, can capture piece\n mandatoryMoves.add(captureMove);\n sMandatoryPieces.add(point);\n }\n }\n }\n }\n // Return mandatory moves if present, otherwise return optional moves\n return mandatoryMoves.size() == 0 ? optionalMoves : mandatoryMoves;\n }", "title": "" }, { "docid": "ac4771ed44832463565348b4e3b91559", "score": "0.6539688", "text": "@Override\n\tprotected boolean isLegalPieceMove(int sRow, int sCol, int dRow, int dCol, JChess_GamePiece[][] gamePieceBoard) {\n\t\tif (sRow - dRow <= 1\n\t\t\t\t&& sRow - dRow >= -1\n\t\t\t\t&& sCol - dCol <= 1\n\t\t\t\t&& sCol - dCol >= -1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "95e52cdbaed2728a6f0099b1aeabb40c", "score": "0.6514524", "text": "public abstract Move determineMove(Board board) throws InvalidMoveException;", "title": "" }, { "docid": "9c4726093da001f23991d3723876e513", "score": "0.65126956", "text": "@Override\n public boolean validifyMove(Position source, Position destination, Board board) {\n return false;\n }", "title": "" }, { "docid": "c642657319c753517f15899a9e4eea1c", "score": "0.6511456", "text": "public boolean validateMove(int indexx, int indexy)\n {\n if (!checkSuicide(indexx, indexy))\n {\n render[indexx][indexy].resetPiece();\n return false;\n }\n if (!checkKo())\n {\n render[indexx][indexy].resetPiece();\n return false;\n }\n previous_states.add(new GoBoardStorage(render));\n return true;\n }", "title": "" }, { "docid": "fa6ded1d19869db171ace972eaca9960", "score": "0.65005904", "text": "public boolean ApplyMove( jcMove theMove )\n {\n // If the move includes a pawn promotion, an extra step will be required\n // at the end\n boolean isPromotion = ( theMove.MoveType >= jcMove.MOVE_PROMOTION_KNIGHT );\n int moveWithoutPromotion = ( theMove.MoveType & jcMove.NO_PROMOTION_MASK );\n int side = theMove.MovingPiece % 2;\n \n // For now, ignore pawn promotions\n switch( moveWithoutPromotion )\n {\n case jcMove.MOVE_NORMAL:\n // The simple case\n RemovePiece( theMove.SourceSquare, theMove.MovingPiece );\n AddPiece( theMove.DestinationSquare, theMove.MovingPiece );\n break;\n case jcMove.MOVE_CAPTURE_ORDINARY:\n // Don't forget to remove the captured piece!\n RemovePiece( theMove.SourceSquare, theMove.MovingPiece );\n RemovePiece( theMove.DestinationSquare, theMove.CapturedPiece );\n AddPiece( theMove.DestinationSquare, theMove.MovingPiece );\n break;\n case jcMove.MOVE_CAPTURE_EN_PASSANT:\n // Here, we can use our knowledge of the board to make a small\n // optimization, since the pawn to be captured is always\n // \"behind\" the moving pawn's destination square, we can compute its\n // position on the fly\n RemovePiece( theMove.SourceSquare, theMove.MovingPiece );\n AddPiece( theMove.DestinationSquare, theMove.MovingPiece );\n if ( ( theMove.MovingPiece % 2 ) == jcPlayer.SIDE_WHITE )\n RemovePiece( theMove.DestinationSquare + 8, theMove.CapturedPiece );\n else\n RemovePiece( theMove.DestinationSquare - 8, theMove.CapturedPiece );\n break;\n case jcMove.MOVE_CASTLING_QUEENSIDE:\n // Again, we can compute the rook's source and destination squares\n // because of our knowledge of the board's structure\n RemovePiece( theMove.SourceSquare, theMove.MovingPiece );\n AddPiece( theMove.DestinationSquare, theMove.MovingPiece );\n int theRook = ROOK + ( theMove.MovingPiece % 2 );\n RemovePiece( theMove.SourceSquare - 4, theRook );\n AddPiece( theMove.SourceSquare - 1, theRook );\n // We must now mark some squares as containing \"phantom kings\" so that\n // the castling can be cancelled by the next opponent's move, if he\n // can move to one of them\n if ( side == jcPlayer.SIDE_WHITE )\n {\n SetExtraKings( side, EXTRAKINGS_WHITE_QUEENSIDE );\n }\n else\n {\n SetExtraKings( side, EXTRAKINGS_BLACK_QUEENSIDE );\n }\n HasCastled[ side ] = true;\n break;\n case jcMove.MOVE_CASTLING_KINGSIDE:\n // Again, we can compute the rook's source and destination squares\n // because of our knowledge of the board's structure\n RemovePiece( theMove.SourceSquare, theMove.MovingPiece );\n AddPiece( theMove.DestinationSquare, theMove.MovingPiece );\n theRook = ROOK + ( theMove.MovingPiece % 2 );\n RemovePiece( theMove.SourceSquare + 3, theRook );\n AddPiece( theMove.SourceSquare + 1, theRook );\n // We must now mark some squares as containing \"phantom kings\" so that\n // the castling can be cancelled by the next opponent's move, if he\n // can move to one of them\n if ( side == jcPlayer.SIDE_WHITE )\n {\n SetExtraKings( side, EXTRAKINGS_WHITE_KINGSIDE );\n }\n else\n {\n SetExtraKings( side, EXTRAKINGS_BLACK_KINGSIDE );\n }\n HasCastled[ side ] = true;\n break;\n case jcMove.MOVE_RESIGN:\n // FDL Later, ask the AI player who resigned to print the continuation\n break;\n case jcMove.MOVE_STALEMATE:\n System.out.println( \"Stalemate - Game is a draw.\" );\n break;\n }\n \n // And now, apply the promotion\n if ( isPromotion )\n {\n int promotionType = ( theMove.MoveType & jcMove.PROMOTION_MASK );\n int color = ( theMove.MovingPiece % 2 );\n switch( promotionType )\n {\n case jcMove.MOVE_PROMOTION_KNIGHT:\n RemovePiece( theMove.DestinationSquare, theMove.MovingPiece );\n AddPiece( theMove.DestinationSquare, KNIGHT + color );\n break;\n case jcMove.MOVE_PROMOTION_BISHOP:\n RemovePiece( theMove.DestinationSquare, theMove.MovingPiece );\n AddPiece( theMove.DestinationSquare, BISHOP + color );\n break;\n case jcMove.MOVE_PROMOTION_ROOK:\n RemovePiece( theMove.DestinationSquare, theMove.MovingPiece );\n AddPiece( theMove.DestinationSquare, ROOK + color );\n break;\n case jcMove.MOVE_PROMOTION_QUEEN:\n RemovePiece( theMove.DestinationSquare, theMove.MovingPiece );\n AddPiece( theMove.DestinationSquare, QUEEN + color );\n break;\n }\n }\n \n // If this was a 2-step pawn move, we now have a valid en passant\n // capture possibility. Otherwise, no.\n if ( ( theMove.MovingPiece == jcBoard.WHITE_PAWN ) &&\n ( theMove.SourceSquare - theMove.DestinationSquare == 16 ) )\n SetEnPassantPawn( theMove.DestinationSquare + 8 );\n else if ( ( theMove.MovingPiece == jcBoard.BLACK_PAWN ) &&\n ( theMove.DestinationSquare - theMove.SourceSquare == 16 ) )\n SetEnPassantPawn( theMove.SourceSquare + 8 );\n else\n ClearEnPassantPawn();\n \n // And now, maintain castling status\n // If a king moves, castling becomes impossible for that side, for the\n // rest of the game\n switch( theMove.MovingPiece )\n {\n case WHITE_KING:\n SetCastlingStatus( CASTLE_KINGSIDE + jcPlayer.SIDE_WHITE, false );\n SetCastlingStatus( CASTLE_QUEENSIDE + jcPlayer.SIDE_WHITE, false );\n break;\n case BLACK_KING:\n SetCastlingStatus( CASTLE_KINGSIDE + jcPlayer.SIDE_BLACK, false );\n SetCastlingStatus( CASTLE_QUEENSIDE + jcPlayer.SIDE_BLACK, false );\n break;\n default:\n break;\n }\n \n // Or, if ANYTHING moves from a corner, castling becomes impossible on\n // that side (either because it's the rook that is moving, or because\n // it has been captured by whatever moves, or because it is already gone)\n switch( theMove.SourceSquare )\n {\n case 0:\n SetCastlingStatus( CASTLE_QUEENSIDE + jcPlayer.SIDE_BLACK, false );\n break;\n case 7:\n SetCastlingStatus( CASTLE_KINGSIDE + jcPlayer.SIDE_BLACK, false );\n break;\n case 56:\n SetCastlingStatus( CASTLE_QUEENSIDE + jcPlayer.SIDE_WHITE, false );\n break;\n case 63:\n SetCastlingStatus( CASTLE_KINGSIDE + jcPlayer.SIDE_WHITE, false );\n break;\n default:\n break;\n }\n \n // All that remains to do is switch sides\n SetCurrentPlayer( ( GetCurrentPlayer() + 1 ) % 2 );\n return true;\n }", "title": "" }, { "docid": "3c6f007c7c7e062fe2670dae9fdbf040", "score": "0.6495824", "text": "public boolean hasLegalMoveToGetOutOfCheck(Piece king){\n\n \t// get the location of the checking piece\n \tint checkX = -1;\n int checkY = -1;\n \tfor(int i = 0; i < width; i++){\n for(int j = 0; j < height; j++){\n \n \tif(isOccupied(i,j)) {\n \t\t\n \t\tPiece curr = getPiece(i,j);\n \t\tif ((curr.getColor() != king.getColor()) && curr.canMove(this, king.x, king.y)) {\n \t\t\tcheckX = i;\n \t\t\tcheckY = j;\n \t\t}\n \t}\n \n }\n }\n \tassert(checkX != -1 && checkY != -1);\n \t\n \t// Check whether can capture the checking piece, with either the king or another piece.\n \tfor(int i = 0; i < width; i++){\n for(int j = 0; j < height; j++){\n \t\n \tif (isOccupied(i,j)) {\n\n \t\tPiece curr = getPiece(i,j);\n \t\tif((curr.getColor() == king.getColor()) && curr.canMove(this, checkX, checkY)) {\n \t\t\treturn true;\n \t\t} \t\t\n \t\t\n \t} \n }\n }\n \t\n \t\n \t// Check whether can move the king to an adjacent square where it is not in check\n \tif (king.canMove(this, king.x-1, king.y)) {\n \t\tif (!isInCheck(king.x-1,king.y)) return true;\t\n }\t\n \tif (king.canMove(this, king.x+1, king.y)) {\n \t\tif (!isInCheck(king.x+1,king.y)) return true;\n \t}\n \tif (king.canMove(this, king.x, king.y-1)) {\n \t\tif (!isInCheck(king.x,king.y-1)) return true;\n \t}\n \tif (king.canMove(this, king.x, king.y+1)) {\n \t\tif (!isInCheck(king.x,king.y+1)) return true;\n \t}\n \tif (king.canMove(this, king.x-1, king.y-1)) {\n \t\tif (!isInCheck(king.x-1,king.y-1)) return true;\n \t}\n \tif (king.canMove(this, king.x+1, king.y+1)) {\n \t\tif (!isInCheck(king.x+1,king.y+1)) return true;\n \t}\n \n return false;\n }", "title": "" }, { "docid": "a606b80446a876faba59a53e67f6f506", "score": "0.64910316", "text": "public abstract ArrayList<ChessCoordinate> validMoves(ChessCoordinate startPosition);", "title": "" }, { "docid": "f9d72f53127353bb41a512b66d79d0cd", "score": "0.6479744", "text": "private ActionListener moveThePiece(final int current_row, final int current_col) {\n return new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n ChessGamePieces targetPiece;\n\n if(currentPiece == null) {\n if (chessPieceBoard[current_row][current_col] == null) {\n JOptionPane.showMessageDialog(chessBoardFrame, \"You cannot click empty first!!!\");\n return;\n }\n else {\n currentPiece = chessPieceBoard[current_row][current_col];\n\n if (playerWhiteFlag) {\n if (currentPiece.pieceColor != 0) {\n JOptionPane.showMessageDialog(chessBoardFrame, \"Please do not touch others piece!\");\n currentPiece = null;\n return;\n }\n }\n\n if (playerBlackFlag) {\n if (currentPiece.pieceColor != 1) {\n JOptionPane.showMessageDialog(chessBoardFrame, \"Please do touch others piece!\");\n currentPiece = null;\n return;\n }\n }\n return;\n }\n }\n\n if (chessPieceBoard[currentPiece.position_row][currentPiece.position_col].ableToMove(current_row, current_col) && currentBoard.pathContainOtherPieceOrNot(currentPiece.position_row, currentPiece.position_col, current_row, current_col)) {\n currentBoard.movingPiece(currentPiece.position_row, currentPiece.position_col, current_row, current_col);\n\n// if(currentBoard.EndingConditionCheck(currentPiece.pieceColor)) {\n// if (currentBoard.whiteFlag)\n// white_score++;\n// else\n// black_score++;\n// }\n//\n if(currentPiece.pieceColor == 0) {\n playerWhiteFlag = false;\n playerBlackFlag = true;\n }\n else {\n playerWhiteFlag = true;\n playerBlackFlag = false;\n }\n\n updateBoard();\n }\n else {\n JOptionPane.showMessageDialog(chessBoardFrame, \"Invalid Move!\");\n return;\n }\n\n\n\n// updateBoard();\n currentPiece = null;\n }\n };\n }", "title": "" }, { "docid": "60f4ff4ea61fde1c72fb381414840f2f", "score": "0.6471359", "text": "public boolean isLegal(ChessPiece[][] board, int x, int y) {\n\t\t//cannot take your own piece\n\t\tif (board[x][y].player.equals(player)) {\n\t\t\treturn false;\n\t\t}\n\t\t//Check if you want to castle to column 'a' rook\n\t\telse if ((row == x) && (col - y) == 2 && hasMoved == false) {\n\t\t\t//Checks if rook is at the corner and not moved\n\t\t\tif (board[row][0].identity.equals(\"rook\") && board[row][0].hasMoved == false) {\n\t\t\t\t//Checks if spaces between king and rook are empty\n\t\t\t\tif (!board[row][1].takenOrAttacked && !board[row][2].takenOrAttacked && !board[row][3].takenOrAttacked) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//Check if you want to castle to column 'h' rook\n\t\telse if ((row == x) && (col - y) == -2 && hasMoved == false) {\n\t\t\t//Checks if rook is at the corner and not moved\n\t\t\tif (board[row][7].identity.equals(\"rook\") && board[row][7].hasMoved == false) {\n\t\t\t\t//Checks if spaces between king and rook are empty and not being attacked\n\t\t\t\tif (!board[row][5].takenOrAttacked && !board[row][6].takenOrAttacked) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//Check to move the king in one space\n\t\tif (Math.abs(row-x) > 1 || Math.abs(col-y) > 1) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "90038a805453f5d2b143ad7dc4d85f00", "score": "0.6471182", "text": "@Test\n void PawnMoveOutOfBound() {\n Board board = new Board(8, 8);\n Piece pawn = new Pawn(board, 6, 6, 1);\n\n board.getBoard()[2][5] = pawn;\n\n board.movePiece(pawn, -1, 8);\n }", "title": "" }, { "docid": "a1d9c243abfeba7d9a733c17988178e8", "score": "0.64646995", "text": "@Test\n void PawnMoveForward() {\n Board board = new Board(8, 8);\n Piece pawn = new Pawn(board, 4, 6, 1);\n\n board.getBoard()[4][6] = pawn;\n\n board.movePiece(pawn, 4, 5);\n\n Assertions.assertEquals(pawn, board.getBoard()[4][5]);\n Assertions.assertNull(board.getBoard()[4][6]);\n\n board.movePiece(pawn, 4, 4);\n Assertions.assertEquals(pawn, board.getBoard()[4][4]);\n Assertions.assertNull(board.getBoard()[4][5]);\n }", "title": "" }, { "docid": "62fd5ca04e8be9e4c4fcf7c4d0336440", "score": "0.6461244", "text": "@Override\n public Boolean checkMove(int destR, int destC, Board board, Boolean ignoreTeam, Boolean isLegal){\n\t\tif(destR > 8 || destR < 1 || destC > 8 || destC < 1) return false; // keeps within board limits\n \tint diffX = Math.abs(rNum - destR);\n \tint diffY = Math.abs(cNum - destC); \t\n \t\n \t// Checks along the X,Y axis \t\n \tif ((diffX > 0 && diffY == 0) || (diffX == 0 && diffY > 0)){\n \t\tfor(int i = 1; i <= ((Math.max(diffX, diffY)) -1); i++){ \t\t\t\n \t\t\tif(rNum > destR && board.pieceAt(rNum - i, cNum)) return false;\t// Moving Upwards\n\t\t\t\telse if(rNum < destR && board.pieceAt(rNum + i, cNum)) return false; // Moving Downwards\n\t\t\t\telse if(cNum > destC && board.pieceAt(rNum, cNum - i)) return false; // Moving Right to Left\n\t\t\t\telse if(cNum < destC && board.pieceAt(rNum, cNum + i)) return false; // Moving Left to Right\n \t\t}\n \t\tif(!board.pieceAt(destR, destC)) return (isLegal)? CheckLegality(destR, destC, board) : true;\t\t// When Not Taking Enemy Piece\n \t\telse if (board.pieceAt(destR, destC) && (ignoreTeam || board.getPieceAt(destR, destC).GetBoardTeam() != boardTeam)){\t// When Taking Enemy Piece\t\t\n\t\t\t\treturn (isLegal)? CheckLegality(destR, destC, board) : true;\t \t\t\t\n \t\t}\n \t} // Checks along the diagonal\n \telse if(diffX == diffY && diffX != 0){\n \t\t// Checks All Diagonal Paths to the Destination to See if There's a Piece Blocking the Path\n \t\tfor(int i = 1; i <= (Math.abs(rNum - destR) - 1); i++){\n\t\t\t\tif(rNum > destR && cNum > destC && board.pieceAt(rNum - i, cNum - i)) return false; // Diagonal Up to the Left\n\t\t\t\telse if(rNum < destR && cNum < destC && board.pieceAt(rNum + i, cNum + i)) return false; // Diagonal Down to the Right\n\t\t\t\telse if(rNum > destR && cNum < destC && board.pieceAt(rNum - i, cNum + i)) return false; // Diagonal Up to the Right\n\t\t\t\telse if(rNum < destR && cNum > destC && board.pieceAt(rNum + i, cNum - i)) return false; // Diagonal Down to the Left\n \t\t}\n \t\t\n \t\t// Case 1: Moving to an Empty Space\n \t\tif(!board.pieceAt(destR, destC)) return (isLegal)? CheckLegality(destR, destC, board) : true;\t\n \t\t// Case 2: Taking an Enemy Piece\n \t\telse if (board.pieceAt(destR, destC) && (ignoreTeam || board.getPieceAt(destR, destC).GetBoardTeam() != boardTeam)){\t\t\n\t\t\t\treturn (isLegal)? CheckLegality(destR, destC, board) : true;\t\t\n \t\t}\t\n \t} \t\n \treturn false; \t\n }", "title": "" }, { "docid": "6c1f56ed82fb7323d65b6406cb58fe90", "score": "0.64553154", "text": "public boolean makeMove() {\n\t\tremoveAndRepaint(toSquare.x, toSquare.y);\n\t\tremoveAndRepaint(fromSquare.x, fromSquare.y);\t\t\t//Refer to Player.java\n\t\tthis.getGraphics().getSquares(toSquare.x, toSquare.y).add(getGraphics().chessPiece(opponentPiece), BorderLayout.CENTER);\n\t\tthis.getGraphics().getSquares(toSquare.x, toSquare.y).validate();\t//Refer to GraphicDisplay \n\t\treturn true;\n\t}", "title": "" }, { "docid": "c5a8720d08a5774c469508dbc8999f43", "score": "0.6448506", "text": "@Override\n\tpublic void move(int newX, int newY) {\n\t\tif(this.checkBounds(newX, newY))\n\t\t\tif((newX != this.x || Math.abs(this.x-newX)!=1) && board.getPiece(newX, newY)==null){\n\t\t\t\tSystem.out.println(\"Illegal Move\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tint verticalMove = direction*(this.y-newY);\n\t\t\tif(verticalMove<0 && Math.abs(verticalMove)<=2){\n\t\t\t\tif(!firstMove && Math.abs(verticalMove)==2){\n\t\t\t\t\tSystem.out.println(\"Illegal Move\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfirstMove = false;\n\t\t\t\tboard.addPiece(this, newX, newY);\n\t\t\t\tboard.removePiece(this.x, this.y);\n\t\t\t\tthis.x = newX;\n\t\t\t\tthis.y = newY;\n\t\t\t}\n\t}", "title": "" }, { "docid": "7111238ef2dd753e6786c3419b751d94", "score": "0.6446667", "text": "public boolean validMove(int x, int y){\n return super.validMove(x, y) && ((Math.abs(x - this.x())) <= 1 \n && (Math.abs(y - this.y()) <= 1));\n }", "title": "" }, { "docid": "4ff04b21bee45609fd6dee29574f9e68", "score": "0.6443843", "text": "@Test\r\n\tpublic void TestValidMovesNoCaptureNoFirstMove() {\r\n\t\twhitePawn.updateValidMoves(board);\r\n\t\tblackPawn.updateValidMoves(board);\r\n\t\t// move both pieces to \"turn off\" first move\r\n\t\twhitePawn.move(board.getTile(1, 1), board);\r\n\t\tblackPawn.move(board.getTile(6, 6), board);\r\n\t\t// white berolinapawn should be able to move forward diagonally 1 space\r\n\t\tSet<Tile> whiteMoves = new HashSet<Tile>();\r\n\t\twhiteMoves.add(board.getTile(2, 2));\r\n\t\twhiteMoves.add(board.getTile(2, 0));\r\n\t\t// black berolinapawn should be able to move forward diagonally 1 space\r\n\t\tSet<Tile> blackMoves = new HashSet<Tile>();\r\n\t\tblackMoves.add(board.getTile(5, 5));\r\n\t\tblackMoves.add(board.getTile(5, 7));\r\n\t\tassertEquals(whiteMoves, whitePawn.getValidMoves());\r\n\t\tassertEquals(blackMoves, blackPawn.getValidMoves());\r\n\t}", "title": "" }, { "docid": "9863c0ab0c5fa72bcee1065046e8a08f", "score": "0.6440214", "text": "public abstract List<Coordinate> validMoves(int x, int y, List<Coordinate> trollShovings);", "title": "" }, { "docid": "28f8f22d2ccf5932f4b97f935d3b0369", "score": "0.6437135", "text": "public boolean moveThroughPieces(int x, int y, GameBoard gb){\n if(type == \"Knight\")\n return false;\n\n int moveDirectionX = x - xCoord;\n int moveDirectionY = y - yCoord;\n\n if(moveDirectionX >=1){\n moveDirectionX = 1;\n }else if(moveDirectionX <=-1){\n moveDirectionX = -1;\n }else{\n moveDirectionX = 0;\n }\n\n if(moveDirectionY >=1){\n moveDirectionY = 1;\n }else if(moveDirectionY <=-1){\n moveDirectionY = -1;\n }else{\n moveDirectionY = 0;\n }\n int tempX = xCoord + moveDirectionX;\n int tempY = yCoord + moveDirectionY;\n //this is what was causing the knight to freeze\n while(tempX != x || tempY != y){\n\n if(gb.getPieceAt(tempX, tempY) != null){\n return true;\n }\n tempX += moveDirectionX;\n tempY += moveDirectionY;\n }\n \n\n return false;\n }", "title": "" }, { "docid": "f80957bd6d87da9a50cf09dc3996c2a4", "score": "0.6436212", "text": "public boolean isLegalMove() {\n\t\tif (move[0][0] == -1) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (move[0][0] == move[1][0]) { // moves met zelfde x-waarde\r\n\t\t\tint i = 2;\r\n\t\t\twhile (move[i][0] != -1) {\r\n\t\t\t\tif (move[i][0] != move[0][0]) {\r\n\t\t\t\t\treturn false; // niet allemaal zelfde x-waarde\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\ttypeRow = 'x';\r\n\t\t\tif (!testVertical(move[0][0],move[0][1],\r\n\t\t\t\t\tfields[move[0][0]][move[0][1]].getColor(),fields[move[0][0]][move[0][1]].getShape())) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else if (move[0][1] == move[1][1]) { // moves met zelfde y-waarde\r\n\t\t\tint i = 2;\r\n\t\t\twhile (move[i][0] != -1) {\r\n\t\t\t\tif (move[i][1] != move[0][1]) {\r\n\t\t\t\t\treturn false; // niet allemaal zelfde y-waarde\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\ttypeRow = 'y';\r\n\t\t\tif (!testHorizontal(move[0][0],move[0][1],\r\n\t\t\t\t\tfields[move[0][0]][move[0][1]].getColor(),fields[move[0][0]][move[0][1]].getShape())) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else if (move[1][0] == -1) { // maar 1 zet\r\n\t\t\ttypeRow = 'z';\r\n\t\t}\r\n\t\t\r\n\t\tif (typeRow == 'x') {\r\n\t\t\tint i = 0;\r\n\t\t\twhile (move[i][0] != -1) {\r\n\t\t\t\tif (!testHorizontal(move[i][0],move[i][1],\r\n\t\t\t\t\t\tfields[move[i][0]][move[i][1]].getColor(),fields[move[i][0]][move[i][1]].getShape())) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} else if (typeRow == 'y') {\r\n\t\t\tint i = 0;\r\n\t\t\twhile (move[i][0] != -1) {\r\n\t\t\t\tif (!testVertical(move[i][0],move[i][1],\r\n\t\t\t\t\t\tfields[move[i][0]][move[i][1]].getColor(),fields[move[i][0]][move[i][1]].getShape())) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t} else if (typeRow == 'z') {\r\n\t\t\tTile.Color color = fields[move[0][0]][move[0][1]].getColor();\r\n\t\t\tTile.Shape shape = fields[move[0][0]][move[0][1]].getShape();\r\n\t\t\treturn (testHorizontal(move[0][0],move[0][1],color,shape)&& testVertical(move[0][0],move[0][1],color,shape) && isConnected);\r\n\t\t}\r\n\t\treturn false;\r\n\r\n\t}", "title": "" }, { "docid": "e5ba2653ba2f544346c96fab7cd01044", "score": "0.64273876", "text": "@Test\n public void testCastleMove() {\n /* _ _ p\n * _ _ _\n * _ _ _ _ _\n * P _ C _ _ _ _ P\n * _ _ p\n */\n Piece topCastle = PieceFactory.makePiece(PieceType.CASTLE, PlayerType.TOP_PLAYER);\n Piece topPawn = PieceFactory.makePiece(PieceType.PAWN, PlayerType.TOP_PLAYER);\n Piece bottomPawn = PieceFactory.makePiece(PieceType.PAWN, PlayerType.BOTTOM_PLAYER);\n this.board.setPieceAt(1, 2, Optional.of(topCastle));\n this.board.setPieceAt(0, 2, Optional.of(bottomPawn)); // bottom\n this.board.setPieceAt(1, 0, Optional.of(topPawn)); // left\n this.board.setPieceAt(4, 2, Optional.of(bottomPawn)); // top\n this.board.setPieceAt(1, 7, Optional.of(topPawn)); // right\n\n Set<Move> castleMoves = new HashSet<>(topCastle.getAllMovesFrom(this.board, 1, 2));\n Set<Move> castleExpectedMoves = new HashSet<>();\n Position castlePos = Position.of(1, 2);\n /* castle can attack bottom enemy pawn */\n castleExpectedMoves.add(MoveFactory.makeRegularMove(castlePos, Position.of(0, 2)));\n /* castle can't attack left ally pawn */\n castleExpectedMoves.add(MoveFactory.makeRegularMove(castlePos, Position.of(1, 1)));\n /* castle can attack top enemy pawn */\n castleExpectedMoves.add(MoveFactory.makeRegularMove(castlePos, Position.of(2, 2)));\n castleExpectedMoves.add(MoveFactory.makeRegularMove(castlePos, Position.of(3, 2)));\n castleExpectedMoves.add(MoveFactory.makeRegularMove(castlePos, Position.of(4, 2)));\n /* castle can't attack right ally pawn */\n castleExpectedMoves.add(MoveFactory.makeRegularMove(castlePos, Position.of(1, 3)));\n castleExpectedMoves.add(MoveFactory.makeRegularMove(castlePos, Position.of(1, 4)));\n castleExpectedMoves.add(MoveFactory.makeRegularMove(castlePos, Position.of(1, 5)));\n castleExpectedMoves.add(MoveFactory.makeRegularMove(castlePos, Position.of(1, 6)));\n\n assertEquals(\"test castle moves\\n\", castleExpectedMoves, castleMoves);\n }", "title": "" }, { "docid": "867874a948096bdac13ccce6bd2f4aee", "score": "0.6425937", "text": "public ArrayList<Point> checkingValidPathPiece(AbstractPiece piece, ArrayList<Point> validArray, int x, int y){\n\t\t\n\t\tif (!(piece instanceof Barrier)) {\n\t\t\t\n\t\t\tboolean reachToPieceFlag = false;\n\t\t\t\n\t\t\t//Bishop\n\t\t\tif(piece instanceof Bishop){\n\t\t\t\t//Right Bottom\n\t\t\t\tfor(int i=1;x+i<sizeOfBoard;i++){\n\t\t\t\t\tif(y+i<sizeOfBoard){\n\t\t\t\t\t\tif(this.squareArray[x+i][y+i] == null && reachToPieceFlag == false){\n\t\t\t\t\t\t\tPoint p = new Point((x+i),(y+i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.squareArray[x+i][y+i] != null && reachToPieceFlag == false){\n\t\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\t\tPoint p = new Point((x+i),(y+i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Left Bottom\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\tfor(int i=1;x+i<sizeOfBoard;i++){\n\t\t\t\t\tif(y-i>=0){\n\t\t\t\t\t\tif(this.squareArray[x+i][y-i] == null && reachToPieceFlag == false){\n\t\t\t\t\t\t\tPoint p = new Point((x+i),(y-i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.squareArray[x+i][y-i] != null && reachToPieceFlag == false){\n\t\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\t\tPoint p = new Point((x+i),(y-i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Right Up\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\tfor(int i=1;x-i>=0;i++){\n\t\t\t\t\tif(y+i<sizeOfBoard){\n\t\t\t\t\t\tif(this.squareArray[x-i][y+i] == null && reachToPieceFlag == false){\n\t\t\t\t\t\t\tPoint p = new Point((x-i),(y+i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.squareArray[x-i][y+i] != null && reachToPieceFlag == false){\n\t\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\t\tPoint p = new Point((x-i),(y+i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Left Up\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\tfor(int i=1;x-i>=0;i++){\n\t\t\t\t\tif(y-i>=0){\n\t\t\t\t\t\tif(this.squareArray[x-i][y-i] == null && reachToPieceFlag == false){\n\t\t\t\t\t\t\tPoint p = new Point((x-i),(y-i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.squareArray[x-i][y-i] != null && reachToPieceFlag == false){\n\t\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\t\tPoint p = new Point((x-i),(y-i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Finish Bishop\n\t\t\t\n\t\t\t//Rock\n\t\t\treachToPieceFlag = false;\n\t\t\tif(piece instanceof Rock){\n\t\t\t\t// Up\n\t\t\t\tfor (int i = 1; x - i >= 0; i++) {\n\t\t\t\t\tif(this.squareArray[x-i][y] == null && reachToPieceFlag == false){\n\t\t\t\t\t\tPoint p = new Point((x - i), (y));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t\telse if(this.squareArray[x-i][y] != null && reachToPieceFlag == false){\n\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\tPoint p = new Point((x-i),(y));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\t// Down\n\t\t\t\tfor (int i = 1; x + i < sizeOfBoard; i++) {\n\t\t\t\t\tif(this.squareArray[x+i][y] == null && reachToPieceFlag == false){\n\t\t\t\t\t\tPoint p = new Point((x + i), (y));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t\telse if(this.squareArray[x+i][y] != null && reachToPieceFlag == false){\n\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\tPoint p = new Point((x+i),(y));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\t //Right\n\t\t\t\tfor (int i = 1; y + i < sizeOfBoard; i++) {\n\t\t\t\t\tif (this.squareArray[x][y+i] == null && reachToPieceFlag == false) {\n\t\t\t\t\t\tPoint p = new Point((x), (y+i));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t} else if (this.squareArray[x][y+i] != null && reachToPieceFlag == false) {\n\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\tPoint p = new Point((x), (y+i));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\t //Left\n\t\t\t\t for(int i=1;y-i>=0;i++){\n\t\t\t\t\tif (this.squareArray[x][y-i] == null && reachToPieceFlag == false) {\n\t\t\t\t\t\tPoint p = new Point((x), (y-i));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t} else if (this.squareArray[x][y-i] != null && reachToPieceFlag == false) {\n\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\tPoint p = new Point((x), (y-i));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t}\n\t\t\t//Finish Rock\n\t\t\t\n\t\t\t//Knight\n\t\t\tif(piece instanceof Knight){\n\t\t\t\t// Right Bottom Horizontal \n\t\t\t\tif (x + 1 < sizeOfBoard) {\n\t\t\t\t\tif (y + 2 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x + 1), (y + 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Right Bottom Vertical\n\t\t\t\tif (x + 2 < sizeOfBoard) {\n\t\t\t\t\tif (y + 1 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x + 2), (y + 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\t// Left Bottom Horizontal\n\t\t\t\tif ( x + 1 < sizeOfBoard) {\n\t\t\t\t\tif (y - 2 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x + 1), (y - 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Left Bottom Vertical\n\t\t\t\tif (x + 2 < sizeOfBoard) {\n\t\t\t\t\tif (y - 1 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x + 2), (y - 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Right Up Horizontal\n\t\t\t\tif (x - 1 >= 0) {\n\t\t\t\t\tif (y + 2 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x - 1), (y + 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Right Up Vertical\n\t\t\t\tif (x - 2 >= 0) {\n\t\t\t\t\tif (y + 1 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x - 2), (y + 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Left Up Horizontal\n\t\t\t\tif (x - 1 >= 0) {\n\t\t\t\t\tif (y - 2 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x - 1), (y - 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Left Up Vertical\n\t\t\t\tif (x - 2 >= 0) {\n\t\t\t\t\tif (y - 1 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x - 2), (y - 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Finish Knight\n\t\t\t\n\t\t\t//Warrior\n\t\t\tif(piece instanceof Warrior){\n\t\t\t\t// Right Bottom\n\t\t\t\tif (x + 2 < sizeOfBoard) {\n\t\t\t\t\tif (y + 2 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x + 2), (y + 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Left Bottom \n\t\t\t\tif ( x + 2 < sizeOfBoard) {\n\t\t\t\t\tif (y - 2 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x + 2), (y - 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Right Up\n\t\t\t\tif (x - 2 >= 0) {\n\t\t\t\t\tif (y + 2 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x - 2), (y + 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Left Up \n\t\t\t\tif (x - 2 >= 0) {\n\t\t\t\t\tif (y - 2 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x - 2), (y - 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t//Finish Warrior\n\t\t\t\n\t\t\t//Turtle\n\t\t\tif(piece instanceof Turtle){\n\t\t\t\t// Right Bottom Horizontal \n\t\t\t\tif (x + 1 < sizeOfBoard) {\n\t\t\t\t\tif (y - 1 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x + 1), (y - 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Bottom \n\t\t\t\tif (x + 0 < sizeOfBoard) {\n\t\t\t\t\tif (y - 1 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x + 0), (y - 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\t// Left Bottom Horizontal\n\t\t\t\tif ( x - 1 < sizeOfBoard) {\n\t\t\t\t\tif (y - 1 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x - 1), (y - 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Left\n\t\t\t\tif (x - 1 < sizeOfBoard) {\n\t\t\t\t\tif (y - 0 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x - 1), (y - 0));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Left Up \n\t\t\t\tif (x - 1 >= 0) {\n\t\t\t\t\tif (y + 1 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x - 1), (y + 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up\n\t\t\t\tif (x - 0 >= 0) {\n\t\t\t\t\tif (y + 1 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x - 0), (y + 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Right Up \n\t\t\t\tif (x + 1 >= 0) {\n\t\t\t\t\tif (y + 1 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x + 1), (y + 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Right\n\t\t\t\tif (x + 1 >= 0) {\n\t\t\t\t\tif (y + 0 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x + 1), (y + 0));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Finish Knight\n\t\t}\n\t\t//Finish First piece checking\n\t\t\n\t\treturn validArray;\n\t}", "title": "" }, { "docid": "94c908d7cf2e803af94c81475e573bc1", "score": "0.6425937", "text": "public ArrayList<Point> checkingValidPathPiece(AbstractPiece piece, ArrayList<Point> validArray, int x, int y){\n\t\t\n\t\tif (!(piece instanceof Barrier)) {\n\t\t\t\n\t\t\tboolean reachToPieceFlag = false;\n\t\t\t\n\t\t\t//Bishop\n\t\t\tif(piece instanceof Bishop){\n\t\t\t\t//Right Bottom\n\t\t\t\tfor(int i=1;x+i<sizeOfBoard;i++){\n\t\t\t\t\tif(y+i<sizeOfBoard){\n\t\t\t\t\t\tif(this.squareArray[x+i][y+i] == null && reachToPieceFlag == false){\n\t\t\t\t\t\t\tPoint p = new Point((x+i),(y+i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.squareArray[x+i][y+i] != null && reachToPieceFlag == false){\n\t\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\t\tPoint p = new Point((x+i),(y+i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Left Bottom\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\tfor(int i=1;x+i<sizeOfBoard;i++){\n\t\t\t\t\tif(y-i>=0){\n\t\t\t\t\t\tif(this.squareArray[x+i][y-i] == null && reachToPieceFlag == false){\n\t\t\t\t\t\t\tPoint p = new Point((x+i),(y-i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.squareArray[x+i][y-i] != null && reachToPieceFlag == false){\n\t\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\t\tPoint p = new Point((x+i),(y-i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Right Up\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\tfor(int i=1;x-i>=0;i++){\n\t\t\t\t\tif(y+i<sizeOfBoard){\n\t\t\t\t\t\tif(this.squareArray[x-i][y+i] == null && reachToPieceFlag == false){\n\t\t\t\t\t\t\tPoint p = new Point((x-i),(y+i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.squareArray[x-i][y+i] != null && reachToPieceFlag == false){\n\t\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\t\tPoint p = new Point((x-i),(y+i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Left Up\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\tfor(int i=1;x-i>=0;i++){\n\t\t\t\t\tif(y-i>=0){\n\t\t\t\t\t\tif(this.squareArray[x-i][y-i] == null && reachToPieceFlag == false){\n\t\t\t\t\t\t\tPoint p = new Point((x-i),(y-i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.squareArray[x-i][y-i] != null && reachToPieceFlag == false){\n\t\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\t\tPoint p = new Point((x-i),(y-i));\n\t\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Finish Bishop\n\t\t\t\n\t\t\t//Rock\n\t\t\treachToPieceFlag = false;\n\t\t\tif(piece instanceof Rock){\n\t\t\t\t// Up\n\t\t\t\tfor (int i = 1; x - i >= 0; i++) {\n\t\t\t\t\tif(this.squareArray[x-i][y] == null && reachToPieceFlag == false){\n\t\t\t\t\t\tPoint p = new Point((x - i), (y));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t\telse if(this.squareArray[x-i][y] != null && reachToPieceFlag == false){\n\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\tPoint p = new Point((x-i),(y));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\t// Down\n\t\t\t\tfor (int i = 1; x + i < sizeOfBoard; i++) {\n\t\t\t\t\tif(this.squareArray[x+i][y] == null && reachToPieceFlag == false){\n\t\t\t\t\t\tPoint p = new Point((x + i), (y));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t\telse if(this.squareArray[x+i][y] != null && reachToPieceFlag == false){\n\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\tPoint p = new Point((x+i),(y));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\t //Right\n\t\t\t\tfor (int i = 1; y + i < sizeOfBoard; i++) {\n\t\t\t\t\tif (this.squareArray[x][y+i] == null && reachToPieceFlag == false) {\n\t\t\t\t\t\tPoint p = new Point((x), (y+i));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t} else if (this.squareArray[x][y+i] != null && reachToPieceFlag == false) {\n\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\tPoint p = new Point((x), (y+i));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treachToPieceFlag = false;\n\t\t\t\t //Left\n\t\t\t\t for(int i=1;y-i>=0;i++){\n\t\t\t\t\tif (this.squareArray[x][y-i] == null && reachToPieceFlag == false) {\n\t\t\t\t\t\tPoint p = new Point((x), (y-i));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t} else if (this.squareArray[x][y-i] != null && reachToPieceFlag == false) {\n\t\t\t\t\t\treachToPieceFlag = true;\n\t\t\t\t\t\tPoint p = new Point((x), (y-i));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t}\n\t\t\t//Finish Rock\n\t\t\t\n\t\t\t//Knight\n\t\t\tif(piece instanceof Knight){\n\t\t\t\t// Right Bottom Horizontal \n\t\t\t\tif (x + 1 < sizeOfBoard) {\n\t\t\t\t\tif (y + 2 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x + 1), (y + 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Right Bottom Vertical\n\t\t\t\tif (x + 2 < sizeOfBoard) {\n\t\t\t\t\tif (y + 1 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x + 2), (y + 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\t// Left Bottom Horizontal\n\t\t\t\tif ( x + 1 < sizeOfBoard) {\n\t\t\t\t\tif (y - 2 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x + 1), (y - 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Left Bottom Vertical\n\t\t\t\tif (x + 2 < sizeOfBoard) {\n\t\t\t\t\tif (y - 1 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x + 2), (y - 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Right Up Horizontal\n\t\t\t\tif (x - 1 >= 0) {\n\t\t\t\t\tif (y + 2 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x - 1), (y + 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Right Up Vertical\n\t\t\t\tif (x - 2 >= 0) {\n\t\t\t\t\tif (y + 1 < sizeOfBoard) {\n\t\t\t\t\t\tPoint p = new Point((x - 2), (y + 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Left Up Horizontal\n\t\t\t\tif (x - 1 >= 0) {\n\t\t\t\t\tif (y - 2 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x - 1), (y - 2));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Left Up Vertical\n\t\t\t\tif (x - 2 >= 0) {\n\t\t\t\t\tif (y - 1 >= 0) {\n\t\t\t\t\t\tPoint p = new Point((x - 2), (y - 1));\n\t\t\t\t\t\tvalidArray.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Finish Knight\n\t\t}\n\t\t//Finish First piece checking\n\t\t\n\t\treturn validArray;\n\t}", "title": "" }, { "docid": "dfcf0d9cc00b754964c0db7731d3513c", "score": "0.64196956", "text": "private boolean movePiece() {\n\t\tList<Point> aiPieces = logic.getPlayerOnePieces();\n\t\tCollection<Point> places;\n\t\t// Move to create mill if possible\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 8; j++) {\n\t\t\t\tif (aiPieces.contains(new Point(i, j)) && logic.checkMoves(i, j).size() != 0) {\n\t\t\t\t\tplaces = logic.checkMoves(i, j);\n\t\t\t\t\tPoint[] moves = (Point[]) places.toArray(new Point[places.size()]);\n\t\t\t\t\tfor (int k = 0; k < moves.length; k++) {\n\t\t\t\t\t\tint x = moves[k].x;\n\t\t\t\t\t\tint y = moves[k].y;\n\t\t\t\t\t\tboard.setBoardNode(i, j, 0);\n\t\t\t\t\t\tboard.setBoardNode(x, y, 1);\n\t\t\t\t\t\tif (board.checkMill(x, y, 1)) {\n\t\t\t\t\t\t\tboard.setBoardNode(i, j, 1);\n\t\t\t\t\t\t\tboard.setBoardNode(x, y, 0);\n\t\t\t\t\t\t\tlogic.movePiece(i, j, x, y);\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tboard.setBoardNode(i, j, 1);\n\t\t\t\t\t\tboard.setBoardNode(x, y, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Move to block mill if possible\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 8; j++) {\n\t\t\t\tif (aiPieces.contains(new Point(i, j)) && logic.checkMoves(i, j).size() != 0) {\n\t\t\t\t\tplaces = logic.checkMoves(i, j);\n\t\t\t\t\tPoint[] moves = (Point[]) places.toArray(new Point[places.size()]);\n\t\t\t\t\tfor (int k = 0; k < moves.length; k++) {\n\t\t\t\t\t\tint x = moves[k].x;\n\t\t\t\t\t\tint y = moves[k].y;\n\t\t\t\t\t\tboard.setBoardNode(x, y, 2);\n\t\t\t\t\t\tif (board.checkMill(x, y, 2)) {\n\t\t\t\t\t\t\tboard.setBoardNode(x, y, 0);\n\t\t\t\t\t\t\tlogic.movePiece(i, j, x, y);\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tboard.setBoardNode(x, y, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Check to move piece that is within a mill so will create mill on next\n\t\t// turn\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 8; j++) {\n\t\t\t\tif (aiPieces.contains(new Point(i, j)) && logic.checkMoves(i, j).size() != 0\n\t\t\t\t\t\t&& board.checkMill(i, j, 1)) {\n\t\t\t\t\tplaces = logic.checkMoves(i, j);\n\t\t\t\t\tPoint[] moves = (Point[]) places.toArray(new Point[places.size()]);\n\t\t\t\t\tfor (int k = 0; k < moves.length; k++) {\n\t\t\t\t\t\tint x = moves[k].x;\n\t\t\t\t\t\tint y = moves[k].y;\n\t\t\t\t\t\tif (logic.movePiece(i, j, x, y))\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Random Move\n\t\treturn moveRandom();\n\t}", "title": "" }, { "docid": "fcb920009d8f202dd35009b0c9f1fb32", "score": "0.6418426", "text": "@Test\r\n\tpublic void setValidJumpMoveTest() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tpieceToBeMovedPosition.setX(5);\r\n\t\t\tpieceToBeMovedPosition.setY(4);\r\n\t\t\t\r\n\t\t\tcapturedPiecePosition.setX(4);\r\n\t\t\tcapturedPiecePosition.setY(3);\r\n\t\t\t\r\n\t\t\tendPosition.setX(3);\r\n\t\t\tendPosition.setY(2);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tTestCase.fail();\r\n\t\t}\r\n\t\t\r\n\t\tpieceToBeMoved.setPiecePosition(pieceToBeMovedPosition);\r\n\t\tcapturedPiece.setPiecePosition(capturedPiecePosition);\r\n\t\ttry {\r\n\t\t\tpiecePlacement[0] = pieceToBeMoved;\r\n\t\t\tpiecePlacement[1] = capturedPiece;\r\n\t\t\tboard.setPiecePlacement(piecePlacement);\r\n\t\t\tSingleMove move = new SingleMove(pieceToBeMoved, capturedPiece, endPosition);\r\n\t\t\tTestCase.assertTrue(board.validateMove(move));\r\n\t\t} catch (Exception e) {\r\n\t\t\tTestCase.fail();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb92d5e88fd56e4b2734f02088206cbb", "score": "0.6411013", "text": "public boolean isValidMove(int startRow, int startCol, int endRow, int endCol, ChessPiece[][] board) {\n\t\t\n\t\t//This function shouldnt be called\n\t\tif (Math.abs(endRow-startRow) != 1 || (Math.abs(endCol-startCol) != 1)){return false;}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3d85ba9d4aa9c7292d0cdcf37675e400", "score": "0.6404988", "text": "public boolean checkCurrentStatusOfGame(Coordinate pos, Player turn) throws IllegalArgumentException{\n try{\n int xPos = pos.getX();\n int yPos = pos.getY();\n if(checkIfInValidMove(xPos,yPos,turn)){ \n fireInvalidMoveEvent(turn);\n return false;\n }else{\n playBoard[xPos][yPos] = turn;\n if(checkIfConnectFourComplete(turn)){\n fireGameEndEvent(xPos,yPos,turn);\n return true;\n }else{\n numsOfMove ++ ;\n System.out.println(numsOfMove);\n if(numsOfMove == ConnectFourConstant.ROW * ConnectFourConstant.COL){\n fireGameEndEvent(xPos,yPos,Player.TIE);\n return true;\n }\n fireGameContinueEvent(xPos, yPos,turn);\n return true;\n }\n }\n }catch(Exception e){\n throw new IllegalArgumentException(\"Inlegal inputs.\");\n }\n}", "title": "" }, { "docid": "112be01b4125f801cee55b75ec0815ce", "score": "0.64038604", "text": "@Test\r\n\tpublic void TestValidMovesBlockedByPiece() {\r\n\t\t// create berolinapawns to block path\r\n\t\tBerolinaPawn whitePawn2 = new BerolinaPawn(board.getTile(1, 1), Color.WHITE);\r\n\t\tBerolinaPawn blackPawn2 = new BerolinaPawn(board.getTile(6, 6), Color.BLACK);\r\n\t\twhitePawn.updateValidMoves(board);\r\n\t\tblackPawn.updateValidMoves(board);\r\n\t\t\r\n\t\t// no valid moves should exist\r\n\t\tassertEquals(0, whitePawn.getValidMoves().size());\r\n\t\tassertEquals(0, blackPawn.getValidMoves().size());\r\n\t}", "title": "" }, { "docid": "78342df0d044474fd4a4d6ba3c5db679", "score": "0.6403134", "text": "@Test\r\n\tpublic void TestLegalMove1() {\n\t\tBoard b = new Board();\r\n\t\tSpace s1 = new Space(new Letter('A'),7,7);\r\n\t\tSpace s2 = new Space(new Letter('X'),7,8);\r\n\t\tSpace s3 = new Space(new Letter('E'),7,9);\r\n\t\tMove m = new Move(b);\r\n\t\tm.AddTile(s1);\r\n\t\tm.AddTile(s2);\r\n\t\tm.AddTile(s3);\r\n\t\tScoreMove sMove = m.ValidateMove();\r\n\t\tassertEquals(eMoveResult.GoodMove, sMove.findMoveResult());\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0e8677abb0eb526dea77b6e693ee2b19", "score": "0.63989514", "text": "void requirePlacablePiece(Piece piece, int row, int column) {\n if (!board.hasSpaceFor(piece, row, column)) {\n throw new ModelException(\"piece \" + piece.getColor() + \" of shape \"\n + piece.getShape() + \"cannot be place at row \" + row\n + \", column \" + column + \".\");\n }\n }", "title": "" }, { "docid": "ae24bf6214a2cf1ed6c88936ab3c06bb", "score": "0.6397092", "text": "private static void move(String[] tokens) {\n\t\tassert tokens != null;\n\t\tassert tokens.length == 2;\n\t\t\n\t\tfinal String position = tokens[1];\n\t\t\t\n\t\tif (tokens[1].matches(\"[A-Z][0-9]*\")) {\n\t\t\tint width = position.codePointAt(0) - ASCII_VALUE;\n\t\t\tint height = Integer.parseInt(position.substring(1)) - 1;\n\t\t\t\t\n\t\t\tif (width >= 0 && width < game.getBoard().getWidth() && height >= 0 \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& height < game.getBoard().getHeight()) {\n\t\t\t\tif (game.possiblePositionToSetPiece(width, height, game.getCurrentPlayer().getPiece(), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgame.getOtherPlayer().getPiece())) {\n\t\t\t\t\tgame.setPiece(width, height, game.getCurrentPlayer().getPiece(), game.getOtherPlayer().getPiece());\n\t\t\t\t\tpossibleHoleArea = false;\n\t\t\t\t\tvalidMoves();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Move not possible.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\terror(\"Provide a valid position to move a piece!\");\n\t\t\t}\t\n\t\t} else {\n\t\t\terror(\"Provide a valid position as argument!\");\n\t\t}\n\t}", "title": "" }, { "docid": "2af462d9bfa2954d3f87ca61df6089d3", "score": "0.63800097", "text": "public void movePiece(Move singleMove) {\n Position start = singleMove.getStart();\n Position end = singleMove.getEnd();\n Space initialSpace = board.get(start.getRow()).getSpace(start.getCell());\n Space finalSpace = board.get(end.getRow()).getSpace(end.getCell());\n\n if(!finalSpace.isValid()) {\n System.out.println(\"error : final invalid\");\n }\n Piece thisPiece;\n if (initialSpace.getPiece() == null) {\n System.out.println(initialSpace + \"error: initial invalid!\");\n return;\n }\n else {\n thisPiece = initialSpace.getPiece();\n }\n finalSpace.setPiece(thisPiece);\n initialSpace.removePiece();\n\n //king\n if (end.getRow() == 0 && thisPiece.getType() != Type.KING && thisPiece.getColor() == Color.RED) {\n thisPiece.setKing();\n }\n else if (end.getRow() == MAX_ROWS && thisPiece.getType() != Type.KING && thisPiece.getColor() == Color.WHITE) {\n thisPiece.setKing();\n }\n }", "title": "" }, { "docid": "7d93b1970ad5cef95680d3512236c77d", "score": "0.6378588", "text": "private static void onMove(Point moveToPoint) {\n // Check if a piece is captured\n ArrayList<Point> capturedPieces = getCapturedPieces(sSelectedPiece, moveToPoint);\n\n // Set the next position of the piece, check if the piece promotes to king\n if (sState[sSelectedPiece.y][sSelectedPiece.x] == BoxState.WHITE\n && moveToPoint.y == 7) {\n // Piece is white and position is the back of the board, change piece to king\n sState[moveToPoint.y][moveToPoint.x] = BoxState.WHITE_KING;\n } else if (sState[sSelectedPiece.y][sSelectedPiece.x] == BoxState.BLACK\n && moveToPoint.y == 0) {\n // Piece is black and position is the back of the board, change piece to king\n sState[moveToPoint.y][moveToPoint.x] = BoxState.BLACK_KING;\n } else {\n // Keep piece type\n sState[moveToPoint.y][moveToPoint.x] = sState[sSelectedPiece.y][sSelectedPiece.x];\n }\n\n // Set old position to empty\n sState[sSelectedPiece.y][sSelectedPiece.x] = BoxState.EMPTY;\n\n // Check if we captured a piece\n if (capturedPieces.size() == 0) {\n // If we didn't capture a piece\n endTurn();\n return;\n } else {\n // If we did capture a piece\n\n // Remove the captured pieces\n for (Point piece : capturedPieces) {\n // Set the box to empty\n sState[piece.y][piece.x] = BoxState.EMPTY;\n }\n // Calculate next moves to see if we can capture more pieces\n sSelectedPiece = moveToPoint;\n\n // Clear the mandatory list and check if the point has further mandatory moves\n sMandatoryPieces = new ArrayList<>();\n sPossibleMoves = getMoves(sSelectedPiece);\n\n if (sMandatoryPieces.size() == 0) {\n // If we can't capture any more pieces, end turn\n endTurn();\n return;\n }\n }\n // If the turn is not ended, set sIsMultipleMove to true to prevent unselecting the piece\n sIsMultipleMove = true;\n sMandatoryPieces = new ArrayList<>();\n }", "title": "" }, { "docid": "a5318869c18bf624c869c4a061f15bca", "score": "0.6373807", "text": "public Message validateMove(Move move, Player player) {\n\t\tif(activePlayer != player)\n\t\t\t// shouldn't happen but we'll put it in just in case.\n\t\t\treturn Message.error(\"It is not your turn!\");\n\t\t\n\t\t// eliminate all possible moves that are never valid\n\t\tif(!move.isValid())\n\t\t\treturn Message.error(\"Move is not valid.\");\n\t\t\n\t\t// do checks relating to previously validated moves\n\t\tMove prevMove = cachedMoves.peekLast();\n\t\tif(prevMove != null) {\n\t\t\t// ensure same checker\n\t\t\tif(!prevMove.getEnd().equals(move.getStart()))\n\t\t\t\treturn Message.error(\"Only one checker can be moved per turn.\");\n\t\t\t\n\t\t\t// only allow extra move if previous move was a jump, and this is a jump also\n\t\t\tif(!prevMove.isJump() || !move.isJump())\n\t\t\t\treturn Message.error(\"Only jumps can be chained.\");\n\t\t}\n\t\t\n\t\t// checks for existing piece\n\t\tif(getCell(move.getEnd(), activeBoard) != null)\n\t\t\treturn Message.error(\"space is occupied\");\n\t\t\n\t\t// checks for single-space diagonal movement in the correct direction\n\t\tPiece cell = getCell(move.getStart(), activeBoard);\n\t\tif(cell.getType() != Type.KING) {\n\t\t\tboolean dirValid;\n\t\t\tint rowDelta = move.getRowDelta();\n\t\t\t// the white player must move down, the red player must move up\n\t\t\tif(player == whitePlayer)\n\t\t\t\tdirValid = rowDelta > 0; // check white\n\t\t\telse\n\t\t\t\tdirValid = rowDelta < 0; // check my boi red\n\t\t\tif(!dirValid)\n\t\t\t\treturn Message.error(\"Normal checkers can only move forward.\");\n\t\t}\n\t\t\n\t\tif(move.isJump()) {\n\t\t\tPiece jumped = getCell(move.getJumpPos(), activeBoard);\n\t\t\tif(jumped == null || matchesPlayer(jumped, player))\n\t\t\t\treturn Message.error(\"Jumps must remove an opponent checker.\");\n\t\t}\n\t\t\n\t\t// don't allow simple moves if a jump move is possible\n\t\tif(!move.isJump() && canMakeJump(player))\n\t\t\treturn Message.error(\"A jump is possible.\");\n\t\t\n\t\t// move validated\n\t\tcachedMoves.add(move);\n\t\tPiece temp = setCell(move.getStart(), activeBoard, null);\n\t\tsetCell(move.getEnd(), activeBoard, temp);\n\t\tif(move.isJump())\n\t\t\tsetCell(move.getJumpPos(), activeBoard, null);\n\t\t\n\t\treturn Message.info(\"Move validated.\");\n\t}", "title": "" }, { "docid": "7d74d07386e5014b9a0165379fcd7b62", "score": "0.63736975", "text": "protected abstract boolean canMove(int newX, int newY);", "title": "" }, { "docid": "89a1cc55cd88518888d4c460464f37e0", "score": "0.637264", "text": "public boolean isValidMove( int xCoordinate, int yCoordinate){\n \t \t\t\tif(this.boardsize[xCoordinate][yCoordinate]== 1){\n \t \t\t\t\treturn true;\n \t \t\t\t}else{\n \t \t\t\t\treturn false;\n \t \t\t\t}\n \t \t}", "title": "" }, { "docid": "a70e2be994c25e289ad3db762898eca0", "score": "0.63653886", "text": "public static boolean checkmate() throws InvalidPieceException, InvalidPlayerException {\n \n for (Map.Entry<String, String> entry : Board.board.map.piecePos.entrySet()) {\n String value = entry.getValue();\n String player = \"\";\n String oppPlayer = \"\";\n if (value == null) {\n ; // Ignore Value (Prevents NullPointerException)\n } else if (value.equals(\"null\")) {\n ; // Ignore Value (Not a Valid Piece)\n } else {\n // Seeing if player has put opponent's King into checkmate\n if (value.contains(\"White\")) {\n player = \"White\";\n oppPlayer = \"Black\";\n } else if (value.contains(\"Black\")) {\n player = \"Black\";\n oppPlayer = \"White\";\n }\n \n for (int i = 1; i <= 8; i++) {\n for (int j = 65; j <= 72; j++) {\n String kingPos = \"\";\n String toTile = \"\" + i + (char)j;\n Board.board.map.valueLock = true;\n \n System.out.println(\"To Tile is: \" + toTile);\n kingPos = Board.board.map.getTile(oppPlayer + \"King\");\n //king.moveKing(oppPlayer, oppPlayer + \"King\", toTile);\n \n if (value.contains(\"Pawn\")) {\n pawn.movePawn(player, value, kingPos);\n \n if (pawn.passedValidation) {\n return true;\n }\n \n } else if (value.contains(\"Rook\")) {\n rook.moveRook(player, value, kingPos);\n \n if (rook.passedValidation) {\n return true;\n }\n \n } else if (value.contains(\"Knight\")) {\n knight.moveKnight(player, value, kingPos);\n \n if (knight.passedValidation) {\n return true;\n }\n \n } else if (value.contains(\"Bishop\")) {\n bishop.moveBishop(player, value, kingPos);\n \n if (bishop.passedValidation) {\n return true;\n }\n \n } else if (value.contains(\"Queen\")) {\n queen.moveQueen(player, value, kingPos);\n \n if (queen.passedValidation) {\n return true;\n }\n \n } else if (value.contains(\"King\")) {\n king.moveKing(player, value, kingPos);\n \n if (king.passedValidation) {\n return true;\n }\n }\n \n }\n }\n \n }\n }\n \n return false;\n }", "title": "" }, { "docid": "91c68a39a4f2656ccfac6fcbc17e593d", "score": "0.6365271", "text": "void validPawnMoves(ChessLocation loc, ArrayList<ChessMove> moves) {\n\t\tChessColor playerColor = board[loc.x][loc.y].color();\n int dy = (playerColor == ChessColor.White) ? -1 : 1; // y direction pawn can move based on color\n int startRow = (playerColor == ChessColor.White) ? 6 : 1; // pawn start row based on color\n int endRow = (playerColor == ChessColor.White) ? 0 : 7; // pawn end row base on color\n if (loc.y != endRow) {\n if (board[loc.x][loc.y+dy] == ChessPiece.Empty) // check space in front of pawn\n {\n \t\tChessMove move = new ChessMove(loc, new ChessLocation(loc.x, loc.y+dy));\n \t\tif (!inCheck(playerColor, move))\n \t\t\tmoves.add(move);\n if (loc.y == startRow && board[loc.x][loc.y+(2*dy)] == ChessPiece.Empty) {\n \t\tmove = new ChessMove(loc, new ChessLocation(loc.x, loc.y+(2*dy)));\n \t\tif (!inCheck(playerColor, move))\n \t\t\tmoves.add(move);\n }\n }\n if (loc.x >= 1) { // kill to the left\n ChessPiece piece = board[loc.x - 1][loc.y + dy];\n if (piece != ChessPiece.Empty && piece.color() != playerColor) {\n \t\tChessMove move = new ChessMove(loc, new ChessLocation(loc.x - 1, loc.y + dy));\n \t\tif (!inCheck(playerColor, move))\n \t\t\tmoves.add(move);\n }\n }\n if (loc.x < 7) { // kill to the right\n ChessPiece piece = board[loc.x + 1][loc.y + dy];\n if (piece != ChessPiece.Empty && piece.color() != playerColor) {\n \t\tChessMove move = new ChessMove(loc, new ChessLocation(loc.x+ 1, loc.y + dy));\n \t\tif (!inCheck(playerColor, move))\n \t\t\tmoves.add(move);\n }\n }\n }\n\t}", "title": "" }, { "docid": "3657b14f3487c4dbbbbff87d7d95fa41", "score": "0.63602364", "text": "private boolean pawnMove(Position position)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//if the piece is the right color\r\n\t\t\tif (position.board[this.origin.x][this.origin.y] * position.player > 0)\r\n\t\t\t{\r\n\t\t\t\t//if the pawn moved one square in the direction of the opponent\r\n\t\t\t\tif (this.origin.y - this.destination.y == position.player)\r\n\t\t\t\t{\r\n\t\t\t\t\t//if the pawn moves straight\r\n\t\t\t\t\tif (this.origin.x == this.destination.x)\r\n\t\t\t\t\t\t//if the destination has no piece on it (7 = en passant tag)\r\n\t\t\t\t\t\tif (position.board[this.destination.x][this.destination.y] == 0 || Math.abs(position.board[this.destination.x][this.destination.y]) == 7)\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t//if the pawn moves diagonally (taking)\r\n\t\t\t\t\tif (Math.abs(this.origin.x - this.destination.x) == 1)\r\n\t\t\t\t\t\t//if the destination has an enemy piece on it\r\n\t\t\t\t\t\tif (position.board[this.destination.x][this.destination.y] * position.player < 0)\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if (this.origin.y - this.destination.y == position.player * 2)\r\n\t\t\t\t{\r\n\t\t\t\t\t//if the pawn moves straight\r\n\t\t\t\t\tif (this.origin.x == this.destination.x && (this.origin.y == 1 || this.origin.y == 6))\r\n\t\t\t\t\t\t//if the destination has no piece on it and if the path is clear\r\n\t\t\t\t\t\tif (position.board[this.destination.x][this.destination.y] == 0 && new Move(position, new Point(this.origin.x, this.origin.y), new Point(this.destination.x, this.destination.y + position.player)).isPossible(position))\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tcatch (Error r)\r\n\t\t{\r\n\t\t\tSystem.out.print(r.getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "902e355f9fb4be40e0bc08d36c108933", "score": "0.6354848", "text": "@Override\n public boolean validMove(char xPosition, int yPosition) {\n \n // Move diagonally checks that the xDifference is greater\n // than 1, so no need to call the super's validMove.\n return this.moveDiagonally(xPosition, yPosition);\n }", "title": "" }, { "docid": "d38fb850bf0d225385c063f2a5a3f6d3", "score": "0.6353169", "text": "@Test\n public void testKingMove() {\n /*\n * _ _ _ _ _\n * _ _ _ P _\n * _ p k _ _\n * _ _ P p _\n * _ _ _ _ _\n */\n\n Piece bottomKing = PieceFactory.makePiece(PieceType.KING, PlayerType.BOTTOM_PLAYER);\n Piece topPawn = PieceFactory.makePiece(PieceType.PAWN, PlayerType.TOP_PLAYER);\n Piece bottomPawn = PieceFactory.makePiece(PieceType.PAWN, PlayerType.BOTTOM_PLAYER);\n\n this.board.setPieceAt(2, 2, Optional.of(bottomKing)); // center\n this.board.setPieceAt(3, 3, Optional.of(topPawn)); // top right\n this.board.setPieceAt(1, 3, Optional.of(bottomPawn)); // bottom right\n this.board.setPieceAt(1, 2, Optional.of(topPawn)); // bottom\n this.board.setPieceAt(2, 1, Optional.of(bottomPawn)); // left\n\n /* only enemy positions are attackable */\n Set<Move> kingMoves = new HashSet<>(bottomKing.getAllMovesFrom(this.board, 2, 2));\n Set<Move> kingExpectedMoves = new HashSet<>();\n Position kingPos = Position.of(2, 2);\n\n /* top left empty */\n kingExpectedMoves.add(MoveFactory.makeRegularMove(kingPos, Position.of(3, 1)));\n /* top right enemy pawn inclusive */\n kingExpectedMoves.add(MoveFactory.makeRegularMove(kingPos, Position.of(3, 3)));\n /* bottom right ally pawn exclusive */\n /* bottom left empty */\n kingExpectedMoves.add(MoveFactory.makeRegularMove(kingPos, Position.of(1, 1)));\n /* top empty */\n kingExpectedMoves.add(MoveFactory.makeRegularMove(kingPos, Position.of(3, 2)));\n /* bottom enemy pawn inclusive */\n kingExpectedMoves.add(MoveFactory.makeRegularMove(kingPos, Position.of(1, 2)));\n /* left ally pawn exclusive */\n /* right empty */\n kingExpectedMoves.add(MoveFactory.makeRegularMove(kingPos, Position.of(2, 3)));\n\n assertEquals(\"test king moves\\n\", kingExpectedMoves, kingMoves);\n }", "title": "" }, { "docid": "b0b42470d530412111b3bf92aa8937d9", "score": "0.6351321", "text": "public boolean isValidMove(Move move, IChessPiece[][] board) {\n\t\t//This will check to see if the knight jumps two rows and one column or one row\n\t\t//and two columns in any direction.\n\t\tif ((Math.abs(move.fromRow - move.toRow) == 2 && Math.abs(move.fromColumn - move.toColumn) == 1)\n\t\t\t\t|| (Math.abs(move.fromRow - move.toRow) == 1 && Math.abs(move.fromColumn - move.toColumn) == 2)){\n\t\t\t//This will check to see if there is a piece in the way of the knight's landing spot.\n\t\t\t//If it's an enemy, take the piece. If it's the same color piece, the move is invalid.\n\t\t\tif (board[move.toRow][move.toColumn] != null) {\n\t\t\t\tif ((board[move.toRow][move.toColumn].player() != board[move.fromRow][move.fromColumn].player())) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else return false;\n\t\t\t} else return true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c3412e99352e7ff7b36c12d878b970b0", "score": "0.63471735", "text": "public boolean pieceCanMove(int x, int y)\r\n {\r\n Piece p = boardArray[x][y];\r\n if (this.isEmpty(x+1, y-1) || this.isEmpty(x-1, y-1)) return true;\r\n else if ((p instanceof KingChecker) && (this.isEmpty(x+1, y+1) || this.isEmpty(x-1, y+1))) return true;\r\n return false;\r\n }", "title": "" }, { "docid": "f0befec288769d184435092055d64007", "score": "0.6337898", "text": "@Override\n public List<Location> getValidMoves(Board board) {\n List<Location> moveCandidates = new ArrayList<>();\n Location current = this.getCurrentSquare().getLocation();\n int sign = pieceColor.equals(PieceColor.DARK) ? -1:1;\n\n moveCandidates.add(LocationFactory\n .build(current, 0, sign));\n if(isFirstMove) {\n moveCandidates.add(LocationFactory\n .build(current, 0, 2 * sign));\n return moveCandidates;\n }\n // adding moves by capture pieces (on the side)\n moveCandidates.add(LocationFactory.build(current, 1, sign));\n moveCandidates.add(LocationFactory.build(current, -1, sign));\n Map<Location, Square> squareMap = board.getLocationSquareMap();\n List<Location> validMoves = moveCandidates.stream()\n .filter(squareMap::containsKey)\n .collect(Collectors.toList());\n\n // filtering all bad moves\n return validMoves.stream().filter((candidate) -> {\n // occupied\n if(candidate.getFile().equals(this.getCurrentSquare().getLocation().getFile()) &&\n squareMap.get(candidate).isOccupied()) {\n return false;\n }\n\n // occupied in front.\n if (squareMap.get(candidate).isOccupied() &&\n candidate.getFile().equals(this.getCurrentSquare().getLocation().getFile())) {\n return false;\n }\n\n // occupied on diagonal with opposite color\n if (squareMap.get(candidate).isOccupied() &&\n squareMap.get(candidate).getCurrentPiece().getPieceColor().equals(this.getPieceColor()) &&\n candidate.getFile().equals(this.getCurrentSquare().getLocation().getFile())\n ) {\n return false;\n }\n\n return squareMap.get(candidate).isOccupied() ||\n candidate.getFile().equals(this.getCurrentSquare().getLocation().getFile());\n }).collect(Collectors.toList());\n\n\n }", "title": "" }, { "docid": "a8452f715280e71948c25b749c1d7bbb", "score": "0.63368255", "text": "public void computerMove(){ \n\t\t\t\n\t\t\tSystem.out.println(\"NEW MOVE: \");\n\t\t\t\n\t\t //fill space in horizontal tic tac toe row when two X's or two O's are already there\n\t\t\tfor (int n = 0; n < 2; n++){ //n for \"X\" then \"O\"\n\t\t\t\tfor (int j = 0; j <= 6; j = j + 3){ \n\t\t\t\t\tif (unitGrid[j] == n && unitGrid[j + 1] == n && unitGrid[j + 2] == -1){\n\t\t\t\t\t\tunitGrid[j + 2] = 0; // 0 | 0 | empty\n\t\t\t\t\t\tSystem.out.println(\"horizontal: right \" + j); \n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\telse if (unitGrid[j] == n && unitGrid[j + 2] == n && unitGrid[j + 1] == -1 ){\n\t\t\t\t\t\tunitGrid[j + 1] = 0; // 0 | empty | 0\n\t\t\t\t\t\tSystem.out.println(\"horizontal: middle\" + j);\n\t\t\t\t\t\treturn; \n\t\t\t\t\t}\n\t\t\t\t\telse if (unitGrid[j + 1] == n && unitGrid[j + 2] == n && unitGrid[j] == -1){\n\t\t\t\t\t\tunitGrid[j] = 0; // empty | 0 | 0\n\t\t\t\t\t\tSystem.out.println(\"horizontal: left \" + j);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//fill space in vertical tic tac toe when two X's or two O's are already there\n\t\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\t\tif (unitGrid[m] == n && unitGrid[m + 3] == n && unitGrid[m + 6] == -1){ \n\t\t\t\t\t\tunitGrid[m + 6] = 0; // 0 / 0 / empty <--diagram (sideways column) \n\t\t\t\t\t\tSystem.out.println(\"vertical: bottom \" + m);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\telse if (unitGrid[m] == n && unitGrid[m + 6] == n && unitGrid[m + 3] == -1){\n\t\t\t\t\t\tunitGrid[m + 3] = 0; // 0 / empty / 0\n\t\t\t\t\t\tSystem.out.println(\"vertical: center\" + m);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\telse if (unitGrid[m + 3] == n && unitGrid[m + 6] == n && unitGrid[m] == -1){\n\t\t\t\t\t\tunitGrid[m] = 0; // empty / 0 / 0\n\t\t\t\t\t\tSystem.out.println(\"vertical: top \" + m);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//fill space in diagonal tic tac toe\n\t\t\tif (unitGrid[0] == unitGrid[8] && unitGrid[0] != -1 && unitGrid[4] == -1){\n\t\t\t\tunitGrid[4] = 0;\t\n\t\t\t\tSystem.out.println(\"diagona 1l\");\n\t\t\t\treturn;\n\t\t\t}\t\n\t\t\telse if (unitGrid[0] == unitGrid[4] && unitGrid[0] != -1 && unitGrid[8] == -1){\n\t\t\t\tunitGrid[8] = 0;\n\t\t\t\tSystem.out.println(\"diagonal 2\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (unitGrid[4] == unitGrid[8] && unitGrid[4] != -1 && unitGrid[0] == -1){\n\t\t\t\tunitGrid[0] = 0;\n\t\t\t\tSystem.out.println(\"diagonal 3\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (unitGrid[2] == unitGrid[4] && unitGrid[2] != -1 && unitGrid[6] == -1){\n\t\t\t\tunitGrid[6] = 0;\n\t\t\t\tSystem.out.println(\"diagonal 4\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (unitGrid[2] == unitGrid[6] && unitGrid[2] != -1 && unitGrid[4] == -1){\n\t\t\t\tunitGrid[4] = 0;\n\t\t\t\tSystem.out.println(\"diagonal 5\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (unitGrid[4] == unitGrid[6] && unitGrid[4] != -1 && unitGrid[2] == -1){\n\t\t\t\tunitGrid[2] = 0;\n\t\t\t\tSystem.out.println(\"diagonal 6\");\n\t\t\t\treturn;\n\t\t\t}\t\n\t\t\t\n\t\t\t//catches forks that are not caught by the following forks function\n\t\t\telse if ((unitGrid[0] == 1 && unitGrid[1] == -1 && unitGrid[2] == -1 && unitGrid[3] == -1 && unitGrid[4] == 0 && \n\t\t\t\t\tunitGrid[5] == -1 && unitGrid[6] == -1 && unitGrid[7] == -1 && unitGrid[8] == 1) ||\n\t\t\t\t\t(unitGrid[0] == -1 && unitGrid[1] == -1 && unitGrid[2] == 1 && unitGrid[3] == -1 && unitGrid[4] == 0 && \n\t\t\t\t\tunitGrid[5] == -1 && unitGrid[6] == 1 && unitGrid[7] == -1 && unitGrid[8] == -1)){\n\t\t\t\t\t\tunitGrid[1] = 0;\n\t\t\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tint a = forks();\n\t\t\tif (a != -1 ){// if there is a valid fork value \n\t\t\t\t\tunitGrid[a] = 0;\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t//fill center, then fill opposite corners, then corners, and then sides \n\t\t\telse if (unitGrid[4] == -1){ \n\t\t\t\tunitGrid[4] = 0;\n\t\t\t\tSystem.out.println(\"center position after blocking moves\"); //\n\t\t\t}\n\t\t\telse if (unitGrid[0] != -1 && unitGrid[8] == -1){\n\t\t\t\tunitGrid[8] = 0;\n\t\t\t\tSystem.out.println(\"lower right corner\");\n\t\t\t}\n\t\t\telse if (unitGrid[0] == -1 && unitGrid[8] != -1){\n\t\t\t\tunitGrid[0] = 0; \n\t\t\t\tSystem.out.println(\"upper left corner\");\n\t\t\t}\n\t\t\telse if (unitGrid[2] != -1 && unitGrid[6] == -1){\n\t\t\t\tunitGrid[6] = 0;\n\t\t\t\tSystem.out.println(\"lower left corner\");\n\t\t\t}\n\t\t\telse if (unitGrid[7] == -1 && unitGrid[6] != -1){\n\t\t\t\tunitGrid[2] = 0;\n\t\t\t\tSystem.out.println(\"upper right corner\");\n\t\t\t}\n\t\t else if (unitGrid[0] == -1){ \n\t\t\t\tunitGrid[0] = 0;\n\t\t\t\tSystem.out.println(\"unitGrid[0] = 0\");\n\t\t\t}\n\t\t\telse if (unitGrid[2] == -1){\n\t\t\t\tunitGrid[2] = 0;\n\t\t\t\tSystem.out.println(\"unitGrid[2] = 0\");\n\t\t\t}\t\n\t\t\telse if (unitGrid[6] == -1){\n\t\t\t\tunitGrid[6] = 0;\n\t\t\t\tSystem.out.println(\"unitGrid[6] = 0\");\n\t\t\t}\n\t\t\telse if (unitGrid[8] == -1){\n\t\t\t\tunitGrid[8] = 0;\n\t\t\t\tSystem.out.println(\"unitGrid[8] = 0\");\n\t\t\t}\n\t\t\telse if (unitGrid[1] == -1){\n\t\t\t\tunitGrid[1] = 0;\n\t\t\t\tSystem.out.println(\"unitGrid[1] = 0\");\n\t\t\t}\n\t\t\telse if (unitGrid[3] == -1){\n\t\t\t\tunitGrid[3] = 0;\n\t\t\t\tSystem.out.println(\"unitGrid[3] = 0\");\n\t\t\t}\n\t\t\telse if (unitGrid[5] == -1){\n\t\t\t\tunitGrid[5] = 0;\n\t\t\t\tSystem.out.println(\"unitGrid[5] = 0\");\n\t\t\t}\n\t\t\telse if (unitGrid[7] == -1){ \n\t\t\t\tunitGrid[7] = 0;\n\t\t\t\tSystem.out.println(\"unitGrid[7] = 0\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5dfbad63e80887cd6d3ac99a22757197", "score": "0.633451", "text": "public void move(int r, int c, Piece piece) throws InvalidMoveException {\n if (validateMove(r,c,piece)){\n throw new InvalidMoveException();\n }\n\n // make move if valid\n\n\n increaseStep();\n\n\n // check status\n\n }", "title": "" }, { "docid": "1c9a6547b07ae176d3f1f7afb15a1cbd", "score": "0.6327313", "text": "public void testMove() throws Exception {\n Board testGame = new Board(8,8);\n assertFalse(testGame.move(6,7,5,7)); // invalid move\n assertTrue(testGame.move(6,7,5,6)); // valid move\n testGame.move(5,6,4,5); // valid move\n testGame.move(4,5,3,4); // valid move\n assertTrue(testGame.move(3,4,1,4)); // valid capture\n }", "title": "" }, { "docid": "d4947240820872361db1465d052e5060", "score": "0.6326861", "text": "public void move(Gameboard gameboard) {\n String input;\n TicTacToe.Coordinates coordinates;\n System.out.print(\"Enter the coordinates: \");\n\n if(!madeOfDigits(input = scanner.nextLine())) {\n System.out.println(\"You should enter numbers!\");\n move(gameboard);\n return;\n }\n\n coordinates = TicTacToe.Coordinates.parseCoordinates(input);\n\n if(!coordinates.isValid()) {\n System.out.println(\"Coordinates should be from 1 to 3!\");\n move(gameboard);\n return;\n }\n\n if(gameboard.isOccupied(coordinates)) {\n System.out.println(\"This cell is occupied! Choose another one!\");\n move(gameboard);\n return;\n }\n\n gameboard.setCell(coordinates, gameboard.turnOf());\n gameboard.displayGameboard();\n }", "title": "" }, { "docid": "03523f27d902628126c938a9ee0547d0", "score": "0.6317924", "text": "private boolean knightMove(Position position)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint differenceX = Math.abs(this.origin.x - this.destination.x);\r\n\t\t\tint differenceY = Math.abs(this.origin.y - this.destination.y);\r\n\r\n\t\t\t//the difference in the x and y position (must be three)\r\n\t\t\tint difference = differenceX + differenceY;\r\n\r\n\t\t\t//check if the difference is three and if the right colored piece wants to move\r\n\t\t\tif (difference == 3 && position.board[this.origin.x][this.origin.y] * position.player > 0)\r\n\t\t\t{\r\n\t\t\t\tif (differenceX == 2 || differenceY == 2)\r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tcatch (Error r)\r\n\t\t{\r\n\t\t\tSystem.out.print(r.getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "6c68ef01a6c5f8783c5bff95b6a9eb47", "score": "0.6315687", "text": "@org.junit.Test\n public void testPerformMoveNoCaptureBetweenPawns() {\n\n BitSetState fromState = new BitSetState(\n BitSetUtils.newFromPositions(new BitSetPosition[]{ // Posizioni delle pedine nere\n BitSetPosition.D3,\n BitSetPosition.F3,\n }), BitSetUtils.newFromPositions(new BitSetPosition[]{ // Posizioni delle pedine bianche\n BitSetPosition.E4,\n }), BitSetUtils.newFromPositions(new BitSetPosition[]{ // Posizione della pedina king\n\n }), Turn.WHITE\n );\n\n BitSetState toState = new BitSetState(\n BitSetUtils.newFromPositions(new BitSetPosition[]{ // Posizioni delle pedine nere\n BitSetPosition.D3,\n BitSetPosition.F3,\n }), BitSetUtils.newFromPositions(new BitSetPosition[]{ // Posizioni delle pedine bianche\n BitSetPosition.E3,\n }), BitSetUtils.newFromPositions(new BitSetPosition[]{ // Posizione della pedina king\n\n }), Turn.BLACK\n );\n\n fromState.performMove(BitSetPosition.E4.ordinal(), BitSetPosition.E3.ordinal());\n assertEquals(BitSetUtils.toBitString(toState.getBoard()), BitSetUtils.toBitString(fromState.getBoard()));\n assert (fromState.getTurn() == toState.getTurn());\n }", "title": "" }, { "docid": "e23e8b824288f32b928355157431b03e", "score": "0.6306944", "text": "@Test (expected = Exception.class)\n public void moveShouldThrowImpossibleMoveExceptionWhenWayIncorrect() throws Exception {\n Figure[][] figures = new Figure[8][8];\n Cell startCellBishop = new Cell(2, 0);\n Cell finalCellBishop = new Cell(7, 7);\n Cell startCellPawn = new Cell(6, 4);\n figures[startCellBishop.getX()][startCellBishop.getY()] = new Bishop(startCellBishop);\n figures[startCellPawn.getX()][startCellPawn.getY()] = new Pawn(startCellPawn);\n Board board = new Board(figures);\n assertEquals(\"ImpossibleMoveException\", is(board.move(startCellBishop, finalCellBishop)));\n }", "title": "" }, { "docid": "f7ddaffabbb93938d79bc6e2b1226755", "score": "0.63026613", "text": "public BoardTile[] generateValidMoves(ChessPiece cP){\n \n int[] piecePos = getPosition(cP);\n int pieceRow = piecePos[0];\n int pieceCol = piecePos[1];\n \n int nextRow, nextCol, prevRow, prevCol;\n int[] rowDelta, colDelta;\n \n ArrayList<BoardTile> validBoardList = new ArrayList();\n \n \n switch(cP.getType()){\n \n case \"pawn\":\n if(boardSquares[pieceRow+1][pieceCol].isEmpty()){\n validBoardList.add(boardSquares[pieceRow+1][pieceCol]); //pawn push\n \n if(!cP.hasMoved() && boardSquares[pieceRow+2][pieceCol].isEmpty()){\n validBoardList.add(boardSquares[pieceRow+2][pieceCol]); //double pawn push\n }\n }\n \n if(pieceCol<7 && !boardSquares[pieceRow+1][pieceCol+1].isEmpty() \n && boardSquares[pieceRow+1][pieceCol+1].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[pieceRow+1][pieceCol+1]); //pawn capture right\n }\n if(pieceCol>0 && !boardSquares[pieceRow+1][pieceCol-1].isEmpty() \n && boardSquares[pieceRow+1][pieceCol-1].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[pieceRow+1][pieceCol-1]); //pawn capture left\n }\n if(enPassantFlag && pieceRow == 4){\n if(pieceRow == 4 && (pieceCol == enPassantColumn+1 || pieceCol == enPassantColumn-1)){\n validBoardList.add(boardSquares[pieceRow+1][enPassantColumn]); //en passant capture\n }\n }\n break;\n \n case \"rook\":\n nextRow = pieceRow+1;\n nextCol = pieceCol+1;\n prevRow = pieceRow-1;\n prevCol = pieceCol-1;\n \n //Sliding up\n while(nextRow < 8 && boardSquares[nextRow][pieceCol].isEmpty()){\n validBoardList.add(boardSquares[nextRow++][pieceCol]);\n }\n if(nextRow < 8 && boardSquares[nextRow][pieceCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[nextRow][pieceCol]);\n }\n \n //Sliding right\n while(nextCol < 8 && boardSquares[pieceRow][nextCol].isEmpty()){\n validBoardList.add(boardSquares[pieceRow][nextCol++]);\n }\n if(nextCol < 8 && boardSquares[pieceRow][nextCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[pieceRow][nextCol]);\n }\n \n //Sliding down\n while(prevRow > -1 && boardSquares[prevRow][pieceCol].isEmpty()){\n validBoardList.add(boardSquares[prevRow--][pieceCol]);\n }\n if(prevRow > -1 && boardSquares[prevRow][pieceCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[prevRow][pieceCol]);\n }\n \n //Sliding left\n while(prevCol > -1 && boardSquares[pieceRow][prevCol].isEmpty()){\n validBoardList.add(boardSquares[pieceRow][prevCol--]);\n }\n if(prevCol > -1 && boardSquares[pieceRow][prevCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[pieceRow][prevCol]);\n }\n break;\n \n case \"knight\":\n rowDelta = new int[]{-2, -2, -1, -1, 1, 1, 2, 2};\n colDelta = new int[]{-1, 1, -2, 2, -2, 2, -1, 1};\n \n for(int j = 0; j < 8; j++){ //eight possible landing sites to check\n if(pieceRow+rowDelta[j] <= 7 &&\n pieceRow+rowDelta[j] >= 0 &&\n pieceCol+colDelta[j] <= 7 &&\n pieceCol+colDelta[j] >= 0){\n \n if(boardSquares[pieceRow+rowDelta[j]][pieceCol+colDelta[j]].isEmpty() ||\n boardSquares[pieceRow+rowDelta[j]][pieceCol+colDelta[j]].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[pieceRow+rowDelta[j]][pieceCol+colDelta[j]]);\n }\n \n }\n }\n break;\n \n case \"bishop\":\n nextRow = pieceRow+1;\n nextCol = pieceCol+1;\n prevRow = pieceRow-1;\n prevCol = pieceCol-1;\n \n //Sliding up-right\n while(nextRow < 8 && nextCol < 8 && boardSquares[nextRow][nextCol].isEmpty()){\n validBoardList.add(boardSquares[nextRow++][nextCol++]);\n }\n if(nextRow < 8 && nextCol < 8 && boardSquares[nextRow][nextCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[nextRow][nextCol]);\n }\n \n //Sliding down-left\n while(prevRow > -1 && prevCol > -1 && boardSquares[prevRow][prevCol].isEmpty()){\n validBoardList.add(boardSquares[prevRow--][prevCol--]);\n }\n if(prevRow > -1 && prevCol > -1 && boardSquares[prevRow][prevCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[prevRow][prevCol]);\n }\n \n //reset variables\n nextRow = pieceRow+1;\n nextCol = pieceCol+1;\n prevRow = pieceRow-1;\n prevCol = pieceCol-1;\n \n //Sliding up-left\n while(nextRow < 8 && prevCol > -1 && boardSquares[nextRow][prevCol].isEmpty()){\n validBoardList.add(boardSquares[nextRow++][prevCol--]);\n }\n if(nextRow < 8 && prevCol > -1 && boardSquares[nextRow][prevCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[nextRow][prevCol]);\n }\n \n //Sliding down-right\n while(prevRow > -1 && nextCol < 8 && boardSquares[prevRow][nextCol].isEmpty()){\n validBoardList.add(boardSquares[prevRow--][nextCol++]);\n }\n if(prevRow > -1 && nextCol < 8 && boardSquares[prevRow][nextCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[prevRow][nextCol]);\n }\n break;\n \n case \"queen\":\n nextRow = pieceRow+1;\n nextCol = pieceCol+1;\n prevRow = pieceRow-1;\n prevCol = pieceCol-1;\n \n //Sliding up\n while(nextRow < 8 && boardSquares[nextRow][pieceCol].isEmpty()){\n validBoardList.add(boardSquares[nextRow++][pieceCol]);\n }\n if(nextRow < 8 && boardSquares[nextRow][pieceCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[nextRow][pieceCol]);\n }\n \n //Sliding right\n while(nextCol < 8 && boardSquares[pieceRow][nextCol].isEmpty()){\n validBoardList.add(boardSquares[pieceRow][nextCol++]);\n }\n if(nextCol < 8 && boardSquares[pieceRow][nextCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[pieceRow][nextCol]);\n }\n \n //Sliding down\n while(prevRow > -1 && boardSquares[prevRow][pieceCol].isEmpty()){\n validBoardList.add(boardSquares[prevRow--][pieceCol]);\n }\n if(prevRow > -1 && boardSquares[prevRow][pieceCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[prevRow][pieceCol]);\n }\n \n //Sliding left\n while(prevCol > -1 && boardSquares[pieceRow][prevCol].isEmpty()){\n validBoardList.add(boardSquares[pieceRow][prevCol--]);\n }\n if(prevCol > -1 && boardSquares[pieceRow][prevCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[pieceRow][prevCol]);\n }\n \n //reset variables\n nextRow = pieceRow+1;\n nextCol = pieceCol+1;\n prevRow = pieceRow-1;\n prevCol = pieceCol-1;\n \n //Sliding up-right\n while(nextRow < 8 && nextCol < 8 && boardSquares[nextRow][nextCol].isEmpty()){\n validBoardList.add(boardSquares[nextRow++][nextCol++]);\n }\n if(nextRow < 8 && nextCol < 8 && boardSquares[nextRow][nextCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[nextRow][nextCol]);\n }\n \n //Sliding down-left\n while(prevRow > -1 && prevCol > -1 && boardSquares[prevRow][prevCol].isEmpty()){\n validBoardList.add(boardSquares[prevRow--][prevCol--]);\n }\n if(prevRow > -1 && prevCol > -1 && boardSquares[prevRow][prevCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[prevRow][prevCol]);\n }\n \n //reset variables\n nextRow = pieceRow+1;\n nextCol = pieceCol+1;\n prevRow = pieceRow-1;\n prevCol = pieceCol-1;\n \n //Sliding up-left\n while(nextRow < 8 && prevCol > -1 && boardSquares[nextRow][prevCol].isEmpty()){\n validBoardList.add(boardSquares[nextRow++][prevCol--]);\n }\n if(nextRow < 8 && prevCol > -1 && boardSquares[nextRow][prevCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[nextRow][prevCol]);\n }\n \n //Sliding down-right\n while(prevRow > -1 && nextCol < 8 && boardSquares[prevRow][nextCol].isEmpty()){\n validBoardList.add(boardSquares[prevRow--][nextCol++]);\n }\n if(prevRow > -1 && nextCol < 8 && boardSquares[prevRow][nextCol].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[prevRow][nextCol]);\n }\n \n break;\n \n case \"king\":\n rowDelta = new int[]{-1, -1, -1, 0, 0, 1, 1, 1};\n colDelta = new int[]{-1, 0, 1, -1, 1, -1, 0, 1};\n \n for(int j = 0; j < 8; j++){ //eight possible squares to check\n if(pieceRow+rowDelta[j] <= 7 &&\n pieceRow+rowDelta[j] >= 0 &&\n pieceCol+colDelta[j] <= 7 &&\n pieceCol+colDelta[j] >= 0){\n \n if(boardSquares[pieceRow+rowDelta[j]][pieceCol+colDelta[j]].isEmpty() ||\n boardSquares[pieceRow+rowDelta[j]][pieceCol+colDelta[j]].getPiece().getColour() == BLACK){\n validBoardList.add(boardSquares[pieceRow+rowDelta[j]][pieceCol+colDelta[j]]);\n }\n \n }\n }\n if(!cP.hasMoved() && boardSquares[getIndex(1)][getIndex('a')].getPiece() != null &&\n boardSquares[getIndex(1)][getIndex('a')].getPiece().getType().equals(\"rook\") &&\n !boardSquares[getIndex(1)][getIndex('a')].getPiece().hasMoved() &&\n boardSquares[getIndex(1)][getIndex('b')].isEmpty() &&\n boardSquares[getIndex(1)][getIndex('c')].isEmpty() &&\n boardSquares[getIndex(1)][getIndex('d')].isEmpty()){\n //Queen side castle is legal\n validBoardList.add(boardSquares[getIndex(1)][getIndex('c')]);\n }\n if(!cP.hasMoved() && boardSquares[getIndex(1)][getIndex('h')].getPiece() != null &&\n boardSquares[getIndex(1)][getIndex('h')].getPiece().getType().equals(\"rook\") &&\n !boardSquares[getIndex(1)][getIndex('h')].getPiece().hasMoved() &&\n boardSquares[getIndex(1)][getIndex('f')].isEmpty() &&\n boardSquares[getIndex(1)][getIndex('g')].isEmpty()){\n //King side castle is legal\n validBoardList.add(boardSquares[getIndex(1)][getIndex('g')]);\n } \n break;\n }\n\n BoardTile[] vbt = new BoardTile[validBoardList.size()];\n validBoardList.toArray(vbt);\n return vbt;\n }", "title": "" }, { "docid": "61826feea2190da17cd008e48f1a406e", "score": "0.62990695", "text": "public boolean straightLineCheckHorizontal() {\n // if the initialY and finalY are different or\n // if the final coordinates are out of range, return false\n if (this.p.getBoard().outOfRange(this.finalX, this.finalY) || (this.initialY != this.finalY) || (this.initialX == this.finalX)) {\n horizontal = false;\n }\n // if the final coordinates are in the range and initialX != finalX\n else {\n boolean horizontalSearchTrue = false;\n boolean oppAtFinalCoords = false;\n\n int start = 0 ;\n if (this.getInitialX() < this.getFinalX()) {\n while (!horizontalSearchTrue) {\n start += 1;\n int tempXCoord= this.getInitialX() + start ;\n // check for the horizontally right moves\n // if any poition is occupied b/w the start and the end positions of the move return false\n if(this.p.getBoard().occupied(tempXCoord,this.getInitialY()) && tempXCoord != this.getFinalX()&& !this.p.getBoard().outOfRange(tempXCoord,this.initialY)){\n horizontalSearchTrue = false ;\n break ;\n }\n //horizontalSearchTrue = (this.p.getBoard().occupied(start, this.getInitialY()));\n // if the final position is occupied by an opponent(only different color)\n if ((tempXCoord == this.getFinalX()) && (this.p.getBoard().occupied(tempXCoord, this.getFinalY())) && (this.p.getColour() != p.getBoard().getPiece(tempXCoord, this.getFinalY()).getColour())) {\n horizontalSearchTrue = true;\n oppAtFinalCoords = true;\n }\n // if the final position is occupied by an opponent, the position is not occupiable\n if ((tempXCoord == this.getFinalX()) && (this.p.getBoard().occupied(tempXCoord, this.getFinalY())) && (this.p.getColour() == p.getBoard().getPiece(tempXCoord, this.getFinalY()).getColour())) {\n horizontalSearchTrue = false;\n oppAtFinalCoords = false;\n break;\n }\n // break out of the loop if the path is clear (start = finalY only if the path is cleared)\n // and the final coordinates are not occupied\n else if (tempXCoord == this.getFinalX() && !this.p.getBoard().occupied(tempXCoord, this.getFinalY())) {\n horizontalSearchTrue = true ;\n oppAtFinalCoords = false ;\n break;\n }\n }\n horizontal = horizontalSearchTrue;\n }\n else if (this.getInitialX() > this.getFinalX()) {\n while (!horizontalSearchTrue) {\n start -= 1;\n // check for the horizontally right moves\n int tempXCoord = this.getInitialX() + start ;\n // if any position is occupied b/w the start and the end positions of the move return false\n if(this.p.getBoard().occupied(tempXCoord,this.getInitialY()) && tempXCoord!= this.getFinalX() && !this.p.getBoard().outOfRange(tempXCoord,this.initialY)){\n horizontalSearchTrue = false ;\n break ;\n }\n //horizontalSearchTrue = (this.p.getBoard().occupied(start, this.getInitialY()));\n // if the final position is occupied by an opponent(only different color)\n if ((tempXCoord == this.getFinalX()) && (this.p.getBoard().occupied(tempXCoord, this.getFinalY())) && (this.p.getColour() != p.getBoard().getPiece(tempXCoord, this.getFinalY()).getColour())) {\n horizontalSearchTrue = true;\n oppAtFinalCoords = true;\n }\n // if the final position is occupied by an opponent, the position is not occupiable\n if ((tempXCoord == this.getFinalX()) && (this.p.getBoard().occupied(tempXCoord, this.getFinalY())) && (this.p.getColour() == p.getBoard().getPiece(tempXCoord, this.getFinalY()).getColour())) {\n horizontalSearchTrue = false;\n oppAtFinalCoords = false;\n break;\n }\n // break out of the loop if the path is clear (start = finalY only if the path is cleared)\n // and the final coordinates are not occupied\n else if (tempXCoord == this.getFinalX() && !this.p.getBoard().occupied(tempXCoord, this.getFinalY())) {\n horizontalSearchTrue = true ;\n oppAtFinalCoords = false ;\n break;\n }\n }\n horizontal = horizontalSearchTrue;\n }\n }\n return horizontal;\n }", "title": "" }, { "docid": "496394f4f9cb1075586e807cc83207c7", "score": "0.6294745", "text": "@Test\n public void testIsValidMove() {\n Move whiteValidMove1 = new Move(new Position(7,0), new Position(6,1));\n Move whiteValidJump1 = new Move(new Position(7,2), new Position(5,4));\n Move whiteValidKingMove1 = new Move(new Position(6,5), new Position(7,4));\n Move whiteValidKingJump1 = new Move(new Position(3,2), new Position(5,0));\n\n Move whiteInvalidMove1 = new Move(new Position(7,0), new Position(7,-1));\n Move whiteInvalidMove2 = new Move(new Position(7,2), new Position(6,3));\n Move whiteInvalidMove3 = new Move(new Position(7,0), new Position(6,7));\n Move nullInvalidMove1 = new Move(new Position(5,0), new Position(7,0));\n Move nonBoardInvalidMove1 = new Move(new Position(10,9), new Position(7,0));\n\n assertTrue(MoveManager.isValidMove(whiteValidMove1, board));\n assertTrue(MoveManager.isValidMove(whiteValidJump1, board));\n assertTrue(MoveManager.isValidMove(whiteValidKingMove1, board));\n assertTrue(MoveManager.isValidMove(whiteValidKingJump1, board));\n\n assertFalse(MoveManager.isValidMove(whiteInvalidMove1, board));\n assertFalse(MoveManager.isValidMove(whiteInvalidMove2, board));\n assertFalse(MoveManager.isValidMove(whiteInvalidMove3, board));\n assertFalse(MoveManager.isValidMove(nullInvalidMove1, board));\n assertFalse(MoveManager.isValidMove(nonBoardInvalidMove1, board));\n }", "title": "" }, { "docid": "49f50c126266871b31bc4ce42810bffd", "score": "0.628785", "text": "private boolean checkAssumptions(Board board, Player player){\n if(pos.distTo(player.getPosition()) > diceRoll){\n System.out.println(\"You can't move that far!\");\n return false;\n }\n\n Tile tile = board.getBoard()[pos.getY()][pos.getX()];\n if(tile instanceof EmptyTile && ((EmptyTile)tile).getPlayer() != null){\n System.out.println(\"You can not move ontop of another player.\");\n return false;\n }\n\n if(!PathfindingUtil.findPath(board, player.getPosition(), pos)){\n System.out.println(\"Invalid path.\");\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "857c7277d1f09e26438a06b87abc4bbd", "score": "0.62852585", "text": "public static boolean validatePosition() {\r\n\t\tGamePosition position = QuoridorApplication.getQuoridor().getCurrentGame().getCurrentPosition();\r\n\t\tif (position == null) return false;\r\n\r\n\t\tif(position.getBlackPosition().getTile().equals(position.getWhitePosition().getTile())) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfor(WallMove check : QuoridorController.getWalls()) {\r\n\t\t\tArrayList<WallMove> existing = new ArrayList<WallMove>();\r\n\t\t\tfor(WallMove p : QuoridorController.getWalls()) {\r\n\t\t\t\tif (!p.equals(check)) existing.add(p);\r\n\t\t\t}\r\n\r\n\t\t\tif(check.getWallDirection() == Direction.Horizontal) {\r\n\t\t\t\tif(check.getTargetTile().getColumn() > 8 || check.getTargetTile().getColumn() < 1) return false;\r\n\t\t\t\tfor(WallMove ex : existing) {\r\n\r\n\t\t\t\t\t//Horizontal check- Horizontal placed\r\n\t\t\t\t\tif(ex.getWallDirection() == Direction.Horizontal) {\r\n\r\n\t\t\t\t\t\tif(ex.getTargetTile().getRow() == check.getTargetTile().getRow()) {\r\n\t\t\t\t\t\t\tif(Math.abs(ex.getTargetTile().getColumn() - check.getTargetTile().getColumn()) < 2 ) {\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//Horizontal check- Vertical Place\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tif(ex.getTargetTile().getRow() == check.getTargetTile().getRow() \r\n\t\t\t\t\t\t\t\t&& ex.getTargetTile().getColumn() == check.getTargetTile().getColumn()) {\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n\r\n\t\t\t} else {\r\n\t\t\t\tif(check.getTargetTile().getRow() > 8 || check.getTargetTile().getRow() < 1) return false;\r\n\t\t\t\tfor(WallMove ex : existing) {\r\n\t\t\t\t\t//Vertical check- Horizontal placed\r\n\t\t\t\t\tif(ex.getWallDirection() == Direction.Horizontal) {\r\n\r\n\t\t\t\t\t\tif(ex.getTargetTile().getRow() == check.getTargetTile().getRow() \r\n\t\t\t\t\t\t\t\t&& ex.getTargetTile().getColumn() == check.getTargetTile().getColumn()) {\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//Vertical check- Vertical Place\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tif(ex.getTargetTile().getColumn() == check.getTargetTile().getColumn()) {\r\n\t\t\t\t\t\t\tif(Math.abs(ex.getTargetTile().getRow() - check.getTargetTile().getRow()) < 2 ) {\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}", "title": "" }, { "docid": "4fce4e1d64e47d8140e97db1ae30f633", "score": "0.6283355", "text": "public void makeMove(Move move) {\n\t\tif(move != null) {\n\t\t\tif(!isStalemate() && !isCheckmate()) {\n\t\t\t\tList<Move> moves = myBoard.getLegalMoves().getList();\n\n\t\t\t\tboolean validMove = false;\n\t\t\t\tfor(Move legalmove : moves)\n\t\t\t\t{\n\t\t\t\t\tif(move.partialEquals(legalmove))\n\t\t\t\t\t{\n\t\t\t\t\t\tvalidMove = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(validMove) {\n\t\t\t\t\tmyBoard.executeMove(move);\t\n\t\t\t\t\tmyBoard.updatePinnedPieces();\n\t\t\t\t} else {\n\t\t\t\t\tthrow new InvalidParameterException(\"The move passed in was invalid.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "59be1c6b02a72963dfc13410192a5a8a", "score": "0.6279721", "text": "private void PawnFirstMoveCheck(Piece MyPiece) {\n\t// TODO Auto-generated method stub\n\tif(MyPiece instanceof Pawn<?,?,?>) {\n\t\t((Pawn<int[],int[],int[]>) MyPiece).CanMoveUpTwice=false;\n\t}\n\t\n\t\n}", "title": "" } ]
518bf5364cda3c6202a1a392996f93d1
Inflate the menu; this adds items to the action bar if it is present.
[ { "docid": "d2b8b37b446aa31536b8f64095b43cbf", "score": "0.0", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.video, menu);\r\n\t\treturn true;\r\n\t}", "title": "" } ]
[ { "docid": "24b4bc10b078ba60e54d834c5f825280", "score": "0.71224844", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater=getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "eef11a57ac94c3e6cd3b907229428364", "score": "0.70983124", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n \tinitActionBar();\n\t}", "title": "" }, { "docid": "239f4447c51cbf2ec54c8887af8e5932", "score": "0.7079784", "text": "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_activity_actions, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "b1f82704c97a0be3dff36c37fba63e44", "score": "0.70705605", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \t \tgetMenuInflater().inflate(R.menu.actionbar_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "2bffbb68c1914867fc077ba98c615dd4", "score": "0.7067882", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.main_activity_actions, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "89717b071b399ac137b0743ff4f491a0", "score": "0.7049164", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tMenuInflater inflater = getMenuInflater();\n\t\t\tinflater.inflate(R.menu.main, menu);\n\t\t\treturn super.onCreateOptionsMenu(menu);\n\t\t}", "title": "" }, { "docid": "eece5f5b4486c79ccfc3d62aa7545306", "score": "0.6983439", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.action_bar, menu);\n }", "title": "" }, { "docid": "5211112120aad57890e4284a66736469", "score": "0.6968099", "text": "private void showMainActivityActionItems(MenuInflater inflater, Menu menu) {\n //Inflate the menu.\n getMenu().clear();\n inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity, menu);\n\n //Set the ActionBar background\n getActionBar().setBackgroundDrawable(UIElementsHelper.getGeneralActionBarBackground(mContext));\n getActionBar().setDisplayShowTitleEnabled(true);\n getActionBar().setDisplayUseLogoEnabled(false);\n getActionBar().setHomeButtonEnabled(true);\n\n //Set the ActionBar text color.\n int actionBarTitleId = Resources.getSystem().getIdentifier(\"action_bar_title\", \"id\", \"android\");\n if (actionBarTitleId > 0) {\n TextView title = (TextView) findViewById(actionBarTitleId);\n if (title != null) {\n title.setTextColor(0xFFFFFFFF);\n }\n\n }\n\n }", "title": "" }, { "docid": "067a377a54f45d6724e090103b756c84", "score": "0.69651914", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(getMenuResource(), menu);\n return true;\n }", "title": "" }, { "docid": "db7a8a75ef8f28cd09a7f1212888ccd6", "score": "0.69389814", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actionbar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "9999992bd69d1de9086d40a98838c762", "score": "0.69387937", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6920704", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6920704", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d5707c360ea0068ca4d8645e64ee4b95", "score": "0.69105124", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "d5707c360ea0068ca4d8645e64ee4b95", "score": "0.69105124", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "ef8ecbe14f61420c92900f8a8452ed7e", "score": "0.69005084", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\tgetMenuInflater().inflate(action.main.R.menu.main, menu);\n\treturn true;\n }", "title": "" }, { "docid": "44c6da9510802b6116c6f9c82299d515", "score": "0.68880355", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.action_bar, menu);\r\n\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "ec71150dd0e84cee2d50f3e1c3ab12ed", "score": "0.68632096", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_catalog, menu);\n //Add menu items to app bar\n return true;\n }", "title": "" }, { "docid": "5511c9caeb1c93c1c0c5e57c81863b63", "score": "0.6859435", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.items_menu, menu);\n return true;\n }", "title": "" }, { "docid": "04ab640527810a102d85f178ea3465b7", "score": "0.684949", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\n\t}", "title": "" }, { "docid": "84e0be5c8c2cfe97d591c7d3a63c6c55", "score": "0.6834991", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu,menu); //inflated inside\n return true;\n }", "title": "" }, { "docid": "6107003ed896231a517c8cc25dc2861f", "score": "0.6824552", "text": "@Override\n public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) {\n }", "title": "" }, { "docid": "8164d39ccc512d71aee3a64a1950ed18", "score": "0.68180174", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.home_actions, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "15aac40d7c88336ee84cd11e77a1eaff", "score": "0.6815591", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu., menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4c53c75b44bd5a4a0f93b74101268e3c", "score": "0.68001884", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.mymenu, menu); //Menu Resource, Menu\n return true;\n\n }", "title": "" }, { "docid": "eceb17ab37f9c0a8bbcf75e420409f08", "score": "0.67961895", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "222b522af0da0702b112187c9a3aeeb0", "score": "0.6794525", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menus, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "0334d208506acc9b17edcf6c3382b9d5", "score": "0.6786195", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater=getMenuInflater();\n inflater.inflate(R.menu.btn_action_bar, menu);\n return true;\n }", "title": "" }, { "docid": "7da95e37ad2d62cba864a43faa1ee4fb", "score": "0.6784274", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "5ff46e2f6c2c2eb368074888c611351f", "score": "0.67815703", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.chat_activity_menu, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "1bbbb510c03c5537c360df9e45b566de", "score": "0.6772896", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater inflater=getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a64096bb07d9e8a61775762fef9296f5", "score": "0.6760383", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "3d464429d9a1365a830de19086902dc9", "score": "0.67595905", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.menu_main, menu);\n }", "title": "" }, { "docid": "d6a3951f27e73f5f9b7bc97ccbd7f647", "score": "0.67468125", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "2446c1e78c7f79de1cd32999fb372ab4", "score": "0.67427635", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.observation_list_fragment_actionbar_menu, menu);\n }", "title": "" }, { "docid": "53ea9164cd76d619e6d3f25518ff8788", "score": "0.67411387", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.mainanon, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "a7c957e78fcb5027a6a6c084890b0fdf", "score": "0.67368066", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater menuInflater = getMenuInflater();\r\n menuInflater.inflate(R.menu.menu, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "612450ad582522bf3cffe446fddaa34d", "score": "0.6736367", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.menu_main, menu);\n \treturn true;\n }", "title": "" }, { "docid": "0a26b83929a9b2d2bc00d31636e4b0f2", "score": "0.67313075", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.timeline_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "882e43846b8e9a71f44fb28d3e094c1c", "score": "0.673101", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.main, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67266536", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67266536", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67266536", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "c619adec870dd0596de07ac23e3ee955", "score": "0.6724445", "text": "@Override\r\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\r\n\t}", "title": "" }, { "docid": "294647044988c5c182564ffbf5925b4b", "score": "0.6723939", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //inflate and set menu\n getMenuInflater().inflate(R.menu.appbar_menu, menu);\n mMenu = menu;\n //return status to super\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "59be0c1f5fef2830f0f177337325fa34", "score": "0.672091", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "141d80080dd8c914ca57cbcfe785a633", "score": "0.6714639", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "03306c45c84ded07a955229b5b52ac61", "score": "0.67121714", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "947492d36950842efe7baae13025fe7b", "score": "0.671117", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater( );\n menuInflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "a49a02cab05fa8c241b72b42b141d3f9", "score": "0.6708995", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.main_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "fbfe5f7fb9486d8fc056ff922706085e", "score": "0.6708062", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "ad0ff12f4e608ac0baa250a876968b87", "score": "0.67044675", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_lateral, menu);\n return true;\n }", "title": "" }, { "docid": "c835757dc692dc6e0f1756f6e238558c", "score": "0.6704276", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n\n }", "title": "" }, { "docid": "9dcf5d250c48ba48d0c33020e07c8ddc", "score": "0.6703799", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "90b147d6905fe9d27d67d16cf18bcd76", "score": "0.67016935", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n }", "title": "" }, { "docid": "90b147d6905fe9d27d67d16cf18bcd76", "score": "0.67016935", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n }", "title": "" }, { "docid": "04cb1356535758437ccdb81aab9b8c1d", "score": "0.67003864", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t super.onCreateOptionsMenu(menu);\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return true;\n\t}", "title": "" }, { "docid": "5f34fea2924d5d560f265548d5bbe33a", "score": "0.66971034", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n getMenuInflater().inflate(R.menu.main_menu, menu); // id of the menu resource that should be inflated\n return true;\n }", "title": "" }, { "docid": "6077c7e45a6b779986cae809b6a2968a", "score": "0.6696392", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\r\n\t\tMenuInflater getmenu = getMenuInflater();\r\n\t\tgetmenu.inflate(R.menu.main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "58b51e90d6d0a69b04c4cd210f2e31b4", "score": "0.6690745", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "a5018978c5d65e3b49abeaa59095a3d5", "score": "0.6690615", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "fac99c9b973d17f1c44720793929ce44", "score": "0.66875714", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6de24a4bbb29fd18c2ae5ed3c1bdc862", "score": "0.66875684", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) { //\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b1631b737fc46ad9ef9203bd94535a01", "score": "0.66862255", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "50494e70f5acba989620c2fc83350746", "score": "0.66816586", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.imfo, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "2d8ccf7f205253ce7dfdde54c02aeef3", "score": "0.66766685", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "e1e1ba6e055593cb2a3e7bf612d2aad0", "score": "0.66749686", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n /* Use the inflater's inflate method to inflate our menu layout to this menu */\n inflater.inflate(R.menu.main, menu);\n /* Return true so that the menu is displayed in the Toolbar */\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "6cc5da99a32692d41c31cc394b4bd681", "score": "0.6672643", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "title": "" }, { "docid": "1ba5df7199b34d828223cbab369abb96", "score": "0.6670891", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n return true;\n }", "title": "" }, { "docid": "5cf4a8e3564a808f2f12b246f25e9e39", "score": "0.6669128", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.packing, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4d1664cf9a7888f14c085ae45baa2399", "score": "0.66652745", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n this.menu = menu;\n inflater.inflate(R.menu.menu_main, menu);\n }", "title": "" }, { "docid": "548b0f34fff2926e0d075874fb23ddf2", "score": "0.6663164", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n\n menuInflater.inflate(R.menu.menu_main , menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "2048a935480d812df1931f3024445816", "score": "0.6662675", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_menu, menu);\n return true;\n }", "title": "" }, { "docid": "3f38937739076aac5295e8281e2fb28a", "score": "0.66619426", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.main, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "9e90ee9aba69fb886ba0bf4523a44895", "score": "0.666124", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "9e90ee9aba69fb886ba0bf4523a44895", "score": "0.666124", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "9e90ee9aba69fb886ba0bf4523a44895", "score": "0.666124", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "50ac06b92882b095bae70fa355aa16ab", "score": "0.666017", "text": "@Override\n\t\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.665943", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.665943", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "9a283eccc2fb94f0580cb8fe3eeb300b", "score": "0.6658251", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "title": "" }, { "docid": "7eccf47f93398e39934c6b9aa947fde9", "score": "0.6653915", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\n\t\t \n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.mainmenu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "87888f2cfbee91ca2589473a8279469e", "score": "0.6649803", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.shell, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "2910ce467607a76d119acea664f65da4", "score": "0.6647274", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.hider, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e4259acba5563ad673e43d4331c2b8de", "score": "0.66466033", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "224e55251563e1f9ce15fd983b14c2f7", "score": "0.6645649", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n\n\n }", "title": "" }, { "docid": "22179dbb3fe688ef98f695aa5e91e2de", "score": "0.664326", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n Log.d(TAG, \"onCreateOptionsMenu()\");\n super.onCreateOptionsMenu(menu);\n final MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return true;\n }", "title": "" }, { "docid": "6cd25633c5fbbf09ddd3bb367c20803d", "score": "0.66397274", "text": "@Override\r\n\t\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\t\t\treturn true;\r\n\t\t\t}", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6639272", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6639272", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6639272", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7dba252190a8c9fd5d2429ccc206b7a5", "score": "0.6637331", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.activity_categories2, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6636591", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6636591", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "0ee54681f0ee136537e7fab06dc2c9f8", "score": "0.66310817", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n// Inflating the menu.\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.activity_main, menu);\n return true;\n }", "title": "" }, { "docid": "587b307e01b0570185be5bc7572212e5", "score": "0.6630383", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.body, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.66291285", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "62127e30ca78840646267920dfe55cc6", "score": "0.66276336", "text": "private void makeMenuActions() {\n IActionBars actionBars = getViewSite().getActionBars();\n \n // Local menu items\n IMenuManager manager = actionBars.getMenuManager();\n \n MenuManager prefs = new MenuManager(Messages.LDVisualiserView_11);\n manager.add(prefs);\n prefs.add(fActionShowExplanation);\n \n MenuManager layoutTypeMenu = new MenuManager(Messages.LDVisualiserView_12);\n manager.add(layoutTypeMenu);\n \n layoutTypeMenu.add(fActionHorizontalTreeLayout);\n layoutTypeMenu.add(fActionVerticalTreeLayout);\n \n manager.add(new Separator());\n manager.add(fToolbarZoomContributionViewItem);\n }", "title": "" }, { "docid": "bc2c422c1ff45e5139c86c1c115a7b9a", "score": "0.662707", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.food, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "dd9e9057af222f86a12ee9f824b38b84", "score": "0.6626442", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\tif(type.equals(\"MYorganizer\")){\n\t\t\tmenu.clear();\n\t\t\tgetMenuInflater().inflate(R.menu.most, menu);\n\t\t}\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "219062591172ce60983d7b7b655a4f88", "score": "0.6622374", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.basket_menu, menu);\r\n return true;\r\n }", "title": "" } ]
253e6b93a7b4d1e7ed54be49da259812
$ANTLR end "ruleformalParameterList" $ANTLR start "entryRuleformalParameters" ../org.sourcepit.java.type/srcgen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4324:1: entryRuleformalParameters returns [EObject current=null] : iv_ruleformalParameters= ruleformalParameters EOF ;
[ { "docid": "1c89d33f31c2264b244c5cc2954aedf7", "score": "0.7405638", "text": "public final EObject entryRuleformalParameters() throws RecognitionException {\n EObject current = null;\n int entryRuleformalParameters_StartIndex = input.index();\n EObject iv_ruleformalParameters = null;\n\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 143)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4325:2:\n // (iv_ruleformalParameters= ruleformalParameters EOF )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4326:2:\n // iv_ruleformalParameters= ruleformalParameters EOF\n {\n if (state.backtracking == 0) {\n newCompositeNode(grammarAccess.getFormalParametersRule());\n }\n pushFollow(FOLLOW_ruleformalParameters_in_entryRuleformalParameters9583);\n iv_ruleformalParameters = ruleformalParameters();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n current = iv_ruleformalParameters;\n }\n match(input, EOF, FOLLOW_EOF_in_entryRuleformalParameters9593);\n if (state.failed)\n return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 143, entryRuleformalParameters_StartIndex);\n }\n }\n return current;\n }", "title": "" } ]
[ { "docid": "04bc238f9b1ddfbed21b970b5d652508", "score": "0.7602756", "text": "public final void entryRuleformal_parameter_list() throws RecognitionException {\r\n try {\r\n // InternalPascal.g:1777:1: ( ruleformal_parameter_list EOF )\r\n // InternalPascal.g:1778:1: ruleformal_parameter_list EOF\r\n {\r\n before(grammarAccess.getFormal_parameter_listRule()); \r\n pushFollow(FOLLOW_1);\r\n ruleformal_parameter_list();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getFormal_parameter_listRule()); \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "88e39685d67101f27f10c9a69fac9587", "score": "0.74206305", "text": "public final EObject entryRuleformalParameterList() throws RecognitionException {\n EObject current = null;\n int entryRuleformalParameterList_StartIndex = input.index();\n EObject iv_ruleformalParameterList = null;\n\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 141)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4245:2:\n // (iv_ruleformalParameterList= ruleformalParameterList EOF )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4246:2:\n // iv_ruleformalParameterList= ruleformalParameterList EOF\n {\n if (state.backtracking == 0) {\n newCompositeNode(grammarAccess.getFormalParameterListRule());\n }\n pushFollow(FOLLOW_ruleformalParameterList_in_entryRuleformalParameterList9429);\n iv_ruleformalParameterList = ruleformalParameterList();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n current = iv_ruleformalParameterList;\n }\n match(input, EOF, FOLLOW_EOF_in_entryRuleformalParameterList9439);\n if (state.failed)\n return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 141, entryRuleformalParameterList_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "b21d49c749006b51f820db9a09cec13b", "score": "0.7267426", "text": "public final EObject ruleformalParameterList() throws RecognitionException {\n EObject current = null;\n int ruleformalParameterList_StartIndex = input.index();\n Token otherlv_1 = null;\n EObject lv_parameters_0_0 = null;\n\n EObject lv_parameters_2_0 = null;\n\n EObject lv_parameters_3_0 = null;\n\n\n enterRule();\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 142)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4256:28: ( (\n // ( ( (lv_parameters_0_0= ruleformalParameters ) ) otherlv_1= ',' ( (lv_parameters_2_0=\n // rulelastFormalParameter ) ) ) | ( (lv_parameters_3_0= rulelastFormalParameter ) ) ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:1: ( (\n // ( (lv_parameters_0_0= ruleformalParameters ) ) otherlv_1= ',' ( (lv_parameters_2_0= rulelastFormalParameter\n // ) ) ) | ( (lv_parameters_3_0= rulelastFormalParameter ) ) )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:1: (\n // ( ( (lv_parameters_0_0= ruleformalParameters ) ) otherlv_1= ',' ( (lv_parameters_2_0=\n // rulelastFormalParameter ) ) ) | ( (lv_parameters_3_0= rulelastFormalParameter ) ) )\n int alt70 = 2;\n switch (input.LA(1)) {\n case 89 : {\n int LA70_1 = input.LA(2);\n\n if ((synpred82_InternalType())) {\n alt70 = 1;\n }\n else if ((true)) {\n alt70 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 70, 1, input);\n\n throw nvae;\n }\n }\n break;\n case 99 : {\n int LA70_2 = input.LA(2);\n\n if ((synpred82_InternalType())) {\n alt70 = 1;\n }\n else if ((true)) {\n alt70 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 70, 2, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_NUMERICTYPE : {\n int LA70_3 = input.LA(2);\n\n if ((synpred82_InternalType())) {\n alt70 = 1;\n }\n else if ((true)) {\n alt70 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 70, 3, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_BOOLEANTYPE : {\n int LA70_4 = input.LA(2);\n\n if ((synpred82_InternalType())) {\n alt70 = 1;\n }\n else if ((true)) {\n alt70 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 70, 4, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_IDENTIFIER : {\n int LA70_5 = input.LA(2);\n\n if ((synpred82_InternalType())) {\n alt70 = 1;\n }\n else if ((true)) {\n alt70 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 70, 5, input);\n\n throw nvae;\n }\n }\n break;\n default :\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 70, 0, input);\n\n throw nvae;\n }\n\n switch (alt70) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:2:\n // ( ( (lv_parameters_0_0= ruleformalParameters ) ) otherlv_1= ',' ( (lv_parameters_2_0=\n // rulelastFormalParameter ) ) )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:2:\n // ( ( (lv_parameters_0_0= ruleformalParameters ) ) otherlv_1= ',' ( (lv_parameters_2_0=\n // rulelastFormalParameter ) ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:3:\n // ( (lv_parameters_0_0= ruleformalParameters ) ) otherlv_1= ',' ( (lv_parameters_2_0=\n // rulelastFormalParameter ) )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:3:\n // ( (lv_parameters_0_0= ruleformalParameters ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4258:1:\n // (lv_parameters_0_0= ruleformalParameters )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4258:1:\n // (lv_parameters_0_0= ruleformalParameters )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4259:3:\n // lv_parameters_0_0= ruleformalParameters\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParameterListAccess()\n .getParametersFormalParametersParserRuleCall_0_0_0());\n\n }\n pushFollow(FOLLOW_ruleformalParameters_in_ruleformalParameterList9486);\n lv_parameters_0_0 = ruleformalParameters();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getFormalParameterListRule());\n }\n add(current, \"parameters\", lv_parameters_0_0, \"formalParameters\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n otherlv_1 = (Token) match(input, 68, FOLLOW_68_in_ruleformalParameterList9498);\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n newLeafNode(otherlv_1, grammarAccess.getFormalParameterListAccess().getCommaKeyword_0_1());\n\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4279:1:\n // ( (lv_parameters_2_0= rulelastFormalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4280:1:\n // (lv_parameters_2_0= rulelastFormalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4280:1:\n // (lv_parameters_2_0= rulelastFormalParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4281:3:\n // lv_parameters_2_0= rulelastFormalParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParameterListAccess()\n .getParametersLastFormalParameterParserRuleCall_0_2_0());\n\n }\n pushFollow(FOLLOW_rulelastFormalParameter_in_ruleformalParameterList9519);\n lv_parameters_2_0 = rulelastFormalParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getFormalParameterListRule());\n }\n add(current, \"parameters\", lv_parameters_2_0, \"lastFormalParameter\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4298:6:\n // ( (lv_parameters_3_0= rulelastFormalParameter ) )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4298:6:\n // ( (lv_parameters_3_0= rulelastFormalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4299:1:\n // (lv_parameters_3_0= rulelastFormalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4299:1:\n // (lv_parameters_3_0= rulelastFormalParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4300:3:\n // lv_parameters_3_0= rulelastFormalParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParameterListAccess()\n .getParametersLastFormalParameterParserRuleCall_1_0());\n\n }\n pushFollow(FOLLOW_rulelastFormalParameter_in_ruleformalParameterList9547);\n lv_parameters_3_0 = rulelastFormalParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getFormalParameterListRule());\n }\n add(current, \"parameters\", lv_parameters_3_0, \"lastFormalParameter\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if (state.backtracking == 0) {\n leaveRule();\n }\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 142, ruleformalParameterList_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "ca76f1cda84bdcc25003f87ac9efeef0", "score": "0.69230884", "text": "public final EObject entryRuleformalParameter() throws RecognitionException {\n EObject current = null;\n int entryRuleformalParameter_StartIndex = input.index();\n EObject iv_ruleformalParameter = null;\n\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 145)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4427:2:\n // (iv_ruleformalParameter= ruleformalParameter EOF )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4428:2:\n // iv_ruleformalParameter= ruleformalParameter EOF\n {\n if (state.backtracking == 0) {\n newCompositeNode(grammarAccess.getFormalParameterRule());\n }\n pushFollow(FOLLOW_ruleformalParameter_in_entryRuleformalParameter9778);\n iv_ruleformalParameter = ruleformalParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n current = iv_ruleformalParameter;\n }\n match(input, EOF, FOLLOW_EOF_in_entryRuleformalParameter9788);\n if (state.failed)\n return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 145, entryRuleformalParameter_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "7783acd86210a6c22d71ab100812c926", "score": "0.69228673", "text": "public final EObject ruleformalParameters() throws RecognitionException {\n EObject current = null;\n int ruleformalParameters_StartIndex = input.index();\n Token otherlv_1 = null;\n Token otherlv_4 = null;\n EObject lv_parameters_0_0 = null;\n\n EObject lv_parameters_2_0 = null;\n\n EObject lv_parameters_3_0 = null;\n\n EObject lv_parameters_5_0 = null;\n\n\n enterRule();\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 144)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4336:28: ( (\n // ( ( (lv_parameters_0_0= ruleformalParameter ) ) (otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter )\n // ) )* ) | ( ( (lv_parameters_3_0= rulereceiverParameter ) ) (otherlv_4= ',' ( (lv_parameters_5_0=\n // ruleformalParameter ) ) )* ) ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:1: ( (\n // ( (lv_parameters_0_0= ruleformalParameter ) ) (otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) )\n // )* ) | ( ( (lv_parameters_3_0= rulereceiverParameter ) ) (otherlv_4= ',' ( (lv_parameters_5_0=\n // ruleformalParameter ) ) )* ) )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:1: (\n // ( ( (lv_parameters_0_0= ruleformalParameter ) ) (otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter\n // ) ) )* ) | ( ( (lv_parameters_3_0= rulereceiverParameter ) ) (otherlv_4= ',' ( (lv_parameters_5_0=\n // ruleformalParameter ) ) )* ) )\n int alt73 = 2;\n switch (input.LA(1)) {\n case 89 : {\n int LA73_1 = input.LA(2);\n\n if ((synpred84_InternalType())) {\n alt73 = 1;\n }\n else if ((true)) {\n alt73 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 73, 1, input);\n\n throw nvae;\n }\n }\n break;\n case 99 : {\n alt73 = 1;\n }\n break;\n case RULE_NUMERICTYPE : {\n int LA73_3 = input.LA(2);\n\n if ((synpred84_InternalType())) {\n alt73 = 1;\n }\n else if ((true)) {\n alt73 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 73, 3, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_BOOLEANTYPE : {\n int LA73_4 = input.LA(2);\n\n if ((synpred84_InternalType())) {\n alt73 = 1;\n }\n else if ((true)) {\n alt73 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 73, 4, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_IDENTIFIER : {\n int LA73_5 = input.LA(2);\n\n if ((synpred84_InternalType())) {\n alt73 = 1;\n }\n else if ((true)) {\n alt73 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 73, 5, input);\n\n throw nvae;\n }\n }\n break;\n default :\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 73, 0, input);\n\n throw nvae;\n }\n\n switch (alt73) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:2:\n // ( ( (lv_parameters_0_0= ruleformalParameter ) ) (otherlv_1= ',' ( (lv_parameters_2_0=\n // ruleformalParameter ) ) )* )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:2:\n // ( ( (lv_parameters_0_0= ruleformalParameter ) ) (otherlv_1= ',' ( (lv_parameters_2_0=\n // ruleformalParameter ) ) )* )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:3:\n // ( (lv_parameters_0_0= ruleformalParameter ) ) (otherlv_1= ',' ( (lv_parameters_2_0=\n // ruleformalParameter ) ) )*\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:3:\n // ( (lv_parameters_0_0= ruleformalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4338:1:\n // (lv_parameters_0_0= ruleformalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4338:1:\n // (lv_parameters_0_0= ruleformalParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4339:3:\n // lv_parameters_0_0= ruleformalParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParametersAccess()\n .getParametersFormalParameterParserRuleCall_0_0_0());\n\n }\n pushFollow(FOLLOW_ruleformalParameter_in_ruleformalParameters9640);\n lv_parameters_0_0 = ruleformalParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getFormalParametersRule());\n }\n add(current, \"parameters\", lv_parameters_0_0, \"formalParameter\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4355:2:\n // (otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) ) )*\n loop71 : do {\n int alt71 = 2;\n int LA71_0 = input.LA(1);\n\n if ((LA71_0 == 68)) {\n int LA71_1 = input.LA(2);\n\n if ((synpred83_InternalType())) {\n alt71 = 1;\n }\n\n\n }\n\n\n switch (alt71) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4355:4:\n // otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) )\n {\n otherlv_1 = (Token) match(input, 68, FOLLOW_68_in_ruleformalParameters9653);\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n newLeafNode(otherlv_1, grammarAccess.getFormalParametersAccess()\n .getCommaKeyword_0_1_0());\n\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4359:1:\n // ( (lv_parameters_2_0= ruleformalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4360:1:\n // (lv_parameters_2_0= ruleformalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4360:1:\n // (lv_parameters_2_0= ruleformalParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4361:3:\n // lv_parameters_2_0= ruleformalParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParametersAccess()\n .getParametersFormalParameterParserRuleCall_0_1_1_0());\n\n }\n pushFollow(FOLLOW_ruleformalParameter_in_ruleformalParameters9674);\n lv_parameters_2_0 = ruleformalParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getFormalParametersRule());\n }\n add(current, \"parameters\", lv_parameters_2_0, \"formalParameter\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n default :\n break loop71;\n }\n }\n while (true);\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4378:6:\n // ( ( (lv_parameters_3_0= rulereceiverParameter ) ) (otherlv_4= ',' ( (lv_parameters_5_0=\n // ruleformalParameter ) ) )* )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4378:6:\n // ( ( (lv_parameters_3_0= rulereceiverParameter ) ) (otherlv_4= ',' ( (lv_parameters_5_0=\n // ruleformalParameter ) ) )* )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4378:7:\n // ( (lv_parameters_3_0= rulereceiverParameter ) ) (otherlv_4= ',' ( (lv_parameters_5_0=\n // ruleformalParameter ) ) )*\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4378:7:\n // ( (lv_parameters_3_0= rulereceiverParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4379:1:\n // (lv_parameters_3_0= rulereceiverParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4379:1:\n // (lv_parameters_3_0= rulereceiverParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4380:3:\n // lv_parameters_3_0= rulereceiverParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParametersAccess()\n .getParametersReceiverParameterParserRuleCall_1_0_0());\n\n }\n pushFollow(FOLLOW_rulereceiverParameter_in_ruleformalParameters9705);\n lv_parameters_3_0 = rulereceiverParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getFormalParametersRule());\n }\n add(current, \"parameters\", lv_parameters_3_0, \"receiverParameter\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4396:2:\n // (otherlv_4= ',' ( (lv_parameters_5_0= ruleformalParameter ) ) )*\n loop72 : do {\n int alt72 = 2;\n int LA72_0 = input.LA(1);\n\n if ((LA72_0 == 68)) {\n int LA72_1 = input.LA(2);\n\n if ((synpred85_InternalType())) {\n alt72 = 1;\n }\n\n\n }\n\n\n switch (alt72) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4396:4:\n // otherlv_4= ',' ( (lv_parameters_5_0= ruleformalParameter ) )\n {\n otherlv_4 = (Token) match(input, 68, FOLLOW_68_in_ruleformalParameters9718);\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n newLeafNode(otherlv_4, grammarAccess.getFormalParametersAccess()\n .getCommaKeyword_1_1_0());\n\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4400:1:\n // ( (lv_parameters_5_0= ruleformalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4401:1:\n // (lv_parameters_5_0= ruleformalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4401:1:\n // (lv_parameters_5_0= ruleformalParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4402:3:\n // lv_parameters_5_0= ruleformalParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParametersAccess()\n .getParametersFormalParameterParserRuleCall_1_1_1_0());\n\n }\n pushFollow(FOLLOW_ruleformalParameter_in_ruleformalParameters9739);\n lv_parameters_5_0 = ruleformalParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getFormalParametersRule());\n }\n add(current, \"parameters\", lv_parameters_5_0, \"formalParameter\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n default :\n break loop72;\n }\n }\n while (true);\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if (state.backtracking == 0) {\n leaveRule();\n }\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 144, ruleformalParameters_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "308e0bb5fcbb14acb698ddf7d6207ba3", "score": "0.66986936", "text": "public final void entryRuleparameterDecl() throws RecognitionException {\n try {\n // InternalGo.g:1880:1: ( ruleparameterDecl EOF )\n // InternalGo.g:1881:1: ruleparameterDecl EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParameterDeclRule()); \n }\n pushFollow(FOLLOW_1);\n ruleparameterDecl();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParameterDeclRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "aa3cc04f954132e76cf0bc7ab5da64d1", "score": "0.6691574", "text": "public final void entryRuleparameterList() throws RecognitionException {\n try {\n // InternalGo.g:1855:1: ( ruleparameterList EOF )\n // InternalGo.g:1856:1: ruleparameterList EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParameterListRule()); \n }\n pushFollow(FOLLOW_1);\n ruleparameterList();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParameterListRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "81bd18cf0da2f1b9044d55a01a7376da", "score": "0.64104676", "text": "public final void entryRuleparameters() throws RecognitionException {\n try {\n // InternalGo.g:1830:1: ( ruleparameters EOF )\n // InternalGo.g:1831:1: ruleparameters EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParametersRule()); \n }\n pushFollow(FOLLOW_1);\n ruleparameters();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParametersRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "4529345da5dd8e25867e50bf404b2fd0", "score": "0.63112634", "text": "public final void entryRuleparameter_type() throws RecognitionException {\r\n try {\r\n // InternalPascal.g:1852:1: ( ruleparameter_type EOF )\r\n // InternalPascal.g:1853:1: ruleparameter_type EOF\r\n {\r\n before(grammarAccess.getParameter_typeRule()); \r\n pushFollow(FOLLOW_1);\r\n ruleparameter_type();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getParameter_typeRule()); \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "39c511ea6b79cd0643db05fa88fa9f12", "score": "0.62038314", "text": "public final void entryRuleparameter() throws RecognitionException {\n try {\n // InternalPDL.g:204:1: ( ruleparameter EOF )\n // InternalPDL.g:205:1: ruleparameter EOF\n {\n before(grammarAccess.getParameterRule()); \n pushFollow(FOLLOW_1);\n ruleparameter();\n\n state._fsp--;\n\n after(grammarAccess.getParameterRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "5a6f2d1beb1b7b544e8461df14fb6acc", "score": "0.6202227", "text": "public final void rule__Function_heading__ParametersAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:13163:1: ( ( ruleformal_parameter_list ) )\r\n // InternalPascal.g:13164:2: ( ruleformal_parameter_list )\r\n {\r\n // InternalPascal.g:13164:2: ( ruleformal_parameter_list )\r\n // InternalPascal.g:13165:3: ruleformal_parameter_list\r\n {\r\n before(grammarAccess.getFunction_headingAccess().getParametersFormal_parameter_listParserRuleCall_2_0()); \r\n pushFollow(FOLLOW_2);\r\n ruleformal_parameter_list();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getFunction_headingAccess().getParametersFormal_parameter_listParserRuleCall_2_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "1a6f247756c53b7dbd0423ba0d214cb0", "score": "0.6165533", "text": "public final EObject rulelastFormalParameter() throws RecognitionException {\n EObject current = null;\n int rulelastFormalParameter_StartIndex = input.index();\n Token lv_varargs_3_0 = null;\n EObject lv_modifiers_0_0 = null;\n\n EObject lv_type_1_0 = null;\n\n EObject lv_annotations_2_0 = null;\n\n EObject lv_name_4_0 = null;\n\n EObject this_formalParameter_5 = null;\n\n\n enterRule();\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 152)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4598:28: ( (\n // ( ( (lv_modifiers_0_0= rulevariableModifier ) )* ( (lv_type_1_0= ruleunannType ) ) ( (lv_annotations_2_0=\n // ruleannotation ) )* ( (lv_varargs_3_0= '...' ) ) ( (lv_name_4_0= rulevariableDeclaratorId ) ) ) |\n // this_formalParameter_5= ruleformalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4599:1: ( (\n // ( (lv_modifiers_0_0= rulevariableModifier ) )* ( (lv_type_1_0= ruleunannType ) ) ( (lv_annotations_2_0=\n // ruleannotation ) )* ( (lv_varargs_3_0= '...' ) ) ( (lv_name_4_0= rulevariableDeclaratorId ) ) ) |\n // this_formalParameter_5= ruleformalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4599:1: (\n // ( ( (lv_modifiers_0_0= rulevariableModifier ) )* ( (lv_type_1_0= ruleunannType ) ) ( (lv_annotations_2_0=\n // ruleannotation ) )* ( (lv_varargs_3_0= '...' ) ) ( (lv_name_4_0= rulevariableDeclaratorId ) ) ) |\n // this_formalParameter_5= ruleformalParameter )\n int alt78 = 2;\n switch (input.LA(1)) {\n case 89 : {\n int LA78_1 = input.LA(2);\n\n if ((synpred90_InternalType())) {\n alt78 = 1;\n }\n else if ((true)) {\n alt78 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 78, 1, input);\n\n throw nvae;\n }\n }\n break;\n case 99 : {\n int LA78_2 = input.LA(2);\n\n if ((synpred90_InternalType())) {\n alt78 = 1;\n }\n else if ((true)) {\n alt78 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 78, 2, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_NUMERICTYPE : {\n int LA78_3 = input.LA(2);\n\n if ((synpred90_InternalType())) {\n alt78 = 1;\n }\n else if ((true)) {\n alt78 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 78, 3, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_BOOLEANTYPE : {\n int LA78_4 = input.LA(2);\n\n if ((synpred90_InternalType())) {\n alt78 = 1;\n }\n else if ((true)) {\n alt78 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 78, 4, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_IDENTIFIER : {\n int LA78_5 = input.LA(2);\n\n if ((synpred90_InternalType())) {\n alt78 = 1;\n }\n else if ((true)) {\n alt78 = 2;\n }\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 78, 5, input);\n\n throw nvae;\n }\n }\n break;\n default :\n if (state.backtracking > 0) {\n state.failed = true;\n return current;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 78, 0, input);\n\n throw nvae;\n }\n\n switch (alt78) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4599:2:\n // ( ( (lv_modifiers_0_0= rulevariableModifier ) )* ( (lv_type_1_0= ruleunannType ) ) (\n // (lv_annotations_2_0= ruleannotation ) )* ( (lv_varargs_3_0= '...' ) ) ( (lv_name_4_0=\n // rulevariableDeclaratorId ) ) )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4599:2:\n // ( ( (lv_modifiers_0_0= rulevariableModifier ) )* ( (lv_type_1_0= ruleunannType ) ) (\n // (lv_annotations_2_0= ruleannotation ) )* ( (lv_varargs_3_0= '...' ) ) ( (lv_name_4_0=\n // rulevariableDeclaratorId ) ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4599:3:\n // ( (lv_modifiers_0_0= rulevariableModifier ) )* ( (lv_type_1_0= ruleunannType ) ) (\n // (lv_annotations_2_0= ruleannotation ) )* ( (lv_varargs_3_0= '...' ) ) ( (lv_name_4_0=\n // rulevariableDeclaratorId ) )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4599:3:\n // ( (lv_modifiers_0_0= rulevariableModifier ) )*\n loop76 : do {\n int alt76 = 2;\n int LA76_0 = input.LA(1);\n\n if ((LA76_0 == 89 || LA76_0 == 99)) {\n alt76 = 1;\n }\n\n\n switch (alt76) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4600:1:\n // (lv_modifiers_0_0= rulevariableModifier )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4600:1:\n // (lv_modifiers_0_0= rulevariableModifier )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4601:3:\n // lv_modifiers_0_0= rulevariableModifier\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getLastFormalParameterAccess()\n .getModifiersVariableModifierParserRuleCall_0_0_0());\n\n }\n pushFollow(FOLLOW_rulevariableModifier_in_rulelastFormalParameter10185);\n lv_modifiers_0_0 = rulevariableModifier();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getLastFormalParameterRule());\n }\n add(current, \"modifiers\", lv_modifiers_0_0, \"variableModifier\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n break;\n\n default :\n break loop76;\n }\n }\n while (true);\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4617:3:\n // ( (lv_type_1_0= ruleunannType ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4618:1:\n // (lv_type_1_0= ruleunannType )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4618:1:\n // (lv_type_1_0= ruleunannType )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4619:3:\n // lv_type_1_0= ruleunannType\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getLastFormalParameterAccess()\n .getTypeUnannTypeParserRuleCall_0_1_0());\n\n }\n pushFollow(FOLLOW_ruleunannType_in_rulelastFormalParameter10207);\n lv_type_1_0 = ruleunannType();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getLastFormalParameterRule());\n }\n set(current, \"type\", lv_type_1_0, \"unannType\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4635:2:\n // ( (lv_annotations_2_0= ruleannotation ) )*\n loop77 : do {\n int alt77 = 2;\n int LA77_0 = input.LA(1);\n\n if ((LA77_0 == 89)) {\n alt77 = 1;\n }\n\n\n switch (alt77) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4636:1:\n // (lv_annotations_2_0= ruleannotation )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4636:1:\n // (lv_annotations_2_0= ruleannotation )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4637:3:\n // lv_annotations_2_0= ruleannotation\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getLastFormalParameterAccess()\n .getAnnotationsAnnotationParserRuleCall_0_2_0());\n\n }\n pushFollow(FOLLOW_ruleannotation_in_rulelastFormalParameter10228);\n lv_annotations_2_0 = ruleannotation();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getLastFormalParameterRule());\n }\n add(current, \"annotations\", lv_annotations_2_0, \"annotation\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n break;\n\n default :\n break loop77;\n }\n }\n while (true);\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4653:3:\n // ( (lv_varargs_3_0= '...' ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4654:1:\n // (lv_varargs_3_0= '...' )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4654:1:\n // (lv_varargs_3_0= '...' )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4655:3:\n // lv_varargs_3_0= '...'\n {\n lv_varargs_3_0 = (Token) match(input, 84, FOLLOW_84_in_rulelastFormalParameter10247);\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n newLeafNode(lv_varargs_3_0, grammarAccess.getLastFormalParameterAccess()\n .getVarargsFullStopFullStopFullStopKeyword_0_3_0());\n\n }\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElement(grammarAccess.getLastFormalParameterRule());\n }\n setWithLastConsumed(current, \"varargs\", true, \"...\");\n\n }\n\n }\n\n\n }\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4668:2:\n // ( (lv_name_4_0= rulevariableDeclaratorId ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4669:1:\n // (lv_name_4_0= rulevariableDeclaratorId )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4669:1:\n // (lv_name_4_0= rulevariableDeclaratorId )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4670:3:\n // lv_name_4_0= rulevariableDeclaratorId\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getLastFormalParameterAccess()\n .getNameVariableDeclaratorIdParserRuleCall_0_4_0());\n\n }\n pushFollow(FOLLOW_rulevariableDeclaratorId_in_rulelastFormalParameter10281);\n lv_name_4_0 = rulevariableDeclaratorId();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getLastFormalParameterRule());\n }\n set(current, \"name\", lv_name_4_0, \"variableDeclaratorId\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4688:2:\n // this_formalParameter_5= ruleformalParameter\n {\n if (state.backtracking == 0) {\n\n /* */\n\n }\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getLastFormalParameterAccess().getFormalParameterParserRuleCall_1());\n\n }\n pushFollow(FOLLOW_ruleformalParameter_in_rulelastFormalParameter10313);\n this_formalParameter_5 = ruleformalParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n current = this_formalParameter_5;\n afterParserOrEnumRuleCall();\n\n }\n\n }\n break;\n\n }\n\n\n }\n\n if (state.backtracking == 0) {\n leaveRule();\n }\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 152, rulelastFormalParameter_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "32f479403d071d996847100e781f0a72", "score": "0.6153014", "text": "public final EObject ruleformalParameter() throws RecognitionException {\n EObject current = null;\n int ruleformalParameter_StartIndex = input.index();\n EObject lv_modifiers_0_0 = null;\n\n EObject lv_type_1_0 = null;\n\n EObject lv_name_2_0 = null;\n\n\n enterRule();\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 146)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4438:28: ( (\n // ( (lv_modifiers_0_0= rulevariableModifier ) )* ( (lv_type_1_0= ruleunannType ) ) ( (lv_name_2_0=\n // rulevariableDeclaratorId ) ) ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4439:1: ( (\n // (lv_modifiers_0_0= rulevariableModifier ) )* ( (lv_type_1_0= ruleunannType ) ) ( (lv_name_2_0=\n // rulevariableDeclaratorId ) ) )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4439:1: (\n // ( (lv_modifiers_0_0= rulevariableModifier ) )* ( (lv_type_1_0= ruleunannType ) ) ( (lv_name_2_0=\n // rulevariableDeclaratorId ) ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4439:2: (\n // (lv_modifiers_0_0= rulevariableModifier ) )* ( (lv_type_1_0= ruleunannType ) ) ( (lv_name_2_0=\n // rulevariableDeclaratorId ) )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4439:2:\n // ( (lv_modifiers_0_0= rulevariableModifier ) )*\n loop74 : do {\n int alt74 = 2;\n int LA74_0 = input.LA(1);\n\n if ((LA74_0 == 89 || LA74_0 == 99)) {\n alt74 = 1;\n }\n\n\n switch (alt74) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4440:1:\n // (lv_modifiers_0_0= rulevariableModifier )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4440:1:\n // (lv_modifiers_0_0= rulevariableModifier )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4441:3:\n // lv_modifiers_0_0= rulevariableModifier\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParameterAccess()\n .getModifiersVariableModifierParserRuleCall_0_0());\n\n }\n pushFollow(FOLLOW_rulevariableModifier_in_ruleformalParameter9834);\n lv_modifiers_0_0 = rulevariableModifier();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getFormalParameterRule());\n }\n add(current, \"modifiers\", lv_modifiers_0_0, \"variableModifier\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n break;\n\n default :\n break loop74;\n }\n }\n while (true);\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4457:3:\n // ( (lv_type_1_0= ruleunannType ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4458:1:\n // (lv_type_1_0= ruleunannType )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4458:1:\n // (lv_type_1_0= ruleunannType )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4459:3:\n // lv_type_1_0= ruleunannType\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParameterAccess().getTypeUnannTypeParserRuleCall_1_0());\n\n }\n pushFollow(FOLLOW_ruleunannType_in_ruleformalParameter9856);\n lv_type_1_0 = ruleunannType();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getFormalParameterRule());\n }\n set(current, \"type\", lv_type_1_0, \"unannType\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4475:2:\n // ( (lv_name_2_0= rulevariableDeclaratorId ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4476:1:\n // (lv_name_2_0= rulevariableDeclaratorId )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4476:1:\n // (lv_name_2_0= rulevariableDeclaratorId )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4477:3:\n // lv_name_2_0= rulevariableDeclaratorId\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParameterAccess()\n .getNameVariableDeclaratorIdParserRuleCall_2_0());\n\n }\n pushFollow(FOLLOW_rulevariableDeclaratorId_in_ruleformalParameter9877);\n lv_name_2_0 = rulevariableDeclaratorId();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getFormalParameterRule());\n }\n set(current, \"name\", lv_name_2_0, \"variableDeclaratorId\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if (state.backtracking == 0) {\n leaveRule();\n }\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 146, ruleformalParameter_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "72b710528ec8c712d9f0ac14f3e0926c", "score": "0.6152849", "text": "public final void rule__Procedure_heading__ParametersAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:12803:1: ( ( ruleformal_parameter_list ) )\r\n // InternalPascal.g:12804:2: ( ruleformal_parameter_list )\r\n {\r\n // InternalPascal.g:12804:2: ( ruleformal_parameter_list )\r\n // InternalPascal.g:12805:3: ruleformal_parameter_list\r\n {\r\n before(grammarAccess.getProcedure_headingAccess().getParametersFormal_parameter_listParserRuleCall_2_0()); \r\n pushFollow(FOLLOW_2);\r\n ruleformal_parameter_list();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getProcedure_headingAccess().getParametersFormal_parameter_listParserRuleCall_2_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "cb34a8fd3f8bf00531db16c3e172df1d", "score": "0.61155677", "text": "public List<ParameterDecl> parseFormalParameters() throws IOException\n {\n List<ParameterDecl> params = new LinkedList<ParameterDecl>();\n\n try\n {\n match(Symbol.leftParen);\n params.add(parseParameterDecl());\n while (scanner.getSymbol() == Symbol.comma)\n {\n matchCurrentSymbol();\n params.add(parseParameterDecl());\n }\n match(Symbol.rightParen);\n }\n catch (ParserException e)\n {\n ErrorHandler.getInstance().reportError(e);\n Symbol[] followers = { Symbol.returnRW, Symbol.isRW };\n recover(followers);\n }\n return params;\n }", "title": "" }, { "docid": "e4804dc53e1656f7b3ed150fe677857c", "score": "0.60872537", "text": "public final void entryRuleParameter() throws RecognitionException {\r\n try {\r\n // ../cz.cvut.earlgrey.classmodel.ui/src-gen/cz/cvut/earlgrey/classmodel/ui/contentassist/antlr/internal/InternalClassmodel.g:678:1: ( ruleParameter EOF )\r\n // ../cz.cvut.earlgrey.classmodel.ui/src-gen/cz/cvut/earlgrey/classmodel/ui/contentassist/antlr/internal/InternalClassmodel.g:679:1: ruleParameter EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getParameterRule()); \r\n }\r\n pushFollow(FOLLOW_ruleParameter_in_entryRuleParameter1387);\r\n ruleParameter();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getParameterRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleParameter1394); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "707b19dd66575df0ffc9f2f0f74cf7d2", "score": "0.60472393", "text": "@Override\n public String visit(FormalParameter n, Void argu) throws Exception{\n String type = n.f0.accept(this, null);\n String name = n.f1.accept(this, null);\n\n Entry e = new Entry();\n e.setName(name);\n e.setType(type);\n if (!this.table.insert(e, 2))\n throw new Exception(\"Parameter already declared!\");\n\n return null;\n }", "title": "" }, { "docid": "df447a225e119cadbd602f66c6081fdd", "score": "0.60346186", "text": "public final void entryRuleParameter() throws RecognitionException {\n try {\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:262:1: ( ruleParameter EOF )\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:263:1: ruleParameter EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParameterRule()); \n }\n pushFollow(FOLLOW_ruleParameter_in_entryRuleParameter490);\n ruleParameter();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParameterRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleParameter497); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "21e18651d319db8325526c6c7321fd4c", "score": "0.59634584", "text": "public WType visit(FormalParameterList n, WType argu) {\n ParameterList paras = new ParameterList(n.f0.f1.f0.beginLine);\n ((WMethod)argu).setParas(paras);\n WType _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "91c71076a9ef98eefa0f6efe8da2ee98", "score": "0.5961904", "text": "public final JavaParser.formalParameterDecls_return formalParameterDecls() throws RecognitionException {\n\t\tJavaParser.formalParameterDecls_return retval = new JavaParser.formalParameterDecls_return();\n\t\tretval.start = input.LT(1);\n\t\tint formalParameterDecls_StartIndex = input.index();\n\n\t\tToken c2=null;\n\t\tToken c3=null;\n\t\tParserRuleReturnScope e1 =null;\n\t\tParserRuleReturnScope p1 =null;\n\t\tParserRuleReturnScope p2 =null;\n\t\tParserRuleReturnScope p3 =null;\n\t\tParserRuleReturnScope e2 =null;\n\n\n\t\t retval.params = null;\n\t\t JavaTokenDescr lastComma = null;\n\t\t if (!isBacktracking()) {\n\t\t retval.params = new ParameterListDescr(input.toString(retval.start,input.LT(-1)), start((CommonToken)(retval.start)), -1, line((CommonToken)(retval.start)), position((CommonToken)(retval.start)));\n\t\t }\n\t\t \n\t\ttry {\n\t\t\tif ( state.backtracking>0 && alreadyParsedRule(input, 39) ) { return retval; }\n\n\t\t\t// src/main/resources/parser/Java.g:981:5: (e1= ellipsisParameterDecl |p1= normalParameterDecl (c2= ',' p2= normalParameterDecl )* | (p3= normalParameterDecl c3= ',' )+ e2= ellipsisParameterDecl )\n\t\t\tint alt72=3;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase FINAL:\n\t\t\t\t{\n\t\t\t\tint LA72_1 = input.LA(2);\n\t\t\t\tif ( (synpred96_Java()) ) {\n\t\t\t\t\talt72=1;\n\t\t\t\t}\n\t\t\t\telse if ( (synpred98_Java()) ) {\n\t\t\t\t\talt72=2;\n\t\t\t\t}\n\t\t\t\telse if ( (true) ) {\n\t\t\t\t\talt72=3;\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MONKEYS_AT:\n\t\t\t\t{\n\t\t\t\tint LA72_2 = input.LA(2);\n\t\t\t\tif ( (synpred96_Java()) ) {\n\t\t\t\t\talt72=1;\n\t\t\t\t}\n\t\t\t\telse if ( (synpred98_Java()) ) {\n\t\t\t\t\talt72=2;\n\t\t\t\t}\n\t\t\t\telse if ( (true) ) {\n\t\t\t\t\talt72=3;\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IDENTIFIER:\n\t\t\t\t{\n\t\t\t\tint LA72_3 = input.LA(2);\n\t\t\t\tif ( (synpred96_Java()) ) {\n\t\t\t\t\talt72=1;\n\t\t\t\t}\n\t\t\t\telse if ( (synpred98_Java()) ) {\n\t\t\t\t\talt72=2;\n\t\t\t\t}\n\t\t\t\telse if ( (true) ) {\n\t\t\t\t\talt72=3;\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BOOLEAN:\n\t\t\tcase BYTE:\n\t\t\tcase CHAR:\n\t\t\tcase DOUBLE:\n\t\t\tcase FLOAT:\n\t\t\tcase INT:\n\t\t\tcase LONG:\n\t\t\tcase SHORT:\n\t\t\t\t{\n\t\t\t\tint LA72_4 = input.LA(2);\n\t\t\t\tif ( (synpred96_Java()) ) {\n\t\t\t\t\talt72=1;\n\t\t\t\t}\n\t\t\t\telse if ( (synpred98_Java()) ) {\n\t\t\t\t\talt72=2;\n\t\t\t\t}\n\t\t\t\telse if ( (true) ) {\n\t\t\t\t\talt72=3;\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (state.backtracking>0) {state.failed=true; return retval;}\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 72, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt72) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:981:9: e1= ellipsisParameterDecl\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_ellipsisParameterDecl_in_formalParameterDecls3878);\n\t\t\t\t\te1=ellipsisParameterDecl();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\tif ( state.backtracking==0 ) { retval.params.addParameter((e1!=null?((JavaParser.ellipsisParameterDecl_return)e1).param:null)); }\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:982:9: p1= normalParameterDecl (c2= ',' p2= normalParameterDecl )*\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_normalParameterDecl_in_formalParameterDecls3892);\n\t\t\t\t\tp1=normalParameterDecl();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\tif ( state.backtracking==0 ) { retval.params.addParameter((p1!=null?((JavaParser.normalParameterDecl_return)p1).param:null)); }\n\t\t\t\t\t// src/main/resources/parser/Java.g:983:9: (c2= ',' p2= normalParameterDecl )*\n\t\t\t\t\tloop70:\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tint alt70=2;\n\t\t\t\t\t\tint LA70_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA70_0==COMMA) ) {\n\t\t\t\t\t\t\talt70=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (alt70) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// src/main/resources/parser/Java.g:983:10: c2= ',' p2= normalParameterDecl\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tc2=(Token)match(input,COMMA,FOLLOW_COMMA_in_formalParameterDecls3909); if (state.failed) return retval;\n\t\t\t\t\t\t\tpushFollow(FOLLOW_normalParameterDecl_in_formalParameterDecls3913);\n\t\t\t\t\t\t\tp2=normalParameterDecl();\n\t\t\t\t\t\t\tstate._fsp--;\n\t\t\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\t\t (p2!=null?((JavaParser.normalParameterDecl_return)p2).param:null).setStart(start((CommonToken)c2));\n\t\t\t\t\t\t\t (p2!=null?((JavaParser.normalParameterDecl_return)p2).param:null).setStartComma( new JavaTokenDescr(ElementType.JAVA_COMMA, (c2!=null?c2.getText():null), start((CommonToken)c2), stop((CommonToken)c2), line(c2), position(c2)) );\n\t\t\t\t\t\t\t retval.params.addParameter((p2!=null?((JavaParser.normalParameterDecl_return)p2).param:null));\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak loop70;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:989:9: (p3= normalParameterDecl c3= ',' )+ e2= ellipsisParameterDecl\n\t\t\t\t\t{\n\t\t\t\t\t// src/main/resources/parser/Java.g:989:9: (p3= normalParameterDecl c3= ',' )+\n\t\t\t\t\tint cnt71=0;\n\t\t\t\t\tloop71:\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tint alt71=2;\n\t\t\t\t\t\tswitch ( input.LA(1) ) {\n\t\t\t\t\t\tcase FINAL:\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint LA71_1 = input.LA(2);\n\t\t\t\t\t\t\tif ( (synpred99_Java()) ) {\n\t\t\t\t\t\t\t\talt71=1;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase MONKEYS_AT:\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint LA71_2 = input.LA(2);\n\t\t\t\t\t\t\tif ( (synpred99_Java()) ) {\n\t\t\t\t\t\t\t\talt71=1;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase IDENTIFIER:\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint LA71_3 = input.LA(2);\n\t\t\t\t\t\t\tif ( (synpred99_Java()) ) {\n\t\t\t\t\t\t\t\talt71=1;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase BOOLEAN:\n\t\t\t\t\t\tcase BYTE:\n\t\t\t\t\t\tcase CHAR:\n\t\t\t\t\t\tcase DOUBLE:\n\t\t\t\t\t\tcase FLOAT:\n\t\t\t\t\t\tcase INT:\n\t\t\t\t\t\tcase LONG:\n\t\t\t\t\t\tcase SHORT:\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint LA71_4 = input.LA(2);\n\t\t\t\t\t\t\tif ( (synpred99_Java()) ) {\n\t\t\t\t\t\t\t\talt71=1;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch (alt71) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// src/main/resources/parser/Java.g:989:10: p3= normalParameterDecl c3= ','\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpushFollow(FOLLOW_normalParameterDecl_in_formalParameterDecls3939);\n\t\t\t\t\t\t\tp3=normalParameterDecl();\n\t\t\t\t\t\t\tstate._fsp--;\n\t\t\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\t\t if (lastComma != null) {\n\t\t\t\t\t\t\t (p3!=null?((JavaParser.normalParameterDecl_return)p3).param:null).setStart(lastComma.getStart());\n\t\t\t\t\t\t\t (p3!=null?((JavaParser.normalParameterDecl_return)p3).param:null).setStartComma(lastComma);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t retval.params.addParameter((p3!=null?((JavaParser.normalParameterDecl_return)p3).param:null));\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\tc3=(Token)match(input,COMMA,FOLLOW_COMMA_in_formalParameterDecls3953); if (state.failed) return retval;\n\t\t\t\t\t\t\tif ( state.backtracking==0 ) { lastComma = new JavaTokenDescr(ElementType.JAVA_COMMA, (c3!=null?c3.getText():null), start((CommonToken)c3), stop((CommonToken)c3), line(c3), position(c3)); }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tif ( cnt71 >= 1 ) break loop71;\n\t\t\t\t\t\t\tif (state.backtracking>0) {state.failed=true; return retval;}\n\t\t\t\t\t\t\tEarlyExitException eee = new EarlyExitException(71, input);\n\t\t\t\t\t\t\tthrow eee;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcnt71++;\n\t\t\t\t\t}\n\n\t\t\t\t\tpushFollow(FOLLOW_ellipsisParameterDecl_in_formalParameterDecls3979);\n\t\t\t\t\te2=ellipsisParameterDecl();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t (e2!=null?((JavaParser.ellipsisParameterDecl_return)e2).param:null).setStart(lastComma.getStart());\n\t\t\t\t\t (e2!=null?((JavaParser.ellipsisParameterDecl_return)e2).param:null).setStartComma(lastComma);\n\t\t\t\t\t retval.params.addParameter((e2!=null?((JavaParser.ellipsisParameterDecl_return)e2).param:null));\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tif ( state.backtracking==0 ) {\n\t\t\t updateOnAfter(retval.params, input.toString(retval.start,input.LT(-1)), (CommonToken)(retval.stop));\n\t\t\t }\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t\tif ( state.backtracking>0 ) { memoize(input, 39, formalParameterDecls_StartIndex); }\n\n\t\t}\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "aa447ffcf54bfd85eacc58b049ffdb01", "score": "0.59181947", "text": "public final void formalParameters() throws RecognitionException {\n\t\tint formalParameters_StartIndex = input.index();\n\n\t\tToken p1=null;\n\t\tToken p2=null;\n\t\tParserRuleReturnScope l =null;\n\n\t\ttry {\n\t\t\tif ( state.backtracking>0 && alreadyParsedRule(input, 38) ) { return; }\n\n\t\t\t// src/main/resources/parser/Java.g:964:5: (p1= '(' (l= formalParameterDecls )? p2= ')' )\n\t\t\t// src/main/resources/parser/Java.g:964:9: p1= '(' (l= formalParameterDecls )? p2= ')'\n\t\t\t{\n\t\t\tp1=(Token)match(input,LPAREN,FOLLOW_LPAREN_in_formalParameters3790); if (state.failed) return;\n\t\t\tif ( state.backtracking==0 ) { setFormalParamsStart(ElementType.JAVA_LPAREN, (p1!=null?p1.getText():null), start((CommonToken)p1), stop((CommonToken)p1), line(p1), position(p1)); }\n\t\t\t// src/main/resources/parser/Java.g:965:9: (l= formalParameterDecls )?\n\t\t\tint alt69=2;\n\t\t\tint LA69_0 = input.LA(1);\n\t\t\tif ( (LA69_0==BOOLEAN||LA69_0==BYTE||LA69_0==CHAR||LA69_0==DOUBLE||LA69_0==FINAL||LA69_0==FLOAT||LA69_0==IDENTIFIER||LA69_0==INT||LA69_0==LONG||LA69_0==MONKEYS_AT||LA69_0==SHORT) ) {\n\t\t\t\talt69=1;\n\t\t\t}\n\t\t\tswitch (alt69) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:965:10: l= formalParameterDecls\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_formalParameterDecls_in_formalParameters3806);\n\t\t\t\t\tl=formalParameterDecls();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\tif ( state.backtracking==0 ) { processParameterList((l!=null?((JavaParser.formalParameterDecls_return)l).params:null)); }\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tp2=(Token)match(input,RPAREN,FOLLOW_RPAREN_in_formalParameters3833); if (state.failed) return;\n\t\t\tif ( state.backtracking==0 ) { setFormalParamsStop(ElementType.JAVA_RPAREN, (p2!=null?p2.getText():null), start((CommonToken)p2), stop((CommonToken)p2), line(p2), position(p2)); }\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t\tif ( state.backtracking>0 ) { memoize(input, 38, formalParameters_StartIndex); }\n\n\t\t}\n\t}", "title": "" }, { "docid": "6bbe9896d6930b0bd10c8c11b6b7836c", "score": "0.58746386", "text": "public R visit(FormalParameterList n, A argu) {\n R _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "6bbe9896d6930b0bd10c8c11b6b7836c", "score": "0.58746386", "text": "public R visit(FormalParameterList n, A argu) {\n R _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "d94f1defaa9a75b9bc6f3842e56279b6", "score": "0.58468187", "text": "public final EObject entryRuletypeParameters() throws RecognitionException {\n EObject current = null;\n int entryRuletypeParameters_StartIndex = input.index();\n EObject iv_ruletypeParameters = null;\n\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 77)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2342:2:\n // (iv_ruletypeParameters= ruletypeParameters EOF )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2343:2:\n // iv_ruletypeParameters= ruletypeParameters EOF\n {\n if (state.backtracking == 0) {\n newCompositeNode(grammarAccess.getTypeParametersRule());\n }\n pushFollow(FOLLOW_ruletypeParameters_in_entryRuletypeParameters5164);\n iv_ruletypeParameters = ruletypeParameters();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n current = iv_ruletypeParameters;\n }\n match(input, EOF, FOLLOW_EOF_in_entryRuletypeParameters5174);\n if (state.failed)\n return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 77, entryRuletypeParameters_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "237f0ce6e74fda71de3871adf7cae342", "score": "0.58420134", "text": "public final void ruleformal_parameter_list() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:1789:2: ( ( ( rule__Formal_parameter_list__Group__0 ) ) )\r\n // InternalPascal.g:1790:2: ( ( rule__Formal_parameter_list__Group__0 ) )\r\n {\r\n // InternalPascal.g:1790:2: ( ( rule__Formal_parameter_list__Group__0 ) )\r\n // InternalPascal.g:1791:3: ( rule__Formal_parameter_list__Group__0 )\r\n {\r\n before(grammarAccess.getFormal_parameter_listAccess().getGroup()); \r\n // InternalPascal.g:1792:3: ( rule__Formal_parameter_list__Group__0 )\r\n // InternalPascal.g:1792:4: rule__Formal_parameter_list__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Formal_parameter_list__Group__0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getFormal_parameter_listAccess().getGroup()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "ccf4b5d2c75873e3504eceabf21aac93", "score": "0.5812847", "text": "public final void entryRuleformal_parameter_section() throws RecognitionException {\r\n try {\r\n // InternalPascal.g:1802:1: ( ruleformal_parameter_section EOF )\r\n // InternalPascal.g:1803:1: ruleformal_parameter_section EOF\r\n {\r\n before(grammarAccess.getFormal_parameter_sectionRule()); \r\n pushFollow(FOLLOW_1);\r\n ruleformal_parameter_section();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getFormal_parameter_sectionRule()); \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "990b00b99b1ba75c7164484ffe91459a", "score": "0.5805105", "text": "public final void synpred83_InternalType_fragment() throws RecognitionException {\n Token otherlv_1 = null;\n EObject lv_parameters_2_0 = null;\n\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4355:4:\n // (otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4355:4:\n // otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) )\n {\n otherlv_1 = (Token) match(input, 68, FOLLOW_68_in_synpred83_InternalType9653);\n if (state.failed)\n return;\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4359:1: (\n // (lv_parameters_2_0= ruleformalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4360:1:\n // (lv_parameters_2_0= ruleformalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4360:1:\n // (lv_parameters_2_0= ruleformalParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4361:3:\n // lv_parameters_2_0= ruleformalParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParametersAccess()\n .getParametersFormalParameterParserRuleCall_0_1_1_0());\n\n }\n pushFollow(FOLLOW_ruleformalParameter_in_synpred83_InternalType9674);\n lv_parameters_2_0 = ruleformalParameter();\n\n state._fsp--;\n if (state.failed)\n return;\n\n }\n\n\n }\n\n\n }\n }", "title": "" }, { "docid": "98186cbefded93fb11bfe2f7ee47d8aa", "score": "0.5792607", "text": "public final EObject entryRulelastFormalParameter() throws RecognitionException {\n EObject current = null;\n int entryRulelastFormalParameter_StartIndex = input.index();\n EObject iv_rulelastFormalParameter = null;\n\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 151)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4587:2:\n // (iv_rulelastFormalParameter= rulelastFormalParameter EOF )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4588:2:\n // iv_rulelastFormalParameter= rulelastFormalParameter EOF\n {\n if (state.backtracking == 0) {\n newCompositeNode(grammarAccess.getLastFormalParameterRule());\n }\n pushFollow(FOLLOW_rulelastFormalParameter_in_entryRulelastFormalParameter10128);\n iv_rulelastFormalParameter = rulelastFormalParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n current = iv_rulelastFormalParameter;\n }\n match(input, EOF, FOLLOW_EOF_in_entryRulelastFormalParameter10138);\n if (state.failed)\n return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 151, entryRulelastFormalParameter_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "7c1eddeb8e3356f0c6aa4c999ee3b34f", "score": "0.5754438", "text": "public final EObject entryRuleParameter() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleParameter = null;\n\n\n try {\n // InternalSimplepalladio.g:1046:50: (iv_ruleParameter= ruleParameter EOF )\n // InternalSimplepalladio.g:1047:2: iv_ruleParameter= ruleParameter EOF\n {\n newCompositeNode(grammarAccess.getParameterRule()); \n pushFollow(FOLLOW_1);\n iv_ruleParameter=ruleParameter();\n\n state._fsp--;\n\n current =iv_ruleParameter; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "199d6a825be4d47eee005b795e36b1e1", "score": "0.5711315", "text": "public final void entryRuleJvmFormalParameter() throws RecognitionException {\n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1470:1: ( ruleJvmFormalParameter EOF )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1471:1: ruleJvmFormalParameter EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getJvmFormalParameterRule()); \n }\n pushFollow(FOLLOW_ruleJvmFormalParameter_in_entryRuleJvmFormalParameter3074);\n ruleJvmFormalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getJvmFormalParameterRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleJvmFormalParameter3081); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "f7c4bad9b9e1a538449263bb231ca5be", "score": "0.57112306", "text": "public final void rule__Formal_parameter_list__ParametersAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:12818:1: ( ( ruleformal_parameter_section ) )\r\n // InternalPascal.g:12819:2: ( ruleformal_parameter_section )\r\n {\r\n // InternalPascal.g:12819:2: ( ruleformal_parameter_section )\r\n // InternalPascal.g:12820:3: ruleformal_parameter_section\r\n {\r\n before(grammarAccess.getFormal_parameter_listAccess().getParametersFormal_parameter_sectionParserRuleCall_1_0()); \r\n pushFollow(FOLLOW_2);\r\n ruleformal_parameter_section();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getFormal_parameter_listAccess().getParametersFormal_parameter_sectionParserRuleCall_1_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "1f2af97f60b76a788bc5aae47b08a5e8", "score": "0.5685964", "text": "public void visit(FormalParameter n, EntryInfo argu)//here argu should be an EntryInfoMethod\n {\n \tEntryInfoVariable variableInfo = new EntryInfoVariable();\n \tvariableInfo.set_id_info(n.f1);\n \tvariableInfo.set_type(n.f0);\n \t\n \targu.add_para(variableInfo.get_type());\n \targu.v_put_m2sp(variableInfo.get_name(), variableInfo);\n \t\n \tif(argu instanceof EntryInfoMethodM2SP)\n \t{\n \t\t((EntryInfoMethodM2SP) argu).add_parameter(variableInfo.get_name());\n \t}\n \t\n \tn.f0.accept(this, argu);\n n.f1.accept(this, argu);\n }", "title": "" }, { "docid": "a49bf16fbdf99d0e025ea37bb73025a5", "score": "0.5663737", "text": "public final EObject entryRuletypeParameterList() throws RecognitionException {\n EObject current = null;\n int entryRuletypeParameterList_StartIndex = input.index();\n EObject iv_ruletypeParameterList = null;\n\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 79)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2383:2:\n // (iv_ruletypeParameterList= ruletypeParameterList EOF )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2384:2:\n // iv_ruletypeParameterList= ruletypeParameterList EOF\n {\n if (state.backtracking == 0) {\n newCompositeNode(grammarAccess.getTypeParameterListRule());\n }\n pushFollow(FOLLOW_ruletypeParameterList_in_entryRuletypeParameterList5283);\n iv_ruletypeParameterList = ruletypeParameterList();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n current = iv_ruletypeParameterList;\n }\n match(input, EOF, FOLLOW_EOF_in_entryRuletypeParameterList5293);\n if (state.failed)\n return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 79, entryRuletypeParameterList_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "a807020f14a16819ea960c084e58887c", "score": "0.56493247", "text": "public final Boolean entryRuleParameter() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleParameter = null;\n\n\n try {\n // PsiInternalElementMatcherTestLanguage.g:1282:51: (iv_ruleParameter= ruleParameter EOF )\n // PsiInternalElementMatcherTestLanguage.g:1283:2: iv_ruleParameter= ruleParameter EOF\n {\n markComposite(elementTypeProvider.getParameterElementType()); \n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleParameter=ruleParameter();\n\n state._fsp--;\n\n current =iv_ruleParameter; \n match(input,EOF,FollowSets000.FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "d00f275b553527d4b1415d2ecc157c5a", "score": "0.5647353", "text": "public final void formalParameters() throws RecognitionException {\n\t\tint formalParameters_StartIndex = input.index();\n\n\t\ttry {\n\t\t\tif ( state.backtracking>0 && alreadyParsedRule(input, 60) ) { return; }\n\n\t\t\t// Z:\\\\MS CS\\\\SEM 3\\\\OOAD CECS 575\\\\Assignment 4\\\\ANTLR_PROJ\\\\antlr_proj.g:594:5: ( '(' ( formalParameterDecls )? ')' )\n\t\t\t// Z:\\\\MS CS\\\\SEM 3\\\\OOAD CECS 575\\\\Assignment 4\\\\ANTLR_PROJ\\\\antlr_proj.g:594:9: '(' ( formalParameterDecls )? ')'\n\t\t\t{\n\t\t\tmatch(input,32,FOLLOW_32_in_formalParameters2513); if (state.failed) return;\n\t\t\t// Z:\\\\MS CS\\\\SEM 3\\\\OOAD CECS 575\\\\Assignment 4\\\\ANTLR_PROJ\\\\antlr_proj.g:594:13: ( formalParameterDecls )?\n\t\t\tint alt79=2;\n\t\t\tint LA79_0 = input.LA(1);\n\t\t\tif ( (LA79_0==Identifier||LA79_0==54||LA79_0==60||LA79_0==62||LA79_0==65||LA79_0==70||LA79_0==74||LA79_0==76||LA79_0==82||LA79_0==84||LA79_0==93) ) {\n\t\t\t\talt79=1;\n\t\t\t}\n\t\t\tswitch (alt79) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// Z:\\\\MS CS\\\\SEM 3\\\\OOAD CECS 575\\\\Assignment 4\\\\ANTLR_PROJ\\\\antlr_proj.g:594:13: formalParameterDecls\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_formalParameterDecls_in_formalParameters2515);\n\t\t\t\t\tformalParameterDecls();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tmatch(input,33,FOLLOW_33_in_formalParameters2518); if (state.failed) return;\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t\tif ( state.backtracking>0 ) { memoize(input, 60, formalParameters_StartIndex); }\n\n\t\t}\n\t}", "title": "" }, { "docid": "327e4480b1f34f0eff21a9f3df7cbda1", "score": "0.5640502", "text": "public final void rule__Formal_parameter_list__ParametersAssignment_2_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:12833:1: ( ( ruleformal_parameter_section ) )\r\n // InternalPascal.g:12834:2: ( ruleformal_parameter_section )\r\n {\r\n // InternalPascal.g:12834:2: ( ruleformal_parameter_section )\r\n // InternalPascal.g:12835:3: ruleformal_parameter_section\r\n {\r\n before(grammarAccess.getFormal_parameter_listAccess().getParametersFormal_parameter_sectionParserRuleCall_2_1_0()); \r\n pushFollow(FOLLOW_2);\r\n ruleformal_parameter_section();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getFormal_parameter_listAccess().getParametersFormal_parameter_sectionParserRuleCall_2_1_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3a0b854397b74e5724f1788cae5006ca", "score": "0.5628711", "text": "@Override\n public Void visitParameterDeclaration(final IRNode node) {\n declarations.add(node);\n return null;\n }", "title": "" }, { "docid": "6d0d407f1d81292ae31450c6f56a6317", "score": "0.56190765", "text": "public TypeVariable visit(FormalParameterList n, TypeBasic argu) {\r\n\tTypeVariable _ret=null;\r\n n.f0.accept(this, argu);\r\n n.f1.accept(this, argu);\r\n return _ret;\r\n}", "title": "" }, { "docid": "3d9512337e9b65a275efdcce27564f82", "score": "0.5607552", "text": "public final void entryRuleDeclaredParameter() throws RecognitionException {\n try {\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:882:1: ( ruleDeclaredParameter EOF )\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:883:1: ruleDeclaredParameter EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDeclaredParameterRule()); \n }\n pushFollow(FOLLOW_ruleDeclaredParameter_in_entryRuleDeclaredParameter1814);\n ruleDeclaredParameter();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDeclaredParameterRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleDeclaredParameter1821); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "4b5b0f1c1efd88169e0b7abe2937471d", "score": "0.5561035", "text": "public final void synpred85_InternalType_fragment() throws RecognitionException {\n Token otherlv_4 = null;\n EObject lv_parameters_5_0 = null;\n\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4396:4:\n // (otherlv_4= ',' ( (lv_parameters_5_0= ruleformalParameter ) ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4396:4:\n // otherlv_4= ',' ( (lv_parameters_5_0= ruleformalParameter ) )\n {\n otherlv_4 = (Token) match(input, 68, FOLLOW_68_in_synpred85_InternalType9718);\n if (state.failed)\n return;\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4400:1: (\n // (lv_parameters_5_0= ruleformalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4401:1:\n // (lv_parameters_5_0= ruleformalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4401:1:\n // (lv_parameters_5_0= ruleformalParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4402:3:\n // lv_parameters_5_0= ruleformalParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParametersAccess()\n .getParametersFormalParameterParserRuleCall_1_1_1_0());\n\n }\n pushFollow(FOLLOW_ruleformalParameter_in_synpred85_InternalType9739);\n lv_parameters_5_0 = ruleformalParameter();\n\n state._fsp--;\n if (state.failed)\n return;\n\n }\n\n\n }\n\n\n }\n }", "title": "" }, { "docid": "8b9c68542fe39f131a59141e7a84a37e", "score": "0.55493337", "text": "public final void entryRuleJvmFormalParameter() throws RecognitionException {\n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:1162:1: ( ruleJvmFormalParameter EOF )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:1163:1: ruleJvmFormalParameter EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getJvmFormalParameterRule()); \n }\n pushFollow(FOLLOW_ruleJvmFormalParameter_in_entryRuleJvmFormalParameter2414);\n ruleJvmFormalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getJvmFormalParameterRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleJvmFormalParameter2421); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "dbe73adf5a9a469c2b6ac7a06590c891", "score": "0.5547464", "text": "public final EObject entryRuletypeParameter() throws RecognitionException {\n EObject current = null;\n int entryRuletypeParameter_StartIndex = input.index();\n EObject iv_ruletypeParameter = null;\n\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 27)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:990:2:\n // (iv_ruletypeParameter= ruletypeParameter EOF )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:991:2:\n // iv_ruletypeParameter= ruletypeParameter EOF\n {\n if (state.backtracking == 0) {\n newCompositeNode(grammarAccess.getTypeParameterRule());\n }\n pushFollow(FOLLOW_ruletypeParameter_in_entryRuletypeParameter1884);\n iv_ruletypeParameter = ruletypeParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n current = iv_ruletypeParameter;\n }\n match(input, EOF, FOLLOW_EOF_in_entryRuletypeParameter1894);\n if (state.failed)\n return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 27, entryRuletypeParameter_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "3e3b7a509aaa318e11a232441014693a", "score": "0.5529137", "text": "public final EObject ruletypeParameterList() throws RecognitionException {\n EObject current = null;\n int ruletypeParameterList_StartIndex = input.index();\n Token otherlv_1 = null;\n EObject lv_typeParameters_0_0 = null;\n\n EObject lv_typeParameters_2_0 = null;\n\n\n enterRule();\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 80)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2394:28: ( (\n // ( (lv_typeParameters_0_0= ruletypeParameter ) ) (otherlv_1= ',' ( (lv_typeParameters_2_0= ruletypeParameter\n // ) ) )* ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2395:1: ( (\n // (lv_typeParameters_0_0= ruletypeParameter ) ) (otherlv_1= ',' ( (lv_typeParameters_2_0= ruletypeParameter )\n // ) )* )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2395:1: (\n // ( (lv_typeParameters_0_0= ruletypeParameter ) ) (otherlv_1= ',' ( (lv_typeParameters_2_0=\n // ruletypeParameter ) ) )* )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2395:2: (\n // (lv_typeParameters_0_0= ruletypeParameter ) ) (otherlv_1= ',' ( (lv_typeParameters_2_0= ruletypeParameter\n // ) ) )*\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2395:2:\n // ( (lv_typeParameters_0_0= ruletypeParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2396:1:\n // (lv_typeParameters_0_0= ruletypeParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2396:1:\n // (lv_typeParameters_0_0= ruletypeParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2397:3:\n // lv_typeParameters_0_0= ruletypeParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getTypeParameterListAccess()\n .getTypeParametersTypeParameterParserRuleCall_0_0());\n\n }\n pushFollow(FOLLOW_ruletypeParameter_in_ruletypeParameterList5339);\n lv_typeParameters_0_0 = ruletypeParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getTypeParameterListRule());\n }\n add(current, \"typeParameters\", lv_typeParameters_0_0, \"typeParameter\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2413:2:\n // (otherlv_1= ',' ( (lv_typeParameters_2_0= ruletypeParameter ) ) )*\n loop40 : do {\n int alt40 = 2;\n int LA40_0 = input.LA(1);\n\n if ((LA40_0 == 68)) {\n alt40 = 1;\n }\n\n\n switch (alt40) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2413:4:\n // otherlv_1= ',' ( (lv_typeParameters_2_0= ruletypeParameter ) )\n {\n otherlv_1 = (Token) match(input, 68, FOLLOW_68_in_ruletypeParameterList5352);\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n newLeafNode(otherlv_1, grammarAccess.getTypeParameterListAccess().getCommaKeyword_1_0());\n\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2417:1:\n // ( (lv_typeParameters_2_0= ruletypeParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2418:1:\n // (lv_typeParameters_2_0= ruletypeParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2418:1:\n // (lv_typeParameters_2_0= ruletypeParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2419:3:\n // lv_typeParameters_2_0= ruletypeParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getTypeParameterListAccess()\n .getTypeParametersTypeParameterParserRuleCall_1_1_0());\n\n }\n pushFollow(FOLLOW_ruletypeParameter_in_ruletypeParameterList5373);\n lv_typeParameters_2_0 = ruletypeParameter();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getTypeParameterListRule());\n }\n add(current, \"typeParameters\", lv_typeParameters_2_0, \"typeParameter\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n default :\n break loop40;\n }\n }\n while (true);\n\n\n }\n\n\n }\n\n if (state.backtracking == 0) {\n leaveRule();\n }\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 80, ruletypeParameterList_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "c8c48a347d07f3ef9f6d7e171e0d1ca4", "score": "0.5512682", "text": "public R visit(FormalParameter n, A argu) {\n R _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "e4a6c8392a06a13eaa6b89b51fabe424", "score": "0.54245085", "text": "public R visit(FormalParameter n, A argu) {\n R _ret=null;\n n.f0.accept(this, argu);\n isFormalParam = true;\n varName = (String) n.f1.accept(this, argu);\n isFormalParam = false;\n return _ret;\n }", "title": "" }, { "docid": "6609af0fbc28b7748b51579e17c4d467", "score": "0.5406134", "text": "@Override\n public String visit(FormalParameterList n, Void argu) throws Exception {\n\n this.visit(n.f0, argu);\n\n if (n.f1 != null)\n this.visit(n.f1, argu);\n\n return null;\n }", "title": "" }, { "docid": "a1ec344b43200d3658b57280159ee559", "score": "0.53883827", "text": "public final EObject entryRuleJvmFormalParameter() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleJvmFormalParameter = null;\n\n\n try {\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4221:2: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF )\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4222:2: iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getJvmFormalParameterRule()); \n }\n pushFollow(FOLLOW_ruleJvmFormalParameter_in_entryRuleJvmFormalParameter9937);\n iv_ruleJvmFormalParameter=ruleJvmFormalParameter();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleJvmFormalParameter; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleJvmFormalParameter9947); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "eced75cd3f1a8f3ab00725d5b11973d4", "score": "0.5383961", "text": "public final GalaxyXSemanticParser.parameter_return parameter() throws RecognitionException {\r\n GalaxyXSemanticParser.parameter_return retval = new GalaxyXSemanticParser.parameter_return();\r\n retval.start = input.LT(1);\r\n int parameter_StartIndex = input.index();\r\n CommonTree root_0 = null;\r\n\r\n Token IDENTIFIER59=null;\r\n GalaxyXSemanticParser.type_return type58 = null;\r\n\r\n\r\n CommonTree IDENTIFIER59_tree=null;\r\n RewriteRuleTokenStream stream_IDENTIFIER=new RewriteRuleTokenStream(adaptor,\"token IDENTIFIER\");\r\n RewriteRuleSubtreeStream stream_type=new RewriteRuleSubtreeStream(adaptor,\"rule type\");\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return retval; }\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\src\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXSemanticParser.g:103:2: ( type IDENTIFIER -> ^( PARAMETER type ) )\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\src\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXSemanticParser.g:103:4: type IDENTIFIER\r\n {\r\n pushFollow(FOLLOW_type_in_parameter527);\r\n type58=type();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_type.add(type58.getTree());\r\n IDENTIFIER59=(Token)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_parameter529); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_IDENTIFIER.add(IDENTIFIER59);\r\n\r\n\r\n\r\n // AST REWRITE\r\n // elements: type\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 104:3: -> ^( PARAMETER type )\r\n {\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\src\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXSemanticParser.g:105:3: ^( PARAMETER type )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(PARAMETER, \"PARAMETER\"), root_1);\r\n\r\n adaptor.addChild(root_1, stream_type.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n retval.tree = root_0;}\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n finally {\r\n if ( state.backtracking>0 ) { memoize(input, 8, parameter_StartIndex); }\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "b6f881e416aa84b445ce967c7fca93a1", "score": "0.5368725", "text": "public TypeVariable visit(FormalParameter n, TypeBasic argu) {\r\n\tTypeVariable _ret=null;\r\n n.f0.accept(this, argu);\r\n n.f1.accept(this, argu);\r\n return _ret;\r\n}", "title": "" }, { "docid": "03716752e11f5d0061ea8de5b98b15f7", "score": "0.5348134", "text": "public WType visit(FormalParameterRest n, WType argu) {\n WType _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "9156de62d70cf3f41006816f17509ce7", "score": "0.5342912", "text": "public final void ruleformal_parameter_section() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:1814:2: ( ( ( rule__Formal_parameter_section__Alternatives ) ) )\r\n // InternalPascal.g:1815:2: ( ( rule__Formal_parameter_section__Alternatives ) )\r\n {\r\n // InternalPascal.g:1815:2: ( ( rule__Formal_parameter_section__Alternatives ) )\r\n // InternalPascal.g:1816:3: ( rule__Formal_parameter_section__Alternatives )\r\n {\r\n before(grammarAccess.getFormal_parameter_sectionAccess().getAlternatives()); \r\n // InternalPascal.g:1817:3: ( rule__Formal_parameter_section__Alternatives )\r\n // InternalPascal.g:1817:4: rule__Formal_parameter_section__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Formal_parameter_section__Alternatives();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getFormal_parameter_sectionAccess().getAlternatives()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "56cda97ea52370fc6f636a8b607ea957", "score": "0.5321086", "text": "public R visit(FormalParameterRest n, A argu) {\n R _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "56cda97ea52370fc6f636a8b607ea957", "score": "0.5321086", "text": "public R visit(FormalParameterRest n, A argu) {\n R _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "434f331b80ddaf1ac37b67a6febc1a10", "score": "0.5313384", "text": "public final EObject entryRuleargumentList() throws RecognitionException {\n EObject current = null;\n int entryRuleargumentList_StartIndex = input.index();\n EObject iv_ruleargumentList = null;\n\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 253)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:7676:2:\n // (iv_ruleargumentList= ruleargumentList EOF )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:7677:2:\n // iv_ruleargumentList= ruleargumentList EOF\n {\n if (state.backtracking == 0) {\n newCompositeNode(grammarAccess.getArgumentListRule());\n }\n pushFollow(FOLLOW_ruleargumentList_in_entryRuleargumentList17037);\n iv_ruleargumentList = ruleargumentList();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n current = iv_ruleargumentList;\n }\n match(input, EOF, FOLLOW_EOF_in_entryRuleargumentList17047);\n if (state.failed)\n return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 253, entryRuleargumentList_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "4899fe46e9e7aa040361d92ee73521ee", "score": "0.5288864", "text": "@Override\n public String visit(FormalParameterTail n, Void argu) throws Exception {\n\n this.visit(n.f0, argu);\n\n return null;\n }", "title": "" }, { "docid": "27d49eb52df36b8234c95b4277521a6c", "score": "0.52797884", "text": "public TypeVariable visit(FormalParameterRest n, TypeBasic argu) {\r\n\tTypeVariable _ret=null;\r\n n.f0.accept(this, argu);\r\n n.f1.accept(this, argu);\r\n return _ret;\r\n}", "title": "" }, { "docid": "09d9baee2baa29e17e879ce34143a8b5", "score": "0.5256087", "text": "public final void rule__ParameterList__ParamsDeclAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGo.g:16105:1: ( ( ruleparameterDecl ) )\n // InternalGo.g:16106:2: ( ruleparameterDecl )\n {\n // InternalGo.g:16106:2: ( ruleparameterDecl )\n // InternalGo.g:16107:3: ruleparameterDecl\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParameterListAccess().getParamsDeclParameterDeclParserRuleCall_1_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleparameterDecl();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParameterListAccess().getParamsDeclParameterDeclParserRuleCall_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6344ff5b837f5af2c26a736bf3a1f7ec", "score": "0.52377546", "text": "@Override\n public void visit(FormalParameterList n, MSymbol argu) {\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n }", "title": "" }, { "docid": "c20e776d80d77e20424fa899efca2e61", "score": "0.52194387", "text": "public final EObject ruleJvmFormalParameter() throws RecognitionException {\n EObject current = null;\n\n EObject lv_parameterType_0_0 = null;\n\n AntlrDatatypeRuleToken lv_name_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalModelDsl.g:5028:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) )\n // InternalModelDsl.g:5029:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) )\n {\n // InternalModelDsl.g:5029:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) )\n // InternalModelDsl.g:5030:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) )\n {\n // InternalModelDsl.g:5030:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )?\n int alt83=2;\n int LA83_0 = input.LA(1);\n\n if ( (LA83_0==RULE_ID) ) {\n int LA83_1 = input.LA(2);\n\n if ( (LA83_1==RULE_ID||LA83_1==36||LA83_1==62||LA83_1==69) ) {\n alt83=1;\n }\n }\n else if ( (LA83_0==49||LA83_0==66) ) {\n alt83=1;\n }\n switch (alt83) {\n case 1 :\n // InternalModelDsl.g:5031:4: (lv_parameterType_0_0= ruleJvmTypeReference )\n {\n // InternalModelDsl.g:5031:4: (lv_parameterType_0_0= ruleJvmTypeReference )\n // InternalModelDsl.g:5032:5: lv_parameterType_0_0= ruleJvmTypeReference\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_4);\n lv_parameterType_0_0=ruleJvmTypeReference();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getJvmFormalParameterRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"parameterType\",\n \t\t\t\t\t\tlv_parameterType_0_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.xbase.Xtype.JvmTypeReference\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n // InternalModelDsl.g:5049:3: ( (lv_name_1_0= ruleValidID ) )\n // InternalModelDsl.g:5050:4: (lv_name_1_0= ruleValidID )\n {\n // InternalModelDsl.g:5050:4: (lv_name_1_0= ruleValidID )\n // InternalModelDsl.g:5051:5: lv_name_1_0= ruleValidID\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_name_1_0=ruleValidID();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getJvmFormalParameterRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.xbase.Xtype.ValidID\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "5b1dc5def2834ac455af7faaa118a761", "score": "0.5217051", "text": "public final EObject entryRuleJvmFormalParameter() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleJvmFormalParameter = null;\n\n\n try {\n // InternalModelDsl.g:5015:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF )\n // InternalModelDsl.g:5016:2: iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getJvmFormalParameterRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleJvmFormalParameter=ruleJvmFormalParameter();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleJvmFormalParameter; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "4a4d1dd07395f011b2a283340658f66f", "score": "0.52040344", "text": "public final EObject ruletypeParameter() throws RecognitionException {\n EObject current = null;\n int ruletypeParameter_StartIndex = input.index();\n Token lv_name_1_0 = null;\n EObject lv_typeParameterModifiers_0_0 = null;\n\n EObject lv_typeBound_2_0 = null;\n\n\n enterRule();\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 28)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1001:28: ( (\n // ( (lv_typeParameterModifiers_0_0= ruletypeParameterModifier ) )* ( (lv_name_1_0= RULE_IDENTIFIER ) ) (\n // (lv_typeBound_2_0= ruletypeBound ) )? ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1002:1: ( (\n // (lv_typeParameterModifiers_0_0= ruletypeParameterModifier ) )* ( (lv_name_1_0= RULE_IDENTIFIER ) ) (\n // (lv_typeBound_2_0= ruletypeBound ) )? )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1002:1: (\n // ( (lv_typeParameterModifiers_0_0= ruletypeParameterModifier ) )* ( (lv_name_1_0= RULE_IDENTIFIER ) ) (\n // (lv_typeBound_2_0= ruletypeBound ) )? )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1002:2: (\n // (lv_typeParameterModifiers_0_0= ruletypeParameterModifier ) )* ( (lv_name_1_0= RULE_IDENTIFIER ) ) (\n // (lv_typeBound_2_0= ruletypeBound ) )?\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1002:2:\n // ( (lv_typeParameterModifiers_0_0= ruletypeParameterModifier ) )*\n loop21 : do {\n int alt21 = 2;\n int LA21_0 = input.LA(1);\n\n if ((LA21_0 == 89)) {\n alt21 = 1;\n }\n\n\n switch (alt21) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1003:1:\n // (lv_typeParameterModifiers_0_0= ruletypeParameterModifier )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1003:1:\n // (lv_typeParameterModifiers_0_0= ruletypeParameterModifier )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1004:3:\n // lv_typeParameterModifiers_0_0= ruletypeParameterModifier\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getTypeParameterAccess()\n .getTypeParameterModifiersTypeParameterModifierParserRuleCall_0_0());\n\n }\n pushFollow(FOLLOW_ruletypeParameterModifier_in_ruletypeParameter1940);\n lv_typeParameterModifiers_0_0 = ruletypeParameterModifier();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getTypeParameterRule());\n }\n add(current, \"typeParameterModifiers\", lv_typeParameterModifiers_0_0,\n \"typeParameterModifier\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n break;\n\n default :\n break loop21;\n }\n }\n while (true);\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1020:3:\n // ( (lv_name_1_0= RULE_IDENTIFIER ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1021:1:\n // (lv_name_1_0= RULE_IDENTIFIER )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1021:1:\n // (lv_name_1_0= RULE_IDENTIFIER )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1022:3:\n // lv_name_1_0= RULE_IDENTIFIER\n {\n lv_name_1_0 = (Token) match(input, RULE_IDENTIFIER,\n FOLLOW_RULE_IDENTIFIER_in_ruletypeParameter1958);\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n newLeafNode(lv_name_1_0, grammarAccess.getTypeParameterAccess()\n .getNameIdentifierTerminalRuleCall_1_0());\n\n }\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElement(grammarAccess.getTypeParameterRule());\n }\n setWithLastConsumed(current, \"name\", lv_name_1_0, \"Identifier\");\n\n }\n\n }\n\n\n }\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1038:2:\n // ( (lv_typeBound_2_0= ruletypeBound ) )?\n int alt22 = 2;\n int LA22_0 = input.LA(1);\n\n if ((LA22_0 == 64)) {\n alt22 = 1;\n }\n switch (alt22) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1039:1:\n // (lv_typeBound_2_0= ruletypeBound )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1039:1:\n // (lv_typeBound_2_0= ruletypeBound )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1040:3:\n // lv_typeBound_2_0= ruletypeBound\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getTypeParameterAccess()\n .getTypeBoundTypeBoundParserRuleCall_2_0());\n\n }\n pushFollow(FOLLOW_ruletypeBound_in_ruletypeParameter1984);\n lv_typeBound_2_0 = ruletypeBound();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getTypeParameterRule());\n }\n set(current, \"typeBound\", lv_typeBound_2_0, \"typeBound\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n if (state.backtracking == 0) {\n leaveRule();\n }\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 28, ruletypeParameter_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "4fb93a1222d964ba01f5942ea219d1a0", "score": "0.5202153", "text": "public String visit(FormalParameter n, String argu) throws Exception {\n String fullParameter = convertType(n.f0.accept(this, argu)) + \" %.\" + n.f1.accept(this, argu);\n methodArguments.add(fullParameter);\n return null;\n }", "title": "" }, { "docid": "8aecb4f724d9518c21372b2e7c953204", "score": "0.5193137", "text": "public final void synpred84_InternalType_fragment() throws RecognitionException {\n Token otherlv_1 = null;\n EObject lv_parameters_0_0 = null;\n\n EObject lv_parameters_2_0 = null;\n\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:2: ( ( (\n // (lv_parameters_0_0= ruleformalParameter ) ) (otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) ) )* )\n // )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:2: ( (\n // (lv_parameters_0_0= ruleformalParameter ) ) (otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) ) )* )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:2: ( (\n // (lv_parameters_0_0= ruleformalParameter ) ) (otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) ) )*\n // )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:3: (\n // (lv_parameters_0_0= ruleformalParameter ) ) (otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) ) )*\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4337:3: (\n // (lv_parameters_0_0= ruleformalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4338:1:\n // (lv_parameters_0_0= ruleformalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4338:1:\n // (lv_parameters_0_0= ruleformalParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4339:3:\n // lv_parameters_0_0= ruleformalParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParametersAccess()\n .getParametersFormalParameterParserRuleCall_0_0_0());\n\n }\n pushFollow(FOLLOW_ruleformalParameter_in_synpred84_InternalType9640);\n lv_parameters_0_0 = ruleformalParameter();\n\n state._fsp--;\n if (state.failed)\n return;\n\n }\n\n\n }\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4355:2:\n // (otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) ) )*\n loop144 : do {\n int alt144 = 2;\n int LA144_0 = input.LA(1);\n\n if ((LA144_0 == 68)) {\n alt144 = 1;\n }\n\n\n switch (alt144) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4355:4:\n // otherlv_1= ',' ( (lv_parameters_2_0= ruleformalParameter ) )\n {\n otherlv_1 = (Token) match(input, 68, FOLLOW_68_in_synpred84_InternalType9653);\n if (state.failed)\n return;\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4359:1:\n // ( (lv_parameters_2_0= ruleformalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4360:1:\n // (lv_parameters_2_0= ruleformalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4360:1:\n // (lv_parameters_2_0= ruleformalParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4361:3:\n // lv_parameters_2_0= ruleformalParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParametersAccess()\n .getParametersFormalParameterParserRuleCall_0_1_1_0());\n\n }\n pushFollow(FOLLOW_ruleformalParameter_in_synpred84_InternalType9674);\n lv_parameters_2_0 = ruleformalParameter();\n\n state._fsp--;\n if (state.failed)\n return;\n\n }\n\n\n }\n\n\n }\n break;\n\n default :\n break loop144;\n }\n }\n while (true);\n\n\n }\n\n\n }\n }", "title": "" }, { "docid": "4af323e10c655768c96e064a207210ed", "score": "0.5183272", "text": "public final void ruleparameterList() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGo.g:1867:2: ( ( ( rule__ParameterList__Group__0 ) ) )\n // InternalGo.g:1868:2: ( ( rule__ParameterList__Group__0 ) )\n {\n // InternalGo.g:1868:2: ( ( rule__ParameterList__Group__0 ) )\n // InternalGo.g:1869:3: ( rule__ParameterList__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParameterListAccess().getGroup()); \n }\n // InternalGo.g:1870:3: ( rule__ParameterList__Group__0 )\n // InternalGo.g:1870:4: rule__ParameterList__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__ParameterList__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParameterListAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "308bfd0a81d63b72ddc72e952ed5754d", "score": "0.51822156", "text": "public final EObject ruletypeParameters() throws RecognitionException {\n EObject current = null;\n int ruletypeParameters_StartIndex = input.index();\n Token otherlv_0 = null;\n Token otherlv_2 = null;\n EObject this_typeParameterList_1 = null;\n\n\n enterRule();\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 78)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2353:28: (\n // (otherlv_0= '<' this_typeParameterList_1= ruletypeParameterList otherlv_2= '>' ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2354:1:\n // (otherlv_0= '<' this_typeParameterList_1= ruletypeParameterList otherlv_2= '>' )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2354:1:\n // (otherlv_0= '<' this_typeParameterList_1= ruletypeParameterList otherlv_2= '>' )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:2354:3:\n // otherlv_0= '<' this_typeParameterList_1= ruletypeParameterList otherlv_2= '>'\n {\n otherlv_0 = (Token) match(input, 66, FOLLOW_66_in_ruletypeParameters5211);\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n newLeafNode(otherlv_0, grammarAccess.getTypeParametersAccess().getLessThanSignKeyword_0());\n\n }\n if (state.backtracking == 0) {\n\n /* */\n\n }\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getTypeParametersAccess().getTypeParameterListParserRuleCall_1());\n\n }\n pushFollow(FOLLOW_ruletypeParameterList_in_ruletypeParameters5236);\n this_typeParameterList_1 = ruletypeParameterList();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n current = this_typeParameterList_1;\n afterParserOrEnumRuleCall();\n\n }\n otherlv_2 = (Token) match(input, 67, FOLLOW_67_in_ruletypeParameters5247);\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n newLeafNode(otherlv_2, grammarAccess.getTypeParametersAccess().getGreaterThanSignKeyword_2());\n\n }\n\n }\n\n\n }\n\n if (state.backtracking == 0) {\n leaveRule();\n }\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 78, ruletypeParameters_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "63f1f5dcfd638e71d1b0ad2e9043690d", "score": "0.51717776", "text": "public ParameterDecl parseParameterDecl() throws IOException\n {\n ParameterDecl paramDecl = null;\n\n try\n {\n boolean isVarParam = false;\n if (scanner.getSymbol() == Symbol.varRW)\n {\n isVarParam = true;\n matchCurrentSymbol();\n }\n\n check(Symbol.identifier);\n Token paramId = scanner.getToken();\n matchCurrentSymbol();\n match(Symbol.colon);\n\n Type paramType = parseTypeName();\n int scopeLevel = idTable.getCurrentLevel();\n paramDecl = new ParameterDecl(paramId, paramType, scopeLevel, isVarParam);\n idTable.add(paramDecl);\n }\n catch (ParserException e)\n {\n ErrorHandler.getInstance().reportError(e);\n Symbol[] followers = { Symbol.comma, Symbol.rightParen };\n recover(followers);\n }\n\n return paramDecl;\n }", "title": "" }, { "docid": "2474ede560e1f330b4c106a4b031ffb7", "score": "0.51678234", "text": "public final EObject ruleconstructorDeclarator() throws RecognitionException {\n EObject current = null;\n int ruleconstructorDeclarator_StartIndex = input.index();\n Token otherlv_2 = null;\n Token otherlv_4 = null;\n EObject lv_typeParameters_0_0 = null;\n\n AntlrDatatypeRuleToken lv_simpleTypeName_1_0 = null;\n\n EObject lv_formalParameterList_3_0 = null;\n\n\n enterRule();\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 174)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5234:28: ( (\n // ( (lv_typeParameters_0_0= ruletypeParameters ) )? ( (lv_simpleTypeName_1_0= rulesimpleTypeName ) )\n // otherlv_2= '(' ( (lv_formalParameterList_3_0= ruleformalParameterList ) )? otherlv_4= ')' ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5235:1: ( (\n // (lv_typeParameters_0_0= ruletypeParameters ) )? ( (lv_simpleTypeName_1_0= rulesimpleTypeName ) ) otherlv_2=\n // '(' ( (lv_formalParameterList_3_0= ruleformalParameterList ) )? otherlv_4= ')' )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5235:1: (\n // ( (lv_typeParameters_0_0= ruletypeParameters ) )? ( (lv_simpleTypeName_1_0= rulesimpleTypeName ) )\n // otherlv_2= '(' ( (lv_formalParameterList_3_0= ruleformalParameterList ) )? otherlv_4= ')' )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5235:2: (\n // (lv_typeParameters_0_0= ruletypeParameters ) )? ( (lv_simpleTypeName_1_0= rulesimpleTypeName ) )\n // otherlv_2= '(' ( (lv_formalParameterList_3_0= ruleformalParameterList ) )? otherlv_4= ')'\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5235:2:\n // ( (lv_typeParameters_0_0= ruletypeParameters ) )?\n int alt87 = 2;\n int LA87_0 = input.LA(1);\n\n if ((LA87_0 == 66)) {\n alt87 = 1;\n }\n switch (alt87) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5236:1:\n // (lv_typeParameters_0_0= ruletypeParameters )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5236:1:\n // (lv_typeParameters_0_0= ruletypeParameters )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5237:3:\n // lv_typeParameters_0_0= ruletypeParameters\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getConstructorDeclaratorAccess()\n .getTypeParametersTypeParametersParserRuleCall_0_0());\n\n }\n pushFollow(FOLLOW_ruletypeParameters_in_ruleconstructorDeclarator11624);\n lv_typeParameters_0_0 = ruletypeParameters();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getConstructorDeclaratorRule());\n }\n add(current, \"typeParameters\", lv_typeParameters_0_0, \"typeParameters\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n break;\n\n }\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5253:3:\n // ( (lv_simpleTypeName_1_0= rulesimpleTypeName ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5254:1:\n // (lv_simpleTypeName_1_0= rulesimpleTypeName )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5254:1:\n // (lv_simpleTypeName_1_0= rulesimpleTypeName )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5255:3:\n // lv_simpleTypeName_1_0= rulesimpleTypeName\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getConstructorDeclaratorAccess()\n .getSimpleTypeNameSimpleTypeNameParserRuleCall_1_0());\n\n }\n pushFollow(FOLLOW_rulesimpleTypeName_in_ruleconstructorDeclarator11646);\n lv_simpleTypeName_1_0 = rulesimpleTypeName();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getConstructorDeclaratorRule());\n }\n set(current, \"simpleTypeName\", lv_simpleTypeName_1_0, \"simpleTypeName\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n\n otherlv_2 = (Token) match(input, 82, FOLLOW_82_in_ruleconstructorDeclarator11658);\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n newLeafNode(otherlv_2, grammarAccess.getConstructorDeclaratorAccess().getLeftParenthesisKeyword_2());\n\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5275:1:\n // ( (lv_formalParameterList_3_0= ruleformalParameterList ) )?\n int alt88 = 2;\n int LA88_0 = input.LA(1);\n\n if (((LA88_0 >= RULE_NUMERICTYPE && LA88_0 <= RULE_IDENTIFIER) || LA88_0 == 89 || LA88_0 == 99)) {\n alt88 = 1;\n }\n switch (alt88) {\n case 1 :\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5276:1:\n // (lv_formalParameterList_3_0= ruleformalParameterList )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5276:1:\n // (lv_formalParameterList_3_0= ruleformalParameterList )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:5277:3:\n // lv_formalParameterList_3_0= ruleformalParameterList\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getConstructorDeclaratorAccess()\n .getFormalParameterListFormalParameterListParserRuleCall_3_0());\n\n }\n pushFollow(FOLLOW_ruleformalParameterList_in_ruleconstructorDeclarator11679);\n lv_formalParameterList_3_0 = ruleformalParameterList();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n if (current == null) {\n current = createModelElementForParent(grammarAccess.getConstructorDeclaratorRule());\n }\n set(current, \"formalParameterList\", lv_formalParameterList_3_0, \"formalParameterList\");\n afterParserOrEnumRuleCall();\n\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_4 = (Token) match(input, 83, FOLLOW_83_in_ruleconstructorDeclarator11692);\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n\n newLeafNode(otherlv_4, grammarAccess.getConstructorDeclaratorAccess().getRightParenthesisKeyword_4());\n\n }\n\n }\n\n\n }\n\n if (state.backtracking == 0) {\n leaveRule();\n }\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 174, ruleconstructorDeclarator_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "f42583d136391dbb382b3a47336afe04", "score": "0.51626575", "text": "public final void rule__Formal_parameter_list__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:9007:1: ( ( ( rule__Formal_parameter_list__ParametersAssignment_1 ) ) )\r\n // InternalPascal.g:9008:1: ( ( rule__Formal_parameter_list__ParametersAssignment_1 ) )\r\n {\r\n // InternalPascal.g:9008:1: ( ( rule__Formal_parameter_list__ParametersAssignment_1 ) )\r\n // InternalPascal.g:9009:2: ( rule__Formal_parameter_list__ParametersAssignment_1 )\r\n {\r\n before(grammarAccess.getFormal_parameter_listAccess().getParametersAssignment_1()); \r\n // InternalPascal.g:9010:2: ( rule__Formal_parameter_list__ParametersAssignment_1 )\r\n // InternalPascal.g:9010:3: rule__Formal_parameter_list__ParametersAssignment_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Formal_parameter_list__ParametersAssignment_1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getFormal_parameter_listAccess().getParametersAssignment_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "1c73ea125489aa1249cdacbb74b6f2f4", "score": "0.51524323", "text": "public final void entryRuleFullJvmFormalParameter() throws RecognitionException {\n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1498:1: ( ruleFullJvmFormalParameter EOF )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1499:1: ruleFullJvmFormalParameter EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFullJvmFormalParameterRule()); \n }\n pushFollow(FOLLOW_ruleFullJvmFormalParameter_in_entryRuleFullJvmFormalParameter3134);\n ruleFullJvmFormalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFullJvmFormalParameterRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleFullJvmFormalParameter3141); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "f29834728fa735dbc517be6f84b77b93", "score": "0.51513815", "text": "public final void entryRuleJRParameter() throws RecognitionException {\n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1312:1: ( ruleJRParameter EOF )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1313:1: ruleJRParameter EOF\n {\n before(grammarAccess.getJRParameterRule()); \n pushFollow(FOLLOW_ruleJRParameter_in_entryRuleJRParameter2616);\n ruleJRParameter();\n\n state._fsp--;\n\n after(grammarAccess.getJRParameterRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleJRParameter2623); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "d4c1b66748e1cbaf04ac82740f61cf95", "score": "0.5113915", "text": "private void parseTypeParameter() {\n if (atSet(TYPE_PARAMETER_GT_RECOVERY_SET)) {\n error(\"Type parameter declaration expected\");\n return;\n }\n\n PsiBuilder.Marker mark = mark();\n\n parseModifierList(DEFAULT, TokenSet.create(GT, COMMA, COLON));\n\n expect(IDENTIFIER, \"Type parameter name expected\", TokenSet.EMPTY);\n\n if (at(COLON)) {\n advance(); // COLON\n parseTypeRef();\n }\n\n mark.done(TYPE_PARAMETER);\n\n }", "title": "" }, { "docid": "cdd0d589731f07bd2ddc95944c2974f4", "score": "0.5097351", "text": "public final void entryRuleParametre() throws RecognitionException {\n try {\n // ../esir.lsi.imtql.ext.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDevice.g:177:1: ( ruleParametre EOF )\n // ../esir.lsi.imtql.ext.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDevice.g:178:1: ruleParametre EOF\n {\n before(grammarAccess.getParametreRule()); \n pushFollow(FOLLOW_ruleParametre_in_entryRuleParametre304);\n ruleParametre();\n\n state._fsp--;\n\n after(grammarAccess.getParametreRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleParametre311); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "70bf930bcc21e19c3e43ac477fbeea7c", "score": "0.50870186", "text": "public void setFormalParameters(Object[] params) {\n\t\tthis.formalParameters = params;\n\t}", "title": "" }, { "docid": "4d06a91b13a49fb72918d5ec8d6e4a64", "score": "0.5073128", "text": "public String visit(FormalParameterTerm n, Void argu) throws Exception {\n return n.f1.accept(this, argu);\n }", "title": "" }, { "docid": "055f6c23e4b29f564de96403e0b36dca", "score": "0.50677377", "text": "public interface SubroutineEntry {\n\t\n\t/* Getters */\n\tpublic String getName();\n\tpublic TokenType getType();\n\tpublic int getNumberOfParameters();\n\tpublic List<ParmInfoEntry> getParameterInfo();\n\t\n\t/* Setters */\n\tpublic void setName(String newName);\n\tpublic void setType(TokenType type);\n\tpublic void setNumberOfParameters(int number);\n\tpublic void setParameterInfo(List<ParmInfoEntry> paramInfo);\n\t\n\t/* Parameter manipulation*/\n\tpublic void addParameter(ParmInfoEntry p);\n\tpublic ParmInfoEntry getParameter(int index);\n\t\n\tpublic boolean isFunction();\n\tpublic boolean isProcedure();\n\t\n\tpublic void print();\n}", "title": "" }, { "docid": "3860cf4f1553d6727f2134c28f46a0fd", "score": "0.50551504", "text": "public final EObject ruleJvmFormalParameter() throws RecognitionException {\n EObject current = null;\n\n EObject lv_parameterType_0_0 = null;\n\n AntlrDatatypeRuleToken lv_name_1_0 = null;\n\n\n enterRule(); \n \n try {\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4232:28: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) )\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4233:1: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) )\n {\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4233:1: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) )\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4233:2: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) )\n {\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4233:2: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )?\n int alt76=2;\n int LA76_0 = input.LA(1);\n\n if ( (LA76_0==RULE_ID) ) {\n int LA76_1 = input.LA(2);\n\n if ( (LA76_1==RULE_ID||LA76_1==26||LA76_1==51||LA76_1==55) ) {\n alt76=1;\n }\n }\n else if ( (LA76_0==17||LA76_0==39) ) {\n alt76=1;\n }\n switch (alt76) {\n case 1 :\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4234:1: (lv_parameterType_0_0= ruleJvmTypeReference )\n {\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4234:1: (lv_parameterType_0_0= ruleJvmTypeReference )\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4235:3: lv_parameterType_0_0= ruleJvmTypeReference\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); \n \t \n }\n pushFollow(FOLLOW_ruleJvmTypeReference_in_ruleJvmFormalParameter9993);\n lv_parameterType_0_0=ruleJvmTypeReference();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"parameterType\",\n \t\tlv_parameterType_0_0, \n \t\t\"JvmTypeReference\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n break;\n\n }\n\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4251:3: ( (lv_name_1_0= ruleValidID ) )\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4252:1: (lv_name_1_0= ruleValidID )\n {\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4252:1: (lv_name_1_0= ruleValidID )\n // ../org.xtext.mongobeans/src-gen/org/xtext/mongobeans/parser/antlr/internal/InternalMongoBeans.g:4253:3: lv_name_1_0= ruleValidID\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleValidID_in_ruleJvmFormalParameter10015);\n lv_name_1_0=ruleValidID();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_1_0, \n \t\t\"ValidID\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "31438ef0d68b4d85ed31cedfc2dbee1a", "score": "0.50434375", "text": "public final void rule__Parameters__ParamListAssignment_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGo.g:16075:1: ( ( ruleparameterList ) )\n // InternalGo.g:16076:2: ( ruleparameterList )\n {\n // InternalGo.g:16076:2: ( ruleparameterList )\n // InternalGo.g:16077:3: ruleparameterList\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParametersAccess().getParamListParameterListParserRuleCall_1_0_0()); \n }\n pushFollow(FOLLOW_2);\n ruleparameterList();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParametersAccess().getParamListParameterListParserRuleCall_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1d98ad90d7adc0f3d06a17b55f91c957", "score": "0.50430226", "text": "public final EObject entryRuleParam() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleParam = null;\n\n\n try {\n // InternalPipesGraph.g:279:46: (iv_ruleParam= ruleParam EOF )\n // InternalPipesGraph.g:280:2: iv_ruleParam= ruleParam EOF\n {\n newCompositeNode(grammarAccess.getParamRule()); \n pushFollow(FOLLOW_1);\n iv_ruleParam=ruleParam();\n\n state._fsp--;\n\n current =iv_ruleParam; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "2c64c8d5e3a1c83829bdda7af38ec5ce", "score": "0.5041819", "text": "public final void synpred59_Java_fragment() throws RecognitionException {\n\t\t// src/main/resources/parser/Java.g:656:10: ( modifiers ( typeParameters )? IDENTIFIER formalParameters ( 'throws' qualifiedNameList )? '{' ( explicitConstructorInvocation )? ( blockStatement )* '}' )\n\t\t// src/main/resources/parser/Java.g:656:10: modifiers ( typeParameters )? IDENTIFIER formalParameters ( 'throws' qualifiedNameList )? '{' ( explicitConstructorInvocation )? ( blockStatement )* '}'\n\t\t{\n\t\tpushFollow(FOLLOW_modifiers_in_synpred59_Java2269);\n\t\tmodifiers();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\t// src/main/resources/parser/Java.g:657:9: ( typeParameters )?\n\t\tint alt169=2;\n\t\tint LA169_0 = input.LA(1);\n\t\tif ( (LA169_0==LT) ) {\n\t\t\talt169=1;\n\t\t}\n\t\tswitch (alt169) {\n\t\t\tcase 1 :\n\t\t\t\t// src/main/resources/parser/Java.g:657:10: typeParameters\n\t\t\t\t{\n\t\t\t\tpushFollow(FOLLOW_typeParameters_in_synpred59_Java2280);\n\t\t\t\ttypeParameters();\n\t\t\t\tstate._fsp--;\n\t\t\t\tif (state.failed) return;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\tmatch(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_synpred59_Java2301); if (state.failed) return;\n\t\tpushFollow(FOLLOW_formalParameters_in_synpred59_Java2311);\n\t\tformalParameters();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\t// src/main/resources/parser/Java.g:661:9: ( 'throws' qualifiedNameList )?\n\t\tint alt170=2;\n\t\tint LA170_0 = input.LA(1);\n\t\tif ( (LA170_0==THROWS) ) {\n\t\t\talt170=1;\n\t\t}\n\t\tswitch (alt170) {\n\t\t\tcase 1 :\n\t\t\t\t// src/main/resources/parser/Java.g:661:10: 'throws' qualifiedNameList\n\t\t\t\t{\n\t\t\t\tmatch(input,THROWS,FOLLOW_THROWS_in_synpred59_Java2322); if (state.failed) return;\n\t\t\t\tpushFollow(FOLLOW_qualifiedNameList_in_synpred59_Java2324);\n\t\t\t\tqualifiedNameList();\n\t\t\t\tstate._fsp--;\n\t\t\t\tif (state.failed) return;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\tmatch(input,LBRACE,FOLLOW_LBRACE_in_synpred59_Java2345); if (state.failed) return;\n\t\t// src/main/resources/parser/Java.g:664:9: ( explicitConstructorInvocation )?\n\t\tint alt171=2;\n\t\tswitch ( input.LA(1) ) {\n\t\t\tcase LT:\n\t\t\t\t{\n\t\t\t\talt171=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase THIS:\n\t\t\t\t{\n\t\t\t\tint LA171_2 = input.LA(2);\n\t\t\t\tif ( (synpred57_Java()) ) {\n\t\t\t\t\talt171=1;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LPAREN:\n\t\t\t\t{\n\t\t\t\tint LA171_3 = input.LA(2);\n\t\t\t\tif ( (synpred57_Java()) ) {\n\t\t\t\t\talt171=1;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase SUPER:\n\t\t\t\t{\n\t\t\t\tint LA171_4 = input.LA(2);\n\t\t\t\tif ( (synpred57_Java()) ) {\n\t\t\t\t\talt171=1;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IDENTIFIER:\n\t\t\t\t{\n\t\t\t\tint LA171_5 = input.LA(2);\n\t\t\t\tif ( (synpred57_Java()) ) {\n\t\t\t\t\talt171=1;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CHARLITERAL:\n\t\t\tcase DOUBLELITERAL:\n\t\t\tcase FALSE:\n\t\t\tcase FLOATLITERAL:\n\t\t\tcase INTLITERAL:\n\t\t\tcase LONGLITERAL:\n\t\t\tcase NULL:\n\t\t\tcase STRINGLITERAL:\n\t\t\tcase TRUE:\n\t\t\t\t{\n\t\t\t\tint LA171_6 = input.LA(2);\n\t\t\t\tif ( (synpred57_Java()) ) {\n\t\t\t\t\talt171=1;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase NEW:\n\t\t\t\t{\n\t\t\t\tint LA171_7 = input.LA(2);\n\t\t\t\tif ( (synpred57_Java()) ) {\n\t\t\t\t\talt171=1;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BOOLEAN:\n\t\t\tcase BYTE:\n\t\t\tcase CHAR:\n\t\t\tcase DOUBLE:\n\t\t\tcase FLOAT:\n\t\t\tcase INT:\n\t\t\tcase LONG:\n\t\t\tcase SHORT:\n\t\t\t\t{\n\t\t\t\tint LA171_8 = input.LA(2);\n\t\t\t\tif ( (synpred57_Java()) ) {\n\t\t\t\t\talt171=1;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase VOID:\n\t\t\t\t{\n\t\t\t\tint LA171_9 = input.LA(2);\n\t\t\t\tif ( (synpred57_Java()) ) {\n\t\t\t\t\talt171=1;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\tswitch (alt171) {\n\t\t\tcase 1 :\n\t\t\t\t// src/main/resources/parser/Java.g:664:10: explicitConstructorInvocation\n\t\t\t\t{\n\t\t\t\tpushFollow(FOLLOW_explicitConstructorInvocation_in_synpred59_Java2357);\n\t\t\t\texplicitConstructorInvocation();\n\t\t\t\tstate._fsp--;\n\t\t\t\tif (state.failed) return;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\t// src/main/resources/parser/Java.g:666:9: ( blockStatement )*\n\t\tloop172:\n\t\twhile (true) {\n\t\t\tint alt172=2;\n\t\t\tint LA172_0 = input.LA(1);\n\t\t\tif ( (LA172_0==ABSTRACT||(LA172_0 >= ASSERT && LA172_0 <= BANG)||(LA172_0 >= BOOLEAN && LA172_0 <= BYTE)||(LA172_0 >= CHAR && LA172_0 <= CLASS)||LA172_0==CONTINUE||LA172_0==DO||(LA172_0 >= DOUBLE && LA172_0 <= DOUBLELITERAL)||LA172_0==ENUM||(LA172_0 >= FALSE && LA172_0 <= FINAL)||(LA172_0 >= FLOAT && LA172_0 <= FOR)||(LA172_0 >= IDENTIFIER && LA172_0 <= IF)||(LA172_0 >= INT && LA172_0 <= INTLITERAL)||LA172_0==LBRACE||(LA172_0 >= LONG && LA172_0 <= LT)||(LA172_0 >= MONKEYS_AT && LA172_0 <= NULL)||LA172_0==PLUS||(LA172_0 >= PLUSPLUS && LA172_0 <= PUBLIC)||LA172_0==RETURN||(LA172_0 >= SEMI && LA172_0 <= SHORT)||(LA172_0 >= STATIC && LA172_0 <= SUB)||(LA172_0 >= SUBSUB && LA172_0 <= SYNCHRONIZED)||(LA172_0 >= THIS && LA172_0 <= THROW)||(LA172_0 >= TILDE && LA172_0 <= WHILE)) ) {\n\t\t\t\talt172=1;\n\t\t\t}\n\n\t\t\tswitch (alt172) {\n\t\t\tcase 1 :\n\t\t\t\t// src/main/resources/parser/Java.g:666:10: blockStatement\n\t\t\t\t{\n\t\t\t\tpushFollow(FOLLOW_blockStatement_in_synpred59_Java2379);\n\t\t\t\tblockStatement();\n\t\t\t\tstate._fsp--;\n\t\t\t\tif (state.failed) return;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tdefault :\n\t\t\t\tbreak loop172;\n\t\t\t}\n\t\t}\n\n\t\tmatch(input,RBRACE,FOLLOW_RBRACE_in_synpred59_Java2400); if (state.failed) return;\n\t\t}\n\n\t}", "title": "" }, { "docid": "3e70e346db8ca8e5ed3eed692d0e61da", "score": "0.50250363", "text": "public final EObject entryRuleParam() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleParam = null;\n\n\n try {\n // InternalFortXTrans.g:1505:46: (iv_ruleParam= ruleParam EOF )\n // InternalFortXTrans.g:1506:2: iv_ruleParam= ruleParam EOF\n {\n newCompositeNode(grammarAccess.getParamRule()); \n pushFollow(FOLLOW_1);\n iv_ruleParam=ruleParam();\n\n state._fsp--;\n\n current =iv_ruleParam; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "b22fa4ee62e01fe7debb3d4395a578ae", "score": "0.5013634", "text": "public final EObject entryRuletypeParameterModifier() throws RecognitionException {\n EObject current = null;\n int entryRuletypeParameterModifier_StartIndex = input.index();\n EObject iv_ruletypeParameterModifier = null;\n\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 29)) {\n return current;\n }\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1065:2:\n // (iv_ruletypeParameterModifier= ruletypeParameterModifier EOF )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:1066:2:\n // iv_ruletypeParameterModifier= ruletypeParameterModifier EOF\n {\n if (state.backtracking == 0) {\n newCompositeNode(grammarAccess.getTypeParameterModifierRule());\n }\n pushFollow(FOLLOW_ruletypeParameterModifier_in_entryRuletypeParameterModifier2021);\n iv_ruletypeParameterModifier = ruletypeParameterModifier();\n\n state._fsp--;\n if (state.failed)\n return current;\n if (state.backtracking == 0) {\n current = iv_ruletypeParameterModifier;\n }\n match(input, EOF, FOLLOW_EOF_in_entryRuletypeParameterModifier2031);\n if (state.failed)\n return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input, re);\n appendSkippedTokens();\n }\n finally {\n if (state.backtracking > 0) {\n memoize(input, 29, entryRuletypeParameterModifier_StartIndex);\n }\n }\n return current;\n }", "title": "" }, { "docid": "647c1162c212e617f4f742eb9a62beb1", "score": "0.5010179", "text": "public final void methodHeader() throws RecognitionException {\n\t\tint methodHeader_StartIndex = input.index();\n\n\t\ttry {\n\t\t\tif ( state.backtracking>0 && alreadyParsedRule(input, 108) ) { return; }\n\n\t\t\t// src/main/resources/parser/Java.g:1652:5: ( modifiers ( typeParameters )? ( type | 'void' )? IDENTIFIER '(' )\n\t\t\t// src/main/resources/parser/Java.g:1652:9: modifiers ( typeParameters )? ( type | 'void' )? IDENTIFIER '('\n\t\t\t{\n\t\t\tpushFollow(FOLLOW_modifiers_in_methodHeader8912);\n\t\t\tmodifiers();\n\t\t\tstate._fsp--;\n\t\t\tif (state.failed) return;\n\t\t\t// src/main/resources/parser/Java.g:1652:19: ( typeParameters )?\n\t\t\tint alt162=2;\n\t\t\tint LA162_0 = input.LA(1);\n\t\t\tif ( (LA162_0==LT) ) {\n\t\t\t\talt162=1;\n\t\t\t}\n\t\t\tswitch (alt162) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:1652:19: typeParameters\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_typeParameters_in_methodHeader8914);\n\t\t\t\t\ttypeParameters();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// src/main/resources/parser/Java.g:1652:35: ( type | 'void' )?\n\t\t\tint alt163=3;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\t\tcase IDENTIFIER:\n\t\t\t\t\t{\n\t\t\t\t\tint LA163_1 = input.LA(2);\n\t\t\t\t\tif ( (LA163_1==DOT||LA163_1==IDENTIFIER||LA163_1==LBRACKET||LA163_1==LT) ) {\n\t\t\t\t\t\talt163=1;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase BOOLEAN:\n\t\t\t\tcase BYTE:\n\t\t\t\tcase CHAR:\n\t\t\t\tcase DOUBLE:\n\t\t\t\tcase FLOAT:\n\t\t\t\tcase INT:\n\t\t\t\tcase LONG:\n\t\t\t\tcase SHORT:\n\t\t\t\t\t{\n\t\t\t\t\talt163=1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase VOID:\n\t\t\t\t\t{\n\t\t\t\t\talt163=2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tswitch (alt163) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:1652:36: type\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_type_in_methodHeader8918);\n\t\t\t\t\ttype();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:1652:41: 'void'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,VOID,FOLLOW_VOID_in_methodHeader8920); if (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tmatch(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_methodHeader8924); if (state.failed) return;\n\t\t\tmatch(input,LPAREN,FOLLOW_LPAREN_in_methodHeader8926); if (state.failed) return;\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t\tif ( state.backtracking>0 ) { memoize(input, 108, methodHeader_StartIndex); }\n\n\t\t}\n\t}", "title": "" }, { "docid": "923589cc3af59a8eb15ec6a33cde3ce2", "score": "0.5003539", "text": "public final void rule__ParameterList__ParamsDeclAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGo.g:16090:1: ( ( ruleparameterDecl ) )\n // InternalGo.g:16091:2: ( ruleparameterDecl )\n {\n // InternalGo.g:16091:2: ( ruleparameterDecl )\n // InternalGo.g:16092:3: ruleparameterDecl\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParameterListAccess().getParamsDeclParameterDeclParserRuleCall_0_0()); \n }\n pushFollow(FOLLOW_2);\n ruleparameterDecl();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParameterListAccess().getParamsDeclParameterDeclParserRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1f05af1c3e81b735f5fb4b66b52dc077", "score": "0.5003454", "text": "public String visit(FormalParameter n, String[] argu) throws Exception {\n String argumentType = n.f0.accept(this, argu);\n String argumentName = n.f1.accept(this, argu);\n SymbolTable.insertArgumentInFunction(argu[0], argu[1], argumentName, argumentType);\n return null;\n }", "title": "" }, { "docid": "14b8b85ff79ba0afa6750113755d5645", "score": "0.49863473", "text": "public final void entryRuleParam() throws RecognitionException {\n try {\n // ../csep.example.cake.ui/src-gen/csep/example/cake/ui/contentassist/antlr/internal/InternalCakefile.g:1744:1: ( ruleParam EOF )\n // ../csep.example.cake.ui/src-gen/csep/example/cake/ui/contentassist/antlr/internal/InternalCakefile.g:1745:1: ruleParam EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParamRule()); \n }\n pushFollow(FOLLOW_ruleParam_in_entryRuleParam3668);\n ruleParam();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParamRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleParam3675); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "a7ab15af62bb9e7429320fb3df06da6d", "score": "0.49860293", "text": "@Override\n public Void visitParameterDeclaration(final IRNode node) {\n /* Should use TypeUtil.isEffectivelyFinal() to filter the variables but\n * that requires setting up an instance to a flow analysis that I'm not\n * able to do right now. So we just include all the variables. Since\n * this list is just used to build an index for flow-control lattices, \n * this is fine. We just end up with a larger than necessary lattice. \n */\n// if (TypeUtil.isJSureFinal(node)) { // TODO: Really replace with isEffectivelyFinal()\n declarations.add(node);\n// }\n return null;\n }", "title": "" }, { "docid": "7b265a685d669fb330f7c2d11f0c31fd", "score": "0.4974979", "text": "public Parameter parseParameter() {\r\n\t\t\tToken atila = match(TokenType.ID);\r\n\t\t\tmatch(TokenType.COLON);\r\n\t\t\tType me = parseType();\r\n\t\t\tmatch(TokenType.Semi);\r\n\t\t\treturn new Parameter(atila.lexeme, me );\r\n\t\t}", "title": "" }, { "docid": "28bd80899d02b1c02e7ccf40cf900bfe", "score": "0.49659252", "text": "public final void ruleparameter_type() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:1864:2: ( ( ( rule__Parameter_type__Alternatives ) ) )\r\n // InternalPascal.g:1865:2: ( ( rule__Parameter_type__Alternatives ) )\r\n {\r\n // InternalPascal.g:1865:2: ( ( rule__Parameter_type__Alternatives ) )\r\n // InternalPascal.g:1866:3: ( rule__Parameter_type__Alternatives )\r\n {\r\n before(grammarAccess.getParameter_typeAccess().getAlternatives()); \r\n // InternalPascal.g:1867:3: ( rule__Parameter_type__Alternatives )\r\n // InternalPascal.g:1867:4: rule__Parameter_type__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Parameter_type__Alternatives();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getParameter_typeAccess().getAlternatives()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "271cdc151292b07b8c650304669e69f6", "score": "0.4958654", "text": "public final void rule__Formal_parameter_list__Group_2__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:9114:1: ( ( ( rule__Formal_parameter_list__ParametersAssignment_2_1 ) ) )\r\n // InternalPascal.g:9115:1: ( ( rule__Formal_parameter_list__ParametersAssignment_2_1 ) )\r\n {\r\n // InternalPascal.g:9115:1: ( ( rule__Formal_parameter_list__ParametersAssignment_2_1 ) )\r\n // InternalPascal.g:9116:2: ( rule__Formal_parameter_list__ParametersAssignment_2_1 )\r\n {\r\n before(grammarAccess.getFormal_parameter_listAccess().getParametersAssignment_2_1()); \r\n // InternalPascal.g:9117:2: ( rule__Formal_parameter_list__ParametersAssignment_2_1 )\r\n // InternalPascal.g:9117:3: rule__Formal_parameter_list__ParametersAssignment_2_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Formal_parameter_list__ParametersAssignment_2_1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getFormal_parameter_listAccess().getParametersAssignment_2_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "dc28b36bd5727aa0f78e8378b59c4e0a", "score": "0.49328834", "text": "public final void interfaceMethodDeclaration() throws RecognitionException {\n\t\tint interfaceMethodDeclaration_StartIndex = input.index();\n\n\t\ttry {\n\t\t\tif ( state.backtracking>0 && alreadyParsedRule(input, 30) ) { return; }\n\n\t\t\t// src/main/resources/parser/Java.g:765:5: ( modifiers ( typeParameters )? ( type | 'void' ) IDENTIFIER formalParameters ( '[' ']' )* ( 'throws' qualifiedNameList )? ';' )\n\t\t\t// src/main/resources/parser/Java.g:765:9: modifiers ( typeParameters )? ( type | 'void' ) IDENTIFIER formalParameters ( '[' ']' )* ( 'throws' qualifiedNameList )? ';'\n\t\t\t{\n\t\t\tpushFollow(FOLLOW_modifiers_in_interfaceMethodDeclaration2933);\n\t\t\tmodifiers();\n\t\t\tstate._fsp--;\n\t\t\tif (state.failed) return;\n\t\t\t// src/main/resources/parser/Java.g:766:9: ( typeParameters )?\n\t\t\tint alt54=2;\n\t\t\tint LA54_0 = input.LA(1);\n\t\t\tif ( (LA54_0==LT) ) {\n\t\t\t\talt54=1;\n\t\t\t}\n\t\t\tswitch (alt54) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:766:10: typeParameters\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_typeParameters_in_interfaceMethodDeclaration2944);\n\t\t\t\t\ttypeParameters();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// src/main/resources/parser/Java.g:768:9: ( type | 'void' )\n\t\t\tint alt55=2;\n\t\t\tint LA55_0 = input.LA(1);\n\t\t\tif ( (LA55_0==BOOLEAN||LA55_0==BYTE||LA55_0==CHAR||LA55_0==DOUBLE||LA55_0==FLOAT||LA55_0==IDENTIFIER||LA55_0==INT||LA55_0==LONG||LA55_0==SHORT) ) {\n\t\t\t\talt55=1;\n\t\t\t}\n\t\t\telse if ( (LA55_0==VOID) ) {\n\t\t\t\talt55=2;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tif (state.backtracking>0) {state.failed=true; return;}\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 55, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\n\t\t\tswitch (alt55) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:768:10: type\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_type_in_interfaceMethodDeclaration2966);\n\t\t\t\t\ttype();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:769:10: 'void'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,VOID,FOLLOW_VOID_in_interfaceMethodDeclaration2977); if (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tmatch(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_interfaceMethodDeclaration2997); if (state.failed) return;\n\t\t\tpushFollow(FOLLOW_formalParameters_in_interfaceMethodDeclaration3007);\n\t\t\tformalParameters();\n\t\t\tstate._fsp--;\n\t\t\tif (state.failed) return;\n\t\t\t// src/main/resources/parser/Java.g:773:9: ( '[' ']' )*\n\t\t\tloop56:\n\t\t\twhile (true) {\n\t\t\t\tint alt56=2;\n\t\t\t\tint LA56_0 = input.LA(1);\n\t\t\t\tif ( (LA56_0==LBRACKET) ) {\n\t\t\t\t\talt56=1;\n\t\t\t\t}\n\n\t\t\t\tswitch (alt56) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:773:10: '[' ']'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,LBRACKET,FOLLOW_LBRACKET_in_interfaceMethodDeclaration3018); if (state.failed) return;\n\t\t\t\t\tmatch(input,RBRACKET,FOLLOW_RBRACKET_in_interfaceMethodDeclaration3020); if (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak loop56;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// src/main/resources/parser/Java.g:775:9: ( 'throws' qualifiedNameList )?\n\t\t\tint alt57=2;\n\t\t\tint LA57_0 = input.LA(1);\n\t\t\tif ( (LA57_0==THROWS) ) {\n\t\t\t\talt57=1;\n\t\t\t}\n\t\t\tswitch (alt57) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src/main/resources/parser/Java.g:775:10: 'throws' qualifiedNameList\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,THROWS,FOLLOW_THROWS_in_interfaceMethodDeclaration3042); if (state.failed) return;\n\t\t\t\t\tpushFollow(FOLLOW_qualifiedNameList_in_interfaceMethodDeclaration3044);\n\t\t\t\t\tqualifiedNameList();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tmatch(input,SEMI,FOLLOW_SEMI_in_interfaceMethodDeclaration3057); if (state.failed) return;\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t\tif ( state.backtracking>0 ) { memoize(input, 30, interfaceMethodDeclaration_StartIndex); }\n\n\t\t}\n\t}", "title": "" }, { "docid": "5bc537a1412036443d58ad71078d306e", "score": "0.49285647", "text": "@Override\n public void visit(MethodDeclaration n) {\n methodName = methodName + Ast.getName(n);\n List<MethodParameter> params = new ArrayList<>();\n List<FormalParameter> formalParameters = Ast.getParameters(n);\n for (FormalParameter fp : formalParameters) {\n String paramName = Ast.getName(fp);\n String paramType = Ast.getType(fp);\n MethodParameter methodParam = new MethodParameter(paramName, paramType);\n params.add(methodParam);\n }\n parameters = params.toArray(new MethodParameter[0]);\n }", "title": "" }, { "docid": "4cf33ed77fe0eb50a2cd4b927a64e487", "score": "0.4897748", "text": "public WType visit(FormalParameter n, WType argu) {\n WType _ret=null;\n WBasicType paraType = (WBasicType) n.f0.accept(this,argu);\n boolean flag = ((WMethod)argu).insertVar(n.f1.f0.toString(),paraType);\n if (!flag){\n String errorString = \"variable already declared : \" + n.f1.f0.toString();\n PrintError.print(n.f1.f0.beginLine, errorString);\n }\n ((WMethod)argu).addParas(paraType);\n ((WMethod)argu).insertInit(n.f1.f0.toString());\n n.f1.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "d5accaab7024b2ad03e48c38cc9b72bc", "score": "0.4893884", "text": "@Override\n\tpublic void onProcedureParametersDeclarationBegin(int i, Symbol symbol) {\n\n\t}", "title": "" }, { "docid": "ee381a9038ad79a09b1cde95ca20a99a", "score": "0.4878035", "text": "public final void synpred82_InternalType_fragment() throws RecognitionException {\n Token otherlv_1 = null;\n EObject lv_parameters_0_0 = null;\n\n EObject lv_parameters_2_0 = null;\n\n\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:2: ( ( (\n // (lv_parameters_0_0= ruleformalParameters ) ) otherlv_1= ',' ( (lv_parameters_2_0= rulelastFormalParameter ) ) )\n // )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:2: ( (\n // (lv_parameters_0_0= ruleformalParameters ) ) otherlv_1= ',' ( (lv_parameters_2_0= rulelastFormalParameter ) ) )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:2: ( (\n // (lv_parameters_0_0= ruleformalParameters ) ) otherlv_1= ',' ( (lv_parameters_2_0= rulelastFormalParameter )\n // ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:3: (\n // (lv_parameters_0_0= ruleformalParameters ) ) otherlv_1= ',' ( (lv_parameters_2_0= rulelastFormalParameter )\n // )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4257:3: (\n // (lv_parameters_0_0= ruleformalParameters ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4258:1:\n // (lv_parameters_0_0= ruleformalParameters )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4258:1:\n // (lv_parameters_0_0= ruleformalParameters )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4259:3:\n // lv_parameters_0_0= ruleformalParameters\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParameterListAccess()\n .getParametersFormalParametersParserRuleCall_0_0_0());\n\n }\n pushFollow(FOLLOW_ruleformalParameters_in_synpred82_InternalType9486);\n lv_parameters_0_0 = ruleformalParameters();\n\n state._fsp--;\n if (state.failed)\n return;\n\n }\n\n\n }\n\n otherlv_1 = (Token) match(input, 68, FOLLOW_68_in_synpred82_InternalType9498);\n if (state.failed)\n return;\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4279:1: (\n // (lv_parameters_2_0= rulelastFormalParameter ) )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4280:1:\n // (lv_parameters_2_0= rulelastFormalParameter )\n {\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4280:1:\n // (lv_parameters_2_0= rulelastFormalParameter )\n // ../org.sourcepit.java.type/src-gen/org/sourcepit/java/type/parser/antlr/internal/InternalType.g:4281:3:\n // lv_parameters_2_0= rulelastFormalParameter\n {\n if (state.backtracking == 0) {\n\n newCompositeNode(grammarAccess.getFormalParameterListAccess()\n .getParametersLastFormalParameterParserRuleCall_0_2_0());\n\n }\n pushFollow(FOLLOW_rulelastFormalParameter_in_synpred82_InternalType9519);\n lv_parameters_2_0 = rulelastFormalParameter();\n\n state._fsp--;\n if (state.failed)\n return;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "title": "" }, { "docid": "e827436742cb98820b473bf929402d32", "score": "0.48648164", "text": "public final void synpred23_InternalModelDsl_fragment() throws RecognitionException { \n // InternalModelDsl.g:3558:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )\n // InternalModelDsl.g:3558:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )\n {\n // InternalModelDsl.g:3558:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )\n // InternalModelDsl.g:3559:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) )\n {\n // InternalModelDsl.g:3559:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )?\n int alt134=2;\n int LA134_0 = input.LA(1);\n\n if ( (LA134_0==RULE_ID||LA134_0==49||LA134_0==66) ) {\n alt134=1;\n }\n switch (alt134) {\n case 1 :\n // InternalModelDsl.g:3560:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )*\n {\n // InternalModelDsl.g:3560:6: ( ( ruleJvmFormalParameter ) )\n // InternalModelDsl.g:3561:7: ( ruleJvmFormalParameter )\n {\n // InternalModelDsl.g:3561:7: ( ruleJvmFormalParameter )\n // InternalModelDsl.g:3562:8: ruleJvmFormalParameter\n {\n pushFollow(FOLLOW_61);\n ruleJvmFormalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // InternalModelDsl.g:3565:6: ( ',' ( ( ruleJvmFormalParameter ) ) )*\n loop133:\n do {\n int alt133=2;\n int LA133_0 = input.LA(1);\n\n if ( (LA133_0==65) ) {\n alt133=1;\n }\n\n\n switch (alt133) {\n \tcase 1 :\n \t // InternalModelDsl.g:3566:7: ',' ( ( ruleJvmFormalParameter ) )\n \t {\n \t match(input,65,FOLLOW_9); if (state.failed) return ;\n \t // InternalModelDsl.g:3567:7: ( ( ruleJvmFormalParameter ) )\n \t // InternalModelDsl.g:3568:8: ( ruleJvmFormalParameter )\n \t {\n \t // InternalModelDsl.g:3568:8: ( ruleJvmFormalParameter )\n \t // InternalModelDsl.g:3569:9: ruleJvmFormalParameter\n \t {\n \t pushFollow(FOLLOW_61);\n \t ruleJvmFormalParameter();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop133;\n }\n } while (true);\n\n\n }\n break;\n\n }\n\n // InternalModelDsl.g:3574:5: ( ( '|' ) )\n // InternalModelDsl.g:3575:6: ( '|' )\n {\n // InternalModelDsl.g:3575:6: ( '|' )\n // InternalModelDsl.g:3576:7: '|'\n {\n match(input,71,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "title": "" }, { "docid": "335ba7a96ee1436ae71220cb6f2e4781", "score": "0.4861733", "text": "public final void rule__Signature__ParamsAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGo.g:16015:1: ( ( ruleparameters ) )\n // InternalGo.g:16016:2: ( ruleparameters )\n {\n // InternalGo.g:16016:2: ( ruleparameters )\n // InternalGo.g:16017:3: ruleparameters\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSignatureAccess().getParamsParametersParserRuleCall_0_0()); \n }\n pushFollow(FOLLOW_2);\n ruleparameters();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSignatureAccess().getParamsParametersParserRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "71d8909feba2f77b71381d8589565e76", "score": "0.4860874", "text": "public final void rule__Formal_parameter_section__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:2729:1: ( ( ( rule__Formal_parameter_section__ValueAssignment_0 ) ) | ( ( rule__Formal_parameter_section__VariableAssignment_1 ) ) | ( ( rule__Formal_parameter_section__ProcedureAssignment_2 ) ) | ( ( rule__Formal_parameter_section__FunctionAssignment_3 ) ) )\r\n int alt29=4;\r\n switch ( input.LA(1) ) {\r\n case RULE_ID:\r\n {\r\n alt29=1;\r\n }\r\n break;\r\n case 58:\r\n {\r\n alt29=2;\r\n }\r\n break;\r\n case 59:\r\n {\r\n alt29=3;\r\n }\r\n break;\r\n case 61:\r\n {\r\n alt29=4;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 29, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt29) {\r\n case 1 :\r\n // InternalPascal.g:2730:2: ( ( rule__Formal_parameter_section__ValueAssignment_0 ) )\r\n {\r\n // InternalPascal.g:2730:2: ( ( rule__Formal_parameter_section__ValueAssignment_0 ) )\r\n // InternalPascal.g:2731:3: ( rule__Formal_parameter_section__ValueAssignment_0 )\r\n {\r\n before(grammarAccess.getFormal_parameter_sectionAccess().getValueAssignment_0()); \r\n // InternalPascal.g:2732:3: ( rule__Formal_parameter_section__ValueAssignment_0 )\r\n // InternalPascal.g:2732:4: rule__Formal_parameter_section__ValueAssignment_0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Formal_parameter_section__ValueAssignment_0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getFormal_parameter_sectionAccess().getValueAssignment_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalPascal.g:2736:2: ( ( rule__Formal_parameter_section__VariableAssignment_1 ) )\r\n {\r\n // InternalPascal.g:2736:2: ( ( rule__Formal_parameter_section__VariableAssignment_1 ) )\r\n // InternalPascal.g:2737:3: ( rule__Formal_parameter_section__VariableAssignment_1 )\r\n {\r\n before(grammarAccess.getFormal_parameter_sectionAccess().getVariableAssignment_1()); \r\n // InternalPascal.g:2738:3: ( rule__Formal_parameter_section__VariableAssignment_1 )\r\n // InternalPascal.g:2738:4: rule__Formal_parameter_section__VariableAssignment_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Formal_parameter_section__VariableAssignment_1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getFormal_parameter_sectionAccess().getVariableAssignment_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalPascal.g:2742:2: ( ( rule__Formal_parameter_section__ProcedureAssignment_2 ) )\r\n {\r\n // InternalPascal.g:2742:2: ( ( rule__Formal_parameter_section__ProcedureAssignment_2 ) )\r\n // InternalPascal.g:2743:3: ( rule__Formal_parameter_section__ProcedureAssignment_2 )\r\n {\r\n before(grammarAccess.getFormal_parameter_sectionAccess().getProcedureAssignment_2()); \r\n // InternalPascal.g:2744:3: ( rule__Formal_parameter_section__ProcedureAssignment_2 )\r\n // InternalPascal.g:2744:4: rule__Formal_parameter_section__ProcedureAssignment_2\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Formal_parameter_section__ProcedureAssignment_2();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getFormal_parameter_sectionAccess().getProcedureAssignment_2()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // InternalPascal.g:2748:2: ( ( rule__Formal_parameter_section__FunctionAssignment_3 ) )\r\n {\r\n // InternalPascal.g:2748:2: ( ( rule__Formal_parameter_section__FunctionAssignment_3 ) )\r\n // InternalPascal.g:2749:3: ( rule__Formal_parameter_section__FunctionAssignment_3 )\r\n {\r\n before(grammarAccess.getFormal_parameter_sectionAccess().getFunctionAssignment_3()); \r\n // InternalPascal.g:2750:3: ( rule__Formal_parameter_section__FunctionAssignment_3 )\r\n // InternalPascal.g:2750:4: rule__Formal_parameter_section__FunctionAssignment_3\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Formal_parameter_section__FunctionAssignment_3();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getFormal_parameter_sectionAccess().getFunctionAssignment_3()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8c13e7d781edb1944f549fcd994d9cc8", "score": "0.48576793", "text": "public final smaliParser.param_list_return param_list() throws RecognitionException {\n\t\tsmaliParser.param_list_return retval = new smaliParser.param_list_return();\n\t\tretval.start = input.LT(1);\n\n\t\tCommonTree root_0 = null;\n\n\t\tToken PARAM_LIST_START95=null;\n\t\tToken PARAM_LIST_END97=null;\n\t\tToken PARAM_LIST_OR_ID_START98=null;\n\t\tToken PRIMITIVE_TYPE99=null;\n\t\tToken PARAM_LIST_OR_ID_END100=null;\n\t\tParserRuleReturnScope nonvoid_type_descriptor96 =null;\n\t\tParserRuleReturnScope nonvoid_type_descriptor101 =null;\n\n\t\tCommonTree PARAM_LIST_START95_tree=null;\n\t\tCommonTree PARAM_LIST_END97_tree=null;\n\t\tCommonTree PARAM_LIST_OR_ID_START98_tree=null;\n\t\tCommonTree PRIMITIVE_TYPE99_tree=null;\n\t\tCommonTree PARAM_LIST_OR_ID_END100_tree=null;\n\t\tRewriteRuleTokenStream stream_PARAM_LIST_OR_ID_START=new RewriteRuleTokenStream(adaptor,\"token PARAM_LIST_OR_ID_START\");\n\t\tRewriteRuleTokenStream stream_PARAM_LIST_OR_ID_END=new RewriteRuleTokenStream(adaptor,\"token PARAM_LIST_OR_ID_END\");\n\t\tRewriteRuleTokenStream stream_PARAM_LIST_START=new RewriteRuleTokenStream(adaptor,\"token PARAM_LIST_START\");\n\t\tRewriteRuleTokenStream stream_PARAM_LIST_END=new RewriteRuleTokenStream(adaptor,\"token PARAM_LIST_END\");\n\t\tRewriteRuleTokenStream stream_PRIMITIVE_TYPE=new RewriteRuleTokenStream(adaptor,\"token PRIMITIVE_TYPE\");\n\t\tRewriteRuleSubtreeStream stream_nonvoid_type_descriptor=new RewriteRuleSubtreeStream(adaptor,\"rule nonvoid_type_descriptor\");\n\n\t\ttry {\n\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:602:3: ( PARAM_LIST_START ( nonvoid_type_descriptor )* PARAM_LIST_END -> ( nonvoid_type_descriptor )* | PARAM_LIST_OR_ID_START ( PRIMITIVE_TYPE )* PARAM_LIST_OR_ID_END -> ( PRIMITIVE_TYPE )* | ( nonvoid_type_descriptor )* )\n\t\t\tint alt15=3;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase PARAM_LIST_START:\n\t\t\t\t{\n\t\t\t\talt15=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase PARAM_LIST_OR_ID_START:\n\t\t\t\t{\n\t\t\t\talt15=2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ARRAY_DESCRIPTOR:\n\t\t\tcase CLASS_DESCRIPTOR:\n\t\t\tcase CLOSE_PAREN:\n\t\t\tcase PRIMITIVE_TYPE:\n\t\t\t\t{\n\t\t\t\talt15=3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 15, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt15) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:602:5: PARAM_LIST_START ( nonvoid_type_descriptor )* PARAM_LIST_END\n\t\t\t\t\t{\n\t\t\t\t\tPARAM_LIST_START95=(Token)match(input,PARAM_LIST_START,FOLLOW_PARAM_LIST_START_in_param_list2344);\n\t\t\t\t\tstream_PARAM_LIST_START.add(PARAM_LIST_START95);\n\n\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:602:22: ( nonvoid_type_descriptor )*\n\t\t\t\t\tloop12:\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tint alt12=2;\n\t\t\t\t\t\tint LA12_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA12_0==ARRAY_DESCRIPTOR||LA12_0==CLASS_DESCRIPTOR||LA12_0==PRIMITIVE_TYPE) ) {\n\t\t\t\t\t\t\talt12=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (alt12) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:602:22: nonvoid_type_descriptor\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpushFollow(FOLLOW_nonvoid_type_descriptor_in_param_list2346);\n\t\t\t\t\t\t\tnonvoid_type_descriptor96=nonvoid_type_descriptor();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_nonvoid_type_descriptor.add(nonvoid_type_descriptor96.getTree());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak loop12;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tPARAM_LIST_END97=(Token)match(input,PARAM_LIST_END,FOLLOW_PARAM_LIST_END_in_param_list2349);\n\t\t\t\t\tstream_PARAM_LIST_END.add(PARAM_LIST_END97);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: nonvoid_type_descriptor\n\t\t\t\t\t// token labels:\n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels:\n\t\t\t\t\t// rule list labels:\n\t\t\t\t\t// wildcard labels:\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 602:62: -> ( nonvoid_type_descriptor )*\n\t\t\t\t\t{\n\t\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:602:65: ( nonvoid_type_descriptor )*\n\t\t\t\t\t\twhile ( stream_nonvoid_type_descriptor.hasNext() ) {\n\t\t\t\t\t\t\tadaptor.addChild(root_0, stream_nonvoid_type_descriptor.nextTree());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstream_nonvoid_type_descriptor.reset();\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:603:5: PARAM_LIST_OR_ID_START ( PRIMITIVE_TYPE )* PARAM_LIST_OR_ID_END\n\t\t\t\t\t{\n\t\t\t\t\tPARAM_LIST_OR_ID_START98=(Token)match(input,PARAM_LIST_OR_ID_START,FOLLOW_PARAM_LIST_OR_ID_START_in_param_list2360);\n\t\t\t\t\tstream_PARAM_LIST_OR_ID_START.add(PARAM_LIST_OR_ID_START98);\n\n\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:603:28: ( PRIMITIVE_TYPE )*\n\t\t\t\t\tloop13:\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tint alt13=2;\n\t\t\t\t\t\tint LA13_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA13_0==PRIMITIVE_TYPE) ) {\n\t\t\t\t\t\t\talt13=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (alt13) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:603:28: PRIMITIVE_TYPE\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tPRIMITIVE_TYPE99=(Token)match(input,PRIMITIVE_TYPE,FOLLOW_PRIMITIVE_TYPE_in_param_list2362);\n\t\t\t\t\t\t\tstream_PRIMITIVE_TYPE.add(PRIMITIVE_TYPE99);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak loop13;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tPARAM_LIST_OR_ID_END100=(Token)match(input,PARAM_LIST_OR_ID_END,FOLLOW_PARAM_LIST_OR_ID_END_in_param_list2365);\n\t\t\t\t\tstream_PARAM_LIST_OR_ID_END.add(PARAM_LIST_OR_ID_END100);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: PRIMITIVE_TYPE\n\t\t\t\t\t// token labels:\n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels:\n\t\t\t\t\t// rule list labels:\n\t\t\t\t\t// wildcard labels:\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 603:65: -> ( PRIMITIVE_TYPE )*\n\t\t\t\t\t{\n\t\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:603:68: ( PRIMITIVE_TYPE )*\n\t\t\t\t\t\twhile ( stream_PRIMITIVE_TYPE.hasNext() ) {\n\t\t\t\t\t\t\tadaptor.addChild(root_0, stream_PRIMITIVE_TYPE.nextNode());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstream_PRIMITIVE_TYPE.reset();\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:604:5: ( nonvoid_type_descriptor )*\n\t\t\t\t\t{\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\n\n\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:604:5: ( nonvoid_type_descriptor )*\n\t\t\t\t\tloop14:\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tint alt14=2;\n\t\t\t\t\t\tint LA14_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA14_0==ARRAY_DESCRIPTOR||LA14_0==CLASS_DESCRIPTOR||LA14_0==PRIMITIVE_TYPE) ) {\n\t\t\t\t\t\t\talt14=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (alt14) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// /mnt/ssd1/workspace/aosp_master/external/smali/smali/src/main/antlr/smaliParser.g:604:5: nonvoid_type_descriptor\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpushFollow(FOLLOW_nonvoid_type_descriptor_in_param_list2376);\n\t\t\t\t\t\t\tnonvoid_type_descriptor101=nonvoid_type_descriptor();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tadaptor.addChild(root_0, nonvoid_type_descriptor101.getTree());\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak loop14;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tretval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t\tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "1d93af1f7a70106eb0b6ec14df3b98cd", "score": "0.4845475", "text": "public final void entryRuleFullJvmFormalParameter() throws RecognitionException {\n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:1190:1: ( ruleFullJvmFormalParameter EOF )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:1191:1: ruleFullJvmFormalParameter EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFullJvmFormalParameterRule()); \n }\n pushFollow(FOLLOW_ruleFullJvmFormalParameter_in_entryRuleFullJvmFormalParameter2474);\n ruleFullJvmFormalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFullJvmFormalParameterRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleFullJvmFormalParameter2481); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "02cb4336c1b880450df8fee65c9fbecf", "score": "0.48334923", "text": "public final void rule__Formal_parameter_list__Group__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:9060:1: ( ( ')' ) )\r\n // InternalPascal.g:9061:1: ( ')' )\r\n {\r\n // InternalPascal.g:9061:1: ( ')' )\r\n // InternalPascal.g:9062:2: ')'\r\n {\r\n before(grammarAccess.getFormal_parameter_listAccess().getRightParenthesisKeyword_3()); \r\n match(input,28,FOLLOW_2); \r\n after(grammarAccess.getFormal_parameter_listAccess().getRightParenthesisKeyword_3()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" } ]
212c177a493a7573d1a81429b8e526c8
/ The following methods deal with incoming packets.
[ { "docid": "1d74e27787d07e23f92541e169eb9a43", "score": "0.0", "text": "public void packet0aLogin(final ClientConn conn, String uuid, final String username,\n String addr, float x, float y) {\n boolean isBanned = bannedPlayers.isPlayerBanned(username);\n\n if (isBanned) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n kickPlayer(conn, username, bannedPlayers.getReason(username));\n }\n }, \"ClientBanKicker\").start();\n } else {\n MPPlayer player = new MPPlayer(0, 0, uuid, username, addr, this);\n player.setX(x);\n player.setY(y);\n entities.add(uuid, player);\n conn.setPlayer(player);\n }\n }", "title": "" } ]
[ { "docid": "7b1cad8afd79b7b263a21d132e151551", "score": "0.7081236", "text": "protected void onRecivePacket(ReceivePacket receivePacket) {\n\t}", "title": "" }, { "docid": "951bbf1a6382bacb5529237411f6a5a2", "score": "0.68393093", "text": "public void handlePacket(byte[] recvbuf, int length) {\n }", "title": "" }, { "docid": "7b520bd5488da8ca8deec75f7e7521f5", "score": "0.680597", "text": "public void processPacket(INetHandler handler) {\n/* 74 */ processPacket((INetHandlerPlayClient)handler);\n/* */ }", "title": "" }, { "docid": "3f2f7e13fce5fc9851b95d9a5e391946", "score": "0.67893267", "text": "public void onRecvParsedPacket(ArtemisPacket pkt);", "title": "" }, { "docid": "c14068bc3b8d594bf09e66a91366788e", "score": "0.6783373", "text": "public void handlePackets(byte[] data) {\n if(data == null)\n return;\n // Data deserialized to be handled\n ObjectInputStream objIn;\n Message msg;\n try {\n objIn = new ObjectInputStream(new ByteArrayInputStream(data));\n msg = (Message) objIn.readObject();\n // Deserialized message now read\n\n // Translate messages to a format which can be handled.\n if(msg != null) {\n // Translate OP code in message and cast based on code.\n switch (msg.getOp()) {\n case OP_PLAYER:\n lastPlayerMessage = (PlayerMessage)msg;\n break;\n case OP_HOOK: break;\n case OP_LEAVE: close(); break;\n }\n }\n } catch (Exception ignored) {}\n }", "title": "" }, { "docid": "98465703ed2f185a6b501fcf8a489014", "score": "0.6766071", "text": "public void consume() {\n\t\tinbound = connection.takeFromQueue();\n\t\tif(inbound != \"\" && inbound != null){\n\t\t\tLog.log(\"Tagged info Received: \" + inbound);\n\t\t\t\n\t\t\ttry {\n\t\t\t\ttag = inbound.substring(inbound.indexOf(\"{\")+1, inbound.indexOf(\":\"));\n\t\t\t\tinbound = inbound.substring(inbound.indexOf(\":\")+1, inbound.indexOf(\"}\"));\n\t\t\t\t\n\t\t\t}catch(IndexOutOfBoundsException e) {\n\t\t\t\ttag = \"\";\n\t\t\t}\n\t\t\t\n\t\t\t//Compare tag to a number of cases. Currently everything gets sent to the SQL Server.\n\t\t\tif(tag.equals(\"BER\") || tag.equals(\"ERR\")|| tag.equals(\"SYN\")\n\t\t\t\t\t|| tag.equals(\"UTI\")) {\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.dataToServer(inbound, tag);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tLog.important(\"Could not send data to server!\");\n\t\t\t\t}\n\t\t\t\tLog.log(\"Data marked: \" + tag + \" was sent to SQL\");\n\t\t\t}else if(tag.equals(\"MOD\") || tag.equals(\"FPS\")|| tag.equals(\"VCL\")\n\t\t\t\t\t|| tag.equals(\"RES\")) {\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.settingToServer(tag, inbound);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tLog.important(\"Could not send setting to server!\");\n\t\t\t\t}\n\t\t\t\tLog.log(\"Setting marked: \" + tag + \" was sent to SQL\");\n\t\t\t}else {\n\t\t\t\tLog.important(\"Received something Illegal!\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e2d0f11b7f0d4f7fc2958121af46abd0", "score": "0.6757896", "text": "public void processPacket(INetHandler handler) {\n/* 58 */ processPacket((INetHandlerPlayServer)handler);\n/* */ }", "title": "" }, { "docid": "01fa7da30f8065f73324c2b77a9cc0df", "score": "0.66858405", "text": "boolean onIncomingPacket(SIPTunnel tunnel, String msgBuff, DatagramPacket packet);", "title": "" }, { "docid": "c6d4013e7b6e5ad45b0c3ff5cac1d628", "score": "0.66691864", "text": "public abstract void process(PacketHandler handler);", "title": "" }, { "docid": "0f075fab2dd609a61fbe12fa8e6603a9", "score": "0.666262", "text": "@Override\n public void processPacket(WebSocketServerEvent aEvent, WebSocketPacket aPacket) {\n }", "title": "" }, { "docid": "d59a2fe15f25ff1b2db4041a38f2e3e4", "score": "0.6640229", "text": "private void dealPacket(byte[] srcBytes) {\n\n Packet packet = new Packet();\n byte[] tempBytes = new byte[srcBytes.length - 2];\n System.arraycopy(srcBytes, 1, tempBytes, 0, tempBytes.length);\n byte[] bytes = PacketProcessing.unEscape(tempBytes, PacketProcessing.toEscapeByte, PacketProcessing.escapeByte);\n int checkCode = bytes[bytes.length - 1];\n int tempCode = PacketProcessing.checkPackage(bytes, 0, bytes.length - 2);\n if (checkCode != tempCode) {\n return;\n }\n\n byte[] messageId = ArraysUtils.subarrays(bytes, 0, 2);\n packet.setMessageId(Convert.byte2Int(messageId, 2));\n byte[] tid = ArraysUtils.subarrays(bytes, 4, 6);\n long terminalId = Long.parseLong(Convert.bytesToHexString(tid));\n packet.setTerminalId(terminalId);\n byte[] serial = ArraysUtils.subarrays(bytes, 10, 2);\n int serialNumber = Convert.byte2Int(serial, 2);\n packet.setSerialNumber(serialNumber);\n packet.setMessageBody(ArraysUtils.subarrays(bytes, 12, bytes.length - 13));\n logger.info(terminalId + \" 收到消息 : \" + Convert.bytesToHexString(srcBytes));\n if (commandCache.get_5(serialNumber + \"_\" + terminalId) != null) {\n commandCache.remove_5(serialNumber + \"_\" + terminalId);\n }\n if (commandCache.get_10(serialNumber + \"_\" + terminalId) != null) {\n commandCache.remove_10(serialNumber + \"_\" + terminalId);\n }\n if (commandCache.get_15(serialNumber + \"_\" + terminalId) != null) {\n commandCache.remove_15(serialNumber + \"_\" + terminalId);\n }\n if (commandCache.get_30(serialNumber + \"_\" + terminalId) != null) {\n commandCache.remove_30(serialNumber + \"_\" + terminalId);\n }\n TaCommand command = this.protocolDispatcher.getHandler(packet.getMessageId());\n logger.info(\"messageId:\" + packet.getMessageId());\n if (command != null) {\n command.processor(packet);\n } else {\n //TODO:为了测试:对于平台下发指令的终端通用应答,回复成功。\n command = new TerminalCommonRes();\n command.processor(packet);\n logger.info(\"protocol cann't find...\" + packet.getMessageId());\n }\n }", "title": "" }, { "docid": "408061f89c29d934d1f5849814743cd4", "score": "0.6629628", "text": "void handlePacket(byte[] data){\n if((state == ConnectionState.STATE_DISCONNECTING || state == ConnectionState.STATE_DISCONNECTED) && data[0] != PacketType.RELY)\n return;\n\n lastPacketReceiveTime = System.currentTimeMillis(); //Assume packet received when handling started\n\n //Counter\n if(RUDPConstants.isPacketReliable(data[0])){\n\n //Send rely packet\n byte[] l = new byte[]{data[1], data[2]};\n sendPacket(PacketType.RELY, l);\n\n //save to received packet list\n short seq = NetUtils.asShort(data, 1);\n Long currentTime = System.currentTimeMillis();\n Long packetOverTime = currentTime + RUDPConstants.PACKET_STORE_TIME_MILLISECONDS;\n\n Iterator<Entry<Short, Long>> it = packetsReceived.entrySet().iterator();\n while(it.hasNext()){\n Entry<Short, Long> storedSeq = it.next();\n if(storedSeq.getKey() == seq){\n return;\n }\n if(storedSeq.getValue() < currentTime) it.remove(); //XXX use another thread ?\n }\n receivedReliable++;\n packetsReceived.put(seq, packetOverTime);\n }else{\n received++;\n }\n\n if(data[0] == PacketType.RELY){\n synchronized(packetsSent){\n for(int i = 0; i < packetsSent.size(); i++){\n if(packetsSent.get(i).seq == NetUtils.asShort(data, 3)){\n packetsSent.remove(i);\n return;\n }\n }\n if(state == ConnectionState.STATE_DISCONNECTING && packetsSent.size() == 0){\n state = ConnectionState.STATE_DISCONNECTED;\n server.remove(this);\n }\n }\n }else if(data[0] == PacketType.PING_REQUEST){\n short seq = NetUtils.asShort(data, 1);\n if(NetUtils.sequenceGreaterThan(seq, lastPingSeq)){\n lastPingSeq = seq;\n byte[] l = new byte[]{data[3], data[4], data[5], data[6], data[7], data[8], data[9], data[10]};\n sendPacket(PacketType.PING_RESPONSE, l);//sending time received (long) // ping packet format: [IN:] CMD_PING_REPONSE seqId sendMilliseconds\n }\n }else if(data[0] == PacketType.PING_RESPONSE){\n short seq = NetUtils.asShort(data, 1);\n if(NetUtils.sequenceGreaterThan(seq, lastPingSeq)){\n lastPingSeq = seq;\n latency = (int) (System.currentTimeMillis() - NetUtils.asLong(data, 3));\n if(latency < 5) latency = 5;\n }\n }else if(data[0] == PacketType.DISCONNECT_FROM_SERVER){\n byte[] packetData = new byte[data.length - 3];\n System.arraycopy(data, 3, packetData, 0, data.length - 3);\n disconnected(new String(packetData, StandardCharsets.UTF_8));\n }else if(data[0] == PacketType.RELIABLE){\n\n //handle reliable packet\n if(packetHandler != null){\n try{\n packetHandler.onPacketReceived(data, true); //pass raw packet payload\n }catch(Exception e){\n //TODO why the heck is this simply supressed?\n e.printStackTrace();\n }\n }\n }else if(data[0] == PacketType.PACKETSSTATS_REQUEST){\n byte[] packet = new byte[17];\n NetUtils.writeBytes(packet, 0, sent + 1); // Add one to count the current packet\n NetUtils.writeBytes(packet, 4, sentReliable);\n NetUtils.writeBytes(packet, 8, received);\n NetUtils.writeBytes(packet, 12, receivedReliable);\n sendPacket(PacketType.PACKETSSTATS_RESPONSE, packet);\n }else if(data[0] == PacketType.PACKETSSTATS_RESPONSE){\n int sentRemote = NetUtils.asInt(data, 3);\n int sentRemoteR = NetUtils.asInt(data, 7);\n int receivedRemote = NetUtils.asInt(data, 11);\n int receivedRemoteR = NetUtils.asInt(data, 15);\n if(packetHandler != null) packetHandler.onRemoteStatsReturned(sentRemote, sentRemoteR, receivedRemote, receivedRemoteR);\n }else if(packetHandler != null){\n try{\n packetHandler.onPacketReceived(data, false); //pass raw packet payload\n }catch(Exception e){\n //TODO why the heck is this simply supressed?\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "c034a1d01e818b4d74072f48c343e507", "score": "0.660283", "text": "public void processPacket(INetHandlerPlayServer handler) {\n/* 29 */ handler.processKeepAlive(this);\n/* */ }", "title": "" }, { "docid": "06267a833d16f752fa08b12f50c04a2d", "score": "0.657743", "text": "public void receivePacket(DatagramPacket packetIn);", "title": "" }, { "docid": "3260f64d9166a00e87a5fe6bb07b10a7", "score": "0.657145", "text": "public void receivePacket(Packet p);", "title": "" }, { "docid": "5c8b15a02828731003d8dd88b7f5d66b", "score": "0.65703374", "text": "public void processPacket(INetHandler handler) {\n/* 83 */ func_180732_a((INetHandlerPlayClient)handler);\n/* */ }", "title": "" }, { "docid": "2144ced3a4a0c1803431b137165ce40b", "score": "0.6474031", "text": "private void parsePacket(){\n\n //check whether it's a send message packet or not\n if(content.length()>4){\n String cmd = content.substring(0, 4);\n if(cmd.equalsIgnoreCase(new String(\"Send\") )){\n //expected format:\n //Send xxxx to A\n //4, ,?, 2, ,1\n this.type = PacketType.Message;\n this.destination = content.charAt(content.length()-1) - 'A';\n //check whether the desitnation is within the range\n if(this.destination >= DataCenter.TOTAL_NUM || this.destination < 0){\n System.out.println(\"Invalid Destination!!\");\n }\n this.message = content.substring(5, content.length()-2);\n return;\n }\n }\n\n String str[] = content.split(\" \");\n\n if(str[0].equals(new String(\"insert\"))){\n this.type = PacketType.Insert;\n this.key = Integer.parseInt(str[1]);\n this.value = Integer.parseInt(str[2]);\n this.model = Integer.parseInt(str[3]);\n if(this.model == 1 || this.model == 2){\n this.destination = DataCenter.TOTAL_NUM;\n }\n return;\n } else if(str[0].equals(new String(\"update\"))){\n this.type = PacketType.Update;\n this.key = Integer.parseInt(str[1]);\n this.value = Integer.parseInt(str[2]);\n this.model = Integer.parseInt(str[3]);\n if(this.model == 1 || this.model == 2){\n this.destination = DataCenter.TOTAL_NUM;\n }\n return;\n } else if(str[0].equals(new String(\"delete\"))){\n this.type = PacketType.Delete;\n this.key = Integer.parseInt(str[1]);\n return;\n } else if(str[0].equals(new String(\"get\"))){\n this.type = PacketType.Get;\n this.key = Integer.parseInt(str[1]);\n this.model = Integer.parseInt(str[2]);\n if(this.model == 1 || this.model == 2){\n this.destination = DataCenter.TOTAL_NUM;\n }\n return;\n } else if(str[0].equals(new String(\"search\"))){\n this.type = PacketType.Search;\n this.key = Integer.parseInt(str[1]);\n return;\n } else if(content.equals(new String(\"ACK\"))){\n this.type = PacketType.Ack;\n return;\n } else if(str[0].equals(new String(\"delay\"))){\n this.type = PacketType.Delay;\n this.delay = Integer.parseInt(str[1])*1000;\n return;\n }\n\n System.out.println(\"Invalid Command\");\n this.type = PacketType.Invalid;\n\n }", "title": "" }, { "docid": "f2f0d893f395a418d305503b96b8f5e3", "score": "0.64552426", "text": "public void receive(Packet packet) {\n\t\t\n\t}", "title": "" }, { "docid": "6ab48f6dcdc4a153824aaeee753aa740", "score": "0.64472014", "text": "public void onSendPacket(ArtemisPacket pkt);", "title": "" }, { "docid": "2c884275d4082c0588a01eab31a0a1ab", "score": "0.64300394", "text": "protected void onApplicationPacketReceived(StackdPacket packet) {\n\t}", "title": "" }, { "docid": "6fca9754583150dc5fec6f7bbc11cd28", "score": "0.64291", "text": "public void processPacket(Packet packet) \n { \n Message aMessage = (Message)packet;\n \n System.out.println(\"***Packet contents:\" + packet.toXML());\n //System.out.println(((Message)packet).getBody());\n \n // Check to see if we have a \"pdu property\" attached to\n // this message. This is a Java object serialization format object\n // attached to the message\n Object anObject = aMessage.getProperty(\"PDU\");\n if( (anObject != null) && (anObject instanceof EntityStatePdu))\n {\n edu.nps.moves.dis.EntityStatePdu espdu = (edu.nps.moves.dis.EntityStatePdu)(aMessage.getProperty(\"PDU\"));\n {\n System.out.println(\"got a PDU object as a property attachment\");\n }\n }\n \n // Check to see if we have an \"XML-PDU\" property attached. This is a Java\n // String object containing the XML of a PDU.\n anObject = aMessage.getProperty(\"XML-PDU\");\n if( (anObject != null) && (anObject instanceof String))\n {\n String xmlReceived = (String)anObject;\n System.out.println(\"XML received in message is \" + xmlReceived);\n \n }\n }", "title": "" }, { "docid": "88f60c71aac55b33bb88e0150c89a176", "score": "0.6397851", "text": "private void receive()\n {\n try \n {\n\t\t\tsocket.receive(packet);\n\t\t}\n catch (IOException e)\n {\n\t\t\te.printStackTrace();\n\t\t}\n receivedData = packet.getData();\n packet.setData(buffer);\n vision.setData(receivedData);\n }", "title": "" }, { "docid": "e53cafc683aaea7311eee687299ad992", "score": "0.6376441", "text": "public void onSendPacketBytes(Origin origin, int pktType, byte[] payload);", "title": "" }, { "docid": "b5ea78963ddfb20cd786fc15ee383453", "score": "0.6376024", "text": "public void receivePacket(Packet packet) {\n packetNumber++;\n if ( verbose ) System.out.println(\"packet > \"+packetNumber +\" > \"+packet);\n if ( packet instanceof TCPPacket) {\n TCPPacket src = (TCPPacket) packet;\n if ( src.src_ip == null ) {\n if ( verbose ) System.out.println(String.format(\"ignorning invalid #%d %s\", packetNumber, src));\n return;\n }\n if ( verbose ) System.out.println(String.format(\"processing #%d %s\", packetNumber, src));\n JpcapTcpPacket jpkt = new JpcapTcpPacket(src);\n if ( bufferPackets ) {\n bufferedPackets.add(jpkt); \n } else {\n packetReassembler.receivePacket(new JpcapTcpPacket(src));\n }\n }\n }", "title": "" }, { "docid": "a503be3c2969fdc499553f2f97f9131f", "score": "0.636056", "text": "public void handleIncomingPacket(PacketInfo packetInfo)\n {\n Packet packet = packetInfo.getPacket();\n if (packet instanceof RtpPacket)\n {\n // This is identical to the default 'else' below, but it defined\n // because the vast majority of packet will follow this path.\n sendOut(packetInfo);\n }\n else if (packet instanceof RtcpFbPliPacket || packet instanceof RtcpFbFirPacket)\n {\n AbstractEndpoint targetEndpoint = null;\n boolean rewriter = false;\n\n long mediaSsrc = (packet instanceof RtcpFbPliPacket)\n ? ((RtcpFbPliPacket) packet).getMediaSourceSsrc()\n : ((RtcpFbFirPacket) packet).getMediaSenderSsrc();\n\n /* If we are rewriting SSRCs to this endpoint, we must ask\n it to convert back the SSRC to the media sender's SSRC. */\n String endpointId = packetInfo.getEndpointId();\n if (endpointId != null)\n {\n AbstractEndpoint ep = getEndpoint(endpointId);\n if (ep instanceof Endpoint && ((Endpoint) ep).doesSsrcRewriting())\n {\n rewriter = true;\n String owner = ((Endpoint) ep).unmapRtcpFbSsrc((RtcpFbPacket) packet);\n if (owner != null)\n targetEndpoint = getEndpoint(owner);\n }\n }\n\n if (!rewriter)\n {\n // XXX we could make this faster with a map\n targetEndpoint = findEndpointByReceiveSSRC(mediaSsrc);\n }\n\n PotentialPacketHandler pph = null;\n if (targetEndpoint instanceof Endpoint)\n {\n pph = (Endpoint) targetEndpoint;\n }\n else if (targetEndpoint instanceof RelayedEndpoint)\n {\n pph = ((RelayedEndpoint)targetEndpoint).getRelay();\n }\n\n // This is not a redundant check. With Octo and 3 or more bridges,\n // some PLI or FIR will come from Octo but the target endpoint will\n // also be Octo. We need to filter these out.\n // TODO: does this still apply with Relays?\n if (pph == null)\n {\n if (logger.isDebugEnabled())\n {\n logger.debug(\"Dropping FIR/PLI for media ssrc \" + mediaSsrc);\n }\n }\n else if (pph.wants(packetInfo))\n {\n pph.send(packetInfo);\n }\n }\n else\n {\n sendOut(packetInfo);\n }\n }", "title": "" }, { "docid": "ac6331637b7ffa81d4ec04f7ea6d1152", "score": "0.6351094", "text": "public interface IProcessedApplicationPacket {\r\n\r\n}", "title": "" }, { "docid": "b10ac9c4911e3a48805b8e64c6372577", "score": "0.6340437", "text": "private void processRequests() throws WrongPairingCodeException {\n\t\twhile (!connection.isClosed()) {\n\t\t\ttry {\n\t\t\t\tif (in.available() > 0) {\n\t\t\t\t\tbyte read = in.readByte();\n\t\t\t\t\tswitch (read) {\n\t\t\t\t\tcase MessageID.PING:\n\t\t\t\t\t\tSystem.out.print(\"PING received. \");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase MessageID.AUTHENTICATE:\n\t\t\t\t\t\tboolean answer = in.readBoolean();\n\t\t\t\t\t\tLog.i(\"PPTREMOTE\", \"Received auth answer.\");\n\t\t\t\t\t\tif (!answer) {\n\t\t\t\t\t\t\tthrow new WrongPairingCodeException();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase MessageID.NOTES_DATA:\n\t\t\t\t\t\tint notesLength = this.receiveInt();\n\t\t\t\t\t\tbyte[] notesArr = new byte[notesLength];\n\t\t\t\t\t\tin.readFully(notesArr, 0, notesLength);\n\t\t\t\t\t\tfinal String notes = new String(notesArr, \"UTF-8\");\n\t\t\t\t\t\tLog.i(\"PPTREMOTE\", \"Received notes data.\");\n\t\t\t\t\t\tthis.mSlide.setNotes(notes);\n\t\t\t\t\t\trunningOn.runOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\trunningOn.onNewSlideReceived(mSlide);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase MessageID.IMAGE_DATA:\n\t\t\t\t\t\t// new image\n\t\t\t\t\t\tint imageLength = this.receiveInt();\n\t\t\t\t\t\tbyte[] temp = new byte[imageLength];\n\t\t\t\t\t\tin.readFully(temp, 0, imageLength);\n\t\t\t\t\t\tByteArrayInputStream imageStream = new ByteArrayInputStream(\n\t\t\t\t\t\t\t\ttemp);\n\t\t\t\t\t\tBitmap image = BitmapFactory.decodeStream(imageStream);\n\t\t\t\t\t\tLog.i(\"PPTREMOTE\", \"Received image.\");\n\t\t\t\t\t\tthis.mSlide.setCurrentView(image);\n\t\t\t\t\t\trunningOn.runOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\trunningOn.onImageChanged(mSlide);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase MessageID.STOP_PRESENTATION:\n\t\t\t\t\t\tLog.i(\"PPTREMOTE\", \"The presentation ended.\");\n\t\t\t\t\t\trunningOn.runOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\trunningOn.onPresentationEnded();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\tLog.e(\"PPTREMOTE\", e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(\"PPTREMOTE\", e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\trunningOn.runOnUiThread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\trunningOn.onConnectionLost();\n\t\t\t}\n\n\t\t});\n\t\tthis.disconnect();\n\n\t}", "title": "" }, { "docid": "e7562ecec885f52f47c544d9772ba664", "score": "0.6332902", "text": "int received();", "title": "" }, { "docid": "9451f3f1eb5bf4f373a29fcc66e2ec77", "score": "0.632359", "text": "private void extractInformation(Packet packet) {\n\t\tString message = \"\";\r\n\r\n\t\t// double-checking -- \"tcp\" filter guarantees that anyway\r\n\t\tif(packet instanceof TCPPacket) {\r\n\t\t\tTCPPacket tempPacket = (TCPPacket) packet;\r\n\t\t\tint byteCount;\r\n\t\t\tint contentLength = 0;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tBufferedReader br = new BufferedReader(new StringReader(new String(packet.data)));\r\n\t\t\t\tString temp = br.readLine();\r\n\t\t\t\tboolean responseFlag = false;\r\n\t\t\t\tmessage = message + temp + \" |\";\r\n\r\n\t\t\t\tif(temp == null || !temp.contains(\"HTTP\")) {\r\n\t\t\t\t\tSystem.out.println(\"TCP > length:\" + tempPacket.data.length + \" | seq: \" + tempPacket.sequence + \" | ack: \" + tempPacket.ack_num);\r\n\r\n\t\t\t\t\tfor(int i = 0; i < responseMessages.size(); i++) {\r\n\t\t\t\t\t\t//System.out.println(\">>>response src: \"+responseMessages.get(i).getSrc_port());\r\n\t\t\t\t\t\t//System.out.println(\">>>temp src: \"+tempPacket.src_port);\r\n\t\t\t\t\t\t//System.out.println(\">>>response dst: \"+responseMessages.get(i).getDst_port());\r\n\t\t\t\t\t\t//System.out.println(\">>>temp dst: \"+tempPacket.dst_port);\r\n\t\t\t\t\t\tif(responseMessages.get(i).getSrc_port() == tempPacket.dst_port\r\n\t\t\t\t\t\t\t\t&& responseMessages.get(i).getDst_port() == tempPacket.src_port){\r\n\t\t\t\t\t\t\tresponseMessages.get(i).setReceivedContentLength(responseMessages.get(i).getReceivedContentLength() + tempPacket.data.length);\r\n\t\t\t\t\t\t\tSystem.out.println(\">>>Received Content Length:\" + responseMessages.get(i).getReceivedContentLength());\r\n\t\t\t\t\t\t\tSystem.out.println(\">>>Content Length:\" + responseMessages.get(i).getContentLength());\r\n\t\t\t\t\t\t\twriteData(tempPacket.data, 0, tempPacket.data.length, requestMessages.get(responseMessages.get(i).getMatchingRequestMessageIndex()).getFolderName() );\r\n\t\t\t\t\t\t\tif(responseMessages.get(i).getReceivedContentLength() == responseMessages.get(i).getContentLength()){\r\n\t\t\t\t\t\t\t\tresponseMessages.get(i).setSegmentCount(responseMessages.get(i).getSegmentCount()+1);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\">>> Segment Count: \" + responseMessages.get(i).getSegmentCount());\r\n\t\t\t\t\t\t\t\tSystem.out.println(\">>> Folder Name: \" + requestMessages.get(responseMessages.get(i).getMatchingRequestMessageIndex()).getFolderName());\r\n\t\t\t\t\t\t\t\twriteMetadata(requestMessages.get(responseMessages.get(i).getMatchingRequestMessageIndex()), responseMessages.get(i), requestMessages.get(responseMessages.get(i).getMatchingRequestMessageIndex()).getFolderName());\r\n\t\t\t\t\t\t\t\trequestMessages.remove(responseMessages.get(i).getMatchingRequestMessageIndex());\r\n\t\t\t\t\t\t\t\tresponseMessages.remove(i);\r\n\t\t\t\t\t\t\t\tresponseFlag = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\tresponseMessages.get(i).setSegmentCount(responseMessages.get(i).getSegmentCount()+1);\r\n\t\t\t\t\t\t\t\tresponseFlag = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(!responseFlag) {\r\n\t\t\t\t\t\tfor(int i = 0; i < incompleteRequestMessages.size(); i++) {\r\n\t\t\t\t\t\t\tif(incompleteRequestMessages.get(i).getSrc_port() == tempPacket.dst_port\r\n\t\t\t\t\t\t\t\t\t&& incompleteRequestMessages.get(i).getDst_port() == tempPacket.src_port){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"<Update expectedAck>\");\r\n\t\t\t\t\t\t\t\tincompleteRequestMessages.get(i).setExpectedAck(tempPacket.ack_num);\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// read the application layer information (HTTP-related)\r\n\t\t\t\t// if request push into the request array\r\n\t\t\t\tif(checkIfRequest(temp) && requestCount < REQUEST_LIMIT) {\r\n\t\t\t\t\tboolean sameURL = false;\r\n\t\t\t\t\tboolean sameCookie = false;\r\n\t\t\t\t\tboolean sameParameters = false;\r\n\t\t\t\t\trequestCount++;\r\n\t\t\t\t\tSystem.out.println(\"[\" + temp + \"]\");\r\n\t\t\t\t\twhile((temp = br.readLine()) != null && temp.getBytes().length > 0) {\r\n\t\t\t\t\t\tSystem.out.println(\"[\" + temp + \"]\");\r\n\r\n\t\t\t\t\t\tif(temp.contains(\"Referer\")){\r\n\t\t\t\t\t\t\tif(temp.split(\"Referer: \")[1].equals(config.getApplicationURL())){\r\n//\t\t\t\t\t\t\t\tSystem.out.println(\"app url: \" + config.getApplicationURL());\r\n//\t\t\t\t\t\t\t\tSystem.out.println(\"referer: \" + temp.split(\"Referer: \")[1]);\r\n\t\t\t\t\t\t\t\tsameURL = true;\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\tif(temp.contains(\"Cookie\") && sameURL){\r\n\t\t\t\t\t\t\tif(temp.split(\"Cookie: \")[1].contains(config.getSessionCookieName())){\r\n\t\t\t\t\t\t\t\tsameCookie = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(temp.contains(\"User-Agent: NANO&ALPER\")) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"hijacked request!\");\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tmessage = message + temp + \"[NEWLINE]\";\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.out.println(\"HTTP REQ > seq: \" + tempPacket.sequence + \" | ack: \" + tempPacket.ack_num);\r\n\r\n\t\t\t\t\tString parameters = \"\";\r\n\t\t\t\t\tif(isPostMessage) {\r\n\t\t\t\t\t\tSystem.out.println(\">POST<\");\r\n\t\t\t\t\t\ttemp = br.readLine();\r\n\r\n\t\t\t\t\t\twhile(temp != null) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(temp.contains(config.getRequestParameterName() + \"=\" + config.getRequestParameterValue()) && sameCookie){\r\n\t\t\t\t\t\t\t\tsameParameters = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tparameters += temp + \"|\";\r\n\t\t\t\t\t\t\tSystem.out.println(parameters);\r\n\t\t\t\t\t\t\ttemp = br.readLine();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(sameParameters){\r\n\t\t\t\t\t\tString tempMessage = message;\r\n\t\t\t\t\t\ttheSocket = new Socket(tempPacket.dst_ip, tempPacket.dst_port);\r\n\t\t\t\t\t\tDataOutputStream dos = new DataOutputStream(theSocket.getOutputStream());\r\n\r\n\t\t\t\t\t\t// find and modify user-agent in message\r\n\t\t\t\t\t\tString userAgentField = new String(\"User-Agent: \");\r\n\t\t\t\t\t\tint indexOfUserAgentField = message.indexOf(userAgentField);\r\n\t\t\t\t\t\tint indexOfNewline = message.indexOf(\"[NEWLINE]\", indexOfUserAgentField);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttempMessage = new StringBuilder(tempMessage).replace(indexOfUserAgentField, indexOfNewline, \"User-Agent: NANO&ALPER\").toString();\r\n\t\t\t\t\t\tString tempMessageArray[] = tempMessage.split(\"\\\\[NEWLINE\\\\]\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString otherTempMessage = \"\";\r\n\t\t\t\t\t\tfor(int i = 0; i < tempMessageArray.length; i++) {\r\n\t\t\t\t\t\t\tif(tempMessageArray[i].contains(\"|\")) {\r\n\t\t\t\t\t\t\t\tString t[] = tempMessageArray[i].split(\"\\\\|\");\r\n\t\t\t\t\t\t\t\totherTempMessage += t[0] + \"\\r\\n\" + t[1] + \"\\r\\n\";\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\totherTempMessage += tempMessageArray[i] + \"\\r\\n\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\totherTempMessage += \"\\r\\n\" + config.getRequestParameterName() + \"=\" + config.getRequestParameterValue();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"-------------------------------\");\r\n\t\t\t\t\t\tSystem.out.println(otherTempMessage);\r\n\t\t\t\t\t\tSystem.out.println(\"-------------------------------\");\r\n\t\t\t\t\t\tdos.write(otherTempMessage.getBytes());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tmessage = message.trim();\r\n\t\t\t\tRequestMessage req = new RequestMessage(tempPacket.src_ip.getHostAddress(), tempPacket.src_port, tempPacket.dst_ip.getHostAddress(), tempPacket.dst_port, java.lang.System.currentTimeMillis(), message, tempPacket.sequence + tempPacket.data.length, parameters);\r\n\t\t\t\treq.setFolderName(createFolder(req));\r\n\t\t\t\tincompleteRequestMessages.add(req);\r\n\t\t\t}\r\n\r\n\t\t\t// else push into the response array\r\n\t\t\telse if(checkifResponse(temp)) {\r\n\t\t\t\tRequestMessage matchingRequest = responseExpected(tempPacket);\r\n\t\t\t\tboolean notModifiedResponse = false;\r\n\r\n\t\t\t\tbyteCount = 0;\r\n\t\t\t\tbyteCount += temp.getBytes().length + LF_LENGTH + CR_LENGTH;\r\n\r\n\t\t\t\tif(matchingRequest != null) {\r\n\t\t\t\t\t/* ====================== header ========================= */\r\n\t\t\t\t\tSystem.out.println(\"[\" + temp.getBytes().length + \"]\" + temp);\r\n\t\t\t\t\twhile((temp = br.readLine()).length() > 0) {\r\n\t\t\t\t\t\t// if not modified since last time\r\n\t\t\t\t\t\tif(byteCount == temp.getBytes().length + LF_LENGTH + CR_LENGTH && temp.split(\"\\\\s\")[2].equals(\"304\")){\r\n\t\t\t\t\t\t\tnotModifiedResponse = true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(temp.startsWith(\"Content-Length:\")) {\r\n\t\t\t\t\t\t\tcontentLength = Integer.parseInt(temp.split(\": \")[1]);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tbyteCount += temp.getBytes().length + LF_LENGTH + CR_LENGTH;\r\n\t\t\t\t\t\tSystem.out.println(\"[\" + temp.getBytes().length + \"]\" + temp);\r\n\t\t\t\t\t\tmessage = message + temp + \"[NEWLINE]\";\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.out.println(\">\" + temp + \"<\");\r\n\t\t\t\t\tbyteCount += LF_LENGTH + CR_LENGTH;\r\n\r\n\t\t\t\t\t/* ====================== data ========================= */\r\n\t\t\t\t\tSystem.out.println(\"HTTP RES > seq: \" + tempPacket.sequence + \" | ack: \" + tempPacket.ack_num);\r\n\r\n\t\t\t\t\tmessage = message.trim();\r\n\t\t\t\t\tResponseMessage response = new ResponseMessage(tempPacket.dst_ip.getHostAddress(), tempPacket.dst_port, tempPacket.src_ip.getHostAddress(), tempPacket.src_port, message, contentLength, tempPacket.data.length - byteCount);\r\n\t\t\t\t\tresponseMessages.add(response);\r\n\r\n\t\t\t\t\tif(notModifiedResponse) {\r\n\t\t\t\t\t\twriteMetadata(matchingRequest, new ResponseMessage(tempPacket.dst_ip.getHostAddress(), tempPacket.dst_port, tempPacket.src_ip.getHostAddress(), tempPacket.src_port, message, contentLength, tempPacket.data.length - byteCount), matchingRequest.getFolderName());\r\n\t\t\t\t\t\tincompleteRequestMessages.remove(matchingRequest);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\twriteData(tempPacket.data, byteCount, tempPacket.data.length - byteCount, matchingRequest.getFolderName());\r\n\t\t\t\t\tincompleteRequestMessages.remove(matchingRequest);\r\n\r\n\t\t\t\t\tif(response.getContentLength() <= tempPacket.data.length - byteCount) {\r\n\t\t\t\t\t\twriteMetadata(matchingRequest, response, matchingRequest.getFolderName());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\trequestMessages.add(matchingRequest);\r\n\t\t\t\t\t\tresponse.setMatchingRequestMessageIndex(requestMessages.indexOf(matchingRequest));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcatch (Exception e) {\r\n//\t\t\tSystem.out.println(\"[E] Failed to parse the TCP packet.\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "6ab3b2b512360819a5bc0607c7a2bb56", "score": "0.6292327", "text": "private final void readPacket() throws IOException\r\n {\r\n readed = 0;\r\n copied = 0;\r\n type = in.readByte();\r\n channel = in.readSubInt();\r\n length = in.readInt();\r\n if (length > 0)\r\n {\r\n remaining = length;\r\n while (remaining > 0)\r\n {\r\n copied += readed;\r\n remaining -= readed;\r\n readed = in.read(packetBuffer, copied, remaining);\r\n if (readed < 0)\r\n {\r\n close();\r\n return;\r\n }\r\n }\r\n try\r\n {\r\n OutputStream out = getInputStream(type, channel).getOutputStream();\r\n if (out != null)\r\n {\r\n out.write(packetBuffer, 0, length);\r\n out.flush();\r\n }\r\n }\r\n catch (Throwable e)\r\n {\r\n //e.printStackTrace();\r\n }\r\n }\r\n else if (length == -2)\r\n {\r\n close(type, channel);\r\n }\r\n else if (length == -3)\r\n {\r\n open(type, channel);\r\n }\r\n }", "title": "" }, { "docid": "812cec91217d3e62cf5f33524da9dedc", "score": "0.62901056", "text": "@Override\n\t\t\tpublic void handler(Packet packet, ChannelContext channelContext) throws Exception {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "975a58c7226c45bc34d11048f857c4f1", "score": "0.628795", "text": "@Override\n public void process(PacketContext context) {\n if (context.isHandled()) {\n return;\n }\n\n InboundPacket pkt = context.inPacket();\n Ethernet ethPkt = pkt.parsed();\n\n if (ethPkt == null) {\n return;\n }\n\n // Bail if this is deemed to be a control packet.\n if (isControlPacket(ethPkt)) {\n return;\n }\n\n HostId id = HostId.hostId(ethPkt.getDestinationMAC());\n HostId sid = HostId.hostId(ethPkt.getSourceMAC());\n\n // Do not process link-local addresses in any way.\n if (id.mac().isLinkLocal()) {\n return;\n }\n\n //log.info(\"smac: {}, dmac: {}, type: {}\",\n // ethPkt.getSourceMAC(), ethPkt.getDestinationMAC(), ethPkt.getEtherType());\n //log.info(\"vlan: {}, loc: {}.\", ethPkt.getVlanID(), context.inPacket().receivedFrom());\n\n // do proxy arp\n if (ethPkt.getEtherType() == Ethernet.TYPE_ARP) {\n handleArp(context, ethPkt);\n return;\n }\n\n Boolean mapVlans = false;\n Short inVlan = -1;\n Short transVlan = -1;\n Short outVlan = -1;\n\n // lookup input, transit and output vlan IDs from mapping\n if (vlanTransMacMap.containsKey(ethPkt.getSourceMAC().toString())) {\n if (vlanTransMacMap.get(ethPkt.getSourceMAC().toString())\n .containsKey(ethPkt.getDestinationMAC().toString())) {\n if (vlanTransMacMap.get(ethPkt.getSourceMAC().toString())\n .get(ethPkt.getDestinationMAC().toString())\n .containsKey(ethPkt.getVlanID())) {\n inVlan = ethPkt.getVlanID();\n transVlan = vlanTransMacMap.get(ethPkt.getSourceMAC().toString())\n .get(ethPkt.getDestinationMAC().toString()).get(ethPkt.getVlanID());\n if (vlanDstMacMap.containsKey(ethPkt.getSourceMAC().toString())) {\n if (vlanDstMacMap.get(ethPkt.getSourceMAC().toString())\n .containsKey(ethPkt.getDestinationMAC().toString())) {\n if (vlanDstMacMap.get(ethPkt.getSourceMAC().toString())\n .get(ethPkt.getDestinationMAC().toString())\n .containsKey(transVlan)) {\n outVlan = vlanDstMacMap.get(ethPkt.getSourceMAC().toString())\n .get(ethPkt.getDestinationMAC().toString()).get(transVlan);\n mapVlans = true;\n }\n }\n }\n }\n }\n }\n // if not remapping, use packet vlan\n if (!mapVlans) {\n inVlan = ethPkt.getVlanID();\n transVlan = ethPkt.getVlanID();\n outVlan = ethPkt.getVlanID();\n }\n\n // use vlan to get source and destination hosts\n sid = HostId.hostId(ethPkt.getSourceMAC(), VlanId.vlanId(inVlan));\n\n if (mapVlans) {\n id = HostId.hostId(ethPkt.getDestinationMAC(), VlanId.vlanId(outVlan));\n } else {\n id = HostId.hostId(ethPkt.getDestinationMAC(), VlanId.vlanId(inVlan));\n }\n\n //log.info(\"Hids: {}, Hidd: {}.\", sid, id);\n\n Host dst = hostService.getHost(id);\n Host src = hostService.getHost(sid);\n\n //log.info(\"Hs: {}, Hd: {}.\", src, dst);\n\n // Do we know who this is for? If not, arp must have failed.\n // Don't flood because the vlan could be wrong.\n if (dst == null) {\n return;\n }\n\n // see if flow is authorized, maybe do endpoint setup\n // ignore result until fully implemented\n flowAllowed();\n //if (!flowAllowed()) {\n // return;\n //}\n\n // find the minimum port speed of the source and destination\n Port sPort = deviceService.getPort(src.location().deviceId(), src.location().port());\n Port dPort = deviceService.getPort(dst.location().deviceId(), dst.location().port());\n double targetSpeed = Math.min(sPort.portSpeed(), dPort.portSpeed());\n\n // get the set of paths that have a bottleneck bandwidth\n // of at least the minimum port speed\n Set<Path> paths = getPaths(src.location().deviceId(), dst.location().deviceId(), new BWWeight(),\n targetSpeed);\n\n // if no paths exist, find the one with the max bottleneck bandwidth\n if (paths.isEmpty()) {\n paths = getPaths(src.location().deviceId(), dst.location().deviceId(), new BWWeight(), 0.0);\n }\n\n // if no paths exist, bail\n if (paths.isEmpty()) {\n log.info(\"No paths found.\");\n return;\n }\n\n // choose path with max bottleneck bandwidth,\n // just an example selection, could be changed to something like hop\n // count or path delay\n Path path = getMaxBWPath(paths);\n\n // install flow rules and forward packet as needed\n installRules(context, path, mapVlans, inVlan, transVlan, outVlan);\n }", "title": "" }, { "docid": "d754302551fa55bab47c5f88b074fd53", "score": "0.6284235", "text": "public void handlePacket(Ethernet etherPacket, Iface inIface)\n\t{\n\t\tSystem.out.println(\"*** -> Received packet: \" +\n etherPacket.toString().replace(\"\\n\", \"\\n\\t\"));\n\t\t\n\t\t/********************************************************************/\n\t\t/* TODO: Handle packets */\n\t\tif(etherPacket.getEtherType() != Ethernet.TYPE_IPv4) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tIPv4 packetHeader = (IPv4)etherPacket.getPayload();\n\t\t\tint headerBytes = 4*packetHeader.getHeaderLength();\n\t\t\t/* Checksum calculation begin */\n\t\t\t// reset checksum before computing, Compare new checksum with original to make sure no error during transmission process\n\t\t\tshort oriChecksum = packetHeader.getChecksum();\n\t\t\tpacketHeader.resetChecksum();\n\t\t\t// serialize calculate checksum into byte array\n\t\t\tbyte[] headerdata = packetHeader.serialize();\n\t\t\tpacketHeader.deserialize(headerdata, 0, headerdata.length);\n\t\t\t\n\t\t\tif(oriChecksum != packetHeader.getChecksum())\n\t\t\t\treturn;\n\t\t\t/* Checksum part end */\n\t\t\t// TTL check, recompute the checksum\n\t\t\tpacketHeader = packetHeader.setTtl((byte)(packetHeader.getTtl() - 1));\n\t\t\tif(packetHeader.getTtl() == 0)\n\t\t\t\treturn;\n\t\t\tpacketHeader.resetChecksum();\n\t\t\tbyte[] sendheader = packetHeader.serialize();\n\t\t\tpacketHeader.deserialize(sendheader, 0, sendheader.length);\n\t\t\t\n\t\t\t/** \n\t\t\t* the packet’s destination IP address exactly matches \n\t\t\t* one of the interface’s IP addresses, can't be the incoming interface,\n\t\t\t* then you do not need to do any furtherprocessing, \n\t\t\t* your router should drop the packet.\n\t\t\t*/\n\t\t\tfor(String cur:this.interfaces.keySet()) {\n\t\t\t\tint ifaceIpaddr = this.interfaces.get(cur).getIpAddress();\n\t\t\t\tif((packetHeader.getDestinationAddress()) == ifaceIpaddr)\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\t// destination addr is not router interface\n\t\t\tRouteEntry target = this.routeTable.lookup(packetHeader.getDestinationAddress());\n\t\t\tif(target == null)\n\t\t\t\treturn;\n\t\t\tIface outInterface = target.getInterface();\n\t\t\tif(outInterface == inIface)\n\t\t\t\treturn;\n\t\t\tMACAddress newSourceMAC = outInterface.getMacAddress();\n\t\t\tArpEntry macEntry = null;\n\t\t\tif(target.getGatewayAddress() == 0) {\n\t\t\t\tmacEntry = this.arpCache.lookup(packetHeader.getDestinationAddress());//the host is directly conncted to the iface\n\t\t\t} else {\n\t\t\t\tmacEntry = this.arpCache.lookup(target.getGatewayAddress());\n\t\t\t}\n\t\t\tif(macEntry == null)\n\t\t\t\treturn;\n\t\t\tMACAddress newDestMAC = macEntry.getMac();\n\t\t\tetherPacket = etherPacket.setSourceMACAddress(newSourceMAC.toBytes());\t\t\t\n\t\t\tetherPacket = etherPacket.setDestinationMACAddress(newDestMAC.toBytes());\n\t\t\tsendPacket(etherPacket, outInterface);\n\t\t}\n\t\t\n\t\t/********************************************************************/\n\t}", "title": "" }, { "docid": "14e5de105c322365262a31aa9ff00557", "score": "0.6270355", "text": "private void parsePacket(final List<Byte> packetData) {\n Timber.i(TAG,\"receivedData called\");\n executor.execute(new Runnable() {\n @Override\n public void run() {\n fetchAlertInfo(packetData);\n }\n });\n }", "title": "" }, { "docid": "61218c9a10c83e1c1036c203cfda4b15", "score": "0.6262281", "text": "public void onRecvPacketBytes(Origin origin, int pktType, byte[] payload);", "title": "" }, { "docid": "69b78d543ea2a7e7e39ff1781568754d", "score": "0.62274826", "text": "public void process(DatagramPacket p) {\n\t\t\tMainActivity.WCPacket packet = new MainActivity.WCPacket();\n\t\t\tpacket.parse(p);\n\t\t\t//parsing packet according to type\n\t\t\t// EOT Packet Check.\n\t\t\tif(packet.type == 'e'){\n\t\t\t\t// Check if eot packet is duplicate\n\t\t\t\tif(currEOTNo != packet.no ) {\n\t\t\t\t\t// Not a duplicate EOT packet.\n\t\t\t\t\tcurrEOTNo = packet.no; // Set Curr EOT packet no.\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(packet.type == 'f'){\t//eof packet .. now send snacks\n\t\t\t\tlogs[logcounter++] = \"eof received \" + (System.currentTimeMillis() - startTime);\n\t\t\t\tsendSnack = true;\n\t\t\t}\n\t\t\t//send feedback response if acker flag set and feedback request packet reeived\n\t\t\telse if(acker && packet.type == 'b'){\n\t\t\t\tint lastPacket = Integer.parseInt(new String(packet.data)) ;\n\t\t\t\tbyte[] sendBuf = createWCPacket('b', 0, Integer.toString(lastPacket)); \n\t\t\t\tDatagramPacket feedbackPacket = new DatagramPacket(sendBuf, sendBuf.length, sourceIP, sourcePort); \n\t\t\t\ttry {\n\t\t\t\t\t\tWCSocketFile1.send(feedbackPacket);\n\t\t\t\t\t\t//Log.d(ACTIVITY_SERVICE, \"feedback sent to \" + sourceIP) ;\n\t\t\t\t\t\tlogs[logcounter++] = \"eor response sent \" + lastPacket + \" \" + (System.currentTimeMillis() - startTime);\n\t\t\t\t} catch (IOException e) { Log.d(ACTIVITY_SERVICE, \"Error in sending feedback\"); }\n\t\t\t}\n\t\t\telse if(packet.type == 'd') { //data packet\n\t\t\t\t// To simulate losses\n\t\t\t\tif(!fileTransferStart) {\n\t\t\t\t\tfileTransferStart = true;\n\t\t\t\t\tstartTime = System.currentTimeMillis();\n\t\t\t\t}\n\t\t\t\tlogs[logcounter++] = \"datapacketreceived \" + packet.no + \" time \" + (System.currentTimeMillis() - startTime);\n\t\t\t\t//Log.d(ACTIVITY_SERVICE,\"data packet is received \" + packet.no+ \"time \"+(System.currentTimeMillis()-startTime));\n\t\t\t\t// Data Packet\n\t\t\t\tint packetNo = packet.no;\n\t\t\t\tif(packetsReceived[packetNo] == true) { /* Dup Packet. Ignore. */ \t}\n\t\t\t\telse {\n\t\t\t\t\tcurrPacketNoSink = Math.max(currPacketNoSink, packetNo);\n\t\t\t\t\tpacketsReceived[packetNo] = true;\n\t\t\t\t\t// Add to file buffer.\n\t\t\t\t\tfileBuffer.set(packetNo, packet.data);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse { /* Ignore other packets.*/ }\n\t\t}", "title": "" }, { "docid": "4ab11c10e98e1cd4d2582c7efac09279", "score": "0.6224585", "text": "private final void onProtocolPacketReceived(StackdPacket packet) {\n\t\tChannelBuffer buffer = packet.getBuffer();\n\t\tif (packet.getType() == StackdPacket.TYPE_HELLO) {\n\t\t\tlogger.debug(\"hello packet received\");\n\t\t\tsynchronized (syncObject) {\n\t\t\t\tsessionId = buffer.readInt();\n\t\t\t\tif (sessionId < 0) {\n\t\t\t\t\tthrow new RuntimeException(\"server sent invalid session ID: \" + sessionId);\n\t\t\t\t}\n\t\t\t\tsyncObject.notifyAll();\n\t\t\t}\n\t\t\tonReady();\n\t\t\tlogger.debug(\"protocol client ready\");\n\t\t} else if (packet.getType() == StackdPacket.TYPE_JSON_API) {\n\t\t\tbyte[] binary = new byte[buffer.readableBytes()];\n\t\t\tbuffer.readBytes(binary);\n\t\t\tString json = new String(binary, StandardCharsets.UTF_8);\n\t\t\tObject data = JSONValue.parse(json);\n\t\t\tonJsonPacketReceived(data);\n\t\t} else if (packet.getType() == StackdPacket.TYPE_FLASH_MESSAGE) {\n\t\t\tbyte[] binary = new byte[buffer.readableBytes()];\n\t\t\tbuffer.readBytes(binary);\n\t\t\tString message = new String(binary, StandardCharsets.UTF_8);\n\t\t\tonFlashMessageReceived(message);\n\t\t} else if (packet.getType() == StackdPacket.TYPE_SINGLE_SECTION_DATA_INTERACTIVE) {\n\t\t\tif (sectionGridLoader != null) {\n\t\t\t\tsectionGridLoader.handleInteractiveSectionImagePacket(packet);\n\t\t\t} else {\n\t\t\t\tlogger.error(\"received interactive section image but no sectionGridLoader is set in the StackdProtoclClient!\");\n\t\t\t}\n\t\t} else if (packet.getType() == StackdPacket.TYPE_SINGLE_SECTION_MODIFICATION_EVENT) {\n\t\t\tif (sectionGridLoader != null) {\n\t\t\t\tsectionGridLoader.handleModificationEventPacket(packet);\n\t\t\t} else {\n\t\t\t\tlogger.error(\"received section modification event but no sectionGridLoader is set in the StackdProtoclClient!\");\n\t\t\t}\n\t\t} else if (packet.getType() == StackdPacket.TYPE_CONSOLE) {\n\t\t\tif (console != null) {\n\t\t\t\ttry (ChannelBufferInputStream in = new ChannelBufferInputStream(buffer)) {\n\t\t\t\t\twhile (buffer.readable()) {\n\t\t\t\t\t\tconsole.println(in.readUTF());\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"received console output packet but there's no console set for the StackdProtocolClient!\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "87967a3ca72716f1fbf79db377a1d291", "score": "0.61825144", "text": "@Override\n protected void channelRead0(ChannelHandlerContext ctx, DatagramPacket msg) throws Exception {\n byte[] bytes = getMessageBytes(msg);\n byte[] firstEightBytes = Arrays.copyOfRange(bytes, 0, 8);\n if (Arrays.equals(firstEightBytes, connectionMagicNumber)) {\n acceptConnectionRequest(ctx, msg, bytes);\n } else {\n announceResponse(ctx, msg, bytes);\n }\n }", "title": "" }, { "docid": "eecd870dcb099d6e194d6f0c24ca4b2b", "score": "0.6171338", "text": "private void processPackets (final ConverterData converterData) throws JorbisReadException {\n boolean readingPacket = true;\n while (readingPacket) {\n switch (converterData.joggData.streamState.packetout (converterData.joggData.packet)) {\n // If we need more data, we break to get it.\n case PARTIAL_READ :\n readingPacket = false;\n break;\n // If we have the data we need, we decode the packet.\n case PAGE_READ :\n this.decodeCurrentPacket (converterData);\n break;\n case ERROR_WHILE_READING :\n default :\n throw new JorbisReadException (\"There is a hole in a body packet.\");\n }\n }\n }", "title": "" }, { "docid": "5683fd3f64b1dafb0d367973a0afbd11", "score": "0.61581975", "text": "public void processPacket(NetHandler par1NetHandler)\n {\n par1NetHandler.handlePlayerAbilities(this);\n }", "title": "" }, { "docid": "d37726c53c7d8754a38bc4058b7f44b0", "score": "0.6153807", "text": "@Override\n public void processPacket(Tag tag){\n if(tag==null || tag.getTagname()==null)\n return;\n if(tag.getTagname().equals(\"message\")) {\n MessageStanza ms = new MessageStanza(tag);\n String from = ms.getTag().getAttribute(\"from\").split(\"/\")[0];\n String chatState = ms.getChatState();\n // if(chatLists.containsKey(from) && chatState.equals(\"composing\")) {\n if(chatState.equals(\"composing\")) {\n Log.d(\"CHAT STATE\",\"Compose received from :\" + from);\n ChatBox.composeToast(from +\" is composing\");\n return;\n }\n else if(ms.getBody()!=null) {\n if(ChatBox.getContext()==null){\n ChatNotifier cn = new ChatNotifier(ChatApplication.getAppContext());\n cn.notifyChat(ms);\n }\n else {\n ChatBox.notifyChat(ms,from);\n }\n \n }\n }\n else if(tag.getTagname().equals(\"iq\")) {\n ArrayList<Tag> childlist = tag.getChildTags();\n if(childlist==null)\n return;\n if(childlist.get(0).getTagname().equals(\"query\")) {\n Query query = new Query(childlist.get(0));\n String xmlnsQuery = query.getAttribute(\"xmlns\");\n if(xmlnsQuery==null)\n return;\n if(xmlnsQuery.equals(\"http://jabber.org/protocol/disc#info\"))\n {\n ArrayList<Tag> queryChildList = query.getChildTags();\n if(queryChildList==null) {\n Log.d(\"MessageHandler\",\"feature not included\");\n }\n else {\n Tag tag1 = queryChildList.get(0);\n Log.d(\"MessageHandler\",\"var - \"+tag1.getAttribute(\"var\"));\n }\n }\n }\n }\n }", "title": "" }, { "docid": "f83cb3617e6a65349e01fec09ccec803", "score": "0.6148354", "text": "protected abstract void onTCPMessageReceived(String msg);", "title": "" }, { "docid": "edc0beb9def7197fb8afa90b39520a44", "score": "0.61403674", "text": "public ParseReceivedPacket(byte[] receivedPacket){\r\n\t\t\tif(receivedPacket.length != 55){\r\n\t\t\t\terrorCode = 1;\r\n\t\t\t} else {\r\n\t\t\t\treceivedFL = receivedPacket[0];\r\n\t\t\t\treceivedPT = receivedPacket[1];\r\n\t\t\t\treceivedFF = receivedPacket[2];\r\n\t\t\t\treceivedSesnHeader = Arrays.copyOfRange(receivedPacket, 3, 5);\r\n\t\t\t\treceivedEH = Arrays.copyOfRange(receivedPacket, 5, 7);\r\n\t\t\t\treceivedIV = Arrays.copyOfRange(receivedPacket, 39, 55);\r\n\t\r\n\t\t\t\tbyte[] receivedPayload = Arrays.copyOfRange(receivedPacket, 7, 39);\r\n\t\t\t\t\r\n\t\t\t\tbyte[] decryptedPayload = new byte[32];\r\n\t\t\t\t\r\n\t\t\t\ttry{\r\n\t\t\t\t\tdecryptedPayload = AES256cipher.decrypt(receivedIV, aesKey, receivedPayload);\r\n\t\t\t\t\tLog.d(TAG,\"decryptedPayload: \"+Converter.byteArrayToHexString(decryptedPayload));\r\n\t\t\t\t\t\r\n\t\t\t\t\treceivedACCN = Arrays.copyOfRange(decryptedPayload, 0, 6);\r\n\t\t\t\t\treceivedTS = Arrays.copyOfRange(decryptedPayload, 6, 10);\r\n\t\t\t\t\treceivedAMNT = Arrays.copyOfRange(decryptedPayload, 10, 14);\r\n\t\t\t\t\treceivedLATS = Arrays.copyOfRange(decryptedPayload, 14, 18);\r\n\t\t\t\t\treceivedSesnPayload = Arrays.copyOfRange(decryptedPayload, 18, 20);\r\n\t\t\t\t\t\r\n\t\t\t\t\tLog.d(TAG,\"receiveid ACCN: \"+Converter.byteArrayToHexString(receivedACCN)\r\n\t\t\t\t\t\t\t+\"\\nreceived TS: \"+Converter.byteArrayToHexString(receivedTS)\r\n\t\t\t\t\t\t\t+\"\\nreceived AMNT: \"+Converter.byteArrayToHexString(receivedAMNT)\r\n\t\t\t\t\t\t\t+\"\\nreceived LATS: \"+Converter.byteArrayToHexString(receivedLATS)\r\n\t\t\t\t\t\t\t+\"\\nreceived SESN Header: \"+Converter.byteArrayToHexString(receivedSesnHeader)\r\n\t\t\t\t\t\t\t+\"\\nreceived SESN Payload: \"+Converter.byteArrayToHexString(receivedSesnPayload));\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(Arrays.equals(receivedSesnHeader, receivedSesnPayload) == false){\r\n\t\t\t\t\t\terrorCode = 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\treceivedPlainPayload = decryptedPayload;\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.arraycopy(receivedPacket, 0, receivedPlainPacket, 0, 7);\r\n\t\t\t\t\tSystem.arraycopy(decryptedPayload, 0, receivedPlainPacket, 7, decryptedPayload.length);\r\n\t\t\t\t\tArrays.fill(receivedPlainPacket, 7+decryptedPayload.length, 39, (byte) (32-decryptedPayload.length));\r\n\t\t\t\t\tSystem.arraycopy(receivedIV, 0, receivedPlainPacket, 39, 16);\r\n\t\t\t\t\tLog.d(TAG,\"received plain packet: \"+ Converter.byteArrayToHexString(receivedPlainPacket));\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\tLog.d(TAG,\"exception thrown by decrypt log per row method\");\r\n\t\t\t\t\terrorCode = 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "cc087cab61dc8f7e2da97c3a0ff24bb2", "score": "0.61316705", "text": "@Override\n public void readIncoming(InetSocketAddress sender, DatagramPacket msg) {\n ByteBuffer buffer = ByteBuffer.allocate(msg.content().readableBytes());\n msg.content().getBytes(0, buffer);\n buffer.rewind();\n\n messageHandlerFunction.accept(sender, buffer);\n }", "title": "" }, { "docid": "90edecc22014ae572ad71ac595e1d9b5", "score": "0.6130593", "text": "private Command processPacketInMessage(\n IOFSwitch sw, OFPacketIn pi, FloodlightContext cntx) {\n\n Short inPort = Short.valueOf(pi.getInPort());\n OFMatch match = new OFMatch();\n\n match.loadFromPacket(pi.getPacketData(), inPort.shortValue());\n byte nwProtocol = match.getNetworkProtocol();\n Long sourceMac = Ethernet.toLong(match.getDataLayerSource());\n Long destMac = Ethernet.toLong(match.getDataLayerDestination());\n long now = System.currentTimeMillis();\n boolean switchSrcAddr = false, switchDstAddr = false, isNWPacket = true;\n\n /* handle the arp packet: allow ARP to be sent */\n if (match.getDataLayerType() == 0x0806) {\n writePacketOutForPacketIn(sw, pi, OFPort.OFPP_FLOOD.getValue(), -1, -1, -1, -1);\n return Command.CONTINUE;\n }\n\n /* @lfred: we process only NW layer packets */\n /* 0x01: ICMP, 0x06: TCP, 0x11: UDP */\n if (nwProtocol != 0x01 && nwProtocol != 0x06 && nwProtocol != 0x11) {\n isNWPacket = false;\n writePacketOutForPacketIn(sw, pi, OFPort.OFPP_FLOOD.getValue(), -1, -1, -1, -1);\n return Command.CONTINUE;\n }\n\n /* Block Blacklist */\n agingBlackList(now);\n if (isInBlackList(sourceMac.longValue(), now)) {\n log.info(\"[@lfred] @ rejected: backlist\");\n return Command.CONTINUE;\n }\n\n /* load balancing */\n int destIp = match.getNetworkDestination(), srcIp = match.getNetworkSource();\n long svrSrcMac;\n\n if (SvrLoadBalance) {\n\n long tmpSrcMac = isAddrWebSvr(srcIp), tmpDstMac = isAddrWebSvr(destIp);\n if (!(tmpSrcMac != -1 && tmpDstMac != -1) &&\n !(tmpSrcMac == -1 && tmpDstMac == -1)) {\n\n /* @lfred: if going to web server, change the dst Mac and dst IP */\n if (destIp == m_webSvrIp) {\n long newDstMac = findLeastLoadingMachine();\n\n if (newDstMac != destMac.longValue()) {\n log.info(\"[@lfred] Doing load-balancing. Switching to \" + newDstMac);\n destMac = Long.valueOf(newDstMac);\n destIp = m_webSvr.get(Long.valueOf(newDstMac));\n switchDstAddr = true;\n }\n }\n\n if (tmpSrcMac != -1) { /* @lfred: deal with data sent from server */\n sourceMac = Long.valueOf(tmpSrcMac);\n srcIp = m_webSvrIp;\n switchSrcAddr = true;\n }\n }\n }\n\n /* Connection Cnt */\n Map<Long, Long> cnt = m_hostConnCnt.get(sourceMac);\n \n if (cnt != null) {\n if (cnt.size() > MAX_DESTINATION_NUMBER) {\n blockHost(sourceMac, now);\n cnt.clear();\n return Command.CONTINUE;\n }\n \n Long x = cnt.get(destMac);\n if (x != null)\n cnt.put(destMac, Long.valueOf(x.longValue() + 1));\n else\n cnt.put(destMac, Long.valueOf(Long.valueOf(1)));\n } else {\n cnt = new ConcurrentHashMap<Long, Long>();\n cnt.put(destMac, Long.valueOf(1));\n m_hostConnCnt.put(sourceMac, cnt);\n }\n\n /* Learning Switch */\n Map<Long, Short> swMap = macToSwitchPortMap.get(sw);\n if (swMap == null) { /* implement LEARNING SWITCH */\n swMap = Collections.synchronizedMap(new LRULinkedHashMap<Long, Short>(MAX_MACS_PER_SWITCH));\n macToSwitchPortMap.put(sw, swMap);\n }\n\n if (swMap.get(sourceMac) == null) {\n swMap.put(sourceMac, inPort);\n } else {\n if (swMap.get(sourceMac).longValue() != inPort)\n log.info(\"[@lfred] Port has been changed !? \" + sourceMac);\n }\n\n /* Install Rule */\n Short outPort = swMap.get(destMac);\n if (outPort == null) {\n long smac = -1, dmac = -1;\n int sip = -1, dip = -1;\n\n if (switchDstAddr) {\n dmac = destMac.longValue();\n dip = destIp;\n }\n if (switchSrcAddr) {\n smac = sourceMac.longValue();\n sip = srcIp;\n }\n writePacketOutForPacketIn(sw, pi, OFPort.OFPP_FLOOD.getValue(), dmac, dip, smac, sip);\n } else if (outPort == match.getInputPort()) {\n log.info(\"[@lfred] packet ignored\");\n } else {\n match.setWildcards(\n ((Integer) sw.getAttribute(\n IOFSwitch.PROP_FASTWILDCARDS)).intValue() & ~OFMatch.OFPFW_IN_PORT & ~OFMatch.OFPFW_DL_SRC & ~OFMatch.OFPFW_DL_DST & ~OFMatch.OFPFW_NW_SRC_MASK & ~OFMatch.OFPFW_NW_DST_MASK);\n if (!switchSrcAddr && !switchDstAddr) {\n log.info(\"[@lfred] insert rules in the switch\");\n writeFlowMod(sw, OFFlowMod.OFPFC_ADD, pi.getBufferId(), match, outPort.shortValue(), Hw1Switch.PRIORITY_DEFAULT, null, 0);\n } else {\n log.info(\"[@lfred] LOAD-BALANCING: insert rules in the switch\");\n Vector<OFAction> actions = new Vector<OFAction>();\n short actLen = 0;\n\n if (switchDstAddr) {\n actions.add(new OFActionDataLayerDestination(Ethernet.toByteArray(destMac.longValue())));\n actLen += OFActionDataLayer.MINIMUM_LENGTH;\n actions.add(new OFActionNetworkLayerDestination(destIp));\n actLen += OFActionNetworkLayerAddress.MINIMUM_LENGTH;\n }\n if (switchSrcAddr) {\n actions.add(new OFActionDataLayerSource(Ethernet.toByteArray(sourceMac.longValue())));\n actLen += OFActionDataLayer.MINIMUM_LENGTH;\n actions.add(new OFActionNetworkLayerSource(srcIp));\n actLen += OFActionNetworkLayerAddress.MINIMUM_LENGTH;\n }\n actions.add(new OFActionOutput(outPort, (short) 0xffff));\n actLen += OFActionOutput.MINIMUM_LENGTH;\n writeFlowMod(sw, OFFlowMod.OFPFC_ADD, pi.getBufferId(), match, outPort.shortValue(), Hw1Switch.PRIORITY_DEFAULT, actions.subList(0, actions.size()), actLen);\n }\n }\n return Command.CONTINUE;\n }", "title": "" }, { "docid": "e9d128e20229262a4d767b43609ba3ce", "score": "0.61064786", "text": "abstract public boolean accept_packet(String direction, String protocol, int port, String IPaddress);", "title": "" }, { "docid": "ee3ad2aec1932e2fbe9868076abe4fac", "score": "0.608631", "text": "private void processInboundDataNode(ProtocolNode node) throws IncompleteMessageException, InvalidMessageException, InvalidTokenException, IOException, WhatsAppException, JSONException, NoSuchAlgorithmException, InvalidKeyException, DecodeException {\n while (node != null) {\n ProtocolTag tag;\n try {\n tag = ProtocolTag.fromString(node.getTag());\n if (tag == null) {\n tag = ProtocolTag.UNKNOWN;\n log.info(\"Unknown/Unused tag (null) {}\", node);\n //sendAck(node);\n }\n } catch (IllegalArgumentException e) {\n tag = ProtocolTag.UNKNOWN;\n log.info(\"Unknown/Unused tag \" + node.getTag());\n log.info(\"Sending ack anywat to: {}\", node);\n //sendAck(node);\n }\n\n log.debug(\"rx \" + node);\n switch (tag) {\n case CHALLENGE:\n processChallenge(node);\n break;\n case SUCCESS:\n loginStatus = LoginStatus.CONNECTED_STATUS;\n challengeData = node.getData();\n file_put_contents(\"nextChallenge.dat\", challengeData);\n writer.setKey(outputKey);\n break;\n case FAILURE:\n log.error(\"Failure\");\n break;\n case MESSAGE:\n processMessage(node);\n break;\n case ACK:\n processAck(node);\n break;\n case RECEIPT:\n processReceipt(node);\n break;\n case PRESENCE:\n processPresence(node);\n break;\n case IQ:\n processIq(node);\n break;\n case IB:\n processIb(node);\n break;\n case NOTIFICATION:\n processNotification(node);\n break;\n case CHATSTATE:\n processChatState(node);\n break;\n case STREAM_ERROR:\n throw new WhatsAppException(\"stream:error received: \" + node);\n case PING:\n break;\n case QUERY:\n break;\n case START:\n break;\n case UNKNOWN:\n break;\n default:\n break;\n }\n node = reader.nextTree(null);\n }\n }", "title": "" }, { "docid": "4e227aa4e1ad9cc0a94e00f1d0fb0632", "score": "0.6065695", "text": "public void run() {\n try {\n packetInChannel = connection.createChannel();\n\n // Create an emphemeral queue and bind it to the exchange so we can get\n // notifications.\n String queueName = packetInChannel.queueDeclare().getQueue();\n packetInChannel.queueBind(queueName, Common.notificationExchangeName, \"\");\n packetInChannel.basicQos(1);\n // Set up consumer to read from this queue on this channel\n packetInConsumer = new QueueingConsumer(packetInChannel);\n packetInChannel.basicConsume(queueName, false, packetInConsumer);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n while (true) {\n try {\n // Grab the next PACKET_IN\n QueueingConsumer.Delivery delivery = packetInConsumer.nextDelivery();\n\n // Get the properties for the request message, set up the properties\n // for the reply message.\n BasicProperties props = delivery.getProperties();\n BasicProperties replyProps = new BasicProperties.Builder().\n correlationId(props.getCorrelationId()).build();\n\n try {\n // Parse the body. Get the string containing the JSON data.\n String message = new String(delivery.getBody(), \"UTF-8\");\n\n // Figure out the message type as a string so we know how to parse it.\n SdnReply rep = mapper.readValue(message, SdnReply.class);\n\n if (rep.getReplyType().equals(SdnReceivePacketReply.TYPE)) {\n // Do PACKET_IN processing here. Log, and invoke callback if it's\n // been configured.\n logger.debug(\"Got PACKET_IN\");\n SdnReceivePacketReply packetIn = mapper.readValue(message, SdnReceivePacketReply.class);\n if (callback != null) {\n callback.packetInCallback(packetIn.getDpid(), packetIn.getInPort(), packetIn.getPayload());\n }\n }\n else {\n // Unknown message.\n logger.error(\"Unknown message when PACKET_IN expected\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n finally {\n // ACK the old message\n packetInChannel.basicAck(delivery.getEnvelope().getDeliveryTag(), false);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n // We can get here if there was a problem reading a message from the AMPQ service.\n // Sleep for a second to avoid us busy-waiting in this loop.\n try {\n Thread.sleep(1000);\n }\n catch (Exception e2) {\n }\n }\n }\n }", "title": "" }, { "docid": "bbf7b4fe18bfbf2c0881b20e513e2dc1", "score": "0.60585314", "text": "public interface AbstractPacket {\n\n //bool = 1, byte = 1, char = 2, short = 2, int = 4, long = 8, float = 4, double = 8\n\n public AbstractPacket read(DataInputStream dis);\n\n public void write(DataOutputStream dos);\n\n public void handle(AbstractHandler handler);\n \n}", "title": "" }, { "docid": "cd339abea3ad7f54a1f5a63e6d94e497", "score": "0.60532314", "text": "public static void decodeIncommingData(IoBuffer in, IoSession session) {\n log.trace(\"Decoding: {}\", in);\n // get decoder state\n DecoderState decoderState = (DecoderState) session.getAttribute(DECODER_STATE_KEY);\n if (decoderState.fin == Byte.MIN_VALUE) {\n byte frameInfo = in.get();\n // get FIN (1 bit)\n //log.debug(\"frameInfo: {}\", Integer.toBinaryString((frameInfo & 0xFF) + 256));\n decoderState.fin = (byte) ((frameInfo >>> 7) & 1);\n log.trace(\"FIN: {}\", decoderState.fin);\n // the next 3 bits are for RSV1-3 (not used here at the moment)\t\t\t\n // get the opcode (4 bits)\n decoderState.opCode = (byte) (frameInfo & 0x0f);\n log.trace(\"Opcode: {}\", decoderState.opCode);\n // opcodes 3-7 and b-f are reserved for non-control frames\n }\n if (decoderState.mask == Byte.MIN_VALUE) {\n byte frameInfo2 = in.get();\n // get mask bit (1 bit)\n decoderState.mask = (byte) ((frameInfo2 >>> 7) & 1);\n log.trace(\"Mask: {}\", decoderState.mask);\n // get payload length (7, 7+16, 7+64 bits)\n decoderState.frameLen = (frameInfo2 & (byte) 0x7F);\n log.trace(\"Payload length: {}\", decoderState.frameLen);\n if (decoderState.frameLen == 126) {\n decoderState.frameLen = in.getUnsignedShort();\n log.trace(\"Payload length updated: {}\", decoderState.frameLen);\n } else if (decoderState.frameLen == 127) {\n long extendedLen = in.getLong();\n if (extendedLen >= Integer.MAX_VALUE) {\n log.error(\"Data frame is too large for this implementation. Length: {}\", extendedLen);\n } else {\n decoderState.frameLen = (int) extendedLen;\n }\n log.trace(\"Payload length updated: {}\", decoderState.frameLen);\n }\n }\n // ensure enough bytes left to fill payload, if masked add 4 additional bytes\n if (decoderState.frameLen + (decoderState.mask == 1 ? 4 : 0) > in.remaining()) {\n log.info(\"Not enough data available to decode, socket may be closed/closing\");\n } else {\n // if the data is masked (xor'd)\n if (decoderState.mask == 1) {\n // get the mask key\n byte maskKey[] = new byte[4];\n for (int i = 0; i < 4; i++) {\n maskKey[i] = in.get();\n }\n /* now un-mask frameLen bytes as per Section 5.3 RFC 6455\n Octet i of the transformed data (\"transformed-octet-i\") is the XOR of\n octet i of the original data (\"original-octet-i\") with octet at index\n i modulo 4 of the masking key (\"masking-key-octet-j\"):\n j = i MOD 4\n transformed-octet-i = original-octet-i XOR masking-key-octet-j\n */\n decoderState.payload = new byte[decoderState.frameLen];\n for (int i = 0; i < decoderState.frameLen; i++) {\n byte maskedByte = in.get();\n decoderState.payload[i] = (byte) (maskedByte ^ maskKey[i % 4]);\n }\n } else {\n decoderState.payload = new byte[decoderState.frameLen];\n in.get(decoderState.payload);\n }\n // if FIN == 0 we have fragments\n if (decoderState.fin == 0) {\n // store the fragment and continue\n IoBuffer fragments = (IoBuffer) session.getAttribute(DECODED_MESSAGE_FRAGMENTS_KEY);\n if (fragments == null) {\n fragments = IoBuffer.allocate(decoderState.frameLen);\n fragments.setAutoExpand(true);\n session.setAttribute(DECODED_MESSAGE_FRAGMENTS_KEY, fragments);\n // store message type since following type may be a continuation\n MessageType messageType = MessageType.CLOSE;\n switch (decoderState.opCode) {\n case 0: // continuation\n messageType = MessageType.CONTINUATION;\n break;\n case 1: // text\n messageType = MessageType.TEXT;\n break;\n case 2: // binary\n messageType = MessageType.BINARY;\n break;\n case 9: // ping\n messageType = MessageType.PING;\n break;\n case 0xa: // pong\n messageType = MessageType.PONG;\n break;\n }\n session.setAttribute(DECODED_MESSAGE_TYPE_KEY, messageType);\n }\n fragments.put(decoderState.payload);\n // remove decoder state\n session.removeAttribute(DECODER_STATE_KEY);\n } else {\n // create a message\n WSMessage message = new WSMessage();\n // check for previously set type from the first fragment (if we have fragments)\n MessageType messageType = (MessageType) session.getAttribute(DECODED_MESSAGE_TYPE_KEY);\n if (messageType == null) {\n switch (decoderState.opCode) {\n case 0: // continuation\n messageType = MessageType.CONTINUATION;\n break;\n case 1: // text\n messageType = MessageType.TEXT;\n break;\n case 2: // binary\n messageType = MessageType.BINARY;\n break;\n case 9: // ping\n messageType = MessageType.PING;\n break;\n case 0xa: // pong\n messageType = MessageType.PONG;\n break;\n case 8: // close\n messageType = MessageType.CLOSE;\n // handler or listener should close upon receipt\n break;\n default:\n // TODO throw ex?\n log.info(\"Unhandled opcode: {}\", decoderState.opCode);\n }\n }\n // set message type\n message.setMessageType(messageType);\n // check for fragments and piece them together, otherwise just send the single completed frame\n IoBuffer fragments = (IoBuffer) session.removeAttribute(DECODED_MESSAGE_FRAGMENTS_KEY);\n if (fragments != null) {\n fragments.put(decoderState.payload);\n fragments.flip();\n message.setPayload(fragments);\n } else {\n // add the payload\n message.addPayload(decoderState.payload);\n }\n // set the message on the session\n session.setAttribute(DECODED_MESSAGE_KEY, message);\n // remove decoder state\n session.removeAttribute(DECODER_STATE_KEY);\n // remove type\n session.removeAttribute(DECODED_MESSAGE_TYPE_KEY);\n }\n }\n }", "title": "" }, { "docid": "89a9a5eb9f2521a43e698da4433746ed", "score": "0.602153", "text": "public void processPacket(INetHandlerPlayClient handler) {\n/* 31 */ handler.handleSetSlot(this);\n/* */ }", "title": "" }, { "docid": "13f311488091f1819b5cd513d27555b1", "score": "0.60157937", "text": "public void processPacket(INetHandler handler) {\n/* 52 */ func_179732_a((INetHandlerLoginClient)handler);\n/* */ }", "title": "" }, { "docid": "e9e1d08d4ede2bdb662fd0090f7a901e", "score": "0.6013687", "text": "@Override\r\n\t\t\t\tpublic void handle(ByteBuf src) {\n\t\t\t\t\tSystem.out.println(\"TEST\");\r\n\t\t\t\t\t//broadCastor.broadCast_SINGLE_MESSAGE(src, false);\r\n\t\t\t\t}", "title": "" }, { "docid": "ae100c6bc8b3967bfbaed00b9bae4dd1", "score": "0.6002972", "text": "public void handlePacket(Packet211TileDesc packet)\r\n/* 1789: */ {\r\n/* 1790: */ try\r\n/* 1791: */ {\r\n/* 1792:1395 */ if (packet.subId != 7) {\r\n/* 1793:1395 */ return;\r\n/* 1794: */ }\r\n/* 1795:1396 */ readFromPacket(packet);\r\n/* 1796: */ }\r\n/* 1797: */ catch (IOException e) {}\r\n/* 1798:1398 */ this.k.i(this.l, this.m, this.n);\r\n/* 1799: */ }", "title": "" }, { "docid": "1d51a19225a52f4f43e91ea48b7f56e4", "score": "0.5983975", "text": "public void recieve() {\r\n\t\tboolean s = false;\r\n\t\twhile(!s) {\r\n\t\t\ttry {\r\n\t\t DatagramPacket dp2 = new DatagramPacket(buf, 1024); \r\n\t\t ds.receive(dp2); \r\n\t\t input = new String(dp2.getData(), 0, dp2.getLength());\r\n\t\t System.out.println(input);\r\n\t\t System.out.println(\"recieved input \" + input);\r\n\t\t s= true;\r\n\t\t on = true;\r\n\t\t \r\n\t\t\t}catch(SocketTimeoutException e) {\r\n\t\t\t\tSystem.out.println(\"timeout\");\r\n\t\t\t\ts= false;\r\n\t\t\t\ton = false;\r\n\t\t\t}catch(Exception e) {\r\n\t\t\t\ts= false;\r\n\t\t\t\ton = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}\r\n\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4fd1e873bf76f3875d68f54d5a299cb0", "score": "0.5980248", "text": "private void decodePacket() {\n ByteBuffer packet = ByteBuffer.wrap(receivedBytes.toByteArray());\n if (packet.getInt(0) == 0xAABBCCDD){\n dcDcTemp1 = decodeTemp(packet.getInt(4));\n dcDcTemp2 = decodeTemp(packet.getInt(8));\n dcDcVoltage = decodeTemp(packet.getInt(12));\n dcDcCurrent = decodeTemp(packet.getInt(16));\n\n igbt1 = decodeTemp(packet.getInt(20));\n igbt2 = decodeTemp(packet.getInt(24));\n igbt3 = decodeTemp(packet.getInt(28));\n igbt4 = decodeTemp(packet.getInt(32));\n igbt5 = decodeTemp(packet.getInt(36));\n igbt6 = decodeTemp(packet.getInt(40));\n\n phaseAmps = decodeCurrent(packet.getInt(44)) * -1; // The controller inverts the data for some reason\n reqPhaseAmps = decodeCurrent(packet.getInt(48));\n maxAmps = decodeCurrent(packet.getInt(52));\n fieldWeakening = decodeCurrent(packet.getInt(56));\n //eRPM = decodeRPM(packet.getInt(60));\n }\n }", "title": "" }, { "docid": "2ad8cd4000a9b492a996f9d9fbafa340", "score": "0.5975487", "text": "@Override\n \tpublic void handleRead(PacketData sc, IPacketWriter wt) {\n \t\tthis.invoker.handleRead(sc, wt);\n \t}", "title": "" }, { "docid": "8851ceb13d560b2023c4935cfb654164", "score": "0.5927829", "text": "public void onRecvUnparsedPacket(RawPacket pkt);", "title": "" }, { "docid": "3ffce94362d5b33227b976034dadebab", "score": "0.5925689", "text": "public abstract void startReceiving();", "title": "" }, { "docid": "5fd31204dc82253e18a9c477f7693332", "score": "0.5915719", "text": "private void packetReceiver(String packetData, Game_Framework.XBeeStats xBeeStats) {\n // Check the type of packet that was received\n int packetType = Character.getNumericValue(packetData.charAt(0));\n if (packetType == 2) {\n // Kit-to-kit packet\n // Parse the packet ourselves since we have no instance of a game\n // But we are only looking for 1 specific packet indicating a game request\n if (Character.getNumericValue(packetData.charAt(1)) == 2) {\n // This is a packet with a new game request\n\n // Save the XBee address of the sender so that we can later message them with our request\n senderXBee = xBeeStats;\n\n // Get the username of the sender and the game name to be played\n String kitInfo = packetData.substring(3);\n String delim = \"[;]\";\n String[] params = kitInfo.split(delim);\n\n String requester = params[0];\n String gameRequested = params[1];\n sGameRequestName = gameRequested;\n\n // Notify the user of the new game request\n showNewGameReqDialog_final(requester, gameRequested);\n }\n }\n }", "title": "" }, { "docid": "1ccc0e44395233787fd289632fee4ed4", "score": "0.5910507", "text": "void inboundDataReceived(Buffer frame, int dataLength, int paddingLength, boolean endOfStream);", "title": "" }, { "docid": "daeb03c16831f5e9294bd2f48aa3d121", "score": "0.59061", "text": "@Override\n\tpublic void run() {\n\t\tPacket p;\n while (client.s.isConnected()){ //while connection is active, read packets from server\n try { \n p = (Packet) this.client.inputStream.readObject();\n eventHandler(p);\n }\n catch (Exception e) {\n \tbreak;\n }\n\n }\n\t}", "title": "" }, { "docid": "d5a1be47b7e6cf126a2e8bcc8bfd6036", "score": "0.58970624", "text": "public abstract void sendPacket(Packet packet);", "title": "" }, { "docid": "c59220c0a9916873823c5763098e05ac", "score": "0.5873632", "text": "protected void processPacket(Object msg){\n\t\tString message = (String) msg;\n\t\tString[] msgTokens = message.split(\",\");\n\t\t\n\t\tif(msgTokens[0].compareTo(\"join\") == 0){ //received join\n\t\t\t//format: join, (success/failure)\n\t\t\tif(msgTokens[1].compareTo(\"success\") == 0){\n\t\t\t\tgame.setIsConnected(true);\n\t\t\t\tsendCreateMessage(game.getPlayerPosition());\n\t\t\t\tSystem.out.println(\"Client Connected\");\t\t\t\n\t\t\t}\n\t\t\tif(msgTokens[1].compareTo(\"failure\") == 0){\n\t\t\t\tgame.setIsConnected(false);\n\t\t\t\tSystem.out.println(\"Client Connection Failed\");\t\t\t\n\t\t\t}\n\t\t}\n\t\tif(msgTokens[0].compareTo(\"bye\") == 0){ //received bye\n\t\t\t//format: bye, remoteID\n\t\t\tUUID ghostID = UUID.fromString(msgTokens[1]);\n\t\t\tremoveGhostAvatar(ghostID);\n\t\t}\n\t\tif(msgTokens[0].compareTo(\"dsfr\") == 0){ //received details for\n\t\t\t//format: dsfr, remoteID, x,y,z, avatarType\n\t\t\tUUID ghostID = UUID.fromString(msgTokens[1]);\n\t\t\t//extract ghost x,y,z position from message\n\t\t\tVector3D ghostPosition = new Vector3D(Double.parseDouble(msgTokens[2]),Double.parseDouble(msgTokens[3]),Double.parseDouble(msgTokens[4]));\n\t\t\t//then:\n\t\t\tchar remoteAvatar = msgTokens[5].charAt(0);\n\t\t\tcreateGhostAvatar(ghostID, ghostPosition, remoteAvatar);\n\t\t}\n\t\tif(msgTokens[0].compareTo(\"create\") == 0){ //received create\n\t\t\t//format: create, remoteID, x,y,z, avatarType\n\t\t\tUUID ghostID = UUID.fromString(msgTokens[1]);\n\t\t\t//extract ghost x,y,z position from message\n\t\t\tVector3D ghostPosition = new Vector3D(Double.parseDouble(msgTokens[2]),Double.parseDouble(msgTokens[3]),Double.parseDouble(msgTokens[4]));\n\t\t\t//then:\n\t\t\tchar remoteAvatar = msgTokens[5].charAt(0);\n\t\t\tcreateGhostAvatar(ghostID, ghostPosition, remoteAvatar);\n\t\t}\n\t\tif(msgTokens[0].compareTo(\"wsds\") == 0){ //received wants details\n\t\t\t//format: wsds, remoteID\n\t\t\tUUID remoteID = UUID.fromString(msgTokens[1]);\n\t\t\tsendDetailsForMessage(remoteID, game.getPlayerPosition(), avatarType);\n\t\t}\n\t\tif(msgTokens[0].compareTo(\"move\") == 0){ //received move\n\t\t\t//format: move, remoteID, x,y,z\n\t\t\tUUID ghostID = UUID.fromString(msgTokens[1]);\n\t\t\t//extract ghost new x,y,z position from message\n\t\t\tVector3D ghostPosition = new Vector3D(Double.parseDouble(msgTokens[2]),Double.parseDouble(msgTokens[3]),Double.parseDouble(msgTokens[4]));\n\t\t\t//then:\n\t\t\tint rotateDegrees = Integer.parseInt(msgTokens[5]);\n\t\t\tmoveGhostAvatar(ghostID, ghostPosition, rotateDegrees);\n\t\t}\n\t}", "title": "" }, { "docid": "18ada24f94f83337d8efe99b2287c800", "score": "0.58716846", "text": "public void process() {\n this.lastPing = System.currentTimeMillis();\n\n //TODO\n /*\n * if(this.inBuffer.available() + (end - start) >\n * Core.getWorldConfig().getInt(\"network.session-overflow\", 8192)){\n * Log.debug(this +\n * \" is attempting to process too much data, closing session.\");\n * this.close(); }\n */\n\n Core.submit(new Runnable() {\n @Override\n public void run() {\n handle();\n }\n }, false);\n }", "title": "" }, { "docid": "5985d9928583bb5469e49fb6798c71ff", "score": "0.58622146", "text": "public void onReceive(IPMessage msg);", "title": "" }, { "docid": "0c2b86b8ec487a09fdae5019dd036d93", "score": "0.58605075", "text": "public void forward() {\n\t\tbyte[] data = new byte[516];\n\n\t\t// create packet to receive data from client\n\t\treceivePacket = new DatagramPacket(data, data.length);\n\n\t\ttry {\n\t\t\t// receive packet from client\n\t\t\t// receive() method blocks until datagram is received, data is now\n\t\t\t// populated with recievd packet\n\t\t\tSystem.out.println(\"Receiving...\");\n\t\t\treceiveSocket.receive(receivePacket);\n\t\t\tclientAddress = receivePacket.getAddress();\n\t\t\tclientPort = receivePacket.getPort();\n\t\t\tSystem.out.println(\"Packet received from client\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tSystem.out.println(\"\\n\");\n\n\t\tString packetType = \"\";\n\t\tint whatDo = 0; // default action (do nothing)\n\t\twhile (actionPerformed == false) {\n\n\t\t\tpacketType = getPacketType(data);\n\t\t\twhatDo = getOperation();\n\t\t\tactionPerformed = true;\n\t\t}\n\t\tif (whatDo == 0) {\n\t\t\t// no nothing, simply forward packet thats been received\n\t\t\tSystem.out.println(\"Forwarding packet without altering it\");\n\t\t\ttry {\n\t\t\t\tsendPacket = new DatagramPacket(data, receivePacket.getLength(), InetAddress.getLocalHost(),\n\t\t\t\t\t\tserver1Port);\n\t\t\t\tSystem.out.println(\"Forwarding packet to server on port \" + sendPacket.getPort());\n\t\t\t\tsendReceiveSocket.send(sendPacket);\n\t\t\t\tSystem.out.println(\"Packet forwarded.\");\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} else if (packetType.equals(\"request\") && whatDo == 4) {\n\t\t\t// takes the request packets and alters the opcode to an invalid\n\t\t\t// opcode\n\t\t\tSystem.out.println(\"Altering opcode of request packet...\");\n\t\t\tdata[0] = 9;\n\t\t\tdata[1] = 9;\n\t\t\tSystem.out.println(\"OPCODE changed to: \" + data[0] + data[1]);\n\t\t\ttry {\n\t\t\t\tsendPacket = new DatagramPacket(data, receivePacket.getLength(), InetAddress.getLocalHost(),\n\t\t\t\t\t\tserver1Port);\n\t\t\t\tSystem.out.println(\"Forwarding packet to server on port \" + sendPacket.getPort());\n\t\t\t\tsendReceiveSocket.send(sendPacket);\n\t\t\t\tSystem.out.println(\"Packet forwarded.\");\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} else if (packetType.equals(\"request\") && whatDo == 5) {\n\t\t\t// takes the request packet and alters the filename\n\t\t\tSystem.out.println(\"Altering filename of request packet...\");\n\t\t\tString fileName = extractFileName(data, data.length);\n\t\t\tSystem.out.println(\"Original filename: \" + fileName);\n\t\t\tSystem.out.println(\"Changing fileName to: randomFileName\");\n\n\t\t\t// create new byteArray with different fileName\n\t\t\tfileName = \" randomFileName\";\n\t\t\tString mode = \"ascii\";\n\t\t\tByteArrayOutputStream request = new ByteArrayOutputStream();\n\t\t\t// hardcode request bytearraystream to be later converted to byte\n\t\t\t// array\n\t\t\trequest.write(data[0]);\n\t\t\trequest.write(data[1]);\n\t\t\trequest.write(fileName.getBytes(), 0, fileName.getBytes().length);\n\t\t\trequest.write(0);\n\t\t\trequest.write(mode.getBytes(), 0, mode.getBytes().length);\n\t\t\trequest.write(0);\n\n\t\t\tbyte[] msg = request.toByteArray();\n\n\t\t\t// put byteArray into packet and forward to server\n\t\t\ttry {\n\t\t\t\tsendPacket = new DatagramPacket(data, receivePacket.getLength(), InetAddress.getLocalHost(),\n\t\t\t\t\t\tserver1Port);\n\t\t\t\tSystem.out.println(\"Forwardging packet to server on port \" + sendPacket.getPort());\n\t\t\t\tsendReceiveSocket.send(sendPacket);\n\t\t\t\tSystem.out.println(\"Packet forwarded\");\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} else if (packetType.equals(\"request\") && whatDo == 6) {\n\t\t\tSystem.out.println(\"option to change request packet's mode has been chosen\");\n\t\t\t// takes the request packet and alters the filename\n\t\t\tSystem.out.println(\"Altering mode of request packet...\");\n\t\t\tSystem.out.println(\"Changing mode to: randomMode\");\n\n\t\t\t// create new byteArray with different fileName\n\t\t\tString fileName = extractFileName(data, data.length);\n\t\t\tString mode = \"ascii\";\n\t\t\tByteArrayOutputStream request = new ByteArrayOutputStream();\n\t\t\t// hardcode request bytearraystream to be later converted to byte\n\t\t\t// array\n\t\t\trequest.write(data[0]);\n\t\t\trequest.write(data[1]);\n\t\t\trequest.write(fileName.getBytes(), 0, fileName.getBytes().length);\n\t\t\trequest.write(0);\n\t\t\trequest.write(mode.getBytes(), 0, mode.getBytes().length);\n\t\t\trequest.write(0);\n\n\t\t\tbyte[] msg = request.toByteArray();\n\n\t\t\t// put byteArray into packet and forward to server\n\t\t\ttry {\n\t\t\t\tsendPacket = new DatagramPacket(data, receivePacket.getLength(), InetAddress.getLocalHost(),\n\t\t\t\t\t\tserver1Port);\n\t\t\t\tSystem.out.println(\"Forwardging packet to server on port \" + sendPacket.getPort());\n\t\t\t\tsendReceiveSocket.send(sendPacket);\n\t\t\t\tSystem.out.println(\"Packet forwarded.\");\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} else if (packetType.equals(\"data\") && whatDo == 7) {\n\t\t\tSystem.out.println(\"Changing data packets opcode...\");\n\t\t\tdata[0] = 9;\n\t\t\tdata[1] = 9;\n\t\t\tSystem.out.println(\"OPCODE changed to: \" + data[0] + data[1]);\n\t\t\ttry {\n\t\t\t\tsendPacket = new DatagramPacket(data, receivePacket.getLength(), InetAddress.getLocalHost(),\n\t\t\t\t\t\tserver1Port);\n\t\t\t\tSystem.out.println(\"Forwarding packet to server on port \" + sendPacket.getPort());\n\t\t\t\tsendReceiveSocket.send(sendPacket);\n\t\t\t\tSystem.out.println(\"Packet forwarded.\");\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println(\"\\n\");\n\n\t\t\t// receive response from server\n\t\t\tdata = new byte[100];\n\t\t\treceivePacket = new DatagramPacket(data, data.length);\n\n\t\t\tSystem.out.println(\"Receiving...\");\n\t\t\tsendReceiveSocket.receive(receivePacket);\n\t\t\tSystem.out.println(\"Packet received from server on port \" + receivePacket.getPort());\n\n\t\t\t// forward packet to client\n\t\t\tsendPacket = new DatagramPacket(data, receivePacket.getLength(), clientAddress, clientPort);\n\t\t\tSystem.out.println(\"Forwarding packet back to client...\");\n\t\t\tsendReceiveSocket.send(sendPacket);\n\t\t\tSystem.out.println(\"Packet forwarded. \\n\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}", "title": "" }, { "docid": "3715589ae9b06c3a837d4338831864c8", "score": "0.5859497", "text": "protected void onJsonPacketReceived(Object data) {\n\t}", "title": "" }, { "docid": "5af8025983a9fd66731e13fdb138e8f5", "score": "0.5857636", "text": "Incoming createIncoming();", "title": "" }, { "docid": "62c83ca47088c775f3212fcd62b0a57c", "score": "0.5852214", "text": "public void processPacket(IServerPlayNetHandler handler) {\n handler.processTryUseItemOnBlock(this);\n }", "title": "" }, { "docid": "52a64a2f3e9a483324cb2778c8c7fa67", "score": "0.58515143", "text": "public void processPacket(NetHandler par1NetHandler) {\n\t\tpar1NetHandler.handleLevelSound(this);\n\t}", "title": "" }, { "docid": "ab820dc12b10718bb03ea1d3f3f099b8", "score": "0.5845852", "text": "protected abstract void parsePacket(String packet_string, DatagramPacket packet);", "title": "" }, { "docid": "02ab999572c60d59b99a34f10bca721c", "score": "0.58456963", "text": "private void sendAndReceiveMessages()\n {\n try\n {\n //1. Determine the message to be sent\n readerSenderBytes = getAnswer();\n\n //2. Prepare message for reader\n byte[] preparedMessage=getMessage(readerSenderBytes);\n\n //3. Send message as Command APDU\n readerResponse = channel.transmit(new CommandAPDU(preparedMessage));\n\n //4.read out reader answer\n readerResponseBytes= processResponse(readerResponse.getBytes());\n\n logStatus();\n }\n catch(Exception e2)\n {\n handleConnectionLost();\n }\n }", "title": "" }, { "docid": "c2836ec4f26c929ea80a9d4b12ed0835", "score": "0.58354646", "text": "private void sendPacket() { // sends the packet\n\t\tif (packet != null) {\n\t\t\ttheRF.transmit(packet.getPacket()); //RF shooting the packet into the void\n\n\t\t\tif (packet.desAddr != -1) { //if we sent it to a specific user make sure it was delivered\n\t\t\t\tif(LinkLayer.debugMode==-1){output.println(\"moving to AWAIT_PACKET ater broadcasting DATA\");}\n\n\t\t\t\tAwaitingAck();\n\t\t\t}\n\t\t}\n\t\tpacket = null; //reset packet\n\t}", "title": "" }, { "docid": "371ec1fae9c525ead05b77c2e3a95b6c", "score": "0.5832365", "text": "private static void processSocketInput() throws IOException {\n\t\twhile(in.ready() && in != null) {\n\t\t\tchar nextChar = (char) in.read();\n\t\t\tresponseBuilder.append(nextChar);\n\t\t\tif (nextChar == NEW_LINE) {\n\t\t\t\tString rawResponse = responseBuilder.toString().trim();\n\t\t\t\tSystem.out.println(\"Incoming request: \" + rawResponse);\n\t\t\t\tresponseBuilder.setLength(0);\n\t\t\t\tif (rawResponse.length() > 0) {\n\t\t\t\t\treflectEvent(new Protocol(rawResponse));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ed2870ceb1ad94515c3744a61afc4235", "score": "0.5822647", "text": "@Override\n public void run() {\n String line = null;\n BufferedReader inBuffer = null;\n byte[] lineBytes = null;\n for (;;) {\n // Initialize inputBuffer\n try {\n inBuffer =\n new BufferedReader(new InputStreamReader(socket.getInputStream()));\n line = inBuffer.readLine();\n lineBytes = line.getBytes(StandardCharsets.US_ASCII);\n } catch (IOException e) {\n System.exit(1);\n }\n \n byte messageType = lineBytes[4];\n if (messageType == MessageTypes.HEARTBEAT.bytes()) {\n // Pass to heartbeatReceiver\n heartbeatReceiver.receiveMessage(lineBytes);\n } else if (messageType == MessageTypes.INFO.bytes()) {\n // Pass to informationReceiver\n informationReceiver.receiveMessage(lineBytes);\n } else if (messageType == MessageTypes.CHAT.bytes()) {\n // Pass to chatReceiver\n chatReceiver.receiveMessage(lineBytes);\n } else if (messageType == MessageTypes.FILE.bytes()) {\n // Pass to fileReceiver\n fileReceiver.receiveMessage(lineBytes);\n } else if (messageType == MessageTypes.STATUS.bytes()) {\n // Pass to statusReceiver\n statusReceiver.receiveMessage(lineBytes);\n } else {\n assert(false);\n }\n }\n }", "title": "" }, { "docid": "963fc1e225d3ff41b39d89e2ad1c4bab", "score": "0.58190715", "text": "public void routingPackets() {\n\r\n\t\tTCPConnection connection = (TCPConnection) node.routingConnections\r\n\t\t\t\t.get(destination);\r\n\t\tconnection.sender.sendData(sendingBytes);\r\n\r\n\t}", "title": "" }, { "docid": "bd1bbd56db8b10126aa072db25c190b1", "score": "0.58145374", "text": "public void onPacket(EntityPlayer player, int type, Vector vector);", "title": "" }, { "docid": "5c93e019209d0cdc1a3993788b3ef681", "score": "0.5812259", "text": "interface NetworkHandler {\n\t/**\n\t * Interface for processing incoming Byte data\n\t * \n\t * @param data - the incoming Bytes\n\t * @param size - size of incoming data (must be > 0)\n\t */\n\tpublic void processData(byte[] data, int size);\n}", "title": "" }, { "docid": "5421c3113b5db288ac99941095cafa49", "score": "0.5808002", "text": "@Override\n public void processReceivedMessage(byte[] buf) {\n int cnt = inCount.incrementAndGet();\n\n int rd = random.nextInt(100);\n if(rd > packetlossPercentageIn || cnt < 5) {\n super.processReceivedMessage(buf);\n }\n else {\n SCTPMessage msg = SCTPMessage.fromBytes(buf);\n logger.info(\"Parsed: {}\",msg);\n logger.info(\"Dropped received message with rd {} and data {}\",rd, Hex.encodeHexString(buf));\n }\n }", "title": "" }, { "docid": "cd61f9a7207f586ab0423196bb741a58", "score": "0.57999635", "text": "private void reader() {\t\n\t\tint readsize = 0;\n\t\tbyte[] buf = new byte[SOCKET_MAXSIZE];\n\t\ttry{\n\t\t\tInputStream in = socket.getInputStream();\n\t\t\tByteBuffer recvData = null;\n\t\t\t\n\t\t\twhile (running && socket != null && socket.isConnected()) {\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\treadsize = in.read(buf,0, SOCKET_MAXSIZE);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tonDisconnected();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(0 >= readsize){\n\t\t\t\t\tonDisconnected();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// 没有可收数据\n\t\t\t\tif(null == recvData)\n\t\t\t\t{\n\t\t\t\t\t// 解析用バッファにread結果を設定\n\t\t\t\t\trecvData = ByteBuffer.allocate(readsize);\n\t\t\t\t\trecvData.put(buf, 0, readsize);\n\t\t\t\t\trecvData.position(0);\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\t// 扩充解析缓冲\n\t\t\t\t\tByteBuffer readBuff = ByteBuffer.allocate(readsize + recvData.limit());\n\t\t\t\t\t// 把上回接收数据放入\n\t\t\t\t\treadBuff.put(recvData.array(), 0, recvData.limit());\n\t\t\t\t\t// 放入本回接收数据\n\t\t\t\t\treadBuff.put(buf, 0, readsize);\n\t\t\t\t\t// 解析用缓冲设置\n\t\t\t\t\trecvData = readBuff;\n\t\t\t\t}\n\t\t\t\tStompFrame frame = null;\n\t\t\t\tdo{\n\t\t\t\t\t// parsing raw data to StompFrame format\n\t\t\t\t\tframe = StompFrame.parse(recvData, recvData.position(), recvData.capacity());\n\t\t\t\t\t\n\t\t\t\t\t// 解析长度不足, 等待再接收数据后再处理\n\t\t\t\t\tif(frame.remainSize > 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(frame.parseSize == recvData.capacity()){\n\t\t\t\t\t\trecvData = null;\n\t\t\t\t\t}else{ // 继续解析下一条\n\t\t\t\t\t\t// 扩充解析缓冲\n\t\t\t\t\t\tByteBuffer readBuff = ByteBuffer.allocate(recvData.limit() - frame.parseSize);\n\t\t\t\t\t\t// 把已解析数据除去\n\t\t\t\t\t\treadBuff.put(recvData.array(), frame.parseSize, recvData.limit() - frame.parseSize);\n\t\t\t\t\t\t// 解析用缓冲设置\n\t\t\t\t\t\trecvData = readBuff;\n\t\t\t\t\t\trecvData.position(0);\n\t\t\t\t\t}\n\t\t\t\t\tpostMessage(frame);\n\t\t\t\t}while(recvData != null && recvData.hasRemaining());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tonCriticalError(e);\n\t\t\te.printStackTrace();\n\t\t\tonDisconnected();\n\t\t\treturn;\n\t\t}\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "bcac6cc6e6db0501ec2ddaf15e3ad95d", "score": "0.5796457", "text": "public abstract <T> void process(T packet) throws UnauthorizedException, PacketException;", "title": "" }, { "docid": "41673b6ef6cf65a21c25d09e8a6aee0b", "score": "0.57936925", "text": "private void processRequest() throws Exception{\n\t\t\t\toos = new ObjectOutputStream(socket.getOutputStream());\r\n\t\t\t\t// Set up input stream filters. \r\n\t ois = new ObjectInputStream(socket.getInputStream());\r\n\t\t\t\twhile(true){\r\n\t\t\t\t\t// Get the request line of the request message.\r\n\t\t String requestLine = (String)ois.readObject();\r\n\t\t\t\t\tSystem.out.println(requestLine);\r\n\r\n\t\t\t\t\t//determine the type of the message\r\n\t\t\t\t\tdetermineMessageType(requestLine);\r\n\t\t\t\t\tif(loggedOut) break;\r\n\t\t\t\t}\r\n\t}", "title": "" }, { "docid": "4760f8e2cc2591c16d76c1ca7782e587", "score": "0.5793044", "text": "private void fromRawData() {\n\n\t\tSystem.out.println(sdf.format(new Date()) + \"Received Dataframe: [\"\n\t\t\t\t+ Utils.showPartOfTextIfTooLong(Utils.toHexString(rawData)) + \"]\");\n\n\t\tByteBuffer rawDataBuff = ByteBuffer.wrap(rawData);\n\n\t\t// The first byte:\n\t\tbyte b = rawDataBuff.get();\n\t\tfin = ((b & 0x80) == 0x80);\n\t\trsv = (b & 0x70) >> 4;\n\t\topcode = b & 0x0f;\n\n\t\t// Read the second byte:\n\t\tb = rawDataBuff.get();\n\t\tmask = ((b & 0x80) == 0x80);\n\t\tint payloadLengthTmp = (b & 0x7f);\n\n\t\t// Payload length:\n\t\tlong length = -1;\n\t\tif (payloadLengthTmp <= 125) {\n\t\t\tlength = payloadLengthTmp;\n\t\t} else if (payloadLengthTmp == 126) {\n\t\t\tbyte[] bytes = new byte[4];\n\t\t\tbytes[2] = rawDataBuff.get();\n\t\t\tbytes[3] = rawDataBuff.get();\n\t\t\tByteBuffer buff = ByteBuffer.wrap(bytes);\n\t\t\tlength = buff.getInt();\n\t\t} else if (payloadLengthTmp == 127) {\n\t\t\tbyte[] bytes = new byte[8];\n\t\t\trawDataBuff.get(bytes);\n\t\t\tByteBuffer buff = ByteBuffer.wrap(bytes);\n\t\t\tlength = buff.getLong();\n\t\t}\n\n\t\t// Payload data:\n\t\tif (length < 0 || length > Integer.MAX_VALUE) {\n\t\t\tpayloadLength = -1;\n\t\t\t//throw new ProtocolException(\"The payload length is not correct: \" + dataLength);\n\t\t} else {\n\t\t\tpayloadLength = (int) length;\n\t\t\tapplicationData = new byte[payloadLength];\n\t\t\tif (mask) {\n\t\t\t\tmaskKey = new byte[4];\n\t\t\t\trawDataBuff.get(maskKey);\n\t\t\t\tfor (int i = 0; i < applicationData.length; i++) {\n\t\t\t\t\tapplicationData[i] = (byte) (rawDataBuff.get() ^ maskKey[i % 4]);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmaskKey = null;\n\t\t\t\trawDataBuff.get(applicationData);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "bdc70d4f2f8b5187f253c53e24043c34", "score": "0.57899725", "text": "public void receive();", "title": "" }, { "docid": "1eb114c09916e804f8d7a100573cfd32", "score": "0.5787354", "text": "public void processPacket(Packet packet) {\n IQ pong = IQ.createResultIQ((Ping) packet);\n connection.sendPacket(pong);\n }", "title": "" }, { "docid": "5731e8b0c8d847581eb47f2b296f91f1", "score": "0.5787347", "text": "@Override\n public void onBufferReceived(byte[] buffer) {\n }", "title": "" }, { "docid": "ebe758a516c8e21ebd74dd14372234fa", "score": "0.5787243", "text": "@Override\n protected void decode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) throws Exception {\n if (msg.readableBytes() < 1 + 1 + 2) {\n log.warn(\"msg.readableBytes() < 1 + 1 + 2\");\n return;\n }\n\n Boolean isUdp = ctx.channel().attr(SSCommon.IS_UDP).get();\n Boolean isFirstTcpPack = ctx.channel().attr(SSCommon.IS_FIRST_TCP_PACK).get();\n\n // UDP包和第一个TCP包,需要从数据包头部解析协议类型,地址,端口\n if (isUdp || (isFirstTcpPack != null && isFirstTcpPack)) {\n // 从数据包头部解析出协议类型(ipv4,domain,ipv6),地址和端口\n SSAddrRequest addrRequest = SSAddrRequest.getAddrRequest(msg);\n if (addrRequest == null) {\n log.warn(\"无法解析远程服务器地址,请确保客户端{}:{}在服务端端口{}上面使用了正确的密码和加密方式\",\n ctx.channel().attr(SSCommon.CLIENT).get().getHostString(),\n ctx.channel().attr(SSCommon.CLIENT).get().getPort(),\n ctx.channel().attr(SSCommon.SERVER).get().getPort());\n if (!ctx.channel().attr(SSCommon.IS_UDP).get()) {\n ctx.close();\n }\n return;\n }\n ctx.channel().attr(SSCommon.REMOTE_DES).set(new InetSocketAddress(addrRequest.host(), addrRequest.port()));\n ctx.channel().attr(SSCommon.IS_FIRST_TCP_PACK).set(false);\n }\n\n // 将数据包交给下一个handler\n out.add(msg.retain());\n }", "title": "" }, { "docid": "91a312fced01d082a528fef68e3f111a", "score": "0.5769237", "text": "void dataReceived();", "title": "" }, { "docid": "7777366720ecf499037b82b4f0095700", "score": "0.57636726", "text": "public String receive(){\n\t\tboolean gapExists = true;\n\t\tboolean gotNewline = false;\n\t\tint sendBase = 0; //sendBase - 1 denotes byte number of the last byte known to have been correctly received and in-order at the receiver\n\t\tint numBytesFreeBuffer = bufferData.length;\n\n\t\tString dataToUpperLayer = \"\";\n\n\t\t//clear buffer initially\n\t\tclearBuffer(0, bufferData.length - 1);\n\n\t\twhile(gapExists || !gotNewline){\n\t\t\tbyte[] buf = new byte[RDTPacket.MSS + RDTPacket.HEADER_LENGTH];\n\t\t\tDatagramPacket packet = new DatagramPacket(buf, buf.length);\n\t\t\ttry{\n\t\t\t\tthis.udpSocket.receive(packet);\n\t\t\t}catch(Exception ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t\tRDTPacket rdtPacket = new RDTPacket(packet);\n\n\t\t\tif(rdtPacket.getFIN() == 1){\n\t\t\t\tSystem.out.format(\"--received FIN request, disconnecting\\n\");\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// check if duplicate\n\t\t\tif(bufferData[rdtPacket.getSequenceNumber() - sendBase] != '\\0'){\n\t\t\t\tSystem.out.format(\"--received duplicate packet seq=#%d\\n\", rdtPacket.getSequenceNumber());\n\t\t\t}else{\n\t\t\t\t//new packet, reduce number of available bytes\n\t\t\t\tnumBytesFreeBuffer -= rdtPacket.getData().length();\n\t\t\t}\n\n\t\t\tfor(int byteNum = rdtPacket.getSequenceNumber(); byteNum < rdtPacket.getSequenceNumber() + rdtPacket.getData().length(); byteNum++){\n\t\t\t\tbufferData[byteNum - sendBase] = rdtPacket.getData().substring(byteNum - rdtPacket.getSequenceNumber(), byteNum - rdtPacket.getSequenceNumber() + 1).charAt(0);\n\t\t\t\tif(bufferData[byteNum - sendBase] == '\\n'){\n\t\t\t\t\tgotNewline = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(gotNewline){\n\t\t\t\tint check = 0;\n\t\t\t\twhile(bufferData[check] != '\\0' && bufferData[check] != '\\n'){check++;};\n\t\t\t\tif(bufferData[check] == '\\n'){\n\t\t\t\t\tgapExists = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.format(\"--received packet seq=#%d\\n\", rdtPacket.getSequenceNumber());\n\t\t\t//update sendBase\n\t\t\tint oldSendBase = sendBase;\n\t\t\twhile((sendBase - oldSendBase < bufferData.length) && bufferData[sendBase - oldSendBase] != '\\0'){sendBase++;};\n\t\t\t\n\t\t\t//deliver new data to upper layer\n\t\t\tif(sendBase > oldSendBase){\n\t\t\t\tString newData = String.valueOf(bufferData, 0, sendBase - oldSendBase);\n\t\t\t\tSystem.out.format(\"--received \\'%s\\', delivered to upper layer\\n\", newData);\n\t\t\t\tdataToUpperLayer += newData;\n\t\t\t\tnumBytesFreeBuffer += newData.length();\n\t\t\t\t\n\t\t\t\t// shift buffer contents left by newData.length() since sendBase changed\n\t\t\t\tfor(int bufNum = newData.length(); bufNum < bufferData.length; bufNum++){\n\t\t\t\t\tbufferData[bufNum - newData.length()] = bufferData[bufNum];\n\t\t\t\t}\n\t\t\t\tclearBuffer(bufferData.length - newData.length(), bufferData.length - 1); //insert null characters after having done left-shifting\n\t\t\t}\n\t\t\t\n\t\t\t//send ack\n\t\t\tsendAck(sendBase, numBytesFreeBuffer);\n\n\t\t}\n\n\t\treturn dataToUpperLayer;\n\t}", "title": "" }, { "docid": "5cf2dee7291d18d75cd0825fc8e6dad9", "score": "0.5762113", "text": "public interface PacketHandlerInterface {\n\n /**\n * Return the protocol name\n *\n * @return String\n */\n public String getProtocolName();\n \n /**\n * Return the number of bytes available for reading without blocking\n * \n * @return int\n * @exception IOException\n */\n public int availableBytes()\n \tthrows IOException;\n \n /**\n * Read a packet of data\n * \n * @param pkt byte[]\n * @param offset int\n * @param maxLen int\n * @return int\n * @exception IOException\n */\n public int readPacket(byte[] pkt, int offset, int maxLen)\n \tthrows IOException;\n \n /**\n * Write a packet of data\n * \n * @param pkt byte[]\n * @param offset int\n * @param len int\n * @exception IOException\n */\n public void writePacket(byte[] pkt, int offset, int len)\n \tthrows IOException;\n \n /**\n * Close the packet handler\n */\n public void closePacketHandler();\n}", "title": "" }, { "docid": "a0c20b50c51bf89b708fef31351fb5f5", "score": "0.57618177", "text": "@Override\r\n public void received(final NetEvent evt)\r\n {\r\n }", "title": "" }, { "docid": "cb278015d7e48f37f01c8175b8519fb2", "score": "0.57546693", "text": "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception{\n GameProtocol g = (GameProtocol) msg;\n logger.log(\"In Protocol Process Handler, message is: \" + g.toString(), \"Server\");\n // 2. Process message\n ProtocolProcessor processor = ProtocolProcessor.getProcessorInstance();\n processor.process(g);\n logger.log(\"Successfully stored in buffer\",\"Server\");\n }", "title": "" }, { "docid": "e4345a8c2931f910b152daefbb6ed5ec", "score": "0.5753088", "text": "@Override\n\tpublic void run(){\n\t /*\n\t * Stripping incoming packet for details to return.\n\t * and ACKing it\n\t */\n\t\tString command = new String(packet.getData());\n\t InetAddress IPAddress = packet.getAddress();\n\t int port = packet.getPort();\n\t \n\t System.out.println(getThreadID() + \"Packet received form: \" + IPAddress.toString());\n\t System.out.println(getThreadID() + \"Data received: \" + command);\n\t \n\t try {\n\t \t\tArrayList<String> urlstring = processURL(command);\n\t \t\tif(urlstring.isEmpty()) {\n\t \t\t\tArrayList<String> packetdata = new ArrayList<>();\n\t \t\t\tpacketdata.add(command.toUpperCase().replace(\"GET\", \"RST\"));\n\t \t\t\tclientControlMessages(packetdata, IPAddress, port);\n\t \t\t} else {\n\t \t\t\tArrayList<String> ackdata = new ArrayList<>();\n\t \t\t\tackdata.add(command.toUpperCase().replace(\"GET\", \"ACK\"));\n\t \t\t\tclientControlMessages(ackdata, IPAddress, port);\n\t \t\t\ttry {\n\t\t\t\t\t\tArrayList<String> data = getHttpHeaders(urlstring);\n\t\t\t\t\t\tif(data != null)\n\t\t\t\t\t\t\tclientControlMessages(data, IPAddress, port);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t \t\t}\n\t } catch (IllegalArgumentException e) {\n\t \t\t;\n\t } catch (IOException e) {\n\t \t\t;\n\t }\n\t \n\t\tserverSocket.close();\n\t\tSystem.out.println(getThreadID() + \"Request done!\");\n\t}", "title": "" }, { "docid": "5e48a4267d95b6d87570df241fa2fa6a", "score": "0.5749541", "text": "@Override\r\n\tpublic void gameTalk() {\r\n\t\tString fromServ = null;\r\n\t\tboolean rw = false;\r\n\r\n\t\ttry{\r\n\r\n\t\t\ttry{\r\n\t\t\t\tfromServ = in.readUTF();\r\n\t\t\t\tSystem.out.println(fromServ + \"did it\");\r\n\t\t\t\tout.writeUTF(packShip());\r\n\t\t\t\tSystem.out.println(fromServ + \"did itX2\");\r\n\t\t\t\trw = true;\r\n\t\t\t} catch (IOException ioe){\r\n\t\t\t\tSystem.out.println(\"could not get data!\");\r\n\t\t\t\trw = false;\r\n\t\t\t}\r\n\t\t\tif (rw){\r\n\t\t\t\tunPackShip(fromServ);\r\n\t\t\t}\r\n\t\t} catch (Exception e){\r\n\t\t\tSystem.out.println(\"##EXIT INCOMPLETE: FATAL ERROR::\\n\" + e.getMessage());\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "95a9d5532a548c1e4b31db9e69d072bc", "score": "0.5746672", "text": "@Override\n protected int doProcess(Buffer inBuffer, Buffer outBuffer)\n {\n int inLength = inBuffer.getLength();\n /*\n * Decode as many G.729 frames as possible in one go in order to\n * mitigate an issue with sample rate conversion which leads to audio\n * glitches.\n */\n int frameCount = inLength / INPUT_FRAME_SIZE_IN_BYTES;\n\n if (frameCount < 1)\n {\n discardOutputBuffer(outBuffer);\n return BUFFER_PROCESSED_OK | OUTPUT_BUFFER_NOT_FILLED;\n }\n\n byte[] in = (byte[]) inBuffer.getData();\n int inOffset = inBuffer.getOffset();\n\n int outOffset = outBuffer.getOffset();\n int outLength = OUTPUT_FRAME_SIZE_IN_BYTES * frameCount;\n byte[] out\n = validateByteArraySize(outBuffer, outOffset + outLength, false);\n\n for (int i = 0; i < frameCount; i++)\n {\n depacketize(in, inOffset, serial);\n inLength -= INPUT_FRAME_SIZE_IN_BYTES;\n inOffset += INPUT_FRAME_SIZE_IN_BYTES;\n\n decoder.process(serial, sp16);\n\n writeShorts(sp16, out, outOffset);\n outOffset += OUTPUT_FRAME_SIZE_IN_BYTES;\n }\n inBuffer.setLength(inLength);\n inBuffer.setOffset(inOffset);\n outBuffer.setLength(outLength);\n\n return BUFFER_PROCESSED_OK;\n }", "title": "" }, { "docid": "ea0eec463b2ffd32af797d055b922803", "score": "0.5744534", "text": "public void handleFramePacket(byte[] ba)\r\n/* 1673: */ throws IOException\r\n/* 1674: */ {\r\n/* 1675:1292 */ Packet211TileDesc pkt = new Packet211TileDesc(ba);\r\n/* 1676:1293 */ pkt.subId = pkt.getByte();\r\n/* 1677:1294 */ readFromPacket(pkt);\r\n/* 1678: */ }", "title": "" }, { "docid": "19decd28e418b9fa64490ea08028f057", "score": "0.5743847", "text": "public interface PacketReceiver extends gov.nasa.gsfc.drl.rtstps.core.Receiver\r\n{\r\n /**\r\n * Give an array of packets to this PacketReceiver.\r\n */\r\n public void putPackets(Packet[] packets) throws gov.nasa.gsfc.drl.rtstps.core.RtStpsException;\r\n\r\n /**\r\n * Give a packet to this PacketReceiver.\r\n */\r\n public void putPacket(Packet packet) throws gov.nasa.gsfc.drl.rtstps.core.RtStpsException;\r\n\r\n /**\r\n * Flush the data pipeline.\r\n */\r\n public void flush() throws gov.nasa.gsfc.drl.rtstps.core.RtStpsException;\r\n\r\n /**\r\n * Get this receiver's name (for error messages).\r\n */\r\n public String getLinkName();\r\n}", "title": "" }, { "docid": "41fd705d856d4c4c1579a5a8f6dae115", "score": "0.57396734", "text": "private void parsePacket1(final byte[] packetData) {\n Timber.i(TAG,\"receivedData called\");\n executor.execute(new Runnable() {\n @Override\n public void run() {\n if(packetData.length == 20)\n fetchBeaconDetai1(packetData);\n }\n });\n }", "title": "" }, { "docid": "4bf2d01fb9b87a6ab9b8af1150bbeaa6", "score": "0.57247657", "text": "@Override\r\n\tpublic void onReceive(IECSocket sender,byte[] b, int len) {\n \tSystem.out.println(\"NEW IEC data arrived\");\t\t\t\r\n\t}", "title": "" }, { "docid": "d0595c7a8599237954eebd9b67d823de", "score": "0.570629", "text": "public interface InternalPacketListener {\n\t/**\n\t * Invoked when a packet was received\n\t * \n\t * @param packet received packet. For some protocol versions packet classes\n\t * may be different (see {@link PacketRegistry})\n\t * @param registry packet registry used to construct received packet.\n\t */\n\tpublic void packetReceived(Packet packet, PacketRegistry registry);\n}", "title": "" } ]
5f952e6c8f70bbb2ae2909dcf9391989
Create a new type consisting of the given set of entries, set of arities, and the given is_int/is_bool values; Precondition: entries and arities must be consistent
[ { "docid": "dabde441d655339309fc18b6bcb935aa", "score": "0.72316796", "text": "private Type(boolean is_bool, ConstList<ProductType> entries, int arities) {\n this.is_bool = is_bool;\n if (entries == null || entries.size() == 0 || arities == 0) {\n this.entries = ConstList.make();\n this.arities = 0;\n } else {\n this.entries = entries;\n this.arities = arities;\n }\n }", "title": "" } ]
[ { "docid": "99002d8c90c3eca53dc3762b03a71324", "score": "0.743181", "text": "private static Type make(boolean is_bool, ConstList<ProductType> entries, int arities) {\n if (entries == null || entries.size() == 0 || arities == 0) {\n return is_bool ? FORMULA : EMPTY;\n }\n return new Type(is_bool, entries, arities);\n }", "title": "" }, { "docid": "60b3f2aba60e0ddf54decf0b64990a9c", "score": "0.5240183", "text": "public IntegerType(boolean isArray) {\n\t\tsuper(isArray);\n\t}", "title": "" }, { "docid": "76af1ee6f7fb50949136fa81e40822cf", "score": "0.49572453", "text": "BooleanTypeSpecifier createBooleanTypeSpecifier();", "title": "" }, { "docid": "204d27fda77acdfcdfce917d59d72276", "score": "0.49196824", "text": "@Override\n public boolean equals(Object that) {\n if (this == that)\n return true;\n if (!(that instanceof Type))\n return false;\n Type x = (Type) that;\n if (arities != x.arities || /* [AM] is_int() != x.is_int() || */is_bool != x.is_bool)\n return false;\n again1: for (ProductType aa : entries) {\n for (ProductType bb : x.entries)\n if (aa.types.length == bb.types.length && aa.isSubtypeOf(bb))\n continue again1;\n return false;\n }\n again2: for (ProductType bb : x.entries) {\n for (ProductType aa : entries)\n if (aa.types.length == bb.types.length && bb.isSubtypeOf(aa))\n continue again2;\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "ae61c807a14f2950a97c055894a972ae", "score": "0.48787868", "text": "public static AttributeType createMultiValuedAttributeType(String attrID, String issuer, String dataType, String[] values)\r\n {\r\n AttributeType attributeType = new AttributeType();\r\n attributeType.setAttributeId(attrID);\r\n attributeType.setDataType(dataType);\r\n if (issuer != null)\r\n attributeType.setIssuer(issuer);\r\n \r\n List<String> valueList = Arrays.asList(values);\r\n \r\n AttributeValueType avt = new AttributeValueType();\r\n avt.getContent().addAll(valueList);\r\n attributeType.getAttributeValue().add(avt);\r\n return attributeType; \r\n }", "title": "" }, { "docid": "595aaaad9f5876f9eac863fa7c078c4d", "score": "0.48494843", "text": "public TypeHolderDefault(String stringItem, BigDecimal numberItem, Integer integerItem, Boolean boolItem, List<Integer> arrayItem) {\n this.stringItem = stringItem;\n this.numberItem = numberItem;\n this.integerItem = integerItem;\n this.boolItem = boolItem;\n this.arrayItem = arrayItem;\n }", "title": "" }, { "docid": "d993f79e733163188f6d4e2440fa5617", "score": "0.4758163", "text": "public GenericStruct(Map<String, Object> values, boolean[] vars) {\n super(getNames(values), vars);\n this.impl = values;\n allMutable = false;\n }", "title": "" }, { "docid": "b735a942074b146b783181aacafd4977", "score": "0.46537104", "text": "public interface TableBuilder {\r\n \r\n ActionValueTable createActionValueTable();\r\n \r\n <K, V> Map<K, V> createMap();\r\n\r\n <T> Set<T> createSet();\r\n \r\n}", "title": "" }, { "docid": "8dd058625bdc26c30c7a38cdb9c9bb8c", "score": "0.46379548", "text": "public void expectBools(String name, boolean... values) {\n/* GENERATED CODE */ Object[] boxedVals = new Object[values.length];\n/* GENERATED CODE */ for(int i=0; i<values.length; i++) {\n/* GENERATED CODE */ boxedVals[i] = new Boolean(values[i]);\n/* GENERATED CODE */ }\n/* GENERATED CODE */\n/* GENERATED CODE */ checkLength(boxedVals);\n/* GENERATED CODE */\n/* GENERATED CODE */ ColumnExpectation e = new ColumnExpectation();\n/* GENERATED CODE */ e.name = name;\n/* GENERATED CODE */ e.type = ColumnType.BOOLEAN;\n/* GENERATED CODE */ e.values = boxedVals;\n/* GENERATED CODE */\n/* GENERATED CODE */ expectations.add(e);\n/* GENERATED CODE */ }", "title": "" }, { "docid": "620ea1afd1a562ec1351845b910e57b6", "score": "0.45936695", "text": "public static Type removesBoolAndInt(Type old) {\n if (!old.is_bool && !old.is_int())\n return old;\n else\n return make(false, old.entries, old.arities);\n }", "title": "" }, { "docid": "600d668b4ffb9bceeba3ded4b41fa496", "score": "0.45900232", "text": "public static TypeStruct maket( Type... ts ) { return make(\"\",false,false,ts); }", "title": "" }, { "docid": "8a57b5da0890ae7f6d7699e32f53f4d3", "score": "0.4555154", "text": "private Classes(final Class<?> primitive, final Class<?> wrapper,\n final boolean isFloat, final boolean isInteger,\n final byte size, final byte ordinal)\n {\n this.primitive = primitive;\n this.wrapper = wrapper;\n this.isFloat = isFloat;\n this.isInteger = isInteger;\n this.size = size;\n this.ordinal = ordinal;\n if (MAPPING.put(primitive, this) != null || MAPPING.put(wrapper, this) != null) {\n throw new AssertionError(); // Should never happen.\n }\n }", "title": "" }, { "docid": "d45322bebece7bfa77623fffc2eca9b6", "score": "0.4553885", "text": "void fillWithTypes() {\n typeMap = new HashMap<>();\n typeMap.put(\"Prelevare Contanti\", Arrays.asList(6, 8));\n typeMap.put(\"Fare Rifornimento\", Collections.singletonList(41));\n typeMap.put(\"Parcheggiare\", Collections.singletonList(70));\n typeMap.put(\"Mangiare\", Arrays.asList(9, 15, 38, 61, 79));\n typeMap.put(\"Fare la Spesa\", Arrays.asList(7, 26, 43, 49));\n typeMap.put(\"Fare Shopping\", Arrays.asList(25, 83, 84, 88));\n typeMap.put(\"Comprare un Regalo\", Arrays.asList(12, 25, 32, 37, 52, 56));\n typeMap.put(\"Comprare Farmaci\", Collections.singletonList(72));\n typeMap.put(\"Spedire un oggetto\", Arrays.asList(65, 77));\n typeMap.put(\"Cercare un Libro\", Arrays.asList(12, 55));\n\n iconMap = new HashMap<>();\n iconMap.put(\"Prelevare Contanti\", R.drawable.a0);\n iconMap.put(\"Fare Rifornimento\", R.drawable.a1);\n iconMap.put(\"Parcheggiare\", R.drawable.a2);\n iconMap.put(\"Mangiare\", R.drawable.a3);\n iconMap.put(\"Fare la Spesa\", R.drawable.a4);\n iconMap.put(\"Fare Shopping\", R.drawable.a5);\n iconMap.put(\"Comprare un Regalo\", R.drawable.a6);\n iconMap.put(\"Comprare Farmaci\", R.drawable.a7);\n iconMap.put(\"Spedire un oggetto\", R.drawable.a8);\n iconMap.put(\"Cercare un Libro\",R.drawable.a9);\n }", "title": "" }, { "docid": "56b7fb408efc0a02fea731588475de5a", "score": "0.4543864", "text": "public interface BooleanArray3 {\n\n void clear(int i, int j, int k);\n\n void set(int i, int j, int k);\n\n default void setAll(int i, int j, int kFrom, int kTo, boolean value) {\n for (int k = kFrom; k < kTo; k++) {\n set(j, j, k, value);\n }\n }\n\n void set(int i, int j, int k, boolean value);\n\n boolean get(int i, int j, int k);\n\n BooleanArray1 get(int i, int j);\n\n BooleanArray2 get(int i);\n\n void set(int i, BooleanArray2 value);\n\n void set(int i, int j, BooleanArray1 value);\n\n BooleanArray3 copy();\n\n int size1();\n\n int size2();\n\n int size3();\n\n /**\n * copy all values\n *\n * @param other\n * @param r0\n */\n void copyFrom(BooleanArray3 other, Range r0);\n\n /**\n * copy true values\n *\n * @param other\n * @param r0\n */\n void addFrom(BooleanArray3 other, Range r0);\n\n boolean[][][] toArray();\n\n void setAll();\n}", "title": "" }, { "docid": "65541486d67107465f6de9602dd71241", "score": "0.45289192", "text": "public BooleanItem createBooleanItem(String name);", "title": "" }, { "docid": "caf9e4eca0656f0d7cf33a5a8fd9adad", "score": "0.45283446", "text": "CheckboxValues createCheckboxValues();", "title": "" }, { "docid": "0c21d34d75a1789b7caf9178ac0e76d6", "score": "0.45219907", "text": "public void ArraysOfTypes()\n\t{\n\t\t/**\n\t\t * boolean: The boolean data type has only two possible values: true and false. \n\t\t * \t\t\tUse this data type for simple flags that use true/false conditions.\n\t\t * \t\t\tThis data type represents one bit of information.\n\t\t */\n\t\tboolean[] array1 = new boolean[3];\n\t\tarray1[0] = true;\n\t\tarray1[1] = false;\n\t\tarray1[2] = true;\n\t\tSystem.out.print(\"Data in boolean array, 'array1' is: \");\n\t\tfor(boolean a: array1)\n\t\t{ System.out.print(a + \" \"); }\n\t\tSystem.out.println(\"\");\n\n\t\t/**\n\t\t * byte: The byte data type is an 8-bit signed two's complement integer.\n\t\t * \t\t Minimum value of -128 \n\t\t * \t Maximum value of 127 (inclusive). \n\t\t * \t\t The byte data type can be useful for saving memory in large arrays, \n\t\t * where the memory savings actually matters. \n\t\t * They can also be used in place of int where their limits help to clarify your code; \n\t\t * the fact that a variable's range is limited can serve as a form of documentation.\n\t\t * \n\t\t */\n\t\tbyte[] array2 = new byte[3];\n\t\tarray2[0] = 12;\n\t\tarray2[1] = 23;\n\t\tarray2[2] = 34;\n\t\tSystem.out.print(\"Data in byte array, 'array2' is: \");\n\t\tfor(byte b: array2)\n\t\t{ System.out.print(b + \" \"); }\n\t\tSystem.out.println(\"\");\n\n\t\t/**\n\t\t * char: The char data type is a single 16-bit Unicode character.\n\t\t * \t\t minimum value of '\\u0000' (or 0) \n\t\t * \t\t maximum value of '\\uffff' (or 65,535 inclusive).\n\t\t */\n\t\tchar[] array3 = {'A', 'B', 'C'};\n\t\tSystem.out.print(\"Data in char array, 'array3' is: \");\n\t\tfor(char c: array3)\n\t\t{ System.out.print(c + \" \"); }\n\t\tSystem.out.println(\"\");\n\t\t\n\t\t/**\n\t\t * short: The short data type is a 16-bit signed two's complement integer. \n\t\t * \t\t Minimum value of -32,768 \n\t\t * \t\t Maximum value of 32,767 (inclusive).\n\t\t * \t\t As with byte, the same guidelines apply: you can use a short to save memory in large arrays,\n\t\t * in situations where the memory savings actually matters. \n\t\t */\n\t\tshort[] array4 = {-32,768, 232, 32,768};\n\t\tSystem.out.print(\"Data in short array, 'array4' is: \");\n\t\tfor(short d: array4)\n\t\t{ System.out.print(d + \" \"); }\n\t\tSystem.out.println(\"\");\n\n\t\t/**\n\t\t * int: The int data type is a 32-bit signed two's complement integer. \n\t\t * \t\tMinimum value of -2,147,483,648 \n\t\t * Maximum value of 2,147,483,647 (inclusive). \n\t\t * For integral values, this data type\n\t\t * This data type will most likely be large enough for the numbers your program will use,\n\t\t * but if you need a wider range of values, use long instead.\n\t\t */\n\t\tint[] array5 = {99, 98, 97};\n\t\tSystem.out.print(\"Data in int array, 'array5' is: \");\n\t\tfor(int e: array5)\n\t\t{ System.out.print(e + \" \"); }\n\t\tSystem.out.println(\"\");\n\n\t\t/**\n\t\t * long: The long data type is a 64-bit signed two's complement integer. \n\t\t * \t\t minimum value of -9,223,372,036,854,775,808 and \n\t\t * maximum value of 9,223,372,036,854,775,807 (inclusive).\n\t\t * Use this data type when you need a range of values wider than those provided by int.\n\t\t */\n\t\tlong[] array6 = {Long.MAX_VALUE, Long.MIN_VALUE}; // Built-in Static classes\n\t\tSystem.out.print(\"Data in long array, 'array6' is: \");\n\t\tfor(long f: array6)\n\t\t{ System.out.print(f + \" \"); }\n\t\tSystem.out.println(\"\");\n\n\t\t/**\n\t\t * float: The float data type is a single-precision 32-bit IEEE 754 floating point. \n\t\t * \t\t use a float (instead of double) if you need to save memory in large arrays \n\t\t * \t of floating point numbers. \n\t\t * This data type should never be used for precise values, such as currency.\n\t\t * For that, you will need to use the java.math.BigDecimal class instead.\n\t\t */\n\n\t\tSystem.out.print(\"Data in float array, 'array7' is: \");\n\t\tfor(float g: array6)\n\t\t{ System.out.print(g + \" \"); }\n\t\tSystem.out.println(\"\");\n\n\t\t/**\n\t\t * double: The double data type is a double-precision 64-bit IEEE 754 floating point.\n\t\t * \t\t This data type should never be used for precise values, such as currency.\n\t\t */\n\t\tdouble[] array8 = {Double.MAX_VALUE, Double.MIN_VALUE};\n\t\tSystem.out.print(\"Data in double array, 'array8' is: \");\n\t\tfor(double h: array8)\n\t\t{ System.out.print(h + \" \"); }\n\t\tSystem.out.println(\"\");\n\n\t}", "title": "" }, { "docid": "83d6039138e72bc150779d952c6c75db", "score": "0.4499774", "text": "Itypes bool_or(Booleans b);", "title": "" }, { "docid": "58d26521918d6932c28d642782e0c187", "score": "0.44976133", "text": "Itypes transform_to_boolean();", "title": "" }, { "docid": "2a2fa29b55ebd6e2db68c8333e404ab2", "score": "0.44964668", "text": "public BooleanArrayEncoder() {}", "title": "" }, { "docid": "26589f1958d24f63b3bed6aaa9465b82", "score": "0.4491843", "text": "@Test\n\tpublic void testGetTypes() {\n\t\tSimpleType tt1 = new SimpleType(\"Test\", \"info\");\n\t\tSimpleType tt2 = new SimpleType(\"Test2\", \"info\");\n\t\t\n\t\tTagValue tt1tv1 = tt1.make( \"TestValue1\", null );\n\t\tTagValue tt1tv2 = tt1.make( \"TestValue2\", null );\n\t\tTagValue tt2tv1 = tt2.make( \"TestValue1\", null );\n\t\t\n\t\tDataTags instance = new DataTags();\n\t\t\n\t\tinstance.set( tt1tv1 );\n\t\tassertEquals( Collections.singleton(tt1), instance.getSetFieldTypes());\n\t\tinstance.set( tt1tv2 );\n\t\tassertEquals( Collections.singleton(tt1), instance.getSetFieldTypes());\n\t\tinstance.set( tt2tv1 );\n\t\tassertEquals( C.set(tt1, tt2), instance.getSetFieldTypes());\n\t}", "title": "" }, { "docid": "26745a3494ab99b6b0138d9793d48147", "score": "0.44766578", "text": "public PFSeqConfig(HashMap<String, Integer> intValues,\n HashMap<String, Boolean> boolValues,\n HashMap<String, Double> doubleValues,\n HashMap<String, String> stringValues) {\n\n // initialize with defaults\n this._ints = INT_DEFAULTS;\n this._bools = BOOL_DEFAULTS;\n this._doubles = DOUBLE_DEFAULTS;\n this._strings = STRING_DEFAULTS;\n\n // overwrite defaults with values passed to constructor\n if (intValues != null) {\n for (Map.Entry<String, Integer> entry : intValues.entrySet()) {\n if (_ints.containsKey(entry.getKey())) {\n _ints.put(entry.getKey(), entry.getValue());\n } else {\n Log.d(LOG_TAG, KEY_NOT_FOUND + \" key: \" + entry.getKey());\n }\n }\n }\n if (boolValues != null) {\n for (Map.Entry<String, Boolean> entry : boolValues.entrySet()) {\n if (_bools.containsKey(entry.getKey())) {\n _bools.put(entry.getKey(), entry.getValue());\n } else {\n Log.d(LOG_TAG, KEY_NOT_FOUND + \" key: \" + entry.getKey());\n }\n }\n }\n if (doubleValues != null) {\n for (Map.Entry<String, Double> entry : doubleValues.entrySet()) {\n if (_doubles.containsKey(entry.getKey())) {\n _doubles.put(entry.getKey(), entry.getValue());\n } else {\n Log.d(LOG_TAG, KEY_NOT_FOUND + \" key: \" + entry.getKey());\n }\n }\n }\n if (stringValues != null) {\n for (Map.Entry<String, String> entry : stringValues.entrySet()) {\n if (_strings.containsKey(entry.getKey())) {\n _strings.put(entry.getKey(), entry.getValue());\n } else {\n Log.d(LOG_TAG, KEY_NOT_FOUND + \" key: \" + entry.getKey());\n }\n }\n }\n\n isValid = validate();\n\n Log.d(LOG_TAG, \"Config values: \" + LOG_EOL + printConfig() + LOG_EOL + (isValid ? \"valid\" : \"not valid\"));\n }", "title": "" }, { "docid": "85e2528b507a603beae6bf8e12bfcb22", "score": "0.44751087", "text": "public static TypeStruct make( String name, boolean any, boolean open, Ary<TypeFld> flds ) {\n TypeStruct ts = malloc(name,any,open);\n for( TypeFld fld : flds ) ts.add_fld(fld);\n return ts.hashcons_free();\n }", "title": "" }, { "docid": "a21cb469ac339d97ccf1e7679c3d34cf", "score": "0.4447084", "text": "boolean add(Object... values);", "title": "" }, { "docid": "a09d303e2406880fae9b5b540df05718", "score": "0.4419632", "text": "private void setTag(Attributes atts) {\n if (atts.getValue(\"k\").equals(\"building\"))\n isBuilding = true;\n\n if (atts.getValue(\"k\").equals(\"waterway\") || atts.getValue(\"k\").equals(\"natural\") && atts.getValue(\"v\").equals(\"water\"))\n isWaterWay = true;\n\n if (atts.getValue(\"k\").equals(\"coastline\"))\n isCoastLine = true;\n\n if (atts.getValue(\"k\").equals(\"highway\") && atts.getValue(\"v\").equals(\"primary\") ||atts.getValue(\"v\").equals(\"trunk\")||\n atts.getValue(\"v\").equals(\"secondary\") || atts.getValue(\"v\").equals(\"tertiary\"))\n isMainRoad = true;\n\n if (atts.getValue(\"k\").equals(\"highway\") && !atts.getValue(\"v\").equals(\"primary\") && !atts.getValue(\"v\").equals(\"trunk\") &&\n !atts.getValue(\"v\").equals(\"secondary\") && !atts.getValue(\"v\").equals(\"tertiary\"))\n isMinorRoad = true;\n\n\n if(atts.getValue(\"k\").equals(\"leisure\") && atts.getValue(\"v\").equals(\"park\")\n || atts.getValue(\"v\").equals(\"wood\") || atts.getValue(\"v\").equals(\"scrub\") || atts.getValue(\"v\").equals(\"grasslands\"))\n isGreenArea = true;\n\n if(atts.getValue(\"k\").equals(\"surface\") && atts.getValue(\"v\").equals(\"asphalt\") || atts.getValue(\"k\").equals(\"surface\") && atts.getValue(\"v\").equals(\"paving_stones\") ||\n atts.getValue(\"k\").equals(\"surface\") && atts.getValue(\"v\").equals(\"cobblestone\") || atts.getValue(\"k\").equals(\"surface\") && atts.getValue(\"v\").equals(\"paved\"))\n isGreySurface = true;\n }", "title": "" }, { "docid": "b0101f370217f45b25241912e30db5bb", "score": "0.44121802", "text": "public Type booleanType(int pos) {\n\t\treturn new BooleanType(pos);\n\t}", "title": "" }, { "docid": "4bf2b3409d17c3a49ecce1329fbea4a3", "score": "0.4406698", "text": "public void initBools()\n {\n for (int i = 0; i < size; i++)\n {\n myBools[i] = false;\n }\n\n myBools[0] = true;\n }", "title": "" }, { "docid": "452be09b2949a929948faec992e8663b", "score": "0.44059", "text": "@Test\n public void testDefined() throws ValueDoesNotMatchTypeException {\n IDatatype setType = new Set(\"intSet\", IntegerType.TYPE, null);\n Utils.testDefined(setType, Set.IS_DEFINED, new Object[]{1, 101, 20});\n }", "title": "" }, { "docid": "b7dec30c8c67fabd79e266b83219596a", "score": "0.43941423", "text": "@Test\n public void testIsTypeOf() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n IDatatype setType = new Set(\"intSet\", IntegerType.TYPE, null);\n IDatatype sequenceType = new Sequence(\"intSet\", IntegerType.TYPE, null);\n EvaluationAccessor value = Utils.createValue(setType, context, new Object[]{1, 7, 9});\n Utils.testIsTypeKindOf(context, AnyType.IS_TYPE_OF, value, false, IntegerType.TYPE, \n StringType.TYPE, Set.TYPE, Sequence.TYPE, sequenceType);\n value.release();\n }", "title": "" }, { "docid": "b721016f22c9050b56ea3f9464856e85", "score": "0.4376598", "text": "boolean isSetType();", "title": "" }, { "docid": "a91b80dd69a1b627e7ed4df31e39521a", "score": "0.43705946", "text": "private void defaultTuples() {\n setTuple(\"@true\", true);\n setTuple(\"@false\", false);\n }", "title": "" }, { "docid": "b3bd121e0b8deeb5fee7c059451d58c8", "score": "0.43668574", "text": "public static Boolean[] asObjects(boolean[] bools) {\n Boolean[] res = new Boolean[bools.length];\n for (int i = 0; i < res.length; i++) {\n res[i] = bools[i];\n }\n return res;\n }", "title": "" }, { "docid": "26e8e5962beabb3f06a90513d17ec4cf", "score": "0.43667653", "text": "public PrimitiveOperator(boolean[] truthTable)\n\t throws IllegalArgumentException\n\t{\n\t\t// check the length validity of the truth table\n\t\tif ((truthTable.length != 8) && (truthTable.length != 4) &&\n\t\t\t (truthTable.length != 2)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tthis.truthTable = truthTable;\n\t}", "title": "" }, { "docid": "a03f81a7b89c6172ded5348f4d908013", "score": "0.4352406", "text": "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\tprivate AnItem(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "title": "" }, { "docid": "3229c2d9a66ed1667cba954ba54d8b05", "score": "0.43472597", "text": "private static int createPackedParams(boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, boolean paramBoolean4, int paramInt1, int paramInt2) {\n/* 218 */ return paramInt2 << 16 | paramInt1 << 8 | (paramBoolean2 ? 1 : 0) << 3 | (paramBoolean3 ? 1 : 0) << 2 | (paramBoolean4 ? 1 : 0) << 1 | (paramBoolean1 ? 1 : 0) << 0;\n/* */ }", "title": "" }, { "docid": "a4d38369c1fdab73b197b230c75ca224", "score": "0.43384337", "text": "public boolean set(T value, int... indices);", "title": "" }, { "docid": "5708de76318cb16d2ae6d1dd68e23e01", "score": "0.4328034", "text": "@Test\n public void testIsKindOf() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n IDatatype setIntType = new Set(\"intSet\", IntegerType.TYPE, null);\n IDatatype setRealType = new Set(\"realSet\", RealType.TYPE, null);\n IDatatype sequenceType = new Sequence(\"intSet\", IntegerType.TYPE, null);\n EvaluationAccessor intValue = Utils.createValue(setIntType, context, new Object[]{1, 7, 9});\n EvaluationAccessor realValue = Utils.createValue(setRealType, context, new Object[]{1.2, 7.7, 1.4});\n Utils.testIsTypeKindOf(context, AnyType.IS_KIND_OF, intValue, false, IntegerType.TYPE, \n StringType.TYPE, Sequence.TYPE, Set.TYPE, sequenceType, setRealType);\n Utils.testIsTypeKindOf(context, AnyType.IS_KIND_OF, realValue, true, setRealType, setIntType);\n intValue.release();\n realValue.release();\n }", "title": "" }, { "docid": "79dad93e8c718623a72f7310559e5022", "score": "0.43241957", "text": "private static int add(TempList<ProductType> entries, int arities, ProductType x) {\n if (x == null || x.types.length == 0)\n return arities;\n final int arity = x.types.length;\n // If x is subsumed by a ProductType in this, return. Likewise, remove\n // all entries in this that are subsumed by x.\n for (int n = entries.size(), i = n - 1; i >= 0; i--) {\n ProductType y = entries.get(i);\n if (y.types.length != arity)\n continue;\n if (x.isSubtypeOf(y))\n return arities;\n if (y.isSubtypeOf(x)) {\n n--;\n entries.set(i, entries.get(n)).remove(n);\n }\n }\n if (arity > 30)\n arities = arities | 1;\n else\n arities = arities | (1 << arity);\n entries.add(x);\n return arities;\n }", "title": "" }, { "docid": "d3f717e8da12a86b691517e3de985030", "score": "0.4312579", "text": "public Builder addAllFListBool(\n java.lang.Iterable<? extends java.lang.Boolean> values) {\n ensureFListBoolIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, fListBool_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "52e4addb4ea7aeb0519a6aaeaa738817", "score": "0.43042603", "text": "public BooleanDataset(final int... shape) {\n\t\tsuper(shape);\n\t}", "title": "" }, { "docid": "ed753a80c2483ad5f0b38b9dbd003a37", "score": "0.42973256", "text": "public static TypeStruct make( TypeFld... flds ) { return make(\"\",false,false,flds); }", "title": "" }, { "docid": "fbaf87c0ade1ab45d42ddd3c0974b960", "score": "0.428275", "text": "public Example toExample(boolean isMultiClass) {\n assert (names.length == values.length);\n Example example = new Example();\n FeatureVector featureVector = new FeatureVector();\n example.addToExample(featureVector);\n\n // Set string features.\n final Map<String, Set<String>> stringFeatures = new HashMap<>();\n featureVector.setStringFeatures(stringFeatures);\n\n final Map<String, Map<String, Double>> floatFeatures = new HashMap<>();\n featureVector.setFloatFeatures(floatFeatures);\n // create LABEL family\n floatFeatures.put(LABEL, new HashMap<>());\n\n final Set<String> bias = new HashSet<>();\n final Set<String> missing = new HashSet<>();\n bias.add(\"B\");\n stringFeatures.put(\"BIAS\", bias);\n stringFeatures.put(MISS, missing);\n\n for (int i = 0; i < names.length; i++) {\n String name = names[i];\n Object value = values[i];\n if (value == null) {\n missing.add(name);\n } else {\n Pair<String, String> feature = getFamily(name);\n if (value instanceof String) {\n String str = (String) value;\n if (isMultiClass && isLabel(feature)) {\n addMultiClassLabel(str, floatFeatures);\n } else {\n addStringFeature(str, feature, stringFeatures);\n }\n } else if (value instanceof Boolean) {\n Boolean b = (Boolean) value;\n addBoolFeature(b, feature, stringFeatures);\n } else {\n addNumberFeature((Number) value, feature, floatFeatures);\n }\n }\n }\n return example;\n }", "title": "" }, { "docid": "1657bd56b906d84bb72db8598184a2e0", "score": "0.4270766", "text": "@Test\n public void or3() {\n BooleanBuilder wallmart1 = new BooleanBuilder();\n wallmart1.andAnyOf(sp, sh, ts);\n assertEquals(\"category = 'sport' OR category = 'shoes' OR category = 'test'\", super.serialize(wallmart1));\n }", "title": "" }, { "docid": "2b4d6454d0fe75470628c4728015e53f", "score": "0.42601633", "text": "@Test\n\tpublic void testBooleanAttribute() throws Exception {\n\t\tString[] expected_creationCST = { \"ITEM_at_NAME_\", \"ATTRIBUTE_at_DEFAULT_VALUE_\",\n\t\t\t\t\"ATTRIBUTE_at_SHOW_IN_DEFAULT_CP_\", \"ATTRIBUTE_at_SHOW_IN_DEFAULT_MP_\",\n\t\t\t\t\"ATTRIBUTE_at_CANNOT_BE_UNDEFINED_\", \"ATTRIBUTE_at_IS_LIST_\", \"ATTRIBUTE_at_TWEVOL_\",\n\t\t\t\t\"ATTRIBUTE_at_TWCOMMIT_KIND_\", \"ATTRIBUTE_at_TWREV_SPECIFIC_\", \"ATTRIBUTE_at_TWUPDATE_KIND_\" };\n\n\t\tObject[] expected_creationVal = { \"\", false, false, true, true, false, \"Create new revision\", \"Abort\", true,\n\t\t\t\t\"Generic merge values\" };\n\n\t\tString[] expected_modifCST = { \"ITEM_at_NAME_\", \"ITEM_at_DISPLAY_NAME_\", \"ITEM_at_QUALIFIED_NAME_\",\n\t\t\t\t\"ATTRIBUTE_at_DEFAULT_VALUE_\", \"ATTRIBUTE_at_SHOW_IN_DEFAULT_CP_\", \"ATTRIBUTE_at_SHOW_IN_DEFAULT_MP_\",\n\t\t\t\t\"ATTRIBUTE_at_CANNOT_BE_UNDEFINED_\", \"ATTRIBUTE_at_IS_LIST_\", \"ATTRIBUTE_at_TWEVOL_\",\n\t\t\t\t\"ATTRIBUTE_at_TWCOMMIT_KIND_\", \"ATTRIBUTE_at_TWREV_SPECIFIC_\", \"ATTRIBUTE_at_TWUPDATE_KIND_\",\n\t\t\t\t\"ATTRIBUTE_at_NATIF_\", \"ATTRIBUTE_at_TRANSIENT_\" };\n\t\titemCreationTest(it_mit, \"my_boolean\", CadseGCST.BOOLEAN, expected_creationCST, expected_creationVal,\n\t\t\t\texpected_modifCST);\n\t}", "title": "" }, { "docid": "9798af3c0491d90884112a3034a27f5b", "score": "0.42595774", "text": "public interface CrdtFactory {\n /**\n * Create a new GCounter.\n *\n * @return The new GCounter.\n */\n GCounter newGCounter();\n\n /**\n * Create a new PNCounter.\n *\n * @return The new PNCounter.\n */\n PNCounter newPNCounter();\n\n /**\n * Create a new GSet.\n *\n * @return The new GSet.\n */\n <T> GSet<T> newGSet();\n\n /**\n * Create a new ORSet.\n *\n * @return The new ORSet.\n */\n <T> ORSet<T> newORSet();\n\n /**\n * Create a new Flag.\n *\n * @return The new Flag.\n */\n Flag newFlag();\n\n /**\n * Create a new LWWRegister.\n *\n * @return The new LWWRegister.\n */\n <T> LWWRegister<T> newLWWRegister(T value);\n\n /**\n * Create a new ORMap.\n *\n * @return The new ORMap.\n */\n <K, V extends Crdt> ORMap<K, V> newORMap();\n\n /**\n * Create a new Vote.\n *\n * @return The new Vote.\n */\n Vote newVote();\n}", "title": "" }, { "docid": "4726e5ad721bc7d99b34c73ffa34a8fb", "score": "0.4258115", "text": "public void buildValues(XContentBuilder builder,List<String> values, String type, boolean highSensitivityFlag) throws IOException {\n\t\tfor (String value : values) {\n\t\t\tbuilder.\n\t\t\tstartObject().\n\t\t\tfield(\"name\", \"\").\n\t\t\tfield(\"weight\", 1).\n\t\t\tfield(\"is_not\", false).\n\t\t\tfield(\"source\", type).\n\t\t\tfield(\"min_count\", 1);\n\t\t\tif(type.equalsIgnoreCase(\"PREDEFINED_TERMS\")){\n\t\t\t\tbuilder.field(\"is_high_sensitivity\", highSensitivityFlag);\n\t\t\t}\n\t\t\tbuilder.\n\t\t\tstartArray(\"value\").\n\t\t\tvalue(value).\n\t\t\tendArray().\n\t\t\tendObject();\n\t\t}\n\t}", "title": "" }, { "docid": "0cceb7ba9114c6f808794e4dfb04986f", "score": "0.4256318", "text": "public GenericStruct(String[] names, boolean[] vars) {\n super(names, vars);\n impl = new HashMap<>(names.length);\n allMutable = false;\n }", "title": "" }, { "docid": "43b39df898d453f090c5a378a32f4e6e", "score": "0.42391688", "text": "public void testSimpleTypes()\n {\n Class<?>[] classes = new Class<?>[] {\n boolean.class, byte.class, char.class,\n short.class, int.class, long.class,\n float.class, double.class,\n\n Boolean.class, Byte.class, Character.class,\n Short.class, Integer.class, Long.class,\n Float.class, Double.class,\n\n String.class,\n Object.class,\n\n Calendar.class,\n Date.class,\n };\n\n TypeFactory tf = TypeFactory.defaultInstance();\n for (Class<?> clz : classes) {\n assertSame(clz, tf.constructType(clz).getRawClass());\n assertSame(clz, tf.constructType(clz).getRawClass());\n }\n }", "title": "" }, { "docid": "e1e7d45c95387477d709b1cc239a0d67", "score": "0.42312428", "text": "@Test\n public void testTypeOf() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n IDatatype setType = new Set(\"intSet\", IntegerType.TYPE, null);\n EvaluationAccessor value = Utils.createValue(setType, context, new Object[]{1, 7, 9});\n Utils.testTypeOf(context, Set.TYPE_OF, value);\n value.release();\n }", "title": "" }, { "docid": "4b6d636a43e86ca5a52a5906d9d89bfd", "score": "0.42292812", "text": "public WeatherDefinition(){\n\n this.conditions = new int[] {CONDITION_ANY};\n }", "title": "" }, { "docid": "8dac8828f194d6e0a4649d051c9a07e7", "score": "0.4228178", "text": "public MyHashSet() {\n table = new boolean[buckets][];\n\n }", "title": "" }, { "docid": "f1f92667ec83ddec61ef8a9829c1b690", "score": "0.42188084", "text": "public TypeValuePair(IntegerValue intVal) {\r\n\t\t\tif (intVal.isSigned()) {\r\n\t\t\t\tswitch (intVal.getBitWidth()) {\r\n\t\t\t\t\tcase 8:\r\n\t\t\t\t\t\tthis.iType = CIMDataType.SINT8_T;\r\n\t\t\t\t\t\tthis.iValue = Byte.valueOf(intVal.byteValue());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 16:\r\n\t\t\t\t\t\tthis.iType = CIMDataType.SINT16_T;\r\n\t\t\t\t\t\tthis.iValue = Short.valueOf(intVal.shortValue());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 32:\r\n\t\t\t\t\t\tthis.iType = CIMDataType.SINT32_T;\r\n\t\t\t\t\t\tthis.iValue = Integer.valueOf(intVal.intValue());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tthis.iType = CIMDataType.SINT64_T;\r\n\t\t\t\t\t\tthis.iValue = Long.valueOf(intVal.longValue());\r\n\t\t\t\t}\r\n\r\n\t\t\t} else { // unsigned integers\r\n\t\t\t\tswitch (intVal.getBitWidth()) {\r\n\t\t\t\t\tcase 8:\r\n\t\t\t\t\t\tthis.iType = CIMDataType.UINT8_T;\r\n\t\t\t\t\t\tthis.iValue = new UnsignedInteger8(intVal.shortValue());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 16:\r\n\t\t\t\t\t\tthis.iType = CIMDataType.UINT16_T;\r\n\t\t\t\t\t\tthis.iValue = new UnsignedInteger16(intVal.intValue());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 32:\r\n\t\t\t\t\t\tthis.iType = CIMDataType.UINT32_T;\r\n\t\t\t\t\t\tthis.iValue = new UnsignedInteger32(intVal.longValue());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tthis.iType = CIMDataType.UINT64_T;\r\n\t\t\t\t\t\tthis.iValue = new UnsignedInteger64(intVal.bigIntValue());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "e75b86f5edd6cea076de0139ab844300", "score": "0.42183337", "text": "Itypes and(Itypes L);", "title": "" }, { "docid": "96b4ef32058aac1167c9f7e25c8fe052", "score": "0.4210082", "text": "public static TypeT model(TYPE T, TypeT t)\n { //model primitive types one by one\n if(T.isUNIT() && t.typeOf().isUNIT())\n { return new PrimUnit(T);\n } \n else if(T.isBOOL() && t.typeOf().isBOOL()) \n { PrimBool v = (PrimBool)t;\n return new PrimBool(T, v.getValue());\n }\n else if(T.isCHAR() && t.typeOf().isCHAR())\n { PrimChar v = (PrimChar)t;\n return new PrimChar(T, v.getValue());\n } \n else if(T.isSTRING() && t.typeOf().isSTRING())\n { PrimString v = (PrimString)t;\n return new PrimString(T, v.getValue());\n } \n else if(T.isNAT() && t.typeOf().isNAT())\n { PrimNat v = (PrimNat)t;\n return new PrimNat(T, v.getValue());\n }\n else if(T.isINT() && t.typeOf().isINT())\n { PrimInt v = (PrimInt)t;\n return new PrimInt(T, v.getValue());\n } \n else if(T.isREAL() && t.typeOf().isREAL())\n { PrimReal v = (PrimReal)t;\n return new PrimReal(T, v.getValue());\n } \n // model structured types one by one\n else if(T.isPRODUCT() && t.typeOf().isPRODUCT() && T.equals(t.typeOf()))\n { TypeProduct v =(TypeProduct)t;\n return new TypeProduct(T, v.getLabels(), v.getValues());\n } \n else if(T.isUNION() && t.typeOf().isUNION() && T.equals(t.typeOf()))\n { TypeUnion v = (TypeUnion)t;\n return new TypeUnion(T, v.getLabel(), v.getValue());\n } \n else if(T.isREC() && TYPE.unfold(T).equals(t.typeOf()))\n { return new TypeRec(T, t);} \n else if(T.isLIST() && t.typeOf().isLIST() && T.getBaseTYPE().equals(t.typeOf().getBaseTYPE()))\n { TypeList v = (TypeList) t;\n if(v.isEmptyList()) return new TypeList(T.getBaseTYPE());\n else{ return new TypeList(T.getBaseTYPE(), v.getValue());}\n }\n else if(T.isSET() && t.typeOf().isSET() && T.getBaseTYPE().equals(t.typeOf().getBaseTYPE()))\n { TypeSet v = (TypeSet) t;\n if(v.isEmptySet()) return new TypeSet(T.getBaseTYPE());\n else{ return new TypeSet(T.getBaseTYPE(), v.getValue());}\n } \n else if(T.isMSET() && t.typeOf().isMSET() && T.getBaseTYPE().equals(t.typeOf().getBaseTYPE()))\n { TypeMultiset v = (TypeMultiset)t;\n if(v.isEmptyMultiset()) return new TypeMultiset(T.getBaseTYPE());\n else { return new TypeMultiset(T.getBaseTYPE(), v.getValue());}\n }\n else if(T.isMAPPING() && t.typeOf().isMAPPING() && T.equals(t.typeOf()))\n { TypeMapping v = (TypeMapping)t;\n if(v.isEmptyMapping()) return new TypeMapping(T.getDOM(), T.getCOD());\n else{ return new TypeMapping(T.getDOM(), T.getCOD(), v.getDomFst(), v.getCodFst(), v.getRest());}\n } \n else { throw new RuntimeException(\"There is no other TYPE currently\");}\n }", "title": "" }, { "docid": "d0dc2ba1bcf3d6aa0f934dd02e76818e", "score": "0.42087048", "text": "public RFMapReduce(ArrayList<Boolean> typeSpecification, ArrayList<Boolean> chosenAttributes, String delimiter, String header) throws Exception {\n this.typeSpecification = \"\";\n this.chosenAttributes = \"\";\n for (int i = 0; i < typeSpecification.size(); i ++) {\n this.typeSpecification += (typeSpecification.get(i) ? \"1\" : \"0\");\n this.chosenAttributes += (chosenAttributes.get(i) ? \"1\" : \"0\");\n }\n\n this.attrSubspaceNum = (int) Math.sqrt(this.typeSpecification.length());\n\n this.delimiter = delimiter;\n\n this.header = header;\n }", "title": "" }, { "docid": "2a1fa75a322f2a9885a116014b324583", "score": "0.42053008", "text": "public Tumor(String[] newAttributes)\n { \n attributes.add(new Attribute(\"Thickness\", Integer.parseInt(newAttributes[0])));\n attributes.add(new Attribute(\"Size\", Integer.parseInt(newAttributes[1])));\n attributes.add(new Attribute(\"Shape\", Integer.parseInt(newAttributes[2])));\n attributes.add(new Attribute(\"Adhesion\", Integer.parseInt(newAttributes[3])));\n attributes.add(new Attribute(\"Epithelial\", Integer.parseInt(newAttributes[4])));\n attributes.add(new Attribute(\"Nuclei\", Integer.parseInt(newAttributes[5])));\n attributes.add(new Attribute(\"Chromatin\", Integer.parseInt(newAttributes[6])));\n attributes.add(new Attribute(\"Nucleoli\", Integer.parseInt(newAttributes[7])));\n attributes.add(new Attribute(\"Mitoses\", Integer.parseInt(newAttributes[8])));\n \n if(Integer.parseInt(newAttributes[9]) == 0)\n {\n Type = \"Benign\";\n }\n else\n {\n Type = \"Malignant\";\n }\n }", "title": "" }, { "docid": "0ed6a6d90c614a72bf48947cce4b73a4", "score": "0.41721573", "text": "public MyHashSet3() {\n table = new boolean[buckets][];\n }", "title": "" }, { "docid": "712a9bf242b8ce9e5ef46d7df952b134", "score": "0.4171175", "text": "BOOLEAN_LITERAL createBOOLEAN_LITERAL();", "title": "" }, { "docid": "e9cdaaeab2848ebcf3d822726fb694f2", "score": "0.4164505", "text": "public Tile(int belongsToArea, int entry, boolean changeable) {\n this.belongsToArea = belongsToArea;\n this.entry = entry;\n this.filled = entry != 0;\n this.changeable = changeable;\n }", "title": "" }, { "docid": "0a530895432db7d3877b316e261f9cd7", "score": "0.4152078", "text": "public boolean hasArity(int arity) {\n if (arity <= 30)\n return arity > 0 && ((arities & (1 << arity)) != 0);\n if ((arities & 1) != 0)\n for (int i = entries.size() - 1; i >= 0; i--)\n if (entries.get(i).types.length == arity)\n return true;\n return false;\n }", "title": "" }, { "docid": "40f6fea4c37cf71a4b191d9db2e5efc9", "score": "0.41509974", "text": "com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder();", "title": "" }, { "docid": "912f7bc1b3d994d619771bcd4e65f630", "score": "0.4134564", "text": "boolean isBooleanValueType();", "title": "" }, { "docid": "848d7cdf59d372fb52bb7cd766f6b4c2", "score": "0.4130644", "text": "@Test\n\tpublic void testListBooleanAttribute() throws Exception {\n\t\tString[] expected_typeCreationCST = { \"ATTRIBUTE_at_DEFAULT_VALUE_\", \"ATTRIBUTE_at_CANNOT_BE_UNDEFINED_\" };\n\t\tObject[] expected_typeCreationVal = { false, true };\n\t\tString[] expected_typeModifCST = { \"ATTRIBUTE_at_DEFAULT_VALUE_\", \"ATTRIBUTE_at_CANNOT_BE_UNDEFINED_\" };\n\n\t\titemListCreationTest(it_mit, \"myListBoolean\", CadseGCST.BOOLEAN, expected_typeCreationCST,\n\t\t\t\texpected_typeCreationVal, expected_typeModifCST);\n\t}", "title": "" }, { "docid": "d3fdb29e02a44d3c7d26f846dac8ace0", "score": "0.41266233", "text": "public boolean Add(T newEntry, int where);", "title": "" }, { "docid": "2462791d186da8f6286df1c02d4c2c89", "score": "0.41230637", "text": "public void testIntToBools() {\r\n \r\n \r\n \r\n \r\n int[] pattern1 = new int[] {1, 1};\r\n int[] result1 = EvBinary.intToBools(3, 2);\r\n assertEquals(pattern1.length, result1.length);\r\n assertEquals(pattern1[0], result1[0]);\r\n assertEquals(pattern1[1], result1[1]); \r\n \r\n int[] pattern2 = new int[] {1, 0, 1};\r\n int[] result2 = EvBinary.intToBools(5, 3);\r\n assertEquals(pattern2.length, result2.length);\r\n assertEquals(pattern2[0], result2[0]);\r\n assertEquals(pattern2[1], result2[1]); \r\n assertEquals(pattern2[2], result2[2]); \r\n \r\n \r\n \r\n int[] pattern3 = new int[] {1};\r\n int[] result3 = EvBinary.intToBools(5, 1);\r\n assertEquals(pattern2.length, result2.length);\r\n assertEquals(pattern3[0], result3[0]);\r\n \r\n \r\n }", "title": "" }, { "docid": "a4ecfd3b74d56a28a9a15a5a1f36d87a", "score": "0.4122665", "text": "Set<TypeFlag> getType();", "title": "" }, { "docid": "a6344276e42a498ff22e3c203fb51859", "score": "0.411686", "text": "public interface Classifier {\n Map<SocialMediaEntry, Boolean> classify(Set<SocialMediaEntry> testSet);\n}", "title": "" }, { "docid": "84f39f6146d48ebe28da96f3dc3dae25", "score": "0.41110072", "text": "Conditional createConditional();", "title": "" }, { "docid": "8415b4a24d341a95253aad171c0734c8", "score": "0.4107722", "text": "private TTreeColumnVector getDummyScalarBooleanVec(long entryStart, long entryStop) {\n byte [][]payload = {booleanPayload};\n SlimTBranchInterface branch = new SlimTBranchStub(payload, null, null, new long[] {0, 1029}, null, 0);\n return TTreeColumnVector.makeTTreeColumnVector(DataTypes.BooleanType, SimpleType.Bool, Dtype.BOOL, basketCache, entryStart, entryStop, branch, null);\n }", "title": "" }, { "docid": "a60f6e97a9feb0e14c9d4c2ec6cbb1e0", "score": "0.41020232", "text": "public void testMaps()\n {\n TypeFactory tf = newTypeFactory();\n\n // Ok, first: let's test what happens when we pass 'raw' Map:\n JavaType t = tf.constructType(HashMap.class);\n assertEquals(MapType.class, t.getClass());\n assertSame(HashMap.class, t.getRawClass());\n assertEqualsAndHash(t, tf.constructType(HashMap.class));\n\n // Then explicit construction\n t = tf.constructMapType(TreeMap.class, String.class, Integer.class);\n assertEquals(MapType.class, t.getClass());\n assertSame(String.class, ((MapType) t).getKeyType().getRawClass());\n assertSame(Integer.class, ((MapType) t).getContentType().getRawClass());\n assertEqualsAndHash(t, tf.constructMapType(TreeMap.class, String.class, Integer.class));\n\n // And then with TypeReference\n t = tf.constructType(new TypeReference<HashMap<String,Integer>>() { });\n assertEquals(MapType.class, t.getClass());\n assertSame(HashMap.class, t.getRawClass());\n MapType mt = (MapType) t;\n assertEquals(tf.constructType(String.class), mt.getKeyType());\n assertEquals(tf.constructType(Integer.class), mt.getContentType());\n assertEqualsAndHash(t, tf.constructType(new TypeReference<HashMap<String,Integer>>() { }));\n\n t = tf.constructType(new TypeReference<LongValuedMap<Boolean>>() { });\n assertEquals(MapType.class, t.getClass());\n assertSame(LongValuedMap.class, t.getRawClass());\n mt = (MapType) t;\n assertEquals(tf.constructType(Boolean.class), mt.getKeyType());\n assertEquals(tf.constructType(Long.class), mt.getContentType());\n assertEqualsAndHash(t, tf.constructType(new TypeReference<LongValuedMap<Boolean>>() { }));\n\n JavaType type = tf.constructType(new TypeReference<Map<String,Boolean>>() { });\n MapType mapType = (MapType) type;\n assertEquals(tf.constructType(String.class), mapType.getKeyType());\n assertEquals(tf.constructType(Boolean.class), mapType.getContentType());\n assertEqualsAndHash(type, tf.constructType(new TypeReference<Map<String,Boolean>>() { }));\n }", "title": "" }, { "docid": "633a267c73b8ecfa5a8d64c1cc1e9046", "score": "0.41007432", "text": "private ProductType(PrimSig[] array) {\n types = array;\n }", "title": "" }, { "docid": "505a0402db4353e944b71b56120314be", "score": "0.40903446", "text": "public TypeStruct make_from(String name, boolean any, boolean open ) {\n assert interned();\n TypeStruct ts = malloc(name,any,open);\n for( TypeFld fld : flds() ) ts.add_fld(fld);\n return ts.hashcons_free();\n }", "title": "" }, { "docid": "9caa6df3912c345fad39952e9ed51f65", "score": "0.40895754", "text": "public static void main(String[] args) {\n\t\tString data_3 = \"sdf\";\r\n\t\tInteger data_4 = 3;\r\n\t\tMap<String, Object> data_5 = new HashMap<>();\r\n\t\tCustomClass data_6 = new CustomClass();\r\n\t\t\r\n\t\tObject data_7 = new HashMap<String, Object>();\r\n\t\t\r\n\t\tSystem.out.println(data_3 instanceof String);\r\n\t\tSystem.out.println(data_4 instanceof Integer);\r\n\t\tSystem.out.println(data_5 instanceof Map);\r\n\t\tSystem.out.println(data_6 instanceof CustomClass);\r\n\t\tSystem.out.println(data_7 instanceof Map);\r\n\t\tSystem.out.println(data_7 instanceof Object);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4777711cd082fcfdf9cad6c398f125c3", "score": "0.4088347", "text": "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n private Object[] getArgsWithListCoercian(List<Object> args, Class[] parameterTypes) {\n// Class[] parameterTypes = constructor.getParameterTypes();\n if (parameterTypes.length != args.size()) {\n throw new IllegalArgumentException(\"Contructor parameter count does not \"\n + \"egual argument size.\");\n }\n Object[] constructorParams = new Object[args.size()];\n\n // loop through the arguments, if we hit a list that has to be convered to an array,\n // perform the conversion\n for (int i = 0; i < args.size(); i++) {\n Object obj = args.get(i);\n Class paramType = parameterTypes[i];\n Class objectType = obj.getClass();\n LOG.debug(\"Comparing parameter class \" + paramType.getName() + \" to object class \"\n + objectType.getName() + \" to see if assignment is possible.\");\n if (paramType.equals(objectType)) {\n LOG.debug(\"They are the same class.\");\n constructorParams[i] = args.get(i);\n continue;\n }\n if (paramType.isAssignableFrom(objectType)) {\n LOG.debug(\"Assignment is possible.\");\n constructorParams[i] = args.get(i);\n continue;\n }\n if (isPrimitiveBoolean(paramType) && Boolean.class.isAssignableFrom(objectType)) {\n LOG.debug(\"Its a primitive boolean.\");\n Boolean bool = (Boolean) args.get(i);\n constructorParams[i] = bool.booleanValue();\n continue;\n }\n if (isPrimitiveNumber(paramType) && Number.class.isAssignableFrom(objectType)) {\n LOG.debug(\"Its a primitive number.\");\n Number num = (Number) args.get(i);\n if (paramType == Float.TYPE) {\n constructorParams[i] = num.floatValue();\n } else if (paramType == Double.TYPE) {\n constructorParams[i] = num.doubleValue();\n } else if (paramType == Long.TYPE) {\n constructorParams[i] = num.longValue();\n } else if (paramType == Integer.TYPE) {\n constructorParams[i] = num.intValue();\n } else if (paramType == Short.TYPE) {\n constructorParams[i] = num.shortValue();\n } else if (paramType == Byte.TYPE) {\n constructorParams[i] = num.byteValue();\n } else {\n constructorParams[i] = args.get(i);\n }\n continue;\n }\n\n // enum conversion\n if (paramType.isEnum() && objectType.equals(String.class)) {\n LOG.debug(\"Yes, will convert a String to enum\");\n constructorParams[i] = Enum.valueOf(paramType, (String) args.get(i));\n continue;\n }\n\n // List to array conversion\n if (paramType.isArray() && List.class.isAssignableFrom(objectType)) {\n LOG.debug(\"Conversion appears possible...\");\n List list = (List) obj;\n LOG.debug(\"Array Type: {}, List type: {}\" + paramType.getComponentType()\n + list.get(0).getClass());\n\n // create an array of the right type\n Object newArrayObj = Array.newInstance(paramType.getComponentType(), list.size());\n for (int j = 0; j < list.size(); j++) {\n Array.set(newArrayObj, j, list.get(j));\n\n }\n constructorParams[i] = newArrayObj;\n LOG.debug(\"After conversion: {}\" + constructorParams[i]);\n }\n }\n return constructorParams;\n }", "title": "" }, { "docid": "d29ae7c8601982d9917ac5809575891b", "score": "0.40786785", "text": "public void makeKeyValueLists(){\n\t\t\tInteger pointer = 0;\n\t\t\tDate date;\n\t\t\tDouble dbl;\n\t\t\t\n\t\t\t// Load the key names (strings)\n\t\t\t// As they are all strings they just copy\n\t\t\tfor (Object obj : keyvalues.keySet()){\n\t\t\t\tsetkeys.add(obj.toString());\n\t\t\t}\n\n\t\t\t// Copy the types into an array\n\t\t\tString types[] = new String[setkeys.size()];\n\t\t\ttypes = setkeys.toArray(types);\n\n\t\t\t// Load the values (objects)\n\t\t\t// These could be a mixed bag so we have to check\n\t\t\tfor (String obj: keyvalues.values()){\n\t\t\t\t\n\t\t\t\tif (types[pointer].matches(\"time\")) { // add object of given type\n\t\t\t\t\t\tdate = new Date(Long.parseLong(obj));\n\t\t\t\t\t\tvalues.add(date);\n\t\t\t\t}\n\t\t\t\telse if (types[pointer].matches(\"score\")) { // add object of given type\n\t\t\t\t\t\tdbl = Double.parseDouble(obj);\n\t\t\t\t\t\tvalues.add(dbl);\n\t\t\t\t} \n\t\t\t\telse { // default is text\n\t\t\t\t\tvalues.add(obj);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tpointer ++;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "3300f3f7365d26e5016c99ca0584c48f", "score": "0.40770477", "text": "Itypes bool_and(Booleans b);", "title": "" }, { "docid": "bff17f4baf89e0e8a4516423542d7b15", "score": "0.40698236", "text": "public UnionType(String[] labels, Type[] types) {\n\t\tif (labels.length != types.length) {\n\t\t\tthrow new IllegalArgumentException(\"UnionType: the labels \"\n\t\t\t\t\t+ \"and types arrays do not have the same size.\");\n\t\t}\n\n\t\tfor (int i = 0; i < labels.length; i++) {\n\t\t\tFieldType fieldType = new FieldType(types[i]);\n\t\t\t_fields.put(labels[i], fieldType);\n\t\t}\n\t}", "title": "" }, { "docid": "5e385f7675f2f93a211a45c3e077567a", "score": "0.4069297", "text": "Entry(String comment, Map<IField, String> allowedFields,\n Map<IMethod, String> allowedMethods,\n Map<IField, String> disabledFields,\n Map<IMethod, String> disabledMethods,\n int honoraries /*, Set<IType> deemings*/) {\n enabled = true;\n this.comment = comment;\n this.allowedFields = allowedFields;\n this.allowedMethods = allowedMethods;\n this.disabledFields = disabledFields;\n this.disabledMethods = disabledMethods;\n this.honoraries = (BuildState.isPowerless(honoraries)) ? \n honoraries | BuildState.IMPL_IMMUTABLE : honoraries;\n // this.deemings = deemings;\n }", "title": "" }, { "docid": "3d41836c171b8fa584a1d75f1022ae42", "score": "0.4068842", "text": "@SuppressWarnings(\"unchecked\")\n @Test\n public void shouldCreateMap() {\n final String key1 = \"str1\";\n final Integer val1 = 1;\n final String key2 = \"str2\";\n final Integer val2 = 2;\n\n // WHEN building the matching map\n final Map<String, Integer> map = asMap(kv(key1, val1), kv(key2, val2));\n\n // THEN the result is a map containing all these elements\n assertThat(map, allOf(hasEntry(key1, val1), hasEntry(key2, val2)));\n }", "title": "" }, { "docid": "72d688812ebf1e3a2671a0710f7062f6", "score": "0.40612823", "text": "CaseTypes create(CaseTypes caseTypes);", "title": "" }, { "docid": "20079b19f3f013dd16021a3d43bde5f6", "score": "0.40608388", "text": "@Test\n\tpublic void testConstructor6() {\n\t\tInteger[] ints = new Integer[SIZE];\n\t\tfor (int i = 0; i < SIZE; ++i)\n\t\t\tints[i] = new Integer(i);\n\t\tArrayListSet<Integer> q = new ArrayListSet<>(Arrays.asList(ints));\n\t\tfor (int i = 0; i < SIZE; ++i)\n\t\t\tassertTrue(q.contains(ints[i]));\n\t}", "title": "" }, { "docid": "8062c944dd59d19f3d25c0ac264137d4", "score": "0.40585786", "text": "@Test\n public void shouldCreateSet() {\n final int one = 1;\n final int two = 2;\n final int three = 3;\n\n // WHEN building the matching map\n final Set<Integer> set = setOf(one, two, three);\n\n // THEN the result is a map containing all these elements\n assertThat(set, hasItems(one, two, three));\n }", "title": "" }, { "docid": "73a44df92dd4b44a63c61b70d6052fa8", "score": "0.40553215", "text": "public interface Attributes {\n\n AttributeKey<Boolean> LOGIN = AttributeKey.newInstance(\"login\");\n\n AttributeKey<Session> SESSION = AttributeKey.newInstance(\"session\");\n}", "title": "" }, { "docid": "973f6128239716858bfd7b7f066e3fcf", "score": "0.40529123", "text": "private void initParTypes() {\n\t\t// integer, SpaceNavigatorButton\n\t\tisnbParTypes = new Class[2];\n\t\tisnbParTypes[0] = Integer.TYPE;\n\t\tisnbParTypes[1] = SpaceNavigatorButton.class;\n\t\t// integer, float, float, float\n\t\tifffParTypes = new Class[4];\n\t\tifffParTypes[0] = Integer.TYPE;\n\t\tfor (int i = 1; i < ifffParTypes.length; i++) {\n\t\t\tifffParTypes[i] = Float.TYPE;\n\t\t}\n\t}", "title": "" }, { "docid": "7e8e5cf9d50509a22714f5ab8413fc8b", "score": "0.40517515", "text": "public void addClassMap ( HashMap newClassMap ) {\n \n Iterator keys = newClassMap.keySet().iterator();\n while( keys.hasNext() ) {\n String key = ( String )keys.next();\n Class dude = ( Class )newClassMap.get( key );\n try { \n if ( dude == Boolean.class ) {\n definition.defineAttribute( key,\n TYPE_BOOLEAN,\n new byte[] {TYPE_STRING} );\n } else if ( dude == Double.class ) {\n definition.defineAttribute( key,\n TYPE_FLOATING_POINT,\n new byte[] {TYPE_STRING} );\n } else if (dude == Integer.class ) {\n definition.defineAttribute( key,\n TYPE_INTEGER,\n new byte[] {TYPE_STRING} );\n } else if (dude == String.class ) {\n definition.defineAttribute( key,\n TYPE_STRING,\n new byte[] {TYPE_STRING} );\n } else {\n }\n } catch ( Exception e ) {\n //\n }\n }\n }", "title": "" }, { "docid": "bbc5b47925893204cdf5f029084a3b9c", "score": "0.40417627", "text": "void insertSelective(Applytypeinfo record);", "title": "" }, { "docid": "f4a6c275886f34d7cd93ac76e22398e2", "score": "0.40358543", "text": "private void setMetadataHint(Map<String, Object> entryCwl, Map<String, String> entries) {\n Map<String, String> classedEntries = new HashMap<>(entries);\n classedEntries.put(\"class\", METADATA_HINT_CLASS);\n // Find the hints object\n Object hints = entryCwl.get(\"hints\");\n // If no hints, add an empty list\n if (hints == null) {\n hints = new ArrayList<Object>();\n entryCwl.put(\"hints\", hints);\n }\n // Add the new metadata hint to the hints, replacing the existing metadata hint if it exists.\n // Hints can either be in List or \"idmap\" format, so handle both representations\n if (hints instanceof List) {\n List<Object> hintsList = (List<Object>)hints;\n hintsList.remove(findMapInList(hintsList, \"class\", METADATA_HINT_CLASS));\n hintsList.add(classedEntries);\n } else if (hints instanceof Map) {\n Map<String, Object> hintsMap = (Map<String, Object>)hints;\n hintsMap.put(METADATA_HINT_CLASS, classedEntries);\n }\n }", "title": "" }, { "docid": "cb3e84f3000509efe01f4ec01ee832eb", "score": "0.40290657", "text": "public Animal (boolean legs, boolean wings, String type) {\r\n\t\tsetLegs(legs);\r\n\t\tsetWings(wings);\r\n\t\tsetType(type);\r\n\t}", "title": "" }, { "docid": "e1b8f8a8c8c192d59b18e9ba17c3058c", "score": "0.40215898", "text": "public GetInfoBooleans(String... booleans) {\n\t\t\tsuper();\n\t\t\taddParameter(\"booleans\", booleans);\n\t\t}", "title": "" }, { "docid": "8f6743658e2fa07a026979ea29eac6c4", "score": "0.4019669", "text": "public boolean Add(T newEntry);", "title": "" }, { "docid": "1e7c4a23617da842515c798ef357d8fd", "score": "0.40174112", "text": "ComplexType createComplexType();", "title": "" }, { "docid": "f0bab2f71688e0a35e8bc9c7a9ac8219", "score": "0.4016979", "text": "public XmlSchemaTypeInfo(boolean isMixed) {\n type = Type.COMPLEX;\n baseSimpleType = XmlSchemaBaseSimpleType.ANYTYPE;\n this.isMixed = isMixed;\n\n facets = null;\n childTypes = null;\n userRecognizedType = null;\n }", "title": "" }, { "docid": "4aa05c7236d12a1897baf069a0b53040", "score": "0.40110815", "text": "AlgebraicConditionList createAlgebraicConditionList();", "title": "" }, { "docid": "f489c6096792a0af28305a58afb820ed", "score": "0.40084943", "text": "public static Boolean[] Of(final boolean... arr) { return box(arr); }", "title": "" }, { "docid": "6c8cfa53ebdbe0f77d2897daa9174673", "score": "0.40077454", "text": "private MatchableMetaData metaDataFor(Map.Entry<?, ?> entry) {\n\t\t\n\t\tMap<String, Class<?>> types = new HashMap<>();\n\t\t\n\t\tImmutableCollection<String> keyProperties = definition.getKeyProperties();\n\t\tif (keyProperties.isEmpty()) {\n\t\t\ttypes.put(KEY_NAME, entry.getKey().getClass());\n\t\t\tkeyProperties = ImmutableCollection.of(KEY_NAME);\n\t\t}\n\t\telse {\n\t\t\tArooaClass arooaClass = accessor.getClassName(entry.getKey());\n\t\t\n\t\t\tBeanOverview overview = arooaClass.getBeanOverview(accessor);\n\t\t\t\n\t\t\tfor (String name : keyProperties) {\n\t\t\t\ttypes.put(name, overview.getPropertyType(name));\n\t\t\t}\n\t\t}\n\t\t\n\t\tImmutableCollection<String> valueProperties = definition.getValueProperties();\n\t\tif (valueProperties.isEmpty()) {\n\t\t\ttypes.put(VALUE_NAME, entry.getValue().getClass());\n\t\t\tvalueProperties = ImmutableCollection.of(VALUE_NAME);\n\t\t}\n\t\telse {\n\t\t\tArooaClass arooaClass = accessor.getClassName(entry.getValue());\n\t\t\t\n\t\t\tBeanOverview overview = arooaClass.getBeanOverview(accessor);\t\t\t\n\t\t\t\n\t\t\tfor (String name : valueProperties) {\n\t\t\t\ttypes.put(name, overview.getPropertyType(name));\n\t\t\t}\n\t\t\t\n\t\t\tfor (String name : definition.getOtherProperties()) {\n\t\t\t\ttypes.put(name, overview.getPropertyType(name));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn SimpleMatchableMeta.of(keyProperties, valueProperties,\n\t\t\t\tdefinition.getOtherProperties(), types);\n\t}", "title": "" }, { "docid": "494a1720cc3d175c6e43dc9f2d3673cf", "score": "0.40071404", "text": "public IntCastNodeCreator(CALExpressionNode intsize, boolean signed) {\n super();\n this.intsize = intsize;\n this.signed = signed;\n }", "title": "" }, { "docid": "a1d12e0aadea23314c2c3aaf466dedab", "score": "0.40005898", "text": "public BooleanDataset(final boolean[] data, int... shape) {\n\t\tsuper(data, shape);\n\t}", "title": "" }, { "docid": "43972b92e43fde9e559e42483dbefe20", "score": "0.40004924", "text": "@SuppressWarnings(\"deprecation\")\n public void testParametricTypes()\n {\n TypeFactory tf = TypeFactory.defaultInstance();\n // first, simple class based\n final JavaType t = tf.constructParametrizedType(ArrayList.class, Collection.class, String.class); // ArrayList<String>\n assertEquals(CollectionType.class, t.getClass());\n JavaType strC = tf.constructType(String.class);\n assertEquals(1, t.containedTypeCount());\n assertEquals(strC, t.containedType(0));\n assertNull(t.containedType(1));\n\n // Then using JavaType\n JavaType t2 = tf.constructParametrizedType(Map.class, Map.class, strC, t); // Map<String,ArrayList<String>>\n // should actually produce a MapType\n assertEquals(MapType.class, t2.getClass());\n assertEquals(2, t2.containedTypeCount());\n assertEquals(strC, t2.containedType(0));\n assertEquals(t, t2.containedType(1));\n assertNull(t2.containedType(2));\n\n // [databind#921]: using type bindings\n JavaType t3 = tf.constructParametricType(HashSet.class, t.getBindings()); // HashSet<String>\n assertEquals(CollectionType.class, t3.getClass());\n assertEquals(1, t3.containedTypeCount());\n assertEquals(strC, t3.containedType(0));\n assertNull(t3.containedType(1));\n\n // and then custom generic type as well\n JavaType custom = tf.constructParametrizedType(SingleArgGeneric.class, SingleArgGeneric.class,\n String.class);\n assertEquals(SimpleType.class, custom.getClass());\n assertEquals(1, custom.containedTypeCount());\n assertEquals(strC, custom.containedType(0));\n assertNull(custom.containedType(1));\n\n // and then custom generic type from TypeBindings ([databind#921])\n JavaType custom2 = tf.constructParametricType(SingleArgGeneric.class, t.getBindings());\n assertEquals(SimpleType.class, custom2.getClass());\n assertEquals(1, custom2.containedTypeCount());\n assertEquals(strC, custom2.containedType(0));\n assertNull(custom2.containedType(1));\n\n // should also be able to access variable name:\n assertEquals(\"X\", custom.containedTypeName(0));\n }", "title": "" }, { "docid": "48c9c12eaa7b59115d48b26cd4bac736", "score": "0.39977401", "text": "@Override\r\n\tprotected void createFlags() \r\n\t{\n\t\t//Create Flags and add them to the Flag hashmap. The first string field in addFlag()\r\n\t\t//is the key name for the Flag in the hashmap. In the Flag constructor, the first\r\n\t\t//field is the Flag's starting boolean value. The second field is the string the\r\n\t\t//Flag will return on toString() if it has not been flipped (false). The third field\r\n\t\t//is the string the Flag will return on toString() if it has been flipped (true).\r\n\t\t//=================================================================================\r\n\t\tthis.gameState.addFlag(\"muddy ground\", new Flag(false, \"\", \"The ground around the basin is wet and muddy. \"));\r\n\t\tthis.gameState.addFlag(\"water in basin\", new Flag(false, \"\", \"\"));\r\n\t}", "title": "" }, { "docid": "c6023e1c18d956e9d4e192cc774a77f1", "score": "0.3996396", "text": "public SparseMatrix(boolean isRandom, EnumArithmetic kind){\n\t\tif(isRandom==true){\n\t\t\trows = rand.nextInt(RANDOM_MAX);\n\t\t\tcols = rand.nextInt(RANDOM_MAX);\n\t\t\tsparse_matrix_list = new OrderedList(kind);\n\t\t\ttotalElements = rows * cols;\n\t\t\tint nonZeros = (int) (0.15 * totalElements);\n\t\t\tfor(int i = 0; i < nonZeros; i++){\n\t\t\t\tTriple<Arithmetic> t = new Triple<Arithmetic>(true,kind,rows,cols);\n\t\t\t\tsparse_matrix_list.insertTriple(t);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Error with constructor. Enter correct parameters.\");\n\t\t}\n\t}", "title": "" } ]
772e2373d09e2017f809179779c30504
Gets the Calendar that represents the end date for the range.
[ { "docid": "f74d2e78db830162d6858211473c894b", "score": "0.74533355", "text": "public Calendar getEnd() {\n return end;\n }", "title": "" } ]
[ { "docid": "27ad2382684a316e13d84228dcf1ac59", "score": "0.7367802", "text": "public java.util.Calendar getEndDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENDDATE$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }", "title": "" }, { "docid": "d7a7e733ba333c851214000b3d4f9577", "score": "0.72974426", "text": "public java.util.Calendar getEndDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENDDATE$14, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }", "title": "" }, { "docid": "045656741775cb5c33cb8562b5921430", "score": "0.72111607", "text": "public GregorianCalendar getEndDate() {\n GregorianCalendar retVal = new GregorianCalendar();\n retVal.setTimeInMillis(maxVal.longValue());\n return retVal;\n }", "title": "" }, { "docid": "41229a106a9d6d97bc16e65dbea6f3ab", "score": "0.69340426", "text": "public Calendar getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "12afb00174b664dbae9fad3054ae976e", "score": "0.67642856", "text": "Date getEndDate();", "title": "" }, { "docid": "e98743e2184f196bc2e5e2562b829c1b", "score": "0.67060757", "text": "public java.util.Calendar getCbr_Dt_End() {\n return cbr_Dt_End;\n }", "title": "" }, { "docid": "44d59c61327637c6fc9892e75758e28d", "score": "0.6682107", "text": "public final Date getEndDate() {\n return end;\n }", "title": "" }, { "docid": "d6bfb8aafd1c59fb5248dd87034d497c", "score": "0.65291655", "text": "Date getIntervalEnd();", "title": "" }, { "docid": "7aead1d5a9b3db5585edb277dfe844b1", "score": "0.64993006", "text": "public Date getEndingDate() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(this.getStartingDate());\n\t\tcal.add(Calendar.HOUR, this.getCourseComponent().getDuration());\n\t\treturn cal.getTime();\n\t}", "title": "" }, { "docid": "28b098cd8bd16cdec5795f0042d6ea5b", "score": "0.64288795", "text": "public Date getEndDate() {\r\n\t\treturn this.endDate;\r\n\t}", "title": "" }, { "docid": "efa5f0fdad3391291ab2e7b3d9e5f0d6", "score": "0.6404152", "text": "LocalDate getEndDate();", "title": "" }, { "docid": "fe6fbe569094819573fced9a444af3a3", "score": "0.63846964", "text": "public java.util.Date getEndDate() {\n return this.endDate;\n }", "title": "" }, { "docid": "7bd693f5105091406416976b92f6dd6e", "score": "0.63572437", "text": "public java.util.Date getEnd_date() {\n return end_date;\n }", "title": "" }, { "docid": "c2cca09feddf0d173152c327b3e7a821", "score": "0.6337609", "text": "public String getEndDate() {\n return calToString(endDate);\n }", "title": "" }, { "docid": "889d770fceb74c7b7aca5014f0934040", "score": "0.6328161", "text": "public Date getEndDate() {\n return this.endDate;\n }", "title": "" }, { "docid": "32afc94aaac95baae569f15ae42f18f6", "score": "0.6321519", "text": "public java.util.Date getEndDate() throws ClassCastException;", "title": "" }, { "docid": "19841def421398a29b9bba93797085a2", "score": "0.6301984", "text": "public Date getEndDate() {\r\n\t\treturn endDate;\r\n\t}", "title": "" }, { "docid": "a1c028903fb8827d8b7a844a8289e47f", "score": "0.62951696", "text": "public LocalDate getEnd() { return endExclusive; }", "title": "" }, { "docid": "4826c554d3ed627219a29fa173028c62", "score": "0.62787044", "text": "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "title": "" }, { "docid": "6decf504e401e226568b5e733edd02e5", "score": "0.62782884", "text": "public Date getEndDate();", "title": "" }, { "docid": "a76206997cfe719c68ccf224f086c915", "score": "0.62657046", "text": "public Date getEnd() {\n return end;\n }", "title": "" }, { "docid": "a76206997cfe719c68ccf224f086c915", "score": "0.62657046", "text": "public Date getEnd() {\n return end;\n }", "title": "" }, { "docid": "93b54ab59fbcdc6fd4e4ececcab89178", "score": "0.6254805", "text": "public java.util.Date getEndDate() { \n return this.endDate; \n }", "title": "" }, { "docid": "c0c36ec256cf09d17709712fc67ee804", "score": "0.6249107", "text": "public Date getEndDate() {\r\n return endDate;\r\n }", "title": "" }, { "docid": "40c3def3baad06a038e0f1b52b8b0734", "score": "0.6247269", "text": "@Element( name = \"DTEND\", order = 10 )\n public Date getEnd() {\n return end;\n }", "title": "" }, { "docid": "53de9cd3c76b6411c71a6e1ea093a3ad", "score": "0.6218726", "text": "public Date getEnd_date() {\n\t\treturn end_date;\n\t}", "title": "" }, { "docid": "2918780af2544f79a192cbb8a41c20cc", "score": "0.6206044", "text": "public LocalDate getDateEnd() {\n return dateEnd;\n }", "title": "" }, { "docid": "ea7d87694516bfd301d77ae88d1b4b09", "score": "0.6181554", "text": "public Date getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "ea7d87694516bfd301d77ae88d1b4b09", "score": "0.6181554", "text": "public Date getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "ea7d87694516bfd301d77ae88d1b4b09", "score": "0.6181554", "text": "public Date getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "ea7d87694516bfd301d77ae88d1b4b09", "score": "0.6181554", "text": "public Date getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "ede2f1f538054d0fa23e9d92a1ad050c", "score": "0.6164676", "text": "public String getEndDate(){\n\n String endMonth = endmonthBox.getSelectedItem().toString();\n String endDay = enddayBox.getSelectedItem().toString();\n String endYear = endyearBox.getSelectedItem().toString();\n\n int endMonth1 = Integer.parseInt(endMonth);\n int endDay1 = Integer.parseInt(endDay);\n\n String endDate;\n\n // correct the date format to fit the standard of Wall Street Journal\n if (endMonth1 < 10){\n if (endDay1 < 10){\n endDate = \"0\" + endMonth + \"/\" + \"0\" + endDay + \"/\" + endYear;\n }\n else {\n endDate = \"0\" + endMonth + \"/\" + endDay + \"/\" + endYear;\n }\n }\n\n else {\n if (endDay1 < 10) {\n endDate = endMonth + \"/\" + \"0\" + endDay + \"/\" + endYear;\n }\n else {\n endDate = endMonth + \"/\" + endDay + \"/\" + endYear;\n }\n }\n\n return endDate;\n\n }", "title": "" }, { "docid": "d792988e48700e02d7404a6efae8a251", "score": "0.6135776", "text": "public java.util.Date getEndDate() {\n\t\treturn _timesheetTaskSegment.getEndDate();\n\t}", "title": "" }, { "docid": "468a2cb15c851a9d525f52fbca7a5eb3", "score": "0.611101", "text": "public org.apache.xmlbeans.XmlDate xgetEndDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(ENDDATE$2, 0);\n return target;\n }\n }", "title": "" }, { "docid": "dedc0fd8ed951d448b13d8bea4b9970d", "score": "0.6103796", "text": "EndDateTimeType getEndDateTime();", "title": "" }, { "docid": "610b7cfbca4fa96af7bf51fc96121973", "score": "0.6103238", "text": "public Calendar getMaxDate(){\r\n\t\treturn this.maxDate; \r\n\t}", "title": "" }, { "docid": "a66f37ba6f8d6c1dc14ba73659419b44", "score": "0.609486", "text": "public Date getEndDate() {\n if (len > 0) return this.allData.get(len - 1).rawDate;\n return null;\n }", "title": "" }, { "docid": "7b6f35b70b83d5a1dcd9b9f5496f2723", "score": "0.604325", "text": "public LocalDate getEndDate(LocalDate startDate){\n return paperDetails.get(startDate).End_Date;\n }", "title": "" }, { "docid": "78123cb2a80e043203ee82651a15b099", "score": "0.60318017", "text": "public org.apache.xmlbeans.XmlDate xgetEndDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(ENDDATE$14, 0);\n return target;\n }\n }", "title": "" }, { "docid": "1e15e018bda85dffbb9f2d0f55f5942f", "score": "0.6011244", "text": "public Date getEndDate() { return endDate; }", "title": "" }, { "docid": "5e891a5f154db6e62d356f65cc748dcc", "score": "0.6002691", "text": "public DateTime getEnd();", "title": "" }, { "docid": "c7fed8d10feba12fc4139f2ce4e33fd2", "score": "0.59763616", "text": "public Date getEndDate() {\n\treturn endDate;\n}", "title": "" }, { "docid": "5a467a7146dc292c3d174cb3d6031656", "score": "0.597036", "text": "public java.util.Calendar getValidEndDate() {\n return validEndDate;\n }", "title": "" }, { "docid": "d419179169cd93c4cb8c9323a02b0705", "score": "0.59693426", "text": "public LocalDate getEndDate() {\n return this.endDate;\n }", "title": "" }, { "docid": "d419179169cd93c4cb8c9323a02b0705", "score": "0.59693426", "text": "public LocalDate getEndDate() {\n return this.endDate;\n }", "title": "" }, { "docid": "7f29189185f94f0b8949b26a6a7d7194", "score": "0.5952194", "text": "Date getCumulativeEnd();", "title": "" }, { "docid": "76825a3a7a251d89eaecb368e723ccf7", "score": "0.5949502", "text": "public Calendar getEndTime() {\n\t\treturn this.endTime;\n\t}", "title": "" }, { "docid": "c52e0374cd40a8b7a93d6bcdcca0a9a0", "score": "0.5936437", "text": "public String getEndDate() {\n String date = mProject.getEndDate();\n if (date.isEmpty()) {\n date = mContext.getString(R.string.enddateundefined);\n }\n return date;\n\n }", "title": "" }, { "docid": "e8bea3c7cb3fa021a01959041962c0f5", "score": "0.591961", "text": "public DateTime endDate() {\n return this.endDate;\n }", "title": "" }, { "docid": "900fe285802528263eb3254772058837", "score": "0.58896726", "text": "public LocalDate getLastDate() { return endExclusive.minusDays(1); }", "title": "" }, { "docid": "32245b9377b3eb50dbb54947c745a418", "score": "0.58677155", "text": "public static Date calcEndDate(Entry e) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(e.getStartingDate());\n\t\tcal.add(Calendar.HOUR, e.getCourseComponent().getDuration());\n\t\treturn cal.getTime();\n\t}", "title": "" }, { "docid": "489a40e9daa60ceac756047f3ffc27a6", "score": "0.58580726", "text": "public LocalDate getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "869879ca430d5ecb9791f9c45b44e1e3", "score": "0.5846217", "text": "public DateTime getEnd() {\n return end;\n }", "title": "" }, { "docid": "3ef6d6b32bec3e8e2f376c93a568d591", "score": "0.5829418", "text": "@ApiModelProperty(example = \"31\", required = true, value = \"Ending day for the system operations (1-31)\")\n @NotNull\n\n @Min(1) @Max(31) public Integer getEndDay() {\n return endDay;\n }", "title": "" }, { "docid": "12ba2c841d08ed9ee317b928ed678e57", "score": "0.5818314", "text": "public OffsetDateTime end() {\n return this.end;\n }", "title": "" }, { "docid": "e83675ac47d2f10d7231b8b575c1a47a", "score": "0.5799126", "text": "public LocalDate getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "ff3ddf458bbb3e7322d4e97728592c87", "score": "0.57889503", "text": "public String getEndDate()throws Throwable{\n\t\twaitForVisibilityOfElement(DISearchCallsPage.endDate, \"Get end date\");\n\t\tString endDate = getAttributeByValue(DISearchCallsPage.endDate,\"Get end date\");\n\t\treturn endDate;\n\t}", "title": "" }, { "docid": "069b1587c8b86367775b0bb8fedded47", "score": "0.5774616", "text": "public Date getEndAbsolute()\n\t{\n\t\treturn endAbsolute;\n\t}", "title": "" }, { "docid": "c8b1120d630f3a318e890a2ac020ac4c", "score": "0.5772367", "text": "@Schema(description = \"Date when the service ends\")\r\n\r\n\t@Valid\r\n\r\n\tpublic OffsetDateTime getEndDate() {\r\n\t\treturn endDate;\r\n\t}", "title": "" }, { "docid": "1d259e4bb81952a1778aa274bd5eb343", "score": "0.5766601", "text": "public String getDateEnd() {\n\t\treturn dateEnd.get();\n\t}", "title": "" }, { "docid": "b8427b0be46ea7ee1047020b382aeda0", "score": "0.5762882", "text": "public static Date getCurrentDayEnd(){\n Calendar currentDate = Calendar.getInstance();\n currentDate.set(Calendar.HOUR_OF_DAY, 23);\n currentDate.set(Calendar.MINUTE, 59);\n currentDate.set(Calendar.SECOND, 59);\n return (Date)currentDate.getTime().clone();\n }", "title": "" }, { "docid": "a02492bc6b65a67302779d52653ac1b7", "score": "0.575114", "text": "Date getMultiIntervalEnd();", "title": "" }, { "docid": "d6703d7f051338e309633b6d3d9473f1", "score": "0.5721938", "text": "public java.util.Date getRangeMaximum() {\n return this.rangeMaximum;\n }", "title": "" }, { "docid": "7e1b88297608b311963a04e28aa96672", "score": "0.5717802", "text": "public DateTime getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "6eaa4e8179c91249b10b7c186ef42726", "score": "0.5717015", "text": "public java.util.Calendar getSeqDateEnd() {\r\n return localSeqDateEnd;\r\n }", "title": "" }, { "docid": "e5fd2c5bd97a5fa03d9e7cbc674871e7", "score": "0.5709767", "text": "public Date getPeriodEnd() {\n return periodEnd;\n }", "title": "" }, { "docid": "4db683d6ec7c2a4aee237e505c44f4bd", "score": "0.5707047", "text": "public java.lang.String getEndDateTime() {\n return endDateTime;\n }", "title": "" }, { "docid": "e3705f6841bbc8deea9be0dcd770aecb", "score": "0.5691808", "text": "public String getEndDate() {\n\t\treturn endDate;\n\t}", "title": "" }, { "docid": "d1de3f7cd50124e7bdc889978319ff34", "score": "0.5670339", "text": "public String getEndDate() {\n return endDate.format(OutputDateTimeFormat.OUTPUT_DATE_FORMAT);\n }", "title": "" }, { "docid": "b1a5ebed23942bcc7acf83c770a7fa2d", "score": "0.5659156", "text": "@ApiModelProperty(value = \"If known, this is the date when the event will next end or repeat. It will only be populated for events with fixed and repeating start and end dates.\")\n public OffsetDateTime getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "dd286d0d38bc9735e33021492414b603", "score": "0.5646864", "text": "public void setEnd(Date end) {\n this.end = end;\n }", "title": "" }, { "docid": "f6689f730a371e49080b73d6f91405f8", "score": "0.56438184", "text": "public java.lang.String getEndDate() {\r\n return endDate;\r\n }", "title": "" }, { "docid": "f6689f730a371e49080b73d6f91405f8", "score": "0.56438184", "text": "public java.lang.String getEndDate() {\r\n return endDate;\r\n }", "title": "" }, { "docid": "243acf2f97f86c3668f635b93a06f7fe", "score": "0.56389356", "text": "protected Date getEnd(InstanceProperties instanceProperties)\n\n {\n final String methodName = \"getEnd\";\n\n if (instanceProperties != null)\n {\n return repositoryHelper.getDateProperty(serviceName,\n OpenMetadataAPIMapper.END_PROPERTY_NAME,\n instanceProperties,\n methodName);\n }\n\n return null;\n }", "title": "" }, { "docid": "64d37821747271aa66506b94f2bd073d", "score": "0.5625401", "text": "public Date getEndDate(ResultSet row) {\r\n return new Date(Long.MAX_VALUE);\r\n }", "title": "" }, { "docid": "62962197b32752e95314d19fe53c7f6e", "score": "0.5622955", "text": "public LocalDate getEndAccrualDate() {\n return endAccrualDate;\n }", "title": "" }, { "docid": "5369d17b35196b463ef0dd3304d58a3d", "score": "0.55938774", "text": "public LocalDateTime getEndDateTime() {\n return getEndDateTime(getStartDateTime(), getDuration());\n }", "title": "" }, { "docid": "5d4cd79a9c07b30b4d2133619b1d9c16", "score": "0.55752635", "text": "public String getEndDate() {\r\n return endDate;\r\n }", "title": "" }, { "docid": "0e10b47a4580446892e29ad6d9400ac5", "score": "0.554269", "text": "private long getEnd()\n {\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(timeProvider.getTimeInMilliseconds());\n return calendar.getTimeInMillis();\n }", "title": "" }, { "docid": "ccfab6d3049edfc291faac2736728caf", "score": "0.55360985", "text": "public LocalDateTime getEnd() {\n\t\treturn end;\n\t}", "title": "" }, { "docid": "30238df9f1efd40a6fad994bb3b33cbe", "score": "0.5529317", "text": "public java.util.Calendar getTimeEnd(){\r\n return localTimeEnd;\r\n }", "title": "" }, { "docid": "e4717cb5579a818afbc42319a26181fd", "score": "0.5518605", "text": "public String getEndDate()\n {\n return endDate;\n }", "title": "" }, { "docid": "e2fa5b694cc5c6264b5d3d26aaadb92b", "score": "0.5482424", "text": "public Calendar getFinishDate() {\n\t\treturn finishDate;\n\t}", "title": "" }, { "docid": "8aa4765caa984d8c28b9b0ab1dccdba1", "score": "0.54761374", "text": "public loader.elbrus.proto.CommonProto.TimeStringMessageOrBuilder getEndDateOrBuilder() {\n if (endDateBuilder_ != null) {\n return endDateBuilder_.getMessageOrBuilder();\n } else {\n return endDate_;\n }\n }", "title": "" }, { "docid": "600c846f6f51e233477edb0278373db6", "score": "0.54629153", "text": "public java.util.Date getEndEventTime() {\n return this.endEventTime;\n }", "title": "" }, { "docid": "58b9a3f44bbef12140ff6a57307f9333", "score": "0.54628664", "text": "public Date getEndWeek() {\n return endWeek;\n }", "title": "" }, { "docid": "6e9287ceebdef34c14d6e6aed6cb8021", "score": "0.54414505", "text": "public Date getEffectiveEndDate() {\r\n return (Date) getAttributeInternal(EFFECTIVEENDDATE);\r\n }", "title": "" }, { "docid": "65294db5c6aebac480fba63f3b84f6a4", "score": "0.5440894", "text": "public static Date getCurrentMonthEnd(){\n Calendar currentDate = Calendar.getInstance();\n currentDate.setTime(new Date());\n currentDate.set(Calendar.HOUR_OF_DAY, 23);\n currentDate.set(Calendar.MINUTE, 59);\n currentDate.set(Calendar.SECOND, 59);\n currentDate.set(Calendar.DAY_OF_MONTH, currentDate.getActualMaximum(Calendar.DAY_OF_MONTH));\n return (Date)currentDate.getTime().clone();\n }", "title": "" }, { "docid": "16a347638cdeb5a9a979007f0fe9d1e8", "score": "0.5439587", "text": "public Point2D getEnd() {\n\t\tPoint2D end = new Point2D(endX, endY);\n\t\treturn end;\n\t}", "title": "" }, { "docid": "930a02d040930f14b38e79601e8608c3", "score": "0.5432383", "text": "public loader.elbrus.proto.CommonProto.TimeStringMessage getEndDate() {\n if (endDateBuilder_ == null) {\n return endDate_;\n } else {\n return endDateBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "aa87d75b22d9af600e3be2cae3e54d06", "score": "0.5431162", "text": "@Override\n\tpublic Instant getEndDate() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "eac6e00e1df16d1019296c75e1ccfb3a", "score": "0.54146844", "text": "public String getEndingDate() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a73903b6416ea635282cb61c39fc4a86", "score": "0.5397856", "text": "public Timestamp getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "0a427e7549cd01b5480425b539b34b92", "score": "0.53949094", "text": "Date getMultiCumulativeEnd();", "title": "" }, { "docid": "170a8f97afb5f410ecf61eaa9f69074b", "score": "0.53827125", "text": "public Date endOfMonth() {\n final Calendar c = Calendar.getInstance();\n c.setTimeZone(UTC_TIME_ZONE);\n c.setTime(date);\n c.set(Calendar.DAY_OF_MONTH, getEndDayOfMonth(c));\n return createDate(c.getTime());\n }", "title": "" }, { "docid": "6bf3f15967c2725ae20950acdec23ad8", "score": "0.53685045", "text": "public int getED()\n\t{\n\t\treturn endDay;\n\t}", "title": "" }, { "docid": "3dd8e90e55e9b058a70f190a81d6bcaf", "score": "0.5363009", "text": "public String getEndDatePicker() {\n return endDatePicker;\n }", "title": "" }, { "docid": "a5c76fa96bf8d02c229e82fa4ea6eed7", "score": "0.53579414", "text": "@Test\n public void testGetEnd() {\n System.out.println(\"getEnd\");\n GregorianEndDate instance = this._valid;\n GregorianCalendar expResult = new GregorianCalendar(2010, 5, 1);\n GregorianCalendar result = instance.getEnd();\n assertEquals(\"Wrong end date.\", expResult, result);\n }", "title": "" }, { "docid": "a104e4ef697cdee5da2767ed79bdbc0f", "score": "0.53438735", "text": "public void setCbr_Dt_End(java.util.Calendar cbr_Dt_End) {\n this.cbr_Dt_End = cbr_Dt_End;\n }", "title": "" }, { "docid": "ebb66b931f53519cad62eee39a76a05a", "score": "0.5337085", "text": "public java.util.Calendar getEndingTime() {\n return endingTime;\n }", "title": "" } ]
ccf2df282eedd05e989c670315f222e3
Construct an invitation mail message.
[ { "docid": "b6b85340323fbd6be7b73ce9da65074e", "score": "0.4841924", "text": "public InviteUserToClientWithExternalAuthMailMessage(User inviter, Locale locale,\r\n String recipientEmail) {\r\n super(\"mail.message.user.invite-user-to-client-with-external-authentication\", locale);\r\n this.inviter = inviter;\r\n this.addTo(recipientEmail);\r\n }", "title": "" } ]
[ { "docid": "5adaae906fc755e8867657d9a66d9dc0", "score": "0.6259544", "text": "private static MimeMessage createEmail(Session session,String towho,String subject,String data){\n \tMimeMessage msg = new MimeMessage(session);\n \ttry{\n \t\tInternetAddress from = new InternetAddress(ACCOUNT,EMAILFROM,\"utf-8\");\n \tInternetAddress to = new InternetAddress(towho,\"\",\"utf-8\");\n \t\tmsg.setFrom(from);\n \tmsg.setRecipient(RecipientType.TO, to);\n \tmsg.setSubject(subject,\"utf-8\");\n \tmsg.setText(data);\n \tmsg.setSentDate(new Date());\n \tmsg.saveChanges();\n \treturn msg;\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n \t\n \t\n \t\n }", "title": "" }, { "docid": "071c72251dc2c6438652ccaf0fc83394", "score": "0.6133227", "text": "public Message createMessage(Employee fromMe, Employee toYou, String msgBody);", "title": "" }, { "docid": "513ae7fad70d026a633bc696edccc907", "score": "0.60382575", "text": "private static MimeMessage createEmail(String to, String from, String subject, String bodyText)\n throws MessagingException {\n Properties props = new Properties();\n Session session = Session.getDefaultInstance(props, null);\n MimeMessage email = new MimeMessage(session);\n\n email.setFrom(new InternetAddress(from));\n email.addRecipient(javax.mail.Message.RecipientType.TO, new InternetAddress(to));\n email.setSubject(subject);\n email.setText(bodyText);\n return email;\n }", "title": "" }, { "docid": "6ace4e48930cc7dddc0264ff2d4f6f3b", "score": "0.5887768", "text": "private Mail createSendGridMail(ExternalMailInput input) throws IOException\n {\n Mail sendGridMail = new Mail();\n Email from = new Email(fromAddressStr);\n if (fromName != null)\n {\n from.setName(fromName);\n }\n sendGridMail.setFrom(from);\n sendGridMail.setSubject(emailSubject);\n Content content = new Content(contentType, emailBody);\n sendGridMail.addContent(content);\n\n if (fullAttachmentFilename != null)\n {\n Attachments attachments = new Attachments();\n attachments.setType(getContentType());\n attachments.setFilename(friendlyAttachmentName);\n attachments.setContent(getEncodedFileContent());\n sendGridMail.addAttachments(attachments);\n }\n\n if (replyToAddressStr != null && replyToAddressStr.length() > 0)\n {\n Email replyTo = new Email(replyToAddressStr);\n if (replyToName != null)\n {\n replyTo.setName(replyToName);\n }\n sendGridMail.setReplyTo(replyTo);\n }\n\n /*\n * Define the to and bcc addresses in a personalization\n */\n Personalization personalization = new Personalization();\n Email to = new Email(emailAddr);\n if (customerName != null)\n {\n to.setName(customerName);\n }\n personalization.addTo(to);\n\n if (bccEmailsStrArray != null && bccEmailsStrArray.length > 0 && doBlindCopy)\n {\n for (int i = 0; i < bccEmailsStrArray.length; i++)\n {\n String bcc = bccEmailsStrArray[i];\n personalization.addBcc(new Email(bcc));\n }\n }\n\n /*\n * Personalizations are where you would add substitutions\n */\n // personalization.addSubstitution(\"%name%\", \"Example User\");\n // personalization.addSubstitution(\"%city%\", \"Riverside\");\n\n // Add the personalization to the mail\n sendGridMail.addPersonalization(personalization);\n\n if (log.isDebugEnabled())\n {\n log.debug(\"SendGrid Mail:\\n\" + sendGridMail.buildPretty());\n }\n\n /*\n * Note that personalizations can also be used for adding substitutions\n */\n return sendGridMail;\n }", "title": "" }, { "docid": "cfbfe87dbf3a6853840e279946f0e854", "score": "0.5857788", "text": "private MimeMessage createMimeMessage(Session session, String myEmailAccount2, String receiveMailAccount2) {\n\t\tRandom random = new Random();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint codeLength = 4;\n\t\tfor(int i = 0; i < codeLength; i ++) {\n\t\t\tsb.append(random.nextInt(10));\n\t\t}\n\t\tString code = sb.toString();\n\t\tnew SaveCode(code);\n\t\tMimeMessage message = new MimeMessage(session);\n\t\ttry {\n\t\t\tmessage.setFrom(new InternetAddress(myEmailAccount2, \"AnCo Sun\", \"UTF-8\"));\n\t\t\tmessage.setRecipient(MimeMessage.RecipientType.TO, new InternetAddress(receiveMailAccount2, \"SJY OUTLOOK\", \"UTF-8\"));\n\t\t\tmessage.addRecipient(MimeMessage.RecipientType.TO, new InternetAddress(\"songjinyu23@gmail.com\", \"SJY GMAIL\", \"UTF-8\"));\n\t\t\tmessage.setSubject(\"Test\", \"UTF-8\");\n\t\t\tmessage.setContent(\"<p>这是一封测试邮件</p><h1>这是验证码:\"+code+\"</h1>\", \"text/html;charset=UTF-8\");\n\t\t\tmessage.setSentDate(new Date());\n\t\t\tmessage.saveChanges();\n\t\t} catch (UnsupportedEncodingException | MessagingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn message;\n\t\t\n\t}", "title": "" }, { "docid": "225ed73cc04f6dd971a97d8879ac477c", "score": "0.5844043", "text": "private Message buildMessage(EmailServerSettings settings, MailTemplateEntity emailTemplate, Object context) throws AddressException, MessagingException\r\n\t{\r\n\t\t// get the list of mail recipients\r\n\t\tString toStr = processTemplate(emailTemplate.getTemplateName() + \".to\", emailTemplate.getToListTemplate(), context);\r\n\t\tString ccStr = processTemplate(emailTemplate.getTemplateName() + \".cc\", emailTemplate.getCcListTemplate(), context);\r\n\t\tString bccStr = processTemplate(emailTemplate.getTemplateName() + \".cc\", emailTemplate.getBccListTemplate(), context);\r\n\r\n\t\tString subject = processTemplate(emailTemplate.getTemplateName() + \".subject\", emailTemplate.getSubjectTemplate(), context);\r\n\t\tString content = processTemplate(emailTemplate.getTemplateName() + \".content\", emailTemplate.getContentTemplate(), context);\r\n\r\n\t\tList<String> toStrLst = toList(toStr);\r\n\t\tList<String> ccStrLst = toList(ccStr);\r\n\t\tList<String> bccStrLst = toList(bccStr);\r\n\t\t\r\n\t\tMailMessage mailMessage = new MailMessage();\r\n\t\tmailMessage.setToList(toStrLst);\r\n\t\tmailMessage.setCcList(ccStrLst);\r\n\t\tmailMessage.setBccList(bccStrLst);\r\n\t\tmailMessage.setSubject(subject);\r\n\t\tmailMessage.setBody(content);\r\n\r\n\t\tString fromId = settings.getUserName();\r\n\t\t\r\n\t\tif(context instanceof IMailCustomizer)\r\n\t\t{\r\n\t\t\tString customFromId = ((IMailCustomizer) context).getFromId();\r\n\t\t\tfromId = (customFromId != null) ? customFromId : fromId;\r\n\t\t}\r\n\r\n\t\tlogger.debug(\"Setting mail details as: [\\n\\tTo: {}, \\n\\tCC: {}, \\n\\tBCC: {}, \\n\\tFrom: {}, \\n\\tSubject: {}]\", toStrLst, ccStrLst, bccStrLst, fromId, subject);\r\n\r\n\t\tif(isEmpty(mailMessage.getToList()) && isEmpty(mailMessage.getCcList()) && isEmpty(mailMessage.getBccList()))\r\n\t\t{\r\n\t\t\tthrow new InvalidArgumentException(\"No recipient email id specified in any of the email list\");\r\n\t\t}\r\n\r\n\t\t// start new session\r\n\t\tSession mailSession = newSession(settings);\r\n\r\n\t\t// build the mail message\r\n\t\tMessage message = new MimeMessage(mailSession);\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tmessage.setFrom(new InternetAddress(fromId));\r\n\t\t\tmessage.setReplyTo(new Address[] {new InternetAddress(fromId)});\r\n\t\t} catch(Exception ex)\r\n\t\t{\r\n\t\t\tthrow new InvalidArgumentException(\"An error occurred while parsing from mail id - {}\", fromId);\r\n\t\t}\r\n\r\n\t\t// set recipients mail lists\r\n\t\tif(!isEmpty(mailMessage.getToList()))\r\n\t\t{\r\n\t\t\tmessage.setRecipients(Message.RecipientType.TO, convertToInternetAddress(\"To\", mailMessage.getToList().toArray(new String[0])));\r\n\t\t}\r\n\r\n\t\tif(!isEmpty(mailMessage.getCcList()))\r\n\t\t{\r\n\t\t\tmessage.setRecipients(Message.RecipientType.CC, convertToInternetAddress(\"CC\", mailMessage.getCcList().toArray(new String[0])));\r\n\t\t}\r\n\r\n\t\tif(!isEmpty(mailMessage.getBccList()))\r\n\t\t{\r\n\t\t\tmessage.setRecipients(Message.RecipientType.BCC, convertToInternetAddress(\"BCC\", mailMessage.getBccList().toArray(new String[0])));\r\n\t\t}\r\n\r\n\t\t// set the subject\r\n\t\tmessage.setSubject(mailMessage.getSubject());\r\n\t\tmessage.setSentDate(new Date());\r\n\r\n\t\t// create multi part message\r\n\t\tMultipart multiPart = new MimeMultipart();\r\n\r\n\t\t// add body to multi part\r\n\t\tBodyPart messageBodyPart = new MimeBodyPart();\r\n\t\tmessageBodyPart.setContent(mailMessage.getBody(), \"text/html\");\r\n\r\n\t\tmultiPart.addBodyPart(messageBodyPart);\r\n\r\n\t\t// add files if any\r\n\t\ttry\r\n\t\t{\r\n\t\t\taddAttachments(multiPart, context);\r\n\t\t} catch(Exception ex)\r\n\t\t{\r\n\t\t\tthrow new InvalidStateException(\"An error occurred while setting attachments\", ex);\r\n\t\t}\r\n\r\n\t\t// set the multi part message as content\r\n\t\tmessage.setContent(multiPart);\r\n\r\n\t\treturn message;\r\n\t}", "title": "" }, { "docid": "beae604c1d7b97316710581b46c3d716", "score": "0.57828414", "text": "private String constructEmailBodyForEmail(String email, String sender,\n\t\t\tInteger userId) {\n\t\tStringBuilder body = new StringBuilder();\n\t\tbody.append(\"Welcome \" + email + \",<br/>\\n\");\n\t\tbody.append(\"This is an invitation initiated by \" + sender\n\t\t\t\t+ \" via edexer.com to join our system.<br/>\");\n\t\tbody.append(\"Please go http://localhost:8080/business-card/register.xhtml?x=3&y=\"\n\t\t\t\t+ userId\n\t\t\t\t+ \" to register.<br/>\"\n\t\t\t\t+ \"Best Regard, <br>\"\n\t\t\t\t+ \"Edexer Team.\");\n\t\treturn body.toString();\n\n\t}", "title": "" }, { "docid": "69565785cd2f956b36574cb01c5751ea", "score": "0.563201", "text": "public interface SimpleEmailMessage extends EmailMessage {\n\n String body();\n\n String subject();\n\n static SimpleEmailMessage of(final String from, final String to, final String subject, final String body) {\n Assert.hasText(from, \"Null or empty text was passed as an argument for parameter 'from'.\");\n Assert.hasText(to, \"Null or empty text was passed as an argument for parameter 'to'.\");\n Assert.hasText(body, \"Null or empty text was passed as an argument for parameter 'body'.\");\n Assert.hasText(subject, \"Null or empty text was passed as an argument for parameter 'subject'.\");\n return new ImmutableSimpleEmailMessage(from, to, subject, body);\n }\n}", "title": "" }, { "docid": "f15863645ca82efdde935aa620fb7f0e", "score": "0.55916166", "text": "public String toString(){\n\t\tString mail = \"<START>\\n\";\n\t\tmail += \"MIN: \" + identification + \"\\n\";\n\t\tmail += \"Sender: \" + sender + \"\\n\";\n\t\tmail += \"Recipient: \" + recipient + \"\\n\";\n\t\tmail += \"Date: \" + date + \"\\n\";\n\t\tmail += \"Subject: \" + subject + \"\\n\";\n\t\tmail += \"Message:\\n\" + message + \"\\n<END>\\n\";\n\t\treturn mail;\n\t}", "title": "" }, { "docid": "33c1fb152d638d8b2aa14f402b77c09f", "score": "0.55754715", "text": "EMailReservation createEMailReservation(EMail email);", "title": "" }, { "docid": "8bef2fcdfebc70d9b84a5496f8693a7d", "score": "0.5505977", "text": "public Message create() {\n\t\tMessage result;\n\n\t\tfinal Actor sender = this.actorService.findActorLogged();\n\t\tAssert.notNull(sender);\n\n\t\tresult = new Message();\n\t\tfinal Collection<Actor> recipients = new HashSet<>();\n\t\tfinal Date moment = new Date(System.currentTimeMillis() - 1);\n\n\t\tresult.setRecipients(recipients);\n\t\tresult.setSender(sender);\n\t\tresult.setMoment(moment);\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "3526542ad7e6007d49deb28f0a357b6f", "score": "0.5488286", "text": "protected static Message prepareMessage( MailItem mail, Session session ) throws MessagingException\n {\n // Instantiate and initialize a mime message\n Message msg = new MimeMessage( session );\n msg.setSentDate( new Date( ) );\n\n try\n {\n msg.setFrom( new InternetAddress( mail.getSenderEmail( ), mail.getSenderName( ), AppPropertiesService.getProperty( PROPERTY_CHARSET ) ) );\n msg.setSubject( MimeUtility.encodeText( mail.getSubject( ), AppPropertiesService.getProperty( PROPERTY_CHARSET ), ENCODING ) );\n }\n catch( UnsupportedEncodingException e )\n {\n throw new AppException( e.toString( ) );\n }\n\n // Instantiation of the list of address\n if ( mail.getRecipientsTo( ) != null )\n {\n msg.setRecipients( Message.RecipientType.TO, getAllAdressOfRecipients( mail.getRecipientsTo( ) ) );\n }\n\n if ( mail.getRecipientsCc( ) != null )\n {\n msg.setRecipients( Message.RecipientType.CC, getAllAdressOfRecipients( mail.getRecipientsCc( ) ) );\n }\n\n if ( mail.getRecipientsBcc( ) != null )\n {\n msg.setRecipients( Message.RecipientType.BCC, getAllAdressOfRecipients( mail.getRecipientsBcc( ) ) );\n }\n\n return msg;\n }", "title": "" }, { "docid": "77bc775b2b9b799d637267ee8fbf7be6", "score": "0.54682726", "text": "private static Message createMessageWithEmail(MimeMessage emailContent)\n throws MessagingException, IOException {\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n emailContent.writeTo(buffer);\n byte[] bytes = buffer.toByteArray();\n String encodedEmail = Base64.encodeBase64URLSafeString(bytes);\n Message message = new Message();\n message.setRaw(encodedEmail);\n return message;\n }", "title": "" }, { "docid": "1949fd3fb6c90390c12d00b6ec72407f", "score": "0.545272", "text": "private void composeEmail() {\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(\n \"mailto\",\"a.lone.boar@gmail.com\", null));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Emoji Master Feedback\");\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"\");\n try {\n startActivity(emailIntent);\n } catch (ActivityNotFoundException e) {\n if (getView() != null){\n Snackbar snackbar = Snackbar.make(getView(), \"No email app is available.\", Snackbar.LENGTH_SHORT);\n snackbar.show();\n }\n }\n }", "title": "" }, { "docid": "435295d970bcfbe2447489f220c77005", "score": "0.5424233", "text": "public Message constructReply()\n {\n if( attributes == null )\n return null;\n\n String to = (String) attributes.get( \"from\" );\n if( to == null )\n return null;\n\n Message reply = new Message( to );\n\n String from = (String) attributes.get( \"to\" );\n if( from != null )\n reply.setAttribute( \"from\", from );\n\n String messageType = getAttribute( \"type\" );\n reply.setAttribute( \"type\", messageType );\n\n String thread = getTextForChildBlock( \"thread\" );\n if( thread != null && thread.length() > 0 )\n {\n setThread( thread );\n }\n\n String id = getAttribute( \"id\" );\n if( id != null && id.length() > 0 )\n {\n setAttribute( \"id\", id );\n }\n\n return reply;\n }", "title": "" }, { "docid": "e916b2aedd73959a5d9fd59676cdec18", "score": "0.5414714", "text": "public void newEmail() {\r\n\t\tsubMenuItemEm.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJFrame frameEmail = new JFrame(\"New Email\");\r\n\t\t\t\tframeEmail.setSize(400, 300);\r\n\t\t\t\tframeEmail.setLocationRelativeTo(frame);\r\n\t\t\t\tframeEmail.setLayout(new GridLayout(4, 4));\r\n\t\t\t\tframeEmail.setVisible(true);\r\n\r\n\t\t\t\tJLabel toLabel = new JLabel(\"To \");\r\n\t\t\t\tJLabel subjectLabel = new JLabel(\"Subject \");\r\n\t\t\t\tJLabel bodyLabel = new JLabel(\"Body Content\");\r\n\r\n\t\t\t\tJTextField toText = new JTextField();\r\n\t\t\t\tJTextField subjectText = new JTextField();\r\n\t\t\t\tJTextField bodyText = new JTextField();\r\n\r\n\t\t\t\tJButton sendButton = new JButton(\"Send\");\r\n\t\t\t\tsendButton.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tEmail w = new Email();\r\n\t\t\t\t\t\tw.sendEmail(toText.getText(), subjectText.getText(), bodyText.getText());\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\tframeEmail.add(toLabel);\r\n\t\t\t\tframeEmail.add(toText);\r\n\t\t\t\tframeEmail.add(subjectLabel);\r\n\t\t\t\tframeEmail.add(subjectText);\r\n\t\t\t\tframeEmail.add(bodyLabel);\r\n\t\t\t\tframeEmail.add(bodyText);\r\n\t\t\t\tframeEmail.add(sendButton);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "42ce3305781ceaea65ef3d82ee04668a", "score": "0.5382992", "text": "private Optional<Map<String, List<String>>> createMail() {\r\n Map<String, List<String>> mailParts = null;\r\n if (validate()) {\r\n mailParts = new HashMap<>();\r\n mailParts.put(\"from\", Arrays.asList(tfFrom.getText()));\r\n mailParts.put(\"password\", Arrays.asList(pfPassword.getText()));\r\n mailParts.put(\"To\", getSelectedMails());\r\n mailParts.put(\"cc\", (tfCC.getText().isEmpty())\r\n ? Arrays.asList()\r\n : Arrays.asList(tfCC.getText()));\r\n mailParts.put(\"subject\", Arrays.asList(tfTitle.getText()));\r\n mailParts.put(\"content\", Arrays.asList(taContents.getText()));\r\n } else {\r\n Alert alert = new Alert(Alert.AlertType.ERROR,\r\n \"Please, Fill all fields!\", ButtonType.OK);\r\n alert.setHeaderText(\"Required Fields...\");\r\n alert.showAndWait();\r\n }\r\n return Optional.ofNullable(mailParts);\r\n }", "title": "" }, { "docid": "e9ffca433a679aa9bad462ba764b99d5", "score": "0.5364909", "text": "void sendSimpleMessageUsingTemplate(String to,String subject,SimpleMailMessage template, String ...templateArgs);", "title": "" }, { "docid": "4b64fe64032310e9402fe4d43b60d7be", "score": "0.5346115", "text": "public void main(String email, UcsawsVotante votante ) {\n // SMTP server information\n String host = \"smtp.gmail.com\";\n String port = \"587\";\n String mailFrom = \"votoucsa@gmail.com\";\n String password = \"votoucsa2016\";\n\n // outgoing message information\n //String mailTo = \"arma20044@gmail.com\";\n String mailTo = votante.getIdPersona().getEmail();\n String subject = \"CERTIFICADO DE VOTACIÓN\" + \" - \"+ votante.getIdEvento().getDescripcion().toUpperCase();\n\n // message contains HTML markups\n String message = \"<i>El Sistema E-vote certifica la votación de:</i><br>\";\n message += \"<b>\"+ votante.getIdPersona().getNombre() + \" \" + votante.getIdPersona().getApellido() +\"</b><br>\";\n message += \"<b>Con C.I. N° : \"+ votante.getIdPersona().getCi() +\"</b><br>\";\n message += \"<b>Mesa: \"+ votante.getUcsawsMesa().getDescMesa() +\"</b><br>\";\n message += \"<b>Departamento: \"+ votante.getUcsawsMesa().getUcsawsLocal().getUcsawsZona().getUcsawsDistrito().getUcsawsDepartamento().getDescDepartamento() +\"</b><br>\";\n message += \"<b>Distrito: \"+ votante.getUcsawsMesa().getUcsawsLocal().getUcsawsZona().getUcsawsDistrito().getDescDistrito() +\"</b><br>\";\n message += \"<b>Zona: \"+ votante.getUcsawsMesa().getUcsawsLocal().getUcsawsZona().getDescZona() +\"</b><br>\";\n message += \"<b>Local de Votación: \"+ votante.getUcsawsMesa().getUcsawsLocal().getDescLocal() +\"</b><br>\";\n \n \n \n \n \n \n\n EnviarFinal mailer = new EnviarFinal();\n\n try {\n mailer.sendHtmlEmail(host, port, mailFrom, password, mailTo,\n subject, message);\n System.out.println(\"Email sent.\");\n } catch (Exception ex) {\n System.out.println(\"Failed to sent email.\");\n ex.printStackTrace();\n }\n}", "title": "" }, { "docid": "a6191b06d3c8715d6ae8fdbba71cf1b6", "score": "0.5336339", "text": "private EMail newEMail(final String username) {\n return EMailBuilder.parse(\"application+\" + username + \"@thinkparity.com\");\n }", "title": "" }, { "docid": "7dcf5a05e4f1a2f0f3c760fad4408604", "score": "0.5325045", "text": "public void run(){\n\t\tif(right.equals(\"1\")) {\n\t\t\tmodRight = \"Read and write\";\n\t\t}\n\t\telse {\n\t\t\tmodRight = \"Read only\";\n\t\t}\n\t\t\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\tSession session = Session.getInstance(props,\n\t\t new javax.mail.Authenticator() {\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(mailFrom, pass);\n\t\t\t}\n\t\t });\n\t\t\n\t\ttry {\n\t\t\tMessage message = new MimeMessage(session);\n\t\t\tmessage.setFrom(new InternetAddress(mailFrom));\n\t\t\tmessage.setRecipients(Message.RecipientType.TO,InternetAddress.parse(mailTo));\n\t\t\tmessage.setSubject(\"System invite.\");\n\t\t\tmessage.setText(\"You have been invited by the master user,\"\n\t\t\t\t+ \"\\n\\n in a project: \" + project + \", \"\n\t\t\t\t+ \"\\n\\n with access right: \" + modRight + \", \"\n\t\t\t\t+ \"\\n\\n as user: \" + username +\" .\"\n\t\t\t\t+ \"\\n\\n To accept the invitation click the following link once: \"\n\t\t\t\t+ \"\\n\\n http://localhost:8080/inv?dec=Accept&id=\" + inviteId\n\t\t\t\t+ \"\\n\\n To decline the invitation click the following link once: \"\n\t\t\t\t+ \"\\n\\n http://localhost:8080/inv?dec=Decline&id=\" + inviteId);\n\n\t\t\tTransport.send(message);\n\t\t\tSystem.out.println(\"Email sent to: \" + mailTo);\n\n\t\t} catch (MessagingException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "2a3c3560dccf2aaeaea5e639c24eb01d", "score": "0.5266254", "text": "public static void reservationDetails(String email, Reservation res, ArrayList<User> friends){\n\t String to = email;\r\n\r\n\t // Sender's email ID needs to be mentioned\r\n\t String from = \"isa.mail.project@gmail.com\";\r\n\t final String username = \"isa.mail.project@gmail.com\";//change accordingly\r\n\t\t final String password = \"testiranje1\";//change accordingly \r\n\r\n\t // Assuming you are sending email from localhost\r\n\t String host = \"smtp.gmail.com\";\r\n\r\n\t // Get system properties\r\n\t Properties properties = new Properties();\r\n\t properties.put(\"mail.smtp.auth\", \"true\");\r\n\t properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t properties.put(\"mail.smtp.host\", host);\r\n\t properties.put(\"mail.smtp.port\", \"587\");\r\n\t Session.getInstance(properties, null);\r\n\t // Setup mail server\r\n\t \r\n\r\n\t // Get the default Session object.\r\n\t Session session = Session.getDefaultInstance(properties);\r\n\r\n\t try {\r\n\t // Create a default MimeMessage object.\r\n\t MimeMessage message = new MimeMessage(session);\r\n\r\n\t // Set From: header field of the header.\r\n\t message.setFrom(new InternetAddress(from));\r\n\r\n\t // Set To: header field of the header.\r\n\t message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\r\n\r\n\t // Set Subject: header field\r\n\t message.setSubject(\"Reservation details\");\r\n\r\n\t // Now set the actual message\r\n\t String link = \"This is the information about your latest reservation:<p>Projection: \"+ res.getTerm().getProjection().getName()+\r\n\t \"</p><p>Time: \"+res.getTerm().getTermDate()+\" \"+res.getTerm().getTermTime()+\"</p><p>Row: \"+res.getRow()+\r\n\t \"</p><p>Column: \"+res.getColumn()+\"</p><p>Hall: \"+res.getTerm().getHall().getName()+\"</p><p>Cinema/Theater: \"+\r\n\t res.getTerm().getHall().getCinemaTheater().getName()+\"</p><p>Price: \" + res.getPrice() + \"</p>\";\r\n\t \r\n\t if(friends.size() > 0) \r\n\t {\r\n\t \t link+=\"<p>Friends you invited: \";\r\n\t \t \r\n\t \t for (int i = 0; i < friends.size(); i++) \r\n\t \t {\r\n\t\t\t\t\tlink += friends.get(i).getName() + \" \" + friends.get(i).getSurname() + \", \";\r\n\t \t }\r\n\t \t \r\n\t \t link = link.substring(0, link.length()-2);\r\n\t \t link += \"</p>\";\r\n\t }\r\n\t message.setText(link, \"UTF-8\", \"html\");\r\n\r\n\t // Send message\r\n\t Transport.send(message, username, password);\r\n\t System.out.println(\"Sent message successfully....\");\r\n\t \r\n\t } catch (MessagingException mex) {\r\n\t mex.printStackTrace();\r\n\t }\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0364b2a7eda1a3c83cdfe98a53ab401c", "score": "0.5262596", "text": "@Override\n public void notificacao() {\n Email email = new SimpleEmail();\n\n // Configuração\n email.setHostName(\"smtp.googlemail.com\");\n email.setSmtpPort(465);\n email.setStartTLSEnabled(true);\n email.setSSLOnConnect(true);\n email.setAuthenticator(new DefaultAuthenticator(login,senha));\n try {\n email.setFrom( login, nome);\n //\n email.setSubject(titulo);\n email.setMsg(corpo);\n //\n email.addTo(emailDestinatario);\n email.send();\n System.out.println(\"Enviado\");\n } catch (EmailException e) {\n e.printStackTrace();\n logger.severe(\"houve um erro ao enviar o email de notificação para este destinatário!\");\n }\n \n }", "title": "" }, { "docid": "bff66f1fbba67544c097e156dd757e39", "score": "0.52384996", "text": "private void createNotification()\n\t{\n\t\ttry\n\t\t{\n\t\t\tClicksUtil.clickImageByAlt(INotificationsConst.ntfManageNotifications);\n\t\t\tntf = new Notifications();\n\t\t\tntf.setNtfIsActive(true); //Otherwise it fill be set to false by default if no value provided\n\t\t\tntf.setNtfName(notificationName);\n\t\t\tntf.setNtfMessageSubject(notificationSubjects);\n\t\t\tntf.setNtfMessageBody(notificationBodies);\n\t\t\tntf.setNtfExternalRecepients(notificationExtRecip);\n\t\t\tHtmlFormsUtil.fillNotificationsDetails(ntf);\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\tlog.debug(\"ERROR in createNotification()) \" + ex.getMessage());\n\n\t\t}\n\t}", "title": "" }, { "docid": "163aedd1e9e657d329378c3da8bbd1d9", "score": "0.52175575", "text": "@Override\n public String toString() {\n return \"MailMessage@\" + ObjectHelper.getIdentityHashCode(this);\n }", "title": "" }, { "docid": "3c8c65b9e4a98ac79576f6cf6c6e2070", "score": "0.5206271", "text": "public static String getMailBodyTemplate1(String email) {\n\t\t\r\n\t\t\r\n\t\tString email_template = \"Thank you for sending message.\"\r\n\t\t\t\t + \"<br><br> Verification code for your SuiteSocial Account is:\"+email;\r\n\t\t\t\t\r\n\t\treturn email_template;\r\n\t}", "title": "" }, { "docid": "bdc760a6965f5df11ab853dd9c1d265c", "score": "0.5190017", "text": "public Invite(String message, User sender) {\n super(message);\n this.inviteStatus = InviteStatus.PENDING;\n this.sender = sender;\n }", "title": "" }, { "docid": "fcd18f2b81994d69248e2a170df558fa", "score": "0.5188844", "text": "public void testSendReminderMail()\r\n {\r\n System.out.println(\"---------------------------------------------------------------------------------------------\");\r\n \r\n // clear db\r\n TestUtil.clearAll();\r\n \r\n Helper helper = EntityFactory.buildHelper(\"H1_First\", \"H1_Last\", \"a1@b.de\", HelperState.ACTIVE, 1, 2, 1980, true).saveOrUpdate();\r\n EventTemplate template = EntityFactory.buildEventTemplate(\"123ggg\").saveOrUpdate();\r\n GuidedEvent event = EntityFactory.buildEvent(\"DM AK 2015\", \"DM-AK-2015\", 21, 6, 2016, EventState.PLANNED, template, null).saveOrUpdate();\r\n Domain domain = EntityFactory.buildDomain(\"Schwimmen\", 2).saveOrUpdate();\r\n Position pos = EntityFactory.buildPosition(\"Alles wegräumen\", 12, domain, 0, true).saveOrUpdate();\r\n \r\n System.out.println(new SendReminderMailTemplate(helper, event, pos, true, 0).constructBody());\r\n \r\n System.out.println(\"---------------------------------------------------------------------------------------------\");\r\n }", "title": "" }, { "docid": "a61adb84db575adcc2c804f7271c159e", "score": "0.5185689", "text": "public static MimeMessage createEmail(final String to,\n final String from,\n final String subject,\n final String bodyText)\n throws MessagingException {\n final Properties props = new Properties();\n final Session session = Session.getDefaultInstance(props, null);\n\n final MimeMessage email = new MimeMessage(session);\n\n try {\n email.setFrom(new InternetAddress(from));\n email.addRecipient(javax.mail.Message.RecipientType.TO,\n new InternetAddress(to));\n email.setSubject(subject);\n email.setText(bodyText);\n } catch (final javax.mail.MessagingException e) {\n e.printStackTrace();\n }\n\n return email;\n }", "title": "" }, { "docid": "be1c777e415df97af7ca8939f1fea765", "score": "0.51682466", "text": "public static String getMailBodyTemplate2(String email) {\n\t\t\r\n\t\t\r\n\t\tString email_template = \"Thank you for Otp.\"\r\n\t\t\t\t + \"<br><br> Verification code for your SuiteSocial Account is:\"+email;\r\n\t\t\t\t\r\n\t\treturn email_template;\r\n\t}", "title": "" }, { "docid": "505cc922885aaea51afdfee94ded6502", "score": "0.5156029", "text": "public static Message prepareMessage(Session session, String Email, String recepient, File file) {\r\n try {\r\n // The given Email address is getting converted into an \"InternetAddress\" in order to make it\r\n // usable.\r\n MimeMessage message = new MimeMessage(session);\r\n message.setFrom(new InternetAddress(Email));\r\n // The given recepient is getting used as the primary recepient.\r\n message.setRecipient(Message.RecipientType.TO, new InternetAddress(recepient));\r\n message.setSubject(SubjectEmail);\r\n // Splitting up the Email to two different part in order to attach a file.\r\n try {\r\n MimeMultipart mimeMultipart = new MimeMultipart();\r\n // Text part\r\n MimeBodyPart mimeBodyPart1 = new MimeBodyPart();\r\n // Setting the Text\r\n mimeBodyPart1.setText(TextEmail);\r\n // Adding the text part to the main part\r\n mimeMultipart.addBodyPart(mimeBodyPart1);\r\n // Attached File part\r\n if (AppendFile != null) {\r\n // File part\r\n MimeBodyPart mimeBodyPart2 = new MimeBodyPart();\r\n // Adding file\r\n mimeBodyPart2.attachFile(AppendFile);\r\n // Adding the file part to the main part\r\n mimeMultipart.addBodyPart(mimeBodyPart2);\r\n }\r\n // Adding all of the parts to the message.\r\n message.setContent(mimeMultipart);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return message;\r\n } catch (MessagingException e) {\r\n e.printStackTrace();\r\n System.out.println(\"Message couldn't get created!\");\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "5a4bb863e4c844031e431d87d9c8d1dd", "score": "0.51513195", "text": "protected Invitation createInvitation(long inviterId, long inviteeId, long groupId) {\n\t\tInvitation invitation = new Invitation();\n\t\tUser inviter = userRepository.findById(inviterId);\n\t\tUser invitee = userRepository.findById(inviteeId);\n\t\tGroup group = groupRepository.findById(groupId);\n\t\tinvitation.setGroup(group);\n\t\tinvitation.setInviter(inviter);\n\t\tinviter.addOwnedInvitation(invitation);\n\t\tinvitation.setInvitee(invitee);\n\t\tinvitee.addReceivedInvitation(invitation);\n\t\tinvitationRepository.save(invitation);\n\t\treturn invitation;\n\t}", "title": "" }, { "docid": "f39314a0c657ed1fe34b788687da23b3", "score": "0.5145704", "text": "@Override\n public String toString() {\n return \"E-Mail Notification\";\n }", "title": "" }, { "docid": "84c4439e73a27e49baf9a9a84dff87ae", "score": "0.51287425", "text": "protected void initCampaignEMailMessage(\n\t\tDocument document,\n\t\tActivityTracker campaignTracker\n\t) throws ServiceException {\n\t\tPersistenceManager pm = this.getPm();\n\t\tApplicationContext app = this.getApp();\n\t\tif(\n\t\t\tdocument.getContentType() != null &&\n\t\t\t\"text/html\".equalsIgnoreCase(document.getContentType()) && \n\t\t\tdocument.getHeadRevision() instanceof MediaContent &&\n\t\t\tcampaignTracker.getActivityCreator().size() == 1\n\t\t) {\n\t\t\tActivityCreator campaignCreator = campaignTracker.<ActivityCreator>getActivityCreator().iterator().next();\n\t\t\tif(campaignCreator.getActivityType().getActivityClass() == ActivityClass.EMAIL.getValue()) {\n\t\t\t\tMediaContent headRevision = (MediaContent)document.getHeadRevision();\n\t\t\t\ttry {\n\t\t\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\t\t\t\tBinaryLargeObjects.streamCopy(headRevision.getContent().getContent(), 0L, bos);\n\t\t\t\t\tString messageSubject = campaignTracker.getDescription() == null\n\t\t\t\t\t\t? campaignTracker.getName()\n\t\t\t\t\t\t: campaignTracker.getDescription();\n\t\t\t\t\tString messageBody = new String(bos.toByteArray(), \"UTF-8\");\n\t\t\t\t\tif(\n\t\t\t\t\t\tmessageBody.indexOf(\"<html>\") < 0 && \n\t\t\t\t\t\tmessageBody.indexOf(\"<head>\") < 0 && \n\t\t\t\t\t\tmessageBody.indexOf(\"<body>\") < 0\n\t\t\t\t\t) {\n\t\t\t\t\t\tmessageBody = \n\t\t\t\t\t\t\t\"<!DOCTYPE html>\\n\" + \n\t\t\t\t\t\t\t\"<html>\\n\" + \n\t\t\t\t\t\t\t\" <head>\\n\" + \n\t\t\t\t\t\t\t\" <meta content=\\\"text/html; charset=\\\"utf-8\\\" http-equiv=\\\"content-type\\\">\\n\" + \n\t\t\t\t\t\t\t\" <title>\" + app.getHtmlEncoder().encode(messageSubject, false) + \"</title>\\n\" + \n\t\t\t\t\t\t\t\" </head>\\n\" + \n\t\t\t\t\t\t\t\" <body>\\n\" +\n\t\t\t\t\t\t\tmessageBody +\n\t\t\t\t\t\t\t\" </body>\\n\" +\n\t\t\t\t\t\t\t\"</html>\";\n\t\t\t\t\t}\n\t\t\t\t\tpm.currentTransaction().begin();\n\t\t\t\t\tStringPropertyDataBinding stringPropertyDataBinding = new StringPropertyDataBinding();\n\t\t\t\t\tstringPropertyDataBinding.setValue(\n\t\t\t\t\t\tcampaignCreator,\n\t\t\t\t\t\t\":\" + BulkActivityManager.PROPERTY_SET_NAME_SETTINS + \".\" + this.selectedLocales.get(0) + \"!messageSubject\", \n\t\t\t\t\t\tmessageSubject\n\t\t\t\t\t);\n\t\t\t\t\t// Set message body. Split into pieces of 2048 chars\n\t\t\t\t\tList<String> messageBodyParts = Utils.splitString(messageBody, 2048);\n\t\t\t\t\tint idx = 0;\n\t\t\t\t\tfor(int j = 0; j < messageBodyParts.size(); j++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstringPropertyDataBinding.setValue(\n\t\t\t\t\t\t\t\tcampaignCreator, \n\t\t\t\t\t\t\t\t\":\" + BulkActivityManager.PROPERTY_SET_NAME_SETTINS + \".\" + this.selectedLocales.get(0) + \"!messageBody\" + j, \n\t\t\t\t\t\t\t\tmessageBodyParts.get(j)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tidx++;\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tnew ServiceException(e).log();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Reset unused messageBody properties\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile (stringPropertyDataBinding.getValue(campaignCreator, \":\" + BulkActivityManager.PROPERTY_SET_NAME_SETTINS + \".\" + selectedLocales.get(0) + \"!messageBody\" + idx) != null) {\n\t\t\t\t\t\t\torg.opencrx.kernel.base.jmi1.Property property = stringPropertyDataBinding.findProperty(\n\t\t\t\t\t\t\t\tcampaignCreator, \n\t\t\t\t\t\t\t\t\":\" + BulkActivityManager.PROPERTY_SET_NAME_SETTINS + \".\" + this.selectedLocales.get(0) + \"!messageBody\" + idx\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tproperty.refDelete();\n\t\t\t\t\t\t\tidx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tnew ServiceException(e).log();\n\t\t\t\t\t}\n\t\t\t\t\tpm.currentTransaction().commit();\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tnew ServiceException(e).log();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpm.currentTransaction().rollback();\n\t\t\t\t\t} catch(Exception ignore) {}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "039249ea02abde0341f8dbf880826987", "score": "0.5127491", "text": "private static Message createEmail(int multiFactorAuthCode) {\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\n props.put(\"mail.smtp.socketFactory.class\",\n \"javax.net.ssl.SSLSocketFactory\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.port\", \"465\");\n\n Session session = Session.getDefaultInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n // TODO (1) Enter Gmail username and password for multi-factor auth sender\n /**\n * Note: you must enable 'less secure app' login\n * for your Gmail account. This can be done at\n * https://myaccount.google.com/lesssecureapps\n */\n return new PasswordAuthentication(\n \"Sender's Gmail Username Email Here\",\n \"Sender's Gmail Password Here\"\n );\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n // TODO (2) Enter sender address\n message.setFrom(new InternetAddress(\"Sender's Gmail Address Here\"));\n // TODO (3) Enter receiver address\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(\"Recipient's Email Address Here\"));\n message.setSubject(\"SDEV460 Login Code\");\n message.setText(\"The code you requested is: \\n\" +\n multiFactorAuthCode);\n return message;\n } catch (AddressException e) {\n e.printStackTrace();\n return null;\n } catch (javax.mail.MessagingException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "a07314a82d407a5a6ce89b5ce682bc15", "score": "0.5121402", "text": "public Message( String to, String message )\n {\n super();\n\n if( to != null )\n setAttribute( \"to\", to );\n if( message != null )\n setBodyText( message );\n }", "title": "" }, { "docid": "b56158f23a824ac0c869995cabb81ae4", "score": "0.51155025", "text": "public static void main(String[] args){\n try {\n EmailMessage wiadomosc = new EmailMessage.Builder()\n .addFrom(\"funnymotek@gmail.com\")\n .addTo(\"sbobek@agh.edu.pl\")\n .addSubject(\"Mail na zadanie\")\n .addContent(\"111\")\n .build();\n\n wiadomosc.send();\n }\n catch(IllegalStateException e){ System.out.println(e); }\n }", "title": "" }, { "docid": "c46f8b059c90e10cb287e66bc26a9a28", "score": "0.5108477", "text": "public static Email createEmail(InputStream mailFile)\r\n\t\t\tthrows MalformedEmailException {\r\n\t\tfinal int DATE_START = 6;//The index of a line where Date is to be read\r\n\t\tfinal int NUM_REQUIRED_FIELDS = 5;//Number of least possible fields for\r\n\t\t//a valid Email object\r\n\r\n\t\t//Each of the following variables are filled in as the InputStream\r\n\t\t//is read line-by-line\r\n\t\tDate date = null;//Exact time an Email was created\r\n\t\tString messageID = null;//Unique ID associated with an Email \r\n\t\tString subject = null;//Topic the message body of Email refers to\r\n\t\tString from = null;//Email address that Email was sent from\r\n\t\tString to = null;//Email address that Email was sent to\r\n\t\tString inReplyTo = null;//MessageID of Email this Email replies to\r\n\t\tListADT<String> body = new DoublyLinkedList<String>();//Message body\r\n\t\tListADT<String> references = new DoublyLinkedList<String>();//The list\r\n\t\t//of MessageIDs of Emails this Email may be connected to\r\n\r\n\t\tboolean[] hasFields = new boolean[NUM_REQUIRED_FIELDS];//Used to verify \r\n\t\t//that the minimum required fields have been filled\r\n\r\n\t\tScanner sc = null;//Used for reading InputStream\r\n\t\tEmail result = null;//The returned Email object\r\n\t\tboolean malformed = false;//Used for exception throwing\r\n\t\tsc = new Scanner(mailFile);\r\n\t\twhile (sc.hasNext()) {\r\n\t\t\tString currLine = sc.nextLine();\r\n\t\t\tString[] tokens = currLine.split(\"[:]\");\r\n\t\t\tString param = \"\";\r\n\t\t\tListADT<String> listParam = new DoublyLinkedList<String>();\r\n\t\t\tint i;\r\n\t\t\tswitch (tokens[0]) {\r\n\t\t\tcase \"In-Reply-To\": \r\n\t\t\t\tinReplyTo = tokens[1];\r\n\t\t\t\tif ((inReplyTo == null) || (inReplyTo.length() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"References\": \r\n\t\t\t\tfor (i = 1; i < tokens.length; i++) {\r\n\t\t\t\t\tparam += tokens[i];\r\n\t\t\t\t}\r\n\t\t\t\tString[] refs = param.split(\"[,]\");\r\n\t\t\t\tfor (i = 0; i < refs.length; i++) {\r\n\t\t\t\t\tlistParam.add(refs[i]);\r\n\t\t\t\t}\r\n\t\t\t\treferences = listParam;\r\n\t\t\t\tif ((references == null) || (references.size() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"Date\": \r\n\t\t\t\thasFields[0] = true;\r\n\t\t\t\tparam = currLine.substring(DATE_START);\r\n\t\t\t\tDateFormat df = new SimpleDateFormat(\"EEE, dd MMM yyyy \"\r\n\t\t\t\t\t\t+ \"HH:mm:ss Z\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDate parsedDate = df.parse(param);\r\n\t\t\t\t\tdate = parsedDate;\r\n\t\t\t\t\tif ((date == null) || (date.toString().length() == 0)) {\r\n\t\t\t\t\t\tmalformed = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} \r\n\t\t\t\tcatch (ParseException e) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"Message-ID\": \r\n\t\t\t\thasFields[1] = true;\r\n\t\t\t\tmessageID = tokens[1];\r\n\t\t\t\tif ((messageID == null) || (messageID.length() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"Subject\": \r\n\t\t\t\thasFields[2] = true;\r\n\t\t\t\tif (tokens.length == 3) {\r\n\t\t\t\t\tsubject = tokens[2];\r\n\t\t\t\t}\r\n\t\t\t\telse if (tokens.length == 2) {\r\n\t\t\t\t\tsubject = tokens[1];\r\n\t\t\t\t}\r\n\t\t\t\tif ((subject == null) || (subject.length() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"From\": \r\n\t\t\t\thasFields[3] = true;\r\n\t\t\t\tfrom = tokens[1];\r\n\t\t\t\tif ((from == null) || (from.length() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"To\": \r\n\t\t\t\thasFields[4] = true;\r\n\t\t\t\tto = tokens[1];\r\n\t\t\t\tif ((to == null) || (to.length() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tbody.add(currLine);\r\n\t\t\t\tif ((body == null) || (body.size() == 0)) {\r\n\t\t\t\t\tmalformed = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t//I know the check for == null doesn't need to happen, this is\r\n\t\t\t\t//a planned improvement\r\n\t\t\t}\r\n\t\t\tif (malformed) {\r\n\t\t\t\tsc.close();\r\n\t\t\t\tthrow new MalformedEmailException();\r\n\t\t\t}\r\n\t\t}\r\n\t\tsc.close();\r\n\t\t//Email creation using variables that have been set\r\n\t\tboolean isValid = true;\r\n\t\tfor (int i = 0; i < hasFields.length; i++) {\r\n\t\t\tif (hasFields[i] == false) isValid = false;\r\n\t\t}\r\n\t\tif (isValid) {\r\n\t\t\tif (inReplyTo != null) {\r\n\t\t\t\tif (references != null) {\r\n\t\t\t\t\tresult = new Email(date, messageID, subject, from, to, body,\r\n\t\t\t\t\t\t\tinReplyTo, references);\r\n\t\t\t\t}\r\n\t\t\t\telse throw new MalformedEmailException();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tresult = new Email(date, messageID, subject, from, to, body);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse throw new MalformedEmailException();\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "ef89259929b2d5eb586fd1288e41f2bd", "score": "0.5104888", "text": "private void sendEmailWithHTMLBodyAndAttachment() {\n try {\n //Set Html here\n // Setters\n// if (html == null) setHtml(\"No Report found\");\n// else setHtml(html);\n if (to == null) setTo(DEFAULT_EMAIL_LIST);\n if (subject == null)\n setSubject(\n getDateTime()\n + \" | \"\n + getEnv().toUpperCase()\n + \" | Automation Test Report\");\n\n MimeMessage Mimemessage = createHTMLMessageForEmail();\n Message message = createMessageWithEmail(Mimemessage);\n message = service.users().messages().send(user, message).execute();\n\n System.out.println(\"Message id: \" + message.getId());\n System.out.println(message.toPrettyString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4ac87fcc48c050cc88f679cd0695cf69", "score": "0.5101761", "text": "private MimeMessage createEmailWithAttachment(\n String to, String subject, String bodyText, File file)\n throws MessagingException, IOException {\n Properties props = new Properties();\n Session session = Session.getDefaultInstance(props, null);\n MimeMessage email = new MimeMessage(session);\n email.setFrom(new InternetAddress(user)); // me\n email.addRecipient(javax.mail.Message.RecipientType.TO, new InternetAddress(to)); //\n email.setSubject(subject);\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(bodyText, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n mimeBodyPart = new MimeBodyPart();\n DataSource source = new FileDataSource(file);\n\n mimeBodyPart.setDataHandler(new DataHandler(source));\n mimeBodyPart.setFileName(file.getName());\n\n multipart.addBodyPart(mimeBodyPart);\n email.setContent(multipart, \"text/html\");\n return email;\n }", "title": "" }, { "docid": "683ac66193e7267458b458228ac3343b", "score": "0.5098383", "text": "public static void sendInvitation(PstUserAbstractObject pstuser, PstAbstractObject obj, String optMsg)\r\n\t\tthrows PmpException\r\n\t{\r\n\t\tif (optMsg == null)\r\n\t\t\toptMsg = \"\";\t\t\t// optional personal message\r\n\r\n\t\tString s;\r\n\t\tString userLink, guestLink;\r\n\t\tString msg;\r\n\t\tString myName;\r\n\t\tuser creator;\r\n\t\tString ownerAttrName;\r\n\t\tString subject = (String)obj.getAttribute(\"Subject\")[0];\r\n\t\tPstManager mgr;\r\n\t\tPstAbstractObject o;\r\n\t\tint id = obj.getObjectId();\r\n\t\tint [] ids;\r\n\r\n\t\tString agendaText = null;\r\n\t\tString blogText = null;\r\n\t\tboolean isMeeting;\r\n\t\tif (obj instanceof meeting)\r\n\t\t{\r\n\t\t\tisMeeting = true;\r\n\r\n\t\t\t// for meeting invitation, include the whole agenda\r\n\t\t\tagendaText = ((meeting)obj).getAgendaString().replaceAll(\"@@\", \":\");\t// the agenda may have this encoded\r\n\t\t\tif (agendaText.length() <= 0)\r\n\t\t\t\tagendaText = \"<blockquote>No agenda specified</blockquote>\";\r\n\r\n\t\t\t// include blog\r\n\t\t\tids = rMgr.findId(pstuser, \"Type='\" + result.TYPE_MTG_BLOG + \"' && TaskID='\" + id + \"'\");\r\n\t\t\tif (ids.length > 0)\r\n\t\t\t\tblogText = \"A total of \" + ids.length + \" blog\" + ((ids.length>1)?\"s\":\"\") + \" posted. \";\r\n\t\t\telse\r\n\t\t\t\tblogText = \"No blog posted on this meeting. \";\r\n\t\t\tblogText += \"<a href='\" + NODE + \"/meeting/mtg_view.jsp?mid=\" + id + \"#blog'>Click to access and post blog to this meeting.</a>\";\r\n\r\n\t\t\tuserLink = NODE + \"/meeting/mtg_view.jsp?mid=\" + id;\r\n\t\t\tguestLink = NODE + \"/login_omf.jsp?mid=\" + id + \"&email=\" ;\r\n\t\t\townerAttrName = \"Owner\";\r\n\t\t\tmgr = mtgMgr;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// quest\r\n\t\t\tisMeeting = false;\r\n\r\n\t\t\t// include blog\r\n\t\t\tids = rMgr.findId(pstuser, \"Type='\" + result.TYPE_QUEST_BLOG + \"' && TaskID='\" + id + \"'\");\r\n\t\t\tif (ids.length > 0)\r\n\t\t\t\tblogText = \"A total of \" + ids.length + \" blog\" + ((ids.length>1)?\"s\":\"\") + \" posted. \";\r\n\t\t\telse\r\n\t\t\t\tblogText = \"No blog posted on this event. \";\r\n\t\t\tblogText += \"<a href='\" + NODE + \"/question/q_respond.jsp?qid=\" + id + \"'>Click to access and post blog to this event.</a>\";\r\n\r\n\t\t\tuserLink = NODE + \"/question/q_respond.jsp?qid=\" + id;\r\n\t\t\tguestLink = NODE + \"/login_omf.jsp?status=new&email=\" ;\r\n\t\t\townerAttrName = \"Creator\";\r\n\t\t\tmgr = qMgr;\r\n\t\t}\r\n\r\n\t\ts = (String)obj.getAttribute(ownerAttrName)[0];\r\n\t\tcreator = (user)userManager.getInstance().get(pstuser, Integer.parseInt(s));\r\n\t\tmyName = creator.getFullName();\r\n\r\n\t\tString tzS = \"\";\r\n\t\tSimpleDateFormat df = new SimpleDateFormat (\"MMMMMMMM dd, yyyy (EEE) hh:mm a\");\r\n\t\tDate dt = (Date)obj.getAttribute(\"StartDate\")[0];\r\n\t\tif (dt != null)\r\n\t\t{\r\n\t\t\tuserinfo myUI = (userinfo) uiMgr.get(pstuser, String.valueOf(creator.getObjectId()));\r\n\t\t\tTimeZone myTimeZone = myUI.getTimeZone();\r\n\t\t\tif (!userinfo.isServerTimeZone(myTimeZone)) {\r\n\t\t\t\tdf.setTimeZone(myTimeZone);\r\n\t\t\t}\r\n\t\t\ts = df.format(dt); \t\t\t// 8:00 PM\r\n\t\t\ttzS = myUI.getZoneString();\t\t\t\t// get the timezone string like \"GMT+8 Hong Kong...\"\r\n\t\t\ttzS = s + \" (\" + tzS + \")\";\r\n\t\t\ts += \" (\" + myUI.getZoneShortString() + \")\";\t// 8:00 PM (GMT+8) just for Subject\r\n\t\t}\r\n\t\telse\r\n\t\t\ts = \"\";\r\n\r\n\t\tif (isMeeting)\r\n\t\t{\r\n\t\t\t// meeting\r\n\t\t\t// time and location\r\n\t\t\tString location = obj.getStringAttribute(\"Location\");\r\n\t\t\tif (location != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tInteger.parseInt(location);\r\n\t\t\t\t\tPstAbstractObject cf = cfMgr.get(pstuser, location);\r\n\t\t\t\t\tlocation = cf.getStringAttribute(\"Name\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e) {}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmsg = myName + \" has invited you to a meeting:\"\r\n\t\t\t\t\t+ \"<blockquote>Time: \"+ tzS;\r\n\t\t\tif (!StringUtil.isNullOrEmptyString(location))\r\n\t\t\t\tmsg += \"<br/>Location: \" + location;\r\n\t\t\tmsg\t+= \"</blockquote>\";\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tmsg += \"<br />To join the meeting, click the link below at the specified time.\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// quest/event\r\n\t\t\tif (((String)obj.getAttribute(\"Type\")[0]).indexOf(quest.TYPE_EVENT)!=-1)\r\n\t\t\t{\r\n\t\t\t\tmsg = myName + \" has invited you to an event/party on \" + tzS;\t//df.format(localStartDate);\r\n\t\t\t\tif (obj.getAttribute(\"Content\")[0] != null) {\r\n\t\t\t\t\tmsg += \"<br />Please RSVP by clicking the link below.\";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tmsg += \"<br />Please click the link below for more details.\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmsg = myName + \" has requested you to respond to a questionnaire/survey/vote\";\r\n\t\t\t\tmsg += \"<br />Please respond by clicking the link below.\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (s != \"\") s = \" - \" + s;\r\n\t\tString subj = \"[\" + APPS + \" Invite] \";\r\n\t\tsubj += subject + s;\r\n\r\n\t\tString from = (String)creator.getAttribute(\"Email\")[0];\r\n\r\n\t\tString msg2\t= msg + \"<blockquote><b><a href='\" + userLink\r\n\t\t\t+ \"'>\" + subject + \"</a></b><br>\"\r\n\t\t\t+ \"<a href='\" + userLink + \"'>\"+ userLink + \"</a>\"\r\n\t\t\t+ \"\\n</blockquote>\" + optMsg;\r\n\r\n\t\tObject [] guestEmails = obj.getAttribute(\"GuestEmails\");\r\n\r\n\t\t// get the user ids from the invitee list\r\n\t\tObject [] attArr = obj.getAttribute(\"Attendee\");\r\n\t\tObject [] userIdArr = new Object [attArr.length];\r\n\t\tString [] sa;\r\n\t\tfor (int i=0; i<attArr.length; i++)\r\n\t\t{\r\n\t\t\ts = (String)attArr[i];\r\n\t\t\tif (s == null) break;\r\n\t\t\tsa = s.split(meeting.DELIMITER);\r\n\t\t\tuserIdArr[i] = sa[0];\r\n\t\t}\r\n\r\n\t\t// send the invitation\r\n\r\n\t\t// description\r\n\t\tObject bTextObj = obj.getAttribute(\"Description\")[0];\r\n\t\tString descStr = \"\";\r\n\t\ttry {descStr = (bTextObj==null)?null : new String((byte[])bTextObj, \"utf-8\");}\r\n\t\tcatch (UnsupportedEncodingException e) {throw new PmpException(e.getMessage());}\r\n\t\tif (descStr != null)\r\n\t\t\tmsg2 += \"<b>Description:</b><blockquote>\" + descStr + \"</blockquote>\";\r\n\r\n\t\t// agenda\r\n\t\tif (agendaText != null)\r\n\t\t\tmsg2 += \"<b>Agenda:</b><p>\" + agendaText;\r\n\r\n\t\t// blog\r\n\t\tmsg2 += \"</p><b>Blogs:</b><blockquote>\" + blogText + \"</blockquote>\";\r\n\r\n\t\tString sendXCal = Util.getPropKey(\"pst\", \"SEND_X_CALENDAR\");\r\n\t\tif (sendXCal != null && sendXCal.equalsIgnoreCase(\"true\"))\r\n\t\t{\r\n\t\t\t// this is to support sending outlook meeting request\r\n\t\t\tXCalendarBean xCal = new XCalendarBean(pstuser, (meeting)obj);\r\n\t\t\tutil.PrmEmail em = new util.PrmEmail();\r\n\t\t\tem.sendMtgReq(xCal.getEmails(), from, null, null,\r\n\t\t\t\t\tsubject, xCal.getMsg(), false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// send regular email\r\n\t\t\tString guestStr;\r\n\t\t\tUtil.sendMailAsyn(pstuser, from, userIdArr, null, null, subj, msg2, MAILFILE);\r\n\t\t\tif (guestEmails != null && guestEmails.length > 0)\r\n\t\t\t{\r\n\t\t\t\tif (!isAutoNewUser || !isUsernameEmail)\r\n\t\t\t\t{\r\n\t\t\t\t\tmsg += \"<blockquote><b><a href='\" + guestLink;\r\n\t\t\t\t\tfor (int i=0; i<guestEmails.length; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (guestEmails[i] == null) continue;\r\n\t\t\t\t\t\tguestStr = (String)guestEmails[i];\r\n\t\t\t\t\t\tmsg2 = msg + guestStr + \"'>\" + subject + \"</a></b><br>\"\r\n\t\t\t\t\t\t\t+ \"<a href='\" + guestLink + guestStr + \"'>\"\r\n\t\t\t\t\t\t\t+ guestLink + guestStr + \"</a>\\n</blockquote>\" + optMsg;\r\n\t\t\t\t\t\tif (descStr != null)\r\n\t\t\t\t\t\t\tmsg2 += \"<b>Description:</b><blockquote>\" + descStr + \"</blockquote>\";\r\n\t\t\t\t\t\tif (agendaText != null)\r\n\t\t\t\t\t\t\tmsg2 += \"<b>Agenda:</b>\" + agendaText;\r\n\t\t\t\t\t\tUtil.sendMailAsyn(pstuser, from, guestStr, null, null, subj, msg2, MAILFILE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// create the guest email account now and send invitation email\r\n\t\t\t\t\tfor (int i=0; i<guestEmails.length; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (guestEmails[i] == null) continue;\r\n\t\t\t\t\t\tguestStr = (String)guestEmails[i];\r\n\t\t\t\t\t\tString newPass = Util.createPassword();\t// ironman12\r\n\t\t\t\t\t\ttry {o = uMgr.createUser(pstuser, guestStr, newPass, true);}\t// create user, userinfo and set up base values\r\n\t\t\t\t\t\tcatch (PmpException e){l.error(\"Fail to create guest [\" + guestStr + \"]\"); continue;}\r\n\t\t\t\t\t\tmsg = \"<b>Your login information follows:</b>\";\r\n\t\t\t\t\t\tmsg += \"<blockquote><table cellspacing='0' cellpadding='0'>\";\r\n\t\t\t\t\t\tmsg += \"<tr><td class='plaintext' width='120'><b>Username</b>:</td><td class='plaintext'>\" + guestStr + \"</td></tr>\";\r\n\t\t\t\t\t\tmsg += \"<tr><td class='plaintext' width='120'><b>Password</b>:</td><td class='plaintext'>\" + newPass + \"</td></tr>\";\r\n\t\t\t\t\t\tmsg += \"</table></blockquote>\";\r\n\t\t\t\t\t\tmsg2 += msg;\r\n\t\t\t\t\t\tUtil.sendMailAsyn(pstuser, from, guestStr, null, null, subj, msg2, MAILFILE);\r\n\t\t\t\t\t\ts = String.valueOf(o.getObjectId());\r\n\t\t\t\t\t\tif (isMeeting)\r\n\t\t\t\t\t\t\ts += meeting.DELIMITER + meeting.ATT_OPTIONAL;\r\n\t\t\t\t\t\tobj.appendAttribute(\"Attendee\", s);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tobj.setAttribute(\"GuestEmails\", null);\t\t// remove because they are now members\r\n\t\t\t\t\tmgr.commit(obj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7471b8ca56e84527e0c927c37c46441d", "score": "0.50980896", "text": "@Test\n public void testMailMessage_1()\n throws Exception {\n String body = \"\";\n String subject = \"\";\n String cssStyle = \"\";\n\n MailMessage result = new MailMessage(body, subject, cssStyle);\n\n assertNotNull(result);\n assertEquals(\"\", result.getBody());\n assertEquals(\"\", result.getSubject());\n assertEquals(\"\", result.getPlainTextBody());\n assertEquals(\n \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01 Transitional//EN\\\" \\\"http://www.w3.org/TR/html4/loose.dtd\\\">\\n<html>\\n<head>\\n<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=UTF-8\\\"></head>\\n<body>\\n</body>\\n</html>\\n\",\n result.getHtmlBody());\n assertEquals(\"\", result.getCssStyle());\n }", "title": "" }, { "docid": "81ae3119c279abebfdd2e511d5c62edc", "score": "0.50955933", "text": "@Override\n public void onInvitationReceived(Invitation invitation) {\n // We got an invitation to play a game! So, store it in\n // mIncomingInvitationId\n // and show the popup on the screen.\n mIncomingInvitationId = invitation.getInvitationId();\n ((TextView) findViewById(R.id.incoming_invitation_text)).setText(\n invitation.getInviter().getDisplayName() + \" \" +\n getString(R.string.is_inviting_you));\n switchToScreen(mCurScreen); // This will show the invitation popup\n }", "title": "" }, { "docid": "6e0524e3dea3875433d9be4e17f6cbc1", "score": "0.5093689", "text": "private void composeEmail(String Subject, String Message){\r\n Intent intent = new Intent(Intent.ACTION_SENDTO);\r\n intent.setData(Uri.parse(\"mailto:\"));\r\n intent.putExtra(Intent.EXTRA_SUBJECT, Subject);\r\n intent.putExtra(Intent.EXTRA_TEXT, Message);\r\n if (intent.resolveActivity(getPackageManager()) != null) {\r\n startActivity(intent);\r\n }\r\n }", "title": "" }, { "docid": "1b70aaee56c135b5d5000ea2ea5d0431", "score": "0.50917894", "text": "public String createMessage() {\n\t\tsetMessage(this.getClass().getName() + MAIN_DELIM);\n\t\treturn getMessage();\n\t}", "title": "" }, { "docid": "be74ce5550396c4335831b08cadfc79e", "score": "0.5088894", "text": "public String generateEmailText(){\n \n \n \t\tString returnValue = \"\";\n \t\tGregorianCalendar cal = null;\n \t\tString dateString = null;\n \t\tString timeString = null;\n \t\tString typeString = null;\n \t\tString timeTotal = \"\";\n \n \t\tPayPeriod thisPP = new PayPeriod(i_start, i_end, i_context);\n \t\tDay workingDay = null;\n \t\tPunch tempPunch = null;\n \t\tNote noteTemp;\n \n \t\tint[] tempTime = null;\n \n \t\tswitch(i_verbosLevel){\n \t\tcase EVERY_PUNCH:\n \t\t\tfor(int i = 0; i < thisPP.size(); i++){\n \t\t\t\tworkingDay = thisPP.get(i);\n \t\t\t\ttempTime = workingDay.getDay();\n \n \t\t\t\tcal = new GregorianCalendar(tempTime[0], tempTime[1], tempTime[2]);\n \t\t\t\tdateString = Defines.DAYSABBV[( cal.get(GregorianCalendar.DAY_OF_WEEK) - 1 ) % 7] + \" \" +\n \t\t\t\tDefines.MONTHS[cal.get(GregorianCalendar.MONTH)] + \", \" + \n \t\t\t\tcal.get(GregorianCalendar.DAY_OF_MONTH);\n \t\t\t\tfor( int j = 0; j < workingDay.getSize(); j++){\n \t\t\t\t\ttempPunch = workingDay.get(j);\n \t\t\t\t\ttimeString = tempPunch.generatePunchString();\n \t\t\t\t\ttypeString = tempPunch.generateTypeString(i_context);\n \n \t\t\t\t\treturnValue += String.format(\"%s:\\t %s (%s)\\n\",dateString, timeString, typeString);\n \t\t\t\t}\n \n \t\t\t\tnoteTemp = new Note(tempTime, i_context);\n \t\t\t\tif(noteTemp.getNote(false).equalsIgnoreCase(\"\") == false){\n \t\t\t\t\treturnValue += String.format(\"\\tNote:\\t %s\\n\", noteTemp.getNote(false));\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\tcase ONLY_DAY:\n \t\t\tfor(int i = 0; i < thisPP.size(); i++){\n \t\t\t\tworkingDay = thisPP.get(i);\n \t\t\t\ttempTime = workingDay.getDay();\n \n \t\t\t\tcal = new GregorianCalendar(tempTime[0], tempTime[1], tempTime[2]);\n \t\t\t\tdateString = Defines.DAYSABBV[( cal.get(GregorianCalendar.DAY_OF_WEEK) - 1 ) % 7] + \" \" +\n \t\t\t\tDefines.MONTHS[cal.get(GregorianCalendar.MONTH)] + \", \" +\n \t\t\t\tcal.get(GregorianCalendar.DAY_OF_MONTH);\n \t\t\t\ttimeString = StaticFunctions.generateTimeString(workingDay.getTimeWithBreaks()/1000, \n \t\t\t\t\t\tTimeFormat.HOUR_DECIMAL, false);\n \t\t\t\treturnValue += String.format(\"%s:\\t %s\\n\",dateString, timeString);\n \n \t\t\t\tnoteTemp = new Note(tempTime, i_context);\n \t\t\t\tif(noteTemp.getNote(false).equalsIgnoreCase(\"\") == false){\n \t\t\t\t\treturnValue += String.format(\"\\tNote:\\t %s\\n\", noteTemp.getNote(false));\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tbreak;\n \t\tdefault: \n \t\t\tbreak;\n \t\t}\n \n \t\tlong timeToday = 0;\n \t\tDay temp;\n \n \t\tfor(int i = 0; i < thisPP.size(); i++){\n \t\t\ttemp = thisPP.get(i);\n \t\t\tif ( temp.getTimeWithBreaks() >= 0 ){\n \t\t\t\ttimeToday += temp.getTimeWithBreaks();\n \t\t\t}\n \t\t}\n \n \t\tPreferenceSingelton prefs = new PreferenceSingelton();\n \t\tboolean clockedInStill = false;\n \t\tif(timeToday < 0){\n \t\t\tclockedInStill = true;\n \t\t\ttimeToday += GregorianCalendar.getInstance().getTimeInMillis();\n \t\t}\n \t\ttimeTotal = StaticFunctions.generateTimeWeek(timeToday, TimeFormat.HOUR_DECIMAL, false);\n \t\tString payAmount = StaticFunctions.generateDollarAmount(getTimeForMoney(thisPP), \n \t\t\t\tprefs.getPayRate(i_context));\n \t\treturnValue += String.format(\"\\n\\tTotal Time:\\t %s\\n\", timeTotal);\n\t\tif(prefs.getShowPay(i_context))\n\t\t\treturnValue += String.format(\"\\tEstimated Pay:\\t %s\", payAmount);\n \t\tif(clockedInStill){\n \t\t\treturnValue += \"\\n\\n\\tPlease note that the time above is only an estimate. Your times done add up properly... The time was done based on the time it was sent\";\n \t\t} \n \t\t\n \t\treturn returnValue;\n \t}", "title": "" }, { "docid": "2d06ed2ab193b5e05d5d52c21b075dfb", "score": "0.508784", "text": "public static void inviteUser(final Activity activity,final String receiverEmail, final String senderEmail,\n String receiverName, String senderName){\n\n final String shareBody = \"<html lang=\\\"en\\\">\\n\" +\n \"<head>\\n\" +\n \" <meta content=\\\"text/html; charset=utf-8\\\" http-equiv=\\\"Content-Type\\\" />\\n\" +\n \" <title>Wiser Helper</title>\\n\" +\n \" <style type=\\\"text/css\\\">\\n\" +\n \" @import url(https://fonts.googleapis.com/css?family=Lato);\\n\" +\n \" b a,\\n\" +\n \" span a{\\n\" +\n \" color: #566277 !important;\\n\" +\n \" text-decoration: none;\\n\" +\n \" }\\n\" +\n \" </style>\\n\" +\n \"</head>\\n\" +\n \"<body style=\\\"margin:0; padding:0; text-align:left;\\\">\\n\" +\n \"<table width=\\\"100%\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\" bgcolor=\\\"#f5f6f9\\\">\\n\" +\n \" <tbody>\\n\" +\n \" <tr>\\n\" +\n \" <td class=\\\"wrapper\\\" style=\\\"padding:53px 10px 35px;\\\">\\n\" +\n \" <table class=\\\"flexible\\\" width=\\\"600\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\" align=\\\"center\\\" style=\\\"margin:0 auto !important; border-radius:3px; background:#FEFEFE;\\\">\\n\" +\n \" <tbody>\\n\" +\n \" <tr>\\n\" +\n \" <td>\\n\" +\n \" <table>\\n\" +\n \" <tbody>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"padding:50px 50px 50px;\\\">\\n\" +\n \" <table>\\n\" +\n \" <tbody>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"padding-bottom:40px;\\\">\\n\" +\n \" <img src=\\\"https://parsefiles.back4app.com/lGpiIUCEzmh4ujitQSZiiAHD4X58zD7iFCgGgNoD/7642d51526caddced29c224c9b92dc2e_image.jpg\\\" width=\\\"100% \\\" alt=\\\"image\\\">\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#566277; text-align:left; font-size:20px; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 0 0.01em!important; padding-bottom:20px;\\\">\\n\" +\n \" <b style=\\\"color:#566277;\\\">\"+activity.getString(R.string.email_hello)+\" \"+receiverName+\",</b>\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; text-align:left; font-size:15px; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 30px;\\\">\\n\" +\n \" \"+senderName+\" \"+activity.getString(R.string.email_wants_help)+\" \\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 20px;\\\">\\n\" +\n \" \"+senderName+\" \"+activity.getString(R.string.email_is_using)+\" \"+senderName+\" \"+activity.getString(R.string.email_can_see)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 20px;\\\">\\n\" +\n \" \"+activity.getString(R.string.email_imagine_your)+\" \"+senderName+activity.getString(R.string.email_hands_on)+\" \"+senderName+\" \"+activity.getString(R.string.email_can_help)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 20px;\\\">\\n\" +\n \" \"+senderName+\" \"+activity.getString(R.string.email_can)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 3px;\\\">\\n\" +\n \" &bull; \"+activity.getString(R.string.email_add_contacts)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 3px;\\\">\\n\" +\n \" &bull; \"+activity.getString(R.string.email_add_reminder)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 3px;\\\">\\n\" +\n \" &bull; \"+activity.getString(R.string.email_add_directions)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 3px;\\\">\\n\" +\n \" &bull; \"+activity.getString(R.string.email_add_sos)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 20px;\\\">\\n\" +\n \" &bull; \"+activity.getString(R.string.email_much_more)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 20px;\\\">\\n\" +\n \" \"+activity.getString(R.string.email_to_allow)+\" \"+senderName+\" \"+activity.getString(R.string.email_to_do_this)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 20px;\\\">\\n\" +\n \" \"+activity.getString(R.string.email_please_call)+\" \"+senderName+\" \"+activity.getString(R.string.email_to_confirm)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:15px 0 3px;\\\">\\n\" +\n \" <small>\"+activity.getString(R.string.email_follow_instructions)+\"</small>\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:##0000FF; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:0 0 10px;\\\">\\n\" +\n \" \"+activity.getString(R.string.email_wiser_link)+\"\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:15px 0 3px;\\\">\\n\" +\n \" <small>\"+activity.getString(R.string.email_thanks)+\"</small>\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding:15px 0 3px;\\\">\\n\" +\n \" <small>\"+activity.getString(R.string.email_wiser_helper)+\"</small>\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td style=\\\"color:#797E88; font-size:15px; text-align:left; letter-spacing:0.5px; font-family: 'Lato', sans-serif; margin:0 !important; padding: 0 3px;\\\">\\n\" +\n \" <small>\"+activity.getString(R.string.email_contact_email)+\"</small>\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" </tbody>\\n\" +\n \" </table>\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" </tbody>\\n\" +\n \" </table>\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \"\\n\" +\n \" </tbody>\\n\" +\n \" </table>\\n\" +\n \" </td>\\n\" +\n \" </tr>\\n\" +\n \" </tbody>\\n\" +\n \"</table>\\n\" +\n \"\\n\" +\n \"</body>\\n\" +\n \"</html>\\n\";\n//\n// final SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(activity);\n// new Thread(new Runnable() {\n//\n// @Override\n// public void run() {\n// try {\n// GMailSender sender = new GMailSender(sp.getString(Constants.INVITE_EMAIL,null),\n// sp.getString(Constants.INVITE_PASSWORD,null));\n// sender.sendMail(senderEmail+\" \"+R.string.email_invites_you, shareBody,\n// senderEmail, receiverEmail);\n// } catch (Exception e) {\n// Log.e(\"SendMail\", e.getMessage(), e);\n// }\n// }\n//\n// }).start();\n }", "title": "" }, { "docid": "994e95d783f23219ef4ba671a7c85725", "score": "0.5083644", "text": "public static String getMailBodyTemplate(String emailOtp) {\n\t\t\r\n\t\t\r\n\t\tString email_template = \"Thank you for registration.\"\r\n\t\t\t\t + \"<br><br> Verification code for your SuiteSocial Account is:\"+emailOtp;\r\n\t\t\t\t\r\n\t\treturn email_template;\r\n\t}", "title": "" }, { "docid": "43292aba0cf0d40d1be0ae0e26ec91e3", "score": "0.50828433", "text": "@Test\n public void shouldSendEmailWithExpressionInSubject() throws MessagingException, IOException {\n INotificationDescriptor desc = new INotificationDescriptor() {\n @Override public String subjectCode() {\n return \"notifications.spel.subject\";\n }\n\n @Override public String messageCode() {\n return \"notifications.spel.body\";\n }\n };\n\n Notification notification = new Notification(\n \"http://test.com\",\n new TestRecipient(),\n desc\n );\n\n srvc.send(notification);\n\n verify(mailSnd).send(captor.capture());\n\n MimeMessage msg = captor.getValue();\n\n assertEquals(\"Hello firstName lastName! subject\", msg.getSubject());\n assertEquals(\"text\", msg.getContent());\n }", "title": "" }, { "docid": "d16e64fc045c18746c6c8e7f64b786c7", "score": "0.5068077", "text": "public Mail(int id, String sender, ArrayList<String> toRecipients,\r\n\t\t\tArrayList<String> ccRecipients, ArrayList<String> bccRecipients,\r\n\t\t\tString subject, String content, Date messageDate, int folder) {\r\n\t\tsuper();\r\n\t\tthis.setId(id);\r\n\t\tthis.sender = sender;\r\n\t\tthis.toRecipients = toRecipients;\r\n\t\tthis.ccRecipients = ccRecipients;\r\n\t\tthis.bccRecipients = bccRecipients;\r\n\t\tthis.subject = subject;\r\n\t\tthis.content = content;\r\n\t\tthis.messageDate = messageDate;\r\n\t\tthis.folder = folder;\r\n\t}", "title": "" }, { "docid": "5ce4dad15deb28e8fe7077e93f10e4a7", "score": "0.50655687", "text": "public PublishSubject<Model> createEmailSender() {\n PublishSubject<Model> subscriptions = PublishSubject.create();\n subscriptions\n // TODO add observeOn\n .subscribe(sub -> {\n SimpleMailMessage message = new SimpleMailMessage();\n message.setTo(sub.getEmail());\n message.setSubject(\"test\");\n message.setText(prepareTestMessage(sub.getUrls()));\n sender.send(message);\n });\n\n return subscriptions;\n }", "title": "" }, { "docid": "662d25c583a9713a4e28ac5bfe1c641c", "score": "0.50499606", "text": "InternalMessage createInternalMessage();", "title": "" }, { "docid": "5cebb976aea9cd94e8ed8429c84faf38", "score": "0.50485307", "text": "public Employee sendInvitation(Employee emp) {\n\t\tSystem.out.println(emp.getClass().getSimpleName());\n\t\tSystem.out.println(\"invitation sent\");\n\t\treturn new Fireman();\n\t//\treturn new Secretary();\n\t}", "title": "" }, { "docid": "6988308e69f565ff6ac163aa0d2ea433", "score": "0.50380015", "text": "private void startSendNotification(Intent incomingIntent) {\n final String number = incomingIntent.getStringExtra(Constants.EXTRA_INVITED);\n final Contact contact = NetMeApp.getContactWith(number);\n final long meetingId = incomingIntent.getLongExtra(Constants.EXTRA_MEETING_ID, -1);\n Log.e(\"yi\", \"startSendNotification: =======================number = \" + number);\n // figure out and set the contact name\n final String fromName;\n if (contact != null && contact.getName() != null && !contact.getName().isEmpty()) {\n fromName = contact.getName();\n } else fromName = number;\n\n Bitmap squarePicture = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_notifications);\n Bitmap largeIcon = Utils.getCircleShape(squarePicture, squarePicture.getHeight());\n\n // building the notification\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(getActivity());\n notificationBuilder.setLargeIcon(largeIcon);\n notificationBuilder.setContentTitle(\"Miss video call\");\n // notificationBuilder.setContentTitle(context.getString(R.string.new_message));\n notificationBuilder.setContentText(fromName);\n // notificationBuilder.setContentIntent(chatPendingIntent);\n notificationBuilder.setAutoCancel(true);\n /*notificationBuilder.setCategory(Notification.CATEGORY_MESSAGE);\n notificationBuilder.setPriority(Notification.PRIORITY_HIGH);\n notificationBuilder.setVisibility(Notification.VISIBILITY_PUBLIC);\n notificationBuilder.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION));\n notificationBuilder.setVibrate(new long[]{500});*/\n\n NotificationManager notificationManager = (NotificationManager) getActivity().getSystemService(getActivity().NOTIFICATION_SERVICE);\n notificationManager.notify((int) meetingId, notificationBuilder.build());\n }", "title": "" }, { "docid": "90127be4ec8fd04384654e30389db067", "score": "0.5026918", "text": "public Email(final Message message) throws MessagingException {\n addFrom(message.getFrom());\n addTo(message.getRecipients(RecipientType.TO));\n addCc(message.getRecipients(RecipientType.CC));\n addBcc(message.getRecipients(RecipientType.BCC));\n this.subject = message.getSubject();\n }", "title": "" }, { "docid": "6dd5c219e504c2e513a7ac0d22050133", "score": "0.502098", "text": "public interface NotificationMessage extends MimeMessagePreparator {\n}", "title": "" }, { "docid": "0931a5a0a1aebd19cf6d89093eae801b", "score": "0.50120026", "text": "DemMessage createDemMessage();", "title": "" }, { "docid": "f092118502d6e9dd4f426fc9a0769fe6", "score": "0.49962962", "text": "protected EmailNotification(){}", "title": "" }, { "docid": "788a961715442d2482d838629ae58e2b", "score": "0.4991491", "text": "@Override\n public void createEmailRequest(EmailRequest request) {\n int requestId = emailRequestDao.insert(request);\n \n //2. construct all the 'to email address' combinations from firstname, lastname and domain\n List<String> emailToAddresses = emailAddressbuilder.buildEmailToAddresses(request.getFirstName(), request.getLastName(), request.getDomain());\n \n //3. send random emails to identify valid email address and save the 'emailAddressTried' to 'email_response' table \n for (String toEmailAddress : emailToAddresses) {\n //Map<String, Object> attributes = new HashMap<String, Object>();\n //attributes.put(\"firstName\", request.getFirstName());\n //attributes.put(\"lastName\", request.getLastName());\n \n //TODO: see if we even we need 'freemarker' template here\n notificationService.send(fromAddress, toEmailAddress, \"Email Verification\", null, TEMPLATE_IDENTIFYING_EMAIL);\n logger.info(\"Email sent to '\"+toEmailAddress +\"' for the request received from '\" + request.getRequestorEmailAddress() +\"'\");\n \n EmailResponse response = new EmailResponse();\n response.setEmailRequestId(requestId);\n response.setEmailAddressTried(toEmailAddress);\n response.setStatus(Status.NEW.toString());\n emailResponseDao.insert(response);\n }\n }", "title": "" }, { "docid": "def2676c2b7768bffb954335aedad6b1", "score": "0.49823523", "text": "public PickupMail(String email, String packID) {\n super();\n\n this.email = email;\n this.packID = packID;\n }", "title": "" }, { "docid": "a3563cc14a02a49daf57f61d3f1cf7d9", "score": "0.49798912", "text": "private MimeMessage createMimeMessage(File tmpFile, MimeMultipart smm) \n throws Exception\n {\n FileOutputStream fOut = new FileOutputStream(tmpFile);\n Properties props = System.getProperties();\n Session session = Session.getDefaultInstance(props, null);\n\n Address fromUser = new InternetAddress(\"\\\"Eric H. Echidna\\\"<eric@bouncycastle.org>\");\n Address toUser = new InternetAddress(\"example@bouncycastle.org\");\n\n MimeMessage body = new MimeMessage(session);\n body.setFrom(fromUser);\n body.setRecipient(Message.RecipientType.TO, toUser);\n body.setSubject(\"example signed message\");\n body.setContent(smm, smm.getContentType());\n body.saveChanges();\n\n body.writeTo(fOut);\n \n fOut.close();\n\n return new MimeMessage(session, new FileInputStream(tmpFile));\n }", "title": "" }, { "docid": "508c0e1f63d1490094f51292cc3dc3f7", "score": "0.497707", "text": "public Message(Patient patient, Physician physician, String obj, String content) {\n\t\tsuper();\n\t\tthis.setPatient(patient);\n\t\tthis.physician = physician;\n\t\tthis.obj = obj;\n\t\tthis.content = content;\n\t\tthis.time = new TimeStamp();\n\t\t\n\t\tMessage.messageId += 1;\n\t\tthis.setId(messageId);\n\t\t\n\t\t//the new message is stored in the unread directory\n\t\tphysician.getMailBox().get(0).add(this);\n\t}", "title": "" }, { "docid": "0a255a95568bc030b85f32f14fe267df", "score": "0.4974698", "text": "public GlobalMailReminder() {\r\n }", "title": "" }, { "docid": "a0a841bb14881dc438671528fe0f758e", "score": "0.49676612", "text": "public void enviar(String assunto, String mensagem) throws MessagingException, UnsupportedEncodingException {\n\t\ttry {\n\t\t\tInternetAddress internetAddress;\n\t\t\tboolean first = true;\n\t\t\t\n\t\t\tthis.sessaoEmail = Session.getDefaultInstance(this.propiedadesEmail, this.autenticacaoEmail);\n\t\t\t// session.setDebug(true);\n\t\t\t\n\t\t\tMessage msg = new MimeMessage(this.sessaoEmail);\t\t\t\n\t\t\tfor (int i = 0 ; i < listaNome.size() ; i++) {\n\t\t\t\tinternetAddress = new InternetAddress(this.listaEmail.get(i), this.listaNome.get(i));\n\t\t\t\tif (first) {\n\t\t\t\t\t// setamos o 1° destinatario\n\t\t\t\t\tmsg.addRecipient(Message.RecipientType.TO, internetAddress);\n\t\t\t\t\tfirst = false;\n\t\t\t\t} else {\n\t\t\t\t\tmsg.addRecipient(Message.RecipientType.CC, internetAddress);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\tinternetAddress = new InternetAddress(\"automato@superbutton.com.br\", nomeRemetente);\n\t\t\tmsg.setFrom(internetAddress);\n\n\t\t\tmsg.setSubject(assunto);\n\n\t\t\t// Cria o objeto que recebe o texto do corpo do email\n\t\t\tMimeBodyPart textPart = new MimeBodyPart();\n\t\t\ttextPart.setContent(mensagem, MailJava.TYPE_TEXT_PLAIN);\n\n\t\t\t// Monta a mensagem SMTP inserindo o conteudo, texto e anexos\n\t\t\tMultipart mps = new MimeMultipart();\n\n\t\t\t// adiciona o corpo texto da mensagem\n\t\t\tmps.addBodyPart(textPart);\n\n\t\t\t// adiciona a mensagem o conteúdo texto e anexo\n\t\t\tmsg.setContent(mps);\n\t\t\t\n\t\t\tTransport transport = this.sessaoEmail.getTransport(); \n\t\t\ttransport.connect(\"smtp.superbutton.com.br\",\"automato@superbutton.com.br\",\"bottomup14092011\"); \t\t\t\n\t\t\tSystem.out.println(transport.isConnected());\n\t\t\t\n\t\t\tTransport.send(msg);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new UnsupportedEncodingException();\n\t\t} catch (MessagingException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new MessagingException();\n\t\t}\n\t}", "title": "" }, { "docid": "875405d2db5c8d1c4c87aa956da0e4d1", "score": "0.49652094", "text": "public static void main(String[] args){\nnew Mailer()\n .from(\"builder@something.com\")\n .to(\"myemail@address.com\")\n .subject(\"code is somewhat ok\")\n .body(\"Because of using some patterns\")\n .send();\n\n}", "title": "" }, { "docid": "551a55395b3fdb571ba2b491510207b7", "score": "0.4963961", "text": "public interface TemplateMailer {\n public static final String TO_EMAIL_ADDRESS = \"toEmailAddress\";\n public static final String USER_NAME_KEY = \"name\";\n\n /**\n * Helper method for creating Multiparts from a freemarker template for emailing\n *\n * @param textTemplateFilename the text freemarker template\n * @param htmlTemplateFilename the html freemarker template\n * @param context a {@link java.util.Map} of objects to expose to the template engine\n * @return the multipart content for a new email\n * @throws IOException\n * @throws MessagingException\n */\n public Multipart createContent(String textTemplateFilename, String htmlTemplateFilename,\n final Map<String, Object> context) throws IOException, MessagingException;\n\n /**\n * Send a mail with the content specified\n *\n * @param toEmailAddress the email address where to send the email\n * @param fromEmailAddress fromEmailAddress\n * @param subject subject of the email\n * @param context a {@link java.util.Map} of objects to expose to the template engine\n * @param content the content of the message to send\n */\n void mail(final String toEmailAddress, final String fromEmailAddress, final String subject,\n final Map<String, Object> context, final Multipart content);\n\n /**\n * Send a mail with both a text and a HTML version.\n * @param toEmailAddress the email address where to send the email\n * @param fromEmailAddress fromEmailAddress\n * @param subject subject of the email\n * @param context a {@link java.util.Map} of objects to expose to the template engine\n * @param textTemplateFilename textTemplateFilename\n * @param htmlTemplateFilename htmlTemplateFilename\n */\n void mail(final String toEmailAddress, final String fromEmailAddress, final String subject,\n final Map<String, Object> context, final String textTemplateFilename,\n final String htmlTemplateFilename);\n\n /**\n * Mail to multiple email addresses with both a text and a HTML version.\n * Each email comes with it's corresponding context to use for the templates\n * @param emailAddressContextMap email address and it's corresponding context\n * @param subject subject of the email\n * @param textTemplateFilename textTemplateFilename\n * @param htmlTemplateFilename htmlTemplateFilename\n */\n void massMail(final Map<String, Map<String, Object>> emailAddressContextMap, final String subject,\n final String textTemplateFilename, final String htmlTemplateFilename);\n}", "title": "" }, { "docid": "20bce0133b84276e306eea685209a16a", "score": "0.49628747", "text": "private NdefMessage createMessage(){\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n\t\tbyte[] payload = (prefs.getString(\"session\", \"\")+\";\"+prefs.getString(\"username\", \"\")+\";\"+prefs.getString(\"imageuri\", \"dummy_4\")+\" \"+blue_mac).getBytes();\n\t\tbyte[] mimeBytes = MIME_TYPE.getBytes(Charset.forName(\"US-ASCII\"));\n\t\tNdefRecord cardRecord = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, mimeBytes, new byte[0], payload);\n\t\treturn new NdefMessage(new NdefRecord[] { cardRecord});\n\t}", "title": "" }, { "docid": "3309accdf31cc4e102f6b7bf71f83419", "score": "0.49587807", "text": "@Override\n\tpublic Object sendMailWithAttachment(String to, String subject, String message, String attachement) {\n\t\ttry {\n\t\t\tMimeMessage msg = mailSender.createMimeMessage();\n\n\t\t\tMimeMessageHelper helper = new MimeMessageHelper(msg, true);\n\n\t\t\thelper.setTo(to);\n\t\t\thelper.setFrom(NOREPLY_ADDR);\n\t\t\thelper.setSubject(subject);\n\t\t\thelper.setText(message);\n\n\t\t\thelper.addAttachment(\"License.txt\", new ClassPathResource(attachement));\n\n\t\t\tmailSender.send(msg);\n\t\t} catch(MessagingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bcdb067538325676567438cdcb609b3e", "score": "0.4958724", "text": "public static models.internal.reports.Recipient createRecipient() {\n final UUID recipientId = UUID.randomUUID();\n return new models.internal.impl.DefaultEmailRecipient.Builder()\n .setAddress(TEST_EMAIL)\n .setId(recipientId)\n .build();\n\n }", "title": "" }, { "docid": "512f8098ab877a5934098976be8c0ec5", "score": "0.49572468", "text": "public static void main(String[] args) \n\t\t\tthrows IOException, InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, IllegalBlockSizeException, BadPaddingException, \n\t\t\tMessagingException, NoSuchPaddingException, InvalidAlgorithmParameterException, UnrecoverableKeyException, KeyStoreException, \n\t\t\tNoSuchProviderException, CertificateException {\n Gmail service = getGmailService();\n ArrayList<MimeMessage> mimeMessages = new ArrayList<MimeMessage>();\n \n String user = \"me\";\n String query = \"is:unread label:INBOX\";\n \n List<Message> messages = MailReader.listMessagesMatchingQuery(service, user, query, PAGE_SIZE, ONLY_FIRST_PAGE);\n for(int i=0; i<messages.size(); i++) {\n \tMessage fullM = MailReader.getMessage(service, user, messages.get(i).getId());\n \t\n \tMimeMessage mimeMessage;\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tmimeMessage = MailReader.getMimeMessage(service, user, fullM.getId());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n Message number \" + i);\n\t\t\t\tSystem.out.println(\"From: \" + mimeMessage.getHeader(\"From\", null));\n\t\t\t\tSystem.out.println(\"Subject: \" + mimeMessage.getSubject());\n\t\t\t\tSystem.out.println(\"Body: \" + MailHelper.getText(mimeMessage));\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\t\n\t\t\t\tmimeMessages.add(mimeMessage);\n\t \n\t\t\t} catch (MessagingException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n }\n \n System.out.println(\"Select a message to decrypt:\");\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t String answerStr = reader.readLine();\n\t Integer answer = Integer.parseInt(answerStr);\n\t \n\t\tMimeMessage chosenMessage = mimeMessages.get(answer);\n\t \n\t\t//preuzimanje enkriptovane poruke\n\t\tString xmlMailBody = MailHelper.getText(chosenMessage);\n\t\tMailBody mailBody = JAXB.unmarshal(new StringReader(xmlMailBody), MailBody.class);\n//\t\tString mailBodyCSV = MailHelper.getText(chosenMessage);\n//\t\tMailBody mailBody = new MailBody(mailBodyCSV);\n\t\tbyte[] encBody = mailBody.getEncMessageBytes();\n\t\tbyte[] IV1 = mailBody.getIV1Bytes();\n\t\tbyte[] IV2 = mailBody.getIV2Bytes();\n\t\tbyte[] encSecretKey = mailBody.getEncKeyBytes();\n\t\tbyte[] signature = mailBody.getSignatureBytes();\n\t\t\n\t\t//dekripcija tajnog kljuca\n\t\tSecretKey secretKey = decryptSecretKey(encSecretKey);\n\t\t\n\t\tCipher des3CipherDec = Cipher.getInstance(\"DESede/CBC/PKCS5Padding\");\n\t\t\n\t\t// Dekriptivanje subject-a i body-ja\n\t\tString subject = decryptSubject(des3CipherDec, secretKey, chosenMessage.getSubject(), IV1);\n\t\tString body = decryptBody(des3CipherDec, secretKey, encBody, IV2);\n\t\t\n\t\t//validacija signature-a\n\t\tSignatureManager signatureManager = new SignatureManager();\n\t\tbyte[] data = body.getBytes();\n\t\t\n\t\tboolean isSignatureValid = signatureManager.verify(data, signature, getUserApublicKey());\n\t\tif (isSignatureValid) {\n\t\t\tSystem.out.println(\"Subject text: \" + new String(subject));\n\t\t\tSystem.out.println(\"Body text: \" + body);\n\t\t}else {\n\t\t\tSystem.out.println(\"Signature is not valid\");\n\t\t}\n\t\t\n\t\tdata = \"Ovo je neki izmenjen body\".getBytes();\n\t\tisSignatureValid = signatureManager.verify(data, signature, getUserApublicKey());\n\t\tSystem.out.println(\"Detektovanje neregularne poruke sa izmenjenim sadrzajem. Da li je sad potpis validan? \" + isSignatureValid );\n\t}", "title": "" }, { "docid": "401c3357fd3678aa1666c9cc8da77116", "score": "0.4944561", "text": "private MailUtil( )\n {\n }", "title": "" }, { "docid": "55e2586c3739d3332e3c0af43a17910d", "score": "0.4937359", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tyesThisIsTheMethodWeCreated();\n\t\tString ea []={emailadd};\n\t\tString message=\"hello\"\n\t\t\t\t+ name\n\t\t\t\t\n\t\t\t\t+ beginning \n\t\t\t\t\n\t\t\t\t+ stupidaction\n\t\t\t\n\t\t\t\t+ hatefulact;\n\t\t\t\n\t\t\n\t\tIntent emailIntent=new Intent(android.content.Intent.ACTION_SEND);\n\t\temailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, ea);\n\t\temailIntent.setType(\"italic/text\");\n\t\t\n\t\tstartActivity(emailIntent);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "94f9a1ead6229ba9a4f4edc1f5f3e9e4", "score": "0.49368906", "text": "private String createMsg(ArrayList<String> order, int marketID) {\n String[] info = new String[6];\n\n info[0] = order.get(1);\n info[1] = order.get(2);\n info[2] = order.get(3);\n info[3] = order.get(4);\n info[4] = order.get(0);\n info[5] = \"Accepted\";\n\n MarketFix fix = new MarketFix(info);\n return fix.constructFix(marketID);\n }", "title": "" }, { "docid": "edda8471971344aa5fedfd06e7b3b35f", "score": "0.49324703", "text": "String createEmail(String name, String lastName, String emailType ) {\n\t\t\tString email = name + lastName + \"@\" + emailType + \".com\";\n\t\t\treturn email;\n\t}", "title": "" }, { "docid": "c95b5169252a6df360010a29c753f843", "score": "0.4931739", "text": "public void enviarEmail () {\n System.out.println(\"*** Email enviado com sucesso! ***\");\n System.out.println(\"Titulo do email: \" + titulo);\n System.out.println(\"Remetente: \" + remetente);\n System.out.println(\"Destinatario: \" + destinatario);\n System.out.println(\"Mensagem: \" + mensagem);\n }", "title": "" }, { "docid": "0d816e606b47dea1f8cadca16158fe6a", "score": "0.49312428", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.mailpreview, container, false);\n subject=view.findViewById(R.id.subjectEditText);\n body= view.findViewById(R.id.bodyEditText);\n send=view.findViewById(R.id.sendButton);\n to=view.findViewById(R.id.toTextView);\n image=view.findViewById(R.id.imageViewContact);\n to.setText(String.format(\"%s %s\", to.getText(), values.getEmailContact()));\n send.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] {values.getEmailContact()});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT,subject.getText().toString());\n emailIntent.putExtra(Intent.EXTRA_TEXT, body.getText().toString()+ \" \\nI am currently here:\\nlat:\"+loc.getLatitude()+\" loc:\"+loc.getLongitude());\n Uri uri= CodeDecode.getImageUri(view.getContext(),bitmap);\n emailIntent.putExtra(Intent.EXTRA_STREAM, uri);\n startActivity(Intent.createChooser(emailIntent, \"Pick an email provider\"));\n }\n });\n return view;\n }", "title": "" }, { "docid": "65edfaad49234cd2b72f12907beb086f", "score": "0.49239028", "text": "public interface IEmailSender\n{\n void sendEmail(ExecutionStatus executionStatus, String subject, String body, String copyList, String recipientList);\n}", "title": "" }, { "docid": "7aaa5c25786558fde9fcf9f210fca82e", "score": "0.49195135", "text": "public void sendEmailVer2(String to, String subject, String context){\n SimpleMailMessage message = new SimpleMailMessage();\n message.setTo(to);\n //message.setFrom(\"java.tester@interia.pl\");\n message.setSubject(subject);\n message.setText(context);\n javaMailSender.send(message);\n }", "title": "" }, { "docid": "1f8f88552f474257282d4cdf79cd04e8", "score": "0.49137035", "text": "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public void mailInvitation(String email, LocalDateTime start) throws EmailFailureException {\n Response response = ClientBuilder\n .newClient()\n .target(url)\n .queryParam(\"to\", email)\n .request()\n .header(\"Authorization\", \"Basic \" + getToken())\n .buildPost(Entity.entity(\n \"You are invited to attend a meeting at \" + start.toString(),\n MediaType.TEXT_PLAIN_TYPE))\n .invoke();\n if (response.getStatus() != Response.Status.OK.getStatusCode()) {\n throw new EmailFailureException(\n response.getStatus(),\n email);\n }\n }", "title": "" }, { "docid": "28a3455849a544c59c615be87ae2a232", "score": "0.49032006", "text": "A recipient();", "title": "" }, { "docid": "9e31b01d6285fa0e0d9557f546c89461", "score": "0.49018198", "text": "public Message(String data, User user)\n\t{\n\t\tthis.data = data;\n\t\tuserFrom = user;\n\t\ttag=\"message\";\n\t\tuserTo = \"all\";\n\t}", "title": "" }, { "docid": "31eeff0aa07095ea372ccf7b6d9374df", "score": "0.49009192", "text": "private BodyPart texto() throws MessagingException{\n BodyPart texto=new MimeBodyPart();\n texto.setText(enlace);\n return texto;\n }", "title": "" }, { "docid": "be3eb3a5f4d17ff1d998b4e266f1a56d", "score": "0.48993632", "text": "public void prepare(MimeMessage mimeMessage) throws Exception {\n\n\t\t\t\tmimeMessage.setRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\t\t\t\tmimeMessage.setFrom(new InternetAddress(\"\")); //Enter you Email-Id here\n\t\t\t\tmimeMessage.setSubject(subject);\n\t\t\t\tmimeMessage.setText(msg);\n\n\t\t\t}", "title": "" }, { "docid": "624d9a3d1d57c8aa846fcfb9fbc39cc6", "score": "0.48919407", "text": "public interface EmailMessage {\n\n public String getText();\n\n}", "title": "" }, { "docid": "af93c29746b054956356e72d356667c3", "score": "0.48872724", "text": "private boolean sendMail(String to) {\r\n boolean verbose = true;\r\n Optional<Map<String, List<String>>> parts = createMail();\r\n try {\r\n if (parts.isPresent()) {\r\n\r\n //Extract parts from the map.\r\n final String FROM = parts.get().get(\"from\").get(0);\r\n final String PASSWORD = parts.get().get(\"password\").get(0);\r\n final String SUBJECT = parts.get().get(\"subject\").get(0);\r\n final String CONTENT = parts.get().get(\"content\").get(0);\r\n\r\n //create the Address array for the reciepents CC addresses, and fill it\r\n InternetAddress[] addressesCC = prepareMailsList(parts.get().get(\"cc\"));\r\n\r\n //create the Address array for the reciepents addresses, and fill it\r\n //InternetAddress[] addressesTo = prepareMailsList(getSelectedMails());\r\n //check for null addresses array.\r\n if (addressesCC == null) {\r\n Utils.showErrorDialog(\"Message Error...\", \"Error in creating CC address)!\");\r\n return false;\r\n }\r\n\r\n //Create the session for sending the message.\r\n Session session = getSession(FROM, PASSWORD);\r\n if (session != null) {\r\n //create the message object to be sent\r\n MimeMessage message = new MimeMessage(getSession(FROM, PASSWORD));\r\n //set the parts of the message\r\n message.setFrom(new InternetAddress(FROM));\r\n message.addRecipients(Message.RecipientType.TO, to);\r\n message.addRecipients(Message.RecipientType.CC, addressesCC);\r\n message.setSubject(SUBJECT);\r\n //Set the body of the message\r\n\r\n msgBodyPart.setText(CONTENT);\r\n\r\n Multipart multiPart = new MimeMultipart();\r\n multiPart.addBodyPart(msgBodyPart);\r\n //Add the attachments\r\n if (!attachments.isEmpty()) {\r\n attachments.stream().filter(File::exists).forEach((file) -> {\r\n msgBodyPart = new MimeBodyPart();\r\n try {\r\n DataSource dataSource = new FileDataSource(file);\r\n msgBodyPart.setDataHandler(new DataHandler(dataSource));\r\n msgBodyPart.setFileName(file.getName());\r\n multiPart.addBodyPart(msgBodyPart);\r\n } catch (MessagingException ex) {\r\n Logger.getLogger(PostagiLayoutController.class.getName()).log(Level.SEVERE, null, ex);\r\n Utils.showExceptionDialog(\"Message Error...\", \"Exception happen while creating the attachment!\", ex);\r\n }\r\n });\r\n\r\n }\r\n\r\n message.setContent(multiPart);\r\n\r\n //send the message\r\n //Transport.send(message);\r\n SMTPTransport t = (SMTPTransport) session.getTransport(\"smtps\");\r\n try {\r\n t.connect(Constants.HOST_DEFAULT_VALUE, FROM, PASSWORD);\r\n t.sendMessage(message, message.getAllRecipients());\r\n } finally {\r\n System.out.println(\"Response: \" + t.getLastServerResponse());\r\n t.close();\r\n }\r\n return true;\r\n\r\n } else {\r\n Utils.showErrorDialog(\"Session Error...\", \"Cannot open session to send mails!\");\r\n return false;\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n //Logger.getLogger(PostagiLayoutController.class.getName()).log(Level.SEVERE, null, ex);\r\n //Utils.showExceptionDialog(\"Message Failure...\", \"Exception happen while sending message!\", ex);\r\n\r\n /*\r\n\t * Handle SMTP-specific exceptions.\r\n */\r\n if (e instanceof SendFailedException) {\r\n MessagingException sfe = (MessagingException) e;\r\n if (sfe instanceof SMTPSendFailedException) {\r\n SMTPSendFailedException ssfe\r\n = (SMTPSendFailedException) sfe;\r\n System.out.println(\"SMTP SEND FAILED:\");\r\n if (verbose) {\r\n System.out.println(ssfe.toString());\r\n }\r\n System.out.println(\" Command: \" + ssfe.getCommand());\r\n System.out.println(\" RetCode: \" + ssfe.getReturnCode());\r\n System.out.println(\" Response: \" + ssfe.getMessage());\r\n } else if (verbose) {\r\n System.out.println(\"Send failed: \" + sfe.toString());\r\n }\r\n Exception ne;\r\n while ((ne = sfe.getNextException()) != null\r\n && ne instanceof MessagingException) {\r\n sfe = (MessagingException) ne;\r\n if (sfe instanceof SMTPAddressFailedException) {\r\n SMTPAddressFailedException ssfe\r\n = (SMTPAddressFailedException) sfe;\r\n System.out.println(\"ADDRESS FAILED:\");\r\n if (verbose) {\r\n System.out.println(ssfe.toString());\r\n }\r\n System.out.println(\" Address: \" + ssfe.getAddress());\r\n System.out.println(\" Command: \" + ssfe.getCommand());\r\n System.out.println(\" RetCode: \" + ssfe.getReturnCode());\r\n System.out.println(\" Response: \" + ssfe.getMessage());\r\n } else if (sfe instanceof SMTPAddressSucceededException) {\r\n System.out.println(\"ADDRESS SUCCEEDED:\");\r\n SMTPAddressSucceededException ssfe\r\n = (SMTPAddressSucceededException) sfe;\r\n if (verbose) {\r\n System.out.println(ssfe.toString());\r\n }\r\n System.out.println(\" Address: \" + ssfe.getAddress());\r\n System.out.println(\" Command: \" + ssfe.getCommand());\r\n System.out.println(\" RetCode: \" + ssfe.getReturnCode());\r\n System.out.println(\" Response: \" + ssfe.getMessage());\r\n }\r\n }\r\n } else {\r\n System.out.println(\"Got Exception: \" + e);\r\n if (verbose) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n return false;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "d473217102ad770fd4078069b8b44aef", "score": "0.4885737", "text": "private void generateCollectingMessage() {\r\n Messaggi m = new Messaggi(UPDATE_MSG, this, this, null, s.orologio.getCurrent_Time());\r\n m.isData = false;\r\n m.shifta(this.tempo_di_processamento);\r\n m.saliPilaProtocollare = false;\r\n\r\n s.insertMessage(m);\r\n }", "title": "" }, { "docid": "5801b89a0109e2d90bcd803342afa459", "score": "0.48841974", "text": "private String prepareOnHoldMailBody(StudyOnhold onhold, Date deadline,\r\n StudyProtocolQueryDTO spDTO, boolean reminderMail)\r\n throws PAException {\r\n String mailBody = \"\"; \r\n if (reminderMail) {\r\n mailBody = lookUpTableService\r\n .getPropertyValue(\"trial.onhold.reminder.body\");\r\n } else {\r\n mailBody = lookUpTableService\r\n .getPropertyValue(\"trial.onhold.email.body\");\r\n }\r\n mailBody = commonMailBodyReplacements(spDTO, mailBody);\r\n mailBody = mailBody.replace(HOLD_DATE,\r\n getFormatedDate(onhold.getOnholdDate()));\r\n mailBody = mailBody.replace(DEADLINE, getFormatedDate(deadline));\r\n mailBody = mailBody.replace(HOLD_REASON, StringUtils.isBlank(onhold\r\n .getOnholdReasonText()) ? onhold.getOnholdReasonCode()\r\n .getCode() : onhold.getOnholdReasonText());\r\n return mailBody;\r\n }", "title": "" }, { "docid": "1ef59daddec9c5ab03d907633c565ace", "score": "0.4880272", "text": "public static void confirmReservation(String email, Reservation res, User user){\n\t String to = email;\r\n\r\n\t // Sender's email ID needs to be mentioned\r\n\t String from = \"isa.mail.project@gmail.com\";\r\n\t final String username = \"isa.mail.project@gmail.com\";//change accordingly\r\n\t\t final String password = \"testiranje1\";//change accordingly \r\n\r\n\t // Assuming you are sending email from localhost\r\n\t String host = \"smtp.gmail.com\";\r\n\r\n\t // Get system properties\r\n\t Properties properties = new Properties();\r\n\t properties.put(\"mail.smtp.auth\", \"true\");\r\n\t properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t properties.put(\"mail.smtp.host\", host);\r\n\t properties.put(\"mail.smtp.port\", \"587\");\r\n\t Session.getInstance(properties, null);\r\n\t // Setup mail server\r\n\t \r\n\r\n\t // Get the default Session object.\r\n\t Session session = Session.getDefaultInstance(properties);\r\n\r\n\t try {\r\n\t // Create a default MimeMessage object.\r\n\t MimeMessage message = new MimeMessage(session);\r\n\r\n\t // Set From: header field of the header.\r\n\t message.setFrom(new InternetAddress(from));\r\n\r\n\t // Set To: header field of the header.\r\n\t message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\r\n\r\n\t // Set Subject: header field\r\n\t message.setSubject(\"Confirm reservation\");\r\n\r\n\t // Now set the actual message\r\n\t String link = \"You have been invited by your friend \"+user.getName()+\" \"+user.getSurname()+\" to watch \"+ res.getTerm().getProjection().getName()+\r\n\t \"<p>Reservation details:</p><p>Time: \"+res.getTerm().getTermDate()+\" \"+res.getTerm().getTermTime()+\"</p><p>Row: \"+res.getRow()+\r\n\t \"</p><p>Column: \"+res.getColumn()+\"</p><p>Hall: \"+res.getTerm().getHall().getName()+\"</p><p>Cinema/Theater: \"+\r\n\t res.getTerm().getHall().getCinemaTheater().getName()+ \"</p><p>Price: \" + res.getPrice() + \"</p><br><p>To confirm your reservation click <a href=\\\"http://localhost:9000/#/confirmReservation?id=\" + res.getId() \r\n\t + \"\\\">here.</a></p><br/><p>To cancel your reservation click <a href=\\\"http://localhost:9000/#/cancel?id=\" + res.getId() \r\n\t + \"\\\">here.</a></p>\";\r\n\t message.setText(link, \"UTF-8\", \"html\");\r\n//\t message.setText(\"<a href=\\\"http://localhost:9000/#/successfullRegistration\\\">ACTIVAR CUENTA</a>\");\r\n\r\n\t // Send message\r\n\t Transport.send(message, username, password);\r\n\t System.out.println(\"Sent message successfully....\");\r\n\t \r\n\t } catch (MessagingException mex) {\r\n\t mex.printStackTrace();\r\n\t }\r\n\t\t\r\n\t}", "title": "" }, { "docid": "019494e4294936199fc3af2b9b470244", "score": "0.487958", "text": "protected InviteUserToBlogMailMessage(String template, User inviter, User receiver, Blog blog) {\r\n super(template, receiver.getLanguageLocale(), receiver);\r\n this.blog = blog;\r\n this.localizedBlogTitle = blog.getTitle();\r\n this.inviter = inviter;\r\n }", "title": "" }, { "docid": "b9330922192313bd2f079140e8dd51cc", "score": "0.48785293", "text": "public String getInvitationId() {\r\n return invitationId;\r\n }", "title": "" }, { "docid": "dcb57e3c8653dd7544784793c1142852", "score": "0.487338", "text": "public static void sendEventByMail(Context context, CampaignModel event) {\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse(\"mailto:\"));\n\n String formattedDate = DateFormat.getDateInstance().format(event.getClosedDate());\n\n// String contentPlain = context.getResources().getString(R.string.transfert_mail_content_plain);\n// String formattedContentPlain = String.format(contentPlain, event.getTitle(), event.getDescription(), event.getEventPlace(), formattedDate);\n String contentHTML = context.getResources().getString(R.string.transfert_mail_content_html);\n String formattedContentHTML = String.format(contentHTML, event.getTitle(), event.getDescription(), event.getEventPlace(), formattedDate);\n\n String title = context.getResources().getString(R.string.transfert_mail_title);\n String formattedTitle = String.format(title, event.getTitle());\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, formattedTitle);\n\n// emailIntent.setType(\"text/html\");\n// emailIntent.setType(\"message/rfc822\");\n emailIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(formattedContentHTML));\n context.startActivity(Intent.createChooser(emailIntent, context.getResources().getString(R.string.transfert_mail_chooser)));\n }", "title": "" }, { "docid": "02c1e394e42d4a1c6e5278a81aa58ed3", "score": "0.48723936", "text": "public static void main(String[] args) throws IOException {\n \tGmail service = getGmailService();\n \t//String query = \"from:komal.arora@phocket.in\";\n \tString query = \"from:nishan@nsdl.co.in\";\n \tString userId = \"me\";\n \tListMessagesResponse response = service.users().messages().list(userId).setQ(query).execute();\n\n List<Message> messages = new ArrayList<Message>();\n while (response.getMessages() != null) {\n messages.addAll(response.getMessages());\n if (response.getNextPageToken() != null) {\n String pageToken = response.getNextPageToken();\n response = service.users().messages().list(userId).setQ(query)\n .setPageToken(pageToken).execute();\n } else {\n break;\n }\n }\n \n \n for (Message message : messages) {\n \t/*StringBuilder stringBuilder = new StringBuilder();\n \tMessage messagee = service.users().messages().get(\"me\",message.getId()).execute();\n \t//System.out.println(messagee.getId());\n \t//System.out.println(messagee.getSnippet());\n \tgetAttachmentwithmail(messagee.getPayload().getParts(),service,message.getId());\n getPlainTextFromMessageParts(messagee.getPayload().getParts(), stringBuilder);\n byte[] bodyBytes = Base64.decodeBase64(stringBuilder.toString());\n String text = new String(bodyBytes, \"UTF-8\");\n System.out.println(text);*/\n \tMessage messagee = service.users().messages().get(\"me\",message.getId()).execute();\n \tMailObjectPO mailObject = new MailObjectPO();\n \tif(messagee.getLabelIds().contains(\"CHAT\")) {\n \t\t\n \t}else {\n \t\tmailObject.setId(messagee.getId());\n \t\tmailObject.setSnippet(messagee.getSnippet());\n \t\tmailObject.setAttachmentstatus(false);\n \t\tList<MessagePart> messageparts = messagee.getPayload().getParts();\n \t\tList<String> filenames = new ArrayList<String>();\n \t\tfor(MessagePart messagePart:messageparts) {\n \t\t\tif (messagePart.getFilename() != null && messagePart.getFilename().length() > 0) {\n \t\t\t\tmailObject.setAttachmentstatus(true);\n \t\t\t\tfilenames.add(messagePart.getFilename());\n \t\t\t}\n \t\t}\n \t\tmailObject.setAttachmentname(filenames);\n \t\tList<MessagePartHeader> headers = messagee.getPayload().getHeaders();\n \t\tfor (MessagePartHeader headerparts : headers) {\n if (headerparts.getName().equals(\"From\")) {\n mailObject.setFrom(headerparts.getValue());\n }\n if (headerparts.getName().equals(\"To\")) {\n mailObject.setTo(headerparts.getValue());\n }\n if (headerparts.getName().equals(\"CC\")) {\n mailObject.setCc(headerparts.getValue());\n }\n if (headerparts.getName().equals(\"Date\")) {\n mailObject.setDate(headerparts.getValue());;\n }\n if (headerparts.getName().equals(\"Subject\")) {\n mailObject.setSubject(headerparts.getValue());;\n }\n if (headerparts.getName().equals(\"Delivered-To\")) {\n mailObject.setDeliveredto(headerparts.getValue());\n }\n }\n \t\t\n \t\tStringBuilder stringBuilder = new StringBuilder();\n \t\tgetPlainTextFromMessageParts(messagee.getPayload().getParts(), stringBuilder);\n \t\tbyte[] bodyBytes = Base64.decodeBase64(stringBuilder.toString());\n String text = new String(bodyBytes, \"UTF-8\");\n //System.out.println(text);\n mailObject.setBody(text);\n \t\t//System.out.println(messagee.getLabelIds());\n \t\t//System.out.println(messagee);\n \t//System.out.println(message.getId());\n \n \tif(mailObject.isAttachmentstatus()) {\n \t\tgetAttachmentwithmail(messageparts,service,message.getId());\n \t}\n \t}\n \t//if(messagee.getLabelIds().get(0)) \n \tSystem.out.println(mailObject.isAttachmentstatus());\n \tSystem.out.println(mailObject.getAttachmentname());\n \tSystem.out.println(mailObject.getSnippet());\n \t\n }\n \n }", "title": "" }, { "docid": "3b9508300e17bcb8b5b7b22cf2fdd92f", "score": "0.48708525", "text": "public Email(int ID, Date Time, User User, String UUID) {\r\n this.ID = ID;\r\n this.Time = Time;\r\n this.User = User;\r\n this.UUID = UUID;\r\n }", "title": "" }, { "docid": "40b8facabd2beec733d0dd424911909a", "score": "0.48489562", "text": "private void sendMail() {\n\n String recipientsList = text_to.getText().toString();\n //example1@gmail.com , example2@gmail.com\n String[] recipients = recipientsList.split(\",\");\n\n String subject = text_Subject.getText().toString();\n String message = text_Message.getText().toString();\n\n Intent intent = new Intent (Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_EMAIL,recipients);\n intent.putExtra(Intent.EXTRA_SUBJECT, subject);\n intent.putExtra(Intent.EXTRA_TEXT,message);\n\n //message type A Multi-Purpose Internet Mail Extension\n intent.setType(\"message/rfc882\");\n startActivity(Intent.createChooser(intent,\"Choose an Email client :\"));\n }", "title": "" }, { "docid": "ab647b12a762644370cc7fb58c893036", "score": "0.48469016", "text": "private InformationRecipient testBuildInformationRecipient()\n {\n InformationRecipient informationRecipient = new InformationRecipient();\n informationRecipient.setHealthCareProvider( CodeUtility.getCode( \"PROV\", \"2.16.840.1.113883.5.110\", \"Provider\", \"\"));\n informationRecipient.setLanguage( CodeUtility.getCode(\"\", \"2.16.840.1.113883.6.121\", \"\",\n \"ISO Tags For Human Languages\"));\n \n return informationRecipient;\n }", "title": "" }, { "docid": "53946b08355ee53ae4b2f2a07ebe5ba6", "score": "0.48457617", "text": "protected abstract void _emailMessage(Wrap<String> c);", "title": "" }, { "docid": "363d4974f783a372e7c15fa95f797dab", "score": "0.48419735", "text": "@Override\n public void sendSimpleMessageUsingTemplateAndAttachment(MailObject mailObject, String pathToAttachment, String name, String templateName, String template) {\n\n MimeMessage msg = emailSender.createMimeMessage();\n\n // true = multipart message\n MimeMessageHelper helper = null;\n try {\n helper = new MimeMessageHelper(msg, true, \"UTF-8\");\n helper.setTo(mailObject.getMailTo());\n helper.setCc(mailObject.getMailCc());\n //helper.setFrom(from);\n helper.setSubject(mailObject.getMailSubject());\n\n String content = mailContentBuilder.build(mailObject.getMailContent(), template);\n helper.setText(content, true);\n\n // default = text/plain\n //helper.setText(\"Check attachment for image!\");\n\n // true = text/html\n //helper.setText(\"<h1>Check attachment for image!</h1>\", true);\n helper.addAttachment(name, new ClassPathResource(pathToAttachment));\n\n emailSender.send(msg);\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n\n /*String message = mailObject.getText();\n\n MimeMessagePreparator messagePreparator = mimeMessage -> {\n MimeMessageHelper messageHelper = new MimeMessageHelper(mimeMessage);\n messageHelper.setFrom(\"whataboutme.tn@gmail.com\");\n messageHelper.setTo(mailObject.getTo());\n messageHelper.setSubject(mailObject.getSubject());\n\n String content = mailContentBuilder.build(message);\n messageHelper.setText(content, true);\n\n\n FileSystemResource file = new FileSystemResource(new File(pathToAttachment));\n messageHelper.addAttachment(\"Invoice\", file);\n };\n try {\n emailSender.send(messagePreparator);\n } catch (MailException e) {\n // runtime exception; compiler will not force you to handle it\n }*/\n\n }", "title": "" }, { "docid": "f2663c0d5d5298ed0f5dc59b798d67f9", "score": "0.4836392", "text": "public void createAppointment(Date start, Date end, String description, ArrayList<Person> invited, ArrayList<String> participants, Location location) {\n\n if (invited == null) {\n \n // TODO: Add restrictions to location\n Appointment appointment = new Appointment(me, start, end, description, participants, location );\n } else {\n Appointment appointment = new Meeting(me, start, end, description, invited, participants, location );\n \n // Give this appointment to everyone invited\n for (Person other : invited) {\n other.addAppointment(appointment);\n }\n \n }\n }", "title": "" }, { "docid": "d6b1e3c9b95b71ad1fc74ac91d2d241e", "score": "0.48335618", "text": "public EmailGUIPanel()\n {\n toPanel = new EmailFieldPanel(\"To:\", 30);\n ccPanel = new EmailFieldPanel(\"CC:\", 30);\n bccPanel = new EmailFieldPanel(\"BCC:\", 30);\n subjectPanel = new EmailFieldPanel(\"Subject:\", 30);\n messagePanel = new EmailFieldPanel(\"Message:\", 30);\n resultLabel = new JLabel (\"------\");\n \n sendButton = new JButton(\"Send\");\n sendButton.addActionListener(new SendListener());\n\n add(toPanel);\n add(ccPanel);\n add(bccPanel);\n add(subjectPanel);\n add(messagePanel);\n add(sendButton);\n add(resultLabel);\n\n setPreferredSize (new Dimension(500, 325));\n setBackground (Color.yellow);\n }", "title": "" }, { "docid": "8864a35dae4b7ee0f8a2966200222ab5", "score": "0.4831017", "text": "@Override\r\n public void enviarBonoRegalo(String emailDest, String name, String tienda) {\n \r\n Properties props = new Properties();\r\n Session session = Session.getDefaultInstance(props, null);\r\n\r\n String msgBody = \"\"; //TODO fix\r\n\r\n try {\r\n Message msg = new MimeMessage(session);\r\n msg.setFrom(new InternetAddress(\"Dapd007@gmail.com\", \"TMO\"));\r\n msg.addRecipient(Message.RecipientType.TO,\r\n new InternetAddress(emailDest, name));\r\n msg.setSubject(\"Bono regalo TuMejorOpcion\");\r\n msg.setText(msgBody);\r\n Transport.send(msg);\r\n\r\n } catch (Exception e) {\r\n // hue\r\n }\r\n \r\n }", "title": "" } ]
bf48d1b5e679b8f73ec5007c5deb1983
Name: freeMemory Goal: Run the garbage collector to get back some allocated memory
[ { "docid": "b74233602178a434f77a2fb9a9064e7d", "score": "0.8265763", "text": "public void freeMemory(){\n System.runFinalization();\n Runtime.getRuntime().gc();\n System.gc();\n }", "title": "" } ]
[ { "docid": "29c62956c7f20f018892c2cce7e0c6d8", "score": "0.7995443", "text": "public static void free_memory(){\n \n /* free memory for common object definitions */\n objects.free_object_data();\n \n /* free memory for status data */\n statusdata.free_status_data();\n \n /* free comment data */\n comments.free_comment_data();\n \n /* free downtime data */\n downtime.free_downtime_data();\n }", "title": "" }, { "docid": "b08cbec71270734b47c335919f3fa1d1", "score": "0.78044325", "text": "synchronized public native void freeMemory();", "title": "" }, { "docid": "eb302f5c4c077caf18df8673192130b3", "score": "0.7509099", "text": "public void do_deallocateMemory()\n {\n FrameTableEntry frame;\n TaskCB task;\n for (PageTableEntry page : pages) {\n task = page.getTask();\n \n // Clear frame\n frame = page.getFrame();\n if (frame != null) {\n frame.setPage(null);\n frame.setDirty(false);\n frame.setReferenced(false);\n \n \n // Unreserve frame reserved by current page's task\n if (task.equals(frame.getReserved())) {\n frame.setUnreserved(task);\n } \n }\n } \n }", "title": "" }, { "docid": "a7584b42973c9e6126e8022a391e9f83", "score": "0.7492269", "text": "public void freeMemory() {\n try {\n memoryReserve = new byte[0];\n this.worldRenderer.deleteAllDisplayLists();\n } catch (Throwable throwable1) {\n }\n\n try {\n System.gc();\n if (this.integratedServerIsRunning && this.integratedServer != null) {\n this.integratedServer.initiateShutdown(true);\n }\n\n this.unloadWorld(new DirtMessageScreen(new TranslationTextComponent(\"menu.savingLevel\")));\n } catch (Throwable throwable) {\n }\n\n System.gc();\n }", "title": "" }, { "docid": "cae3aff9efee5d41742b87f9cd8d51a2", "score": "0.74604255", "text": "static void runGC() {\n\t\tRuntime rt = Runtime.getRuntime();\n\t\trt.gc();\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Free Mem: \" + rt.freeMemory());\n\t\t}\n\t}", "title": "" }, { "docid": "d3706a706fe3d99185447d39c8ddfa9f", "score": "0.7434332", "text": "@Override\n\tpublic void freeMemory() throws MemoryManagerException {\n\t\tmemory=null;\n\t}", "title": "" }, { "docid": "1c0628b52ce625c7fdd9db4a132605cf", "score": "0.7391339", "text": "public void do_deallocateMemory() {\n /**\n * Get task of this page.\n */\n TaskCB task = this.getTask();\n\n /**\n * Iterate through frame table and clean up each of the frames. These may be\n * changed each iteration.\n */\n PageTableEntry page;\n FrameTableEntry frame;\n for (int i = 0; i < MMU.getFrameTableSize(); ++i) {\n /**\n * Get current frame & page.\n */\n frame = MMU.getFrame(i);\n page = MMU.getFrame(i).getPage();\n\n /**\n * If the current page isn't null, and task is this one, then clean it up.\n */\n if (page != null && page.getTask() == task) {\n frame.setPage(null);\n frame.setDirty(false);\n frame.setReferenced(false);\n\n /**\n * If it's reserved, then unreserve the task.\n */\n if (frame.getReserved() == task) {\n frame.setUnreserved(task);\n }\n }\n }\n }", "title": "" }, { "docid": "90b8a3a0cb007e391c9b1e16115684e9", "score": "0.7274406", "text": "public void releaseMemory() {\n // stop if the user is not allowed to execute this action\n if (!isAdminPasswordCorrect()) {\n return;\n }\n\n adminActions.releaseMem();\n facesMessages.addInfo(\"memtestRelease\", \"Released memory\");\n }", "title": "" }, { "docid": "b5448da589589775dbffdcbee1404d14", "score": "0.7245578", "text": "protected abstract void doDeallocate();", "title": "" }, { "docid": "86f05e25d141ff9f2fe3c527923f0a8b", "score": "0.71752113", "text": "public static void free_Memories() {\r\n \tsmClient.freeMemories();\r\n }", "title": "" }, { "docid": "ae0c46403c4317caa074dc7afe2fb3c7", "score": "0.7123544", "text": "private void cheapFreeHeapMemory() {\r\n long totalMemory = Runtime.getRuntime().totalMemory();\r\n long freeMemory = Runtime.getRuntime().freeMemory();\r\n long maxMemory = Runtime.getRuntime().maxMemory();\r\n final float perc_100 = 100.0f;\r\n float existMemoryPer = ((totalMemory - freeMemory) / (totalMemory * 1.0f)) * perc_100;\r\n\r\n if (existMemoryPer > FREE_HEAP_MAX_MEMORY) {\r\n log.info(\"free memory=\" + freeMemory + \" totalMemory=\" + totalMemory + \" maxMemory=\" + maxMemory);\r\n log.info(\"memory usage=\" + existMemoryPer + \" %\");\r\n if (existMemoryPer > FREE_HEAP_MAX_MEMORY_GC) {\r\n Runtime.getRuntime().gc();\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "ce83cba014b6f2b5585b93f2283a6dd3", "score": "0.70935625", "text": "public void free() {\n \n }", "title": "" }, { "docid": "f4c8f46452b38a58b42c4d8b44f1c173", "score": "0.6979976", "text": "public void releaseDeepMemoryStorage() {\r\n\t\tif (cba != null) {\r\n\t\t\tcba.dispose();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bd2d641c38c561149dec8c3f07ef8740", "score": "0.6975941", "text": "public void gc() {\n Runtime.getRuntime().gc();\n \n // Run garbage collector on the wrapped VM\n wrappedVM.gc();\n \n // TODO-RS: This should be happening on a background ReferenceHandler thread\n // as well.\n enqueuePhantomReferences(ThreadHolograph.currentThreadMirror());\n }", "title": "" }, { "docid": "86a0580b4274db84d9950e81e7e2c5e8", "score": "0.6961351", "text": "private void collectMemoryUsage() {\n final MemoryMXBean bean = ManagementFactory.getMemoryMXBean();\n this.heapMemoryUsage = new MemoryUsageInformation(bean.getHeapMemoryUsage());\n this.nonHeapMemoryUsage = new MemoryUsageInformation(bean.getNonHeapMemoryUsage());\n }", "title": "" }, { "docid": "4c43b6852bb2684affc91277864ed1af", "score": "0.69572407", "text": "public void clearMemory() {\n memory = 0.0;\n }", "title": "" }, { "docid": "cc837e1a0fb23a46903668b516618f3c", "score": "0.6921869", "text": "public void free() { \n //TODO: implementation\n }", "title": "" }, { "docid": "1d375381b8cf9a9f2dba8764b322d5b1", "score": "0.6911205", "text": "public static void gc() {\n cleaned = false;\n for (int i = 0; i < 1; i++) {\n System.gc();\n }\n }", "title": "" }, { "docid": "1b82a703aeadb8186b7d8801e3a55152", "score": "0.68653774", "text": "public void compactMemory()\n {\n blockList.compactBlocks(totalSize);\n processPanel.tryToAddWaitingProcessesToMemory();\n validateComponents();\n validateWaitingPanel();\n }", "title": "" }, { "docid": "f4f05a306034bcfa681a8a7cd983f1cf", "score": "0.67853034", "text": "@Override\n public void finishMemoryRevoke()\n {\n }", "title": "" }, { "docid": "78fa605b052673920fd562cb5438c938", "score": "0.6779165", "text": "public void collectGarbage() {\n\t\tfor (int i =_heap.size()-1; i >= _size; --i) {\n\t\t\t_heap.remove(i);\n\t\t}\n\t}", "title": "" }, { "docid": "554e9eb3cffae847e49d2d57ca6690b2", "score": "0.67743707", "text": "public static long getFreeMem() {\n\t\tdoGarbage();\n\t\treturn runtime.freeMemory();\n\t}", "title": "" }, { "docid": "861d37c1c8400435b561a02f25db292b", "score": "0.676986", "text": "public void gc() {\n\n // Perform garbage collection. Can be called anywhere providing all\n // collectable values are accessible from the top-level machine\n // structures.\n\n long startTime = System.currentTimeMillis();\n\n try {\n clearGCHeap();\n gcResetStats();\n gcSymbols();\n gcSpecials();\n gcForeign();\n gcStack();\n gcConstants();\n gcUndo();\n gc.gcComplete();\n swapHeap();\n gc.gcPopStack();\n if (!gc.isSilent()) gcDiagnostics(startTime);\n } catch (Throwable t) {\n error(GCERROR, t.getMessage());\n }\n }", "title": "" }, { "docid": "ad8fe7aa8d011a43fe01cd1740e06429", "score": "0.6742625", "text": "protected abstract void gc();", "title": "" }, { "docid": "771779fc1bbaac71d8f311cb778abcca", "score": "0.67148775", "text": "public void memoryAllocation() {\r\n\r\n if (mallocFrame != null) {\r\n mallocFrame.dispose();\r\n }\r\n\r\n mallocFrame = new JDialogMemoryAllocation();\r\n }", "title": "" }, { "docid": "12058340d733eeca780de1f30e497cf8", "score": "0.6707003", "text": "public void free() \n\t{\n\t\tdata.clear();\n\t\tdata=null;\n\t}", "title": "" }, { "docid": "0d1cbb7405b56e05e50c32cdbf02e399", "score": "0.6706579", "text": "public void gcDiagnostics(long startTime) {\n int freedup = gcFreePtr - freePtr;\n long endTime = System.currentTimeMillis();\n long time = endTime - startTime;\n int percentFreed = (int) (((float) freedup / (float) gcFreePtr) * 100);\n int availableMB = (heapSize - freePtr) * 4 / (1024 * 1024);\n int usedMB = freePtr * 4 / (1024 * 1024);\n System.out.print(\"[GC\");\n // System.out.println(\" before = \" + gcFreePtr + \" words,\");\n // System.out.print(\" after = \" + freePtr + \" words,\");\n System.out.print(\" \" + percentFreed + \"% collected in \" + time + \" ms,\");\n System.out.print(\" \" + usedMB + \"MB used,\");\n System.out.println(\" \" + availableMB + \"MB available.]\");\n }", "title": "" }, { "docid": "3bc1fdbe512173d5d7c7b8a190ef3740", "score": "0.66698164", "text": "public void growMemory() {\n\t\tmemoryManager.grow_memory();\n\t}", "title": "" }, { "docid": "93cfc3b3af6f890dc8f3c264a5f6a204", "score": "0.6652548", "text": "@Override\n void free();", "title": "" }, { "docid": "9d6bb0f79d48b70be9ceb6a61af77e35", "score": "0.6648017", "text": "public static long freeMemory() {\n\t\treturn Runtime.getRuntime().freeMemory();\n\t}", "title": "" }, { "docid": "dbed82c1a6703f07300a0be5a2c4aed1", "score": "0.66297853", "text": "public void gcResetStats() {\n\n memory.setTotalUsed(freePtr);\n memory = memory.newRecord();\n gcTOS = valueStack.getTOS();\n }", "title": "" }, { "docid": "82537e475822cde6cbba360040392315", "score": "0.66037554", "text": "private static long getFreeInternalMemory()\n\t{\n\t\treturn getFreeMemory(Environment.getDataDirectory());\n\t}", "title": "" }, { "docid": "d65e19a49e774f8aee33b357acd59df5", "score": "0.6570902", "text": "public abstract void dealloc();", "title": "" }, { "docid": "1b75216f87a540e6302f17bdb20d57db", "score": "0.65652996", "text": "public void releaseMemory() throws Exception{\n\t\tmemory.setStackPointer(popStack);\n\t}", "title": "" }, { "docid": "a267b7f9356d565fd54277bfb04806c0", "score": "0.6538861", "text": "@After\n public void tearDown() throws Exception {\n MemoryAllocatorImpl.freeOffHeapMemory();\n System.clearProperty(GeodeGlossary.GEMFIRE_PREFIX + \"validateOffHeapWithFill\");\n }", "title": "" }, { "docid": "2313a399d228b539d044c62039e8b963", "score": "0.6528034", "text": "private void reportMemoryStats(final String stage) {\n System.gc();\n final Runtime runtime = Runtime.getRuntime();\n log.info(stage + \" freeMemory: \" + runtime.freeMemory() + \"; totalMemory: \" + runtime.totalMemory() +\n \"; maxMemory: \" + runtime.maxMemory());\n }", "title": "" }, { "docid": "8b47e7e81c1164275215e58f9aa35ba5", "score": "0.6506765", "text": "public void free() {\n m_BaseFragment = null;\n m_Losses.clear();\n m_basePeak = null;\n }", "title": "" }, { "docid": "c1e43bd104af3763eeff8d5bd19e5177", "score": "0.6484558", "text": "public void freeResources() {\n\t\t// terminate the background scaling thread\n\t\tpageScaler.disable();\n\t\tpageScaler.removeScalingListener(null);\n\n\t\tif (pageSource != null) {\n\t\t\tpageSource.freeResources();\n\t\t}\n\n\t\tfor (Page page : bufferedPages) {\n\t\t\tpage.freeResources();\n\t\t}\n\t}", "title": "" }, { "docid": "c6cd840e9259d7036bf6865d9efb0b5f", "score": "0.64723605", "text": "public void forceGC (long bait_size_in_bytes);", "title": "" }, { "docid": "c53d353ef93163c04101677078d803e3", "score": "0.6453693", "text": "public static void suggestGC() {\n\t\truntime.gc();\n\t}", "title": "" }, { "docid": "8677d297a49135b32f539c8dac16a83d", "score": "0.64513177", "text": "public void free() {\n\t\tm_device.close();\n\t}", "title": "" }, { "docid": "ede0d3acdeda98345ca1da40be79495c", "score": "0.64074296", "text": "public void updateMemoryUsage() {\r\n // System.out.println(Runtime.getRuntime().totalMemory());\r\n // System.out.println(Runtime.getRuntime().freeMemory());\r\n\r\n // final long memoryInUse = ( (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) /\r\n // 1048576);\r\n final long memoryInUse = MipavUtil.getUsedHeapMemory() / 1048576;\r\n final long totalMemory = MipavUtil.getMaxHeapMemory() / 1048576;\r\n\r\n if ( ((double) memoryInUse / (double) totalMemory) > 0.8) {\r\n System.gc();\r\n memoryUsageLabel.setForeground(Color.red);\r\n } else {\r\n memoryUsageLabel.setForeground(Color.black);\r\n }\r\n\r\n memoryUsageLabel.setText(\"Memory: \" + memoryInUse + \"M / \" + totalMemory + \"M\");\r\n }", "title": "" }, { "docid": "a29aa29f9f13254ed0b774435d818013", "score": "0.6397328", "text": "public final void deallocate()\r\n/* 1248: */ {\r\n/* 1249:1251 */ this.wrapped.deallocate();\r\n/* 1250: */ }", "title": "" }, { "docid": "88ce1343985982cc9407f7f7d10818f7", "score": "0.6385611", "text": "@Override\n public void trimMemory() {\n reset();\n }", "title": "" }, { "docid": "687c462453cfb937358372a0f8b57f8d", "score": "0.6365452", "text": "private static long getFreeExternalMemory()\n\t{\n\t\treturn getFreeMemory(Environment.getExternalStorageDirectory());\n\t}", "title": "" }, { "docid": "62b22782d34cbac564db7ed74e18ca49", "score": "0.6320392", "text": "public static void getMemoryUsage() {\n // Get the Java runtime\n Runtime runtime = Runtime.getRuntime();\n // Run the garbage collector\n runtime.gc();\n // Calculate the used memory\n long memory = runtime.totalMemory() - runtime.freeMemory();\n System.out.println(\"Used memory is bytes: \" + memory);\n System.out.println(\"Used memory is megabytes: \"\n + bytesToMegabytes(memory));\n }", "title": "" }, { "docid": "70757b3db6ac65dcd0a139f741d76053", "score": "0.6317564", "text": "public static void cleanMemoryCache() {\n ImageLoader.getInstance().getMemoryCache().clear();\n }", "title": "" }, { "docid": "fb8b8889a56191d55c4bc8876e373633", "score": "0.63169676", "text": "public void clearMemory() {\n clearShips();\n clearBoard();\n }", "title": "" }, { "docid": "ab98f6019b69581090bbaad1da377ca7", "score": "0.63078713", "text": "private void freeSomeCPU() {\n \t\ttry {\n \t\t\t// sleep 0 is enough - we do not slow the execution, but\n \t\t\t// we give some breath to core when switching context\n \t\t\t// and maybe other processes can grab some time\n \t\t\tThread.sleep(0);\n \t\t} catch (InterruptedException e) {\n \t\t\t// FIXME - maybe some additional handling?\n \t\t}\n \t}", "title": "" }, { "docid": "fea7f37c830fa32f543f65d2a16abdbd", "score": "0.6274865", "text": "protected void doReset()\n\t{\n\t\tif (!m_cachers.isEmpty())\n\t\t{\n\t\t\t// tell all our memory users to reset their memory use\n\t\t\tIterator it = m_cachers.iterator();\n\t\t\twhile (it.hasNext())\n\t\t\t{\n\t\t\t\tCacher cacher = (Cacher) it.next();\n\t\t\t\tcacher.resetCache();\n\t\t\t}\n\n\t\t\t// run the garbage collector now\n\t\t\tSystem.runFinalization();\n\t\t\tSystem.gc();\n\t\t}\n\n\t\tM_log.info(\"doReset(): Low Memory Recovery to: \" + Runtime.getRuntime().freeMemory());\n\n\t}", "title": "" }, { "docid": "2136f93431efef162c08ebee288e05f5", "score": "0.6274286", "text": "public static void main(String[] args) {\n showFreeMemory(\"Initial\");\n\n // Construct many objects and show free memory\n for(int i = 0; i < objects.length; i++) {\n objects[i] = new Object();\n }\n showFreeMemory(\"After construct many objects\");\n\n // Garbage collect and show free memory\n for(int i = 0; i < objects.length; i++) {\n objects[i] = null;\n }\n rt.gc();\n showFreeMemory(\"After Garbage Collection\");\n }", "title": "" }, { "docid": "c817315b2b4b7c157adf0594589a43e3", "score": "0.627401", "text": "public String checkMemory(boolean doGc)\n\t{\n\t\tRuntime runtime = Runtime.getRuntime();\n\t\tif(doGc)\n\t\t{\n\t\t\t// Run the garbage collector\n\t\t\truntime.gc();\n\t\t}\n\t\t// Calculate the used memory\n\t\tlong memory = runtime.totalMemory() - runtime.freeMemory();\n\t\tString retVal = \"Used memory: \" + bytesToMegabytes(memory) + \"Mb\";\n\t\treturn retVal;\n\t}", "title": "" }, { "docid": "cdf731b3969617975ac81ca22782a645", "score": "0.6239403", "text": "public void kill() {\r\n points = null;\r\n normale = null;\r\n deplace = null;\r\n lambda = null;\r\n etat = null;\r\n System.gc(); //runs finalization\r\n }", "title": "" }, { "docid": "fb3030d84be7d72c08cfc36795861c4b", "score": "0.62180287", "text": "private static long calculateMemoryUsage() {\n System.gc(); System.gc(); System.gc(); System.gc();\n System.gc(); System.gc(); System.gc(); System.gc();\n System.gc(); System.gc(); System.gc(); System.gc();\n System.gc(); System.gc(); System.gc(); System.gc();\n long bytes = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n return bytes / (1024);\n }", "title": "" }, { "docid": "7a7239f167fb3e5e47beec8c4b37e15b", "score": "0.62107235", "text": "public void printMemory() {\n\t}", "title": "" }, { "docid": "04931a768c76d250280ceb085952182c", "score": "0.6193112", "text": "private static long getFreeSystemMemory()\n\t{\n\t\treturn getFreeMemory(Environment.getRootDirectory());\n\t}", "title": "" }, { "docid": "1263c3f7c954bf442e9352043cf635c6", "score": "0.6192867", "text": "Verifier memoryCost(int memoryCost);", "title": "" }, { "docid": "ffcd5d86a04b382bf3cd52b2c889337a", "score": "0.6153476", "text": "void disposeScratchGC()\n {\n if (scratchGC != null)\n {\n scratchGC.dispose();\n scratchGC = null;\n }\n }", "title": "" }, { "docid": "e17444415e00d5883c8a6b9b4e22e7b4", "score": "0.6150809", "text": "public synchronized void freeBurgerMachine() {\n\t\tburgerMachineFree = true;\n\t}", "title": "" }, { "docid": "b51236cb92a7acbb733b70600b3afc75", "score": "0.6144971", "text": "@AfterEach\n public void destroySimulationAndRecycleMemory()\n {\n if (simulationTestHelper != null)\n {\n simulationTestHelper.finishTest();\n simulationTestHelper = null;\n }\n\n MemoryTools.printCurrentMemoryUsageAndReturnUsedMemoryInMB(getClass().getSimpleName() + \" after test.\");\n }", "title": "" }, { "docid": "b51236cb92a7acbb733b70600b3afc75", "score": "0.6144971", "text": "@AfterEach\n public void destroySimulationAndRecycleMemory()\n {\n if (simulationTestHelper != null)\n {\n simulationTestHelper.finishTest();\n simulationTestHelper = null;\n }\n\n MemoryTools.printCurrentMemoryUsageAndReturnUsedMemoryInMB(getClass().getSimpleName() + \" after test.\");\n }", "title": "" }, { "docid": "fc1359da165de09c3a8cb7f022155d14", "score": "0.6136493", "text": "public static void gc () {\n ArrayList<String> toBeRemoved = new ArrayList<String>();\n\n Set <Map.Entry<String,WeakReference<CoordAction>>> actionsSet = CoordAction.actions.entrySet();\n for (Map.Entry<String,WeakReference<CoordAction>> entry : actionsSet) {\n WeakReference<CoordAction> ref = (WeakReference<CoordAction>) entry.getValue();\n if ((ref == null) || (ref.get() == null)) {\n // free entry\n toBeRemoved.add(entry.getKey());\n }\n } \n\n for (String id : toBeRemoved) {\n CoordAction.actions.remove(id);\n }\n Runtime.getRuntime().gc();\n }", "title": "" }, { "docid": "98921975bbe482d8365bae5ce3acc5b7", "score": "0.608945", "text": "private boolean isMemoryFreeAvailabe ( ) {\n\n\t\treturn getCachedMemoryMetrics( ).path( FREE_AVAILABLE ).asBoolean( ) ;\n\n\t}", "title": "" }, { "docid": "95f5d507ab14387a0e24d9d59acc4be4", "score": "0.6089114", "text": "public void resetMemory()\n {\n blockList.removeAllBlocks();\n blockList.addBlock(new Block(0, totalSize, true));\n validateComponents();\n }", "title": "" }, { "docid": "c3d04ee47b7d7d0f409b6c6792198796", "score": "0.60825545", "text": "private void gcCache(){\n if(cache.size() > cacheMax){\n Main.log(\"Garbage collecting cache\");\n int r = (new Random()).nextInt(256);\n String[] keys = cache.keySet().toArray(new String[0]);\n for(int x = r; x < keys.length; x += r){\n cache.remove(keys[x]);\n }\n Main.log(\"Cache garbage collection complete\");\n }\n }", "title": "" }, { "docid": "04e206d873746efe861bd58cbd96a53c", "score": "0.60759133", "text": "public synchronized void deallocate() {\n\t\tchkClosed(false);\n\n\t\tloopAfterEOM = false;\n\n\t\tif (state < PREFETCHED) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (state == STARTED) {\n\t\t\ttry {\n\t\t\t\tstop();\n\t\t\t} catch (MediaException e) {\n\t\t\t\t// Not much we can do here.\n\t\t\t}\n\t\t}\n\n\t\tdoDeallocate();\n\t\tstate = REALIZED;\n\t}", "title": "" }, { "docid": "02619a8c909361586b99869402b42e4d", "score": "0.6075401", "text": "@AfterEach\n public void destroySimulationAndRecycleMemory()\n {\n if (behaviorTestHelper != null)\n {\n behaviorTestHelper.finishTest();\n behaviorTestHelper = null;\n }\n\n MemoryTools.printCurrentMemoryUsageAndReturnUsedMemoryInMB(getClass().getSimpleName() + \" after test.\");\n }", "title": "" }, { "docid": "a0766ba37bc1f341ac408b8f64327eec", "score": "0.6075008", "text": "void setMemoryStopped(long usedHeap);", "title": "" }, { "docid": "10ab36bd7404d42811dfc6f23d618a3c", "score": "0.6074852", "text": "private synchronized void freeIndexInformation() throws IOException {\n while (totalMemoryUsed.get() > totalMemoryAllowed) {\n if(queue.isEmpty()) {\n break;\n }\n String mapId = queue.remove();\n removeMapInternal(mapId);\n }\n }", "title": "" }, { "docid": "0f03e32f44f182a57991d3e0c8ba7be6", "score": "0.60710347", "text": "public void free(RegularFile file) {\n/* 141 */ free(file, file.blockCount());\n/* */ }", "title": "" }, { "docid": "6a814ecfd3b481a29fcf3ad322840a9a", "score": "0.6066967", "text": "public void free()\n\t{\n\t\tclip = null;\n\t\tfileName = null;\n\t}", "title": "" }, { "docid": "20d65e235a7fa6b5b3fa9f208f36ee8d", "score": "0.6054128", "text": "public void _sysmgm_memory(CommandContext ci) throws Throwable\n {\n Runtime rt = Runtime.getRuntime();\n\n long committed = 0;\n long peak = 0;\n List<MemoryPoolMXBean> beans = ManagementFactory.getMemoryPoolMXBeans();\n for (MemoryPoolMXBean bean : beans)\n {\n committed += bean.getUsage().getCommitted();\n peak += bean.getPeakUsage().getCommitted();\n }\n\n ci.tableHeader(\"Free\", \"Current\", \"Max\", \"Committed\", \"Peak\", \"Processors\");\n ci.tableRow(Long.toString(rt.freeMemory()), Long.toString(rt.totalMemory()), Long.toString(rt.maxMemory()), Long.toString(committed), Long.toString(peak), Integer.toString(rt.availableProcessors()));\n ci.printTable();\n }", "title": "" }, { "docid": "7d71716b7b94a48667278e55d3d50777", "score": "0.60461146", "text": "@TearDown\n public void tearDown() { HeapProfiler.keepReference(cache); }", "title": "" }, { "docid": "33497a9824823c030ced96bd7259979d", "score": "0.6038183", "text": "private long getFreeToAllocateMemory() {\n\t\tlong totalMemory = RUNTIME.totalMemory();\n\n\t\t// amount of memory free in the currently allocated JVM memory\n\t\tlong freeMemory = RUNTIME.freeMemory();\n\n\t\t// estimated memory used\n\t\tlong used = totalMemory - freeMemory;\n\n\t\t// amount of memory the JVM can still allocate from the OS (upper boundary is the max heap)\n\t\treturn MAX_MEMORY - used;\n\t}", "title": "" }, { "docid": "c42aec4bae26e589ae4d7c33fc97d756", "score": "0.6029918", "text": "private void clearMem() {\r\n\t\tArrays.fill(this.membytes, MEM_ZERO);\r\n\t}", "title": "" }, { "docid": "bba8c462dd5f760ef5552b30449a8cce", "score": "0.60097414", "text": "public void collectGarbage() {\n\t\tDispatchQueue.getGlobalDefaultPriorityQueue().dispatchAsync( new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tREMOTE_PROXY.collectGarbage();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "07762e8adf522a359e0702806d218f05", "score": "0.60005015", "text": "public void collectGarbage() {\r\n\t\tfinal long now = System.currentTimeMillis();\r\n\t\tfinal Iterator<FMap> it = this.fMaps.values().iterator();\r\n\r\n\t\twhile ( it.hasNext() )\r\n\t\t{\r\n\t\t\tfinal FMap map = it.next();\r\n\r\n\t\t\tif ( now - map.getLastUsed() - this.GARBAGE_COLLECT_TIME * 1000 >= 0 )\r\n\t\t\t{\r\n\t\t\t\tmap.dump();\r\n\t\t\t\tit.remove();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9308d847d0313ccac1be75edf0cd14d4", "score": "0.5973744", "text": "public Double recallMemory() {\n return memory;\n }", "title": "" }, { "docid": "a7a61f4958689447b981890c94781333", "score": "0.59494644", "text": "public void Free() {\n\t\tif (bmp != null) { bmp.recycle(); }\n\t\tbmp = null;\n\t\tsetImageBitmap(null);\n\t\tsetImageResource(0); //android.R.color.transparent;\n\t\tonClickListener = null;\n\t\tsetOnClickListener(null);\n\t\tmMatrix = null;\n\t\tLAMWCommon.free();\t\t\n\t}", "title": "" }, { "docid": "c8d3ce44aaf90d4931041c2c04099954", "score": "0.59477717", "text": "@Test\n public void checkDealloc() throws OutOfSpaceException, BadFileNameException {\n FileSystem fileSystem = new FileSystem(spaceSize);\n int fileSize = 1;\n String[] path = {\"root\", \"fileName\"};\n fileSystem.file(path, 1);\n\n // deallocate\n Leaf leaf = fileSystem.FileExists(path);\n space.Alloc(fileSize, leaf);\n space.Dealloc(leaf);\n assertEquals(space.countFreeSpace(), spaceSize);\n }", "title": "" }, { "docid": "90647c304ec71949b592b65c03b9aafe", "score": "0.59361005", "text": "public static void main(String[] args) {\n\n Map<Data, String> map = new WeakHashMap<>();\n Data data = new Data();\n map.put(data, \"info\");\n\n data = null;\n System.gc();\n\n for (int i = 1; i< 10_000; i++){\n if(map.isEmpty()) {\n System.out.println(\"Empty map \" + i);\n break;\n }\n }\n\n }", "title": "" }, { "docid": "c68f878427808cc6fb23ee12e58956c1", "score": "0.5935084", "text": "public void free() {\n\t\tthis.busy = false;\n\t}", "title": "" }, { "docid": "43ae51ab56728649f09cc06104119b31", "score": "0.5918791", "text": "public long getFreeMem() {\n return freeMem;\n }", "title": "" }, { "docid": "60929979446f46f172f514898939bf8b", "score": "0.59137714", "text": "public void internal_gc() {\n if (_childController != null) {\n for (int i = 0; i < _childController.size(); i++) {\n ControllerBase child = _childController.get(i);\n child.internal_gc();\n }\n _childController = null;\n }\n\n gc();\n }", "title": "" }, { "docid": "391b41ea14d4be96b74ec95f6dc985c1", "score": "0.5911169", "text": "public boolean free(Object obj);", "title": "" }, { "docid": "11436190290a0e04e84c7ac33febe8d6", "score": "0.5902932", "text": "private static void runGC () { for (int r = 0; r < 4; ++ r) _runGC (); }", "title": "" }, { "docid": "b650a9d5d6287c60ad5ff85018b173b3", "score": "0.5891603", "text": "@WorkerThread\n public static void tryForceGC() {\n Runtime.getRuntime().gc();\n enqueueReferences();\n System.runFinalization();\n }", "title": "" }, { "docid": "0ae51b98ec2300f1f378eaa8d3c851d3", "score": "0.5872793", "text": "private static void cleanup() {\n// System.out.println(\"cleanup (explicit Full GC) ...\");\n // Perform GC:\n System.gc();\n\n // pause for 500 ms :\n try {\n Thread.sleep(500l);\n } catch (InterruptedException ie) {\n System.out.println(\"thread interrupted\");\n ie.printStackTrace();\n }\n// System.out.println(\"cleanup done.\");\n }", "title": "" }, { "docid": "6e91e54c4a9c58d67bc2278604e03e96", "score": "0.5869775", "text": "public static void release() {\n\t\tif (keptWinRegion!=null) {\n\t\t\tkeptWinRegion.free();\n\t\t}\n\t\tif (keptTrans!=null) {\n\t\t\tkeptTrans.free();\n\t\t}\n\t\tif (keptIni!=null) {\n\t\t\tkeptIni.free();\n\t\t}\n\t\tkeptWinRegion = null;\n\t\tkeptTrans = null;\n\t\tkeptIni = null;\n\t\tjustBehaviors = null;\n\t\ttransBehaviors = null;\n\t\tiniBehaviors = null;\n\t\tkeepBDDs = false;\n\t}", "title": "" }, { "docid": "509f855560d3f9298b9b618100f2b304", "score": "0.5868991", "text": "void setMemoryStarted(long usedHeap);", "title": "" }, { "docid": "5e7bf903fe7d1863329dbaa4c5932d8c", "score": "0.5868887", "text": "public void finalize() {\r\n delete();\r\n }", "title": "" }, { "docid": "5e7bf903fe7d1863329dbaa4c5932d8c", "score": "0.5868887", "text": "public void finalize() {\r\n delete();\r\n }", "title": "" }, { "docid": "b3496a36e90758e30c0391a39983e235", "score": "0.5868748", "text": "public void finalize() {\r\n delete();\r\n }", "title": "" }, { "docid": "6db63964180f4bb317a1965e80f44d1e", "score": "0.5859236", "text": "public long alloc(int memorySize) {\n int usedMemoryByAllocate = 0;\n int memoryToAllocate = memorySize;\n long previousChunkAddr = -1;\n long firstChunk = -1;\n int nbAllocateChunk = 0;\n // Search for the bin with just size lesser\n while (memoryToAllocate > 0) {\n Map.Entry<Integer, Bins> usedBin;\n // Search upper and lesser\n Map.Entry<Integer, Bins> lesserBin = binsBySize.floorEntry(memoryToAllocate);\n Map.Entry<Integer, Bins> upperBin = binsBySize.ceilingEntry(memoryToAllocate);\n // Fill factor determine when stop cutting in two memory to allocate\n if (lesserBin == null || (((double) memorySize / (double) lesserBin.getKey()) > MIN_FILL_FACTOR && upperBin != null)) {\n // take upper\n usedBin = upperBin;\n } else {\n usedBin = lesserBin;\n }\n // Allocate one chunk\n long chunkAddr = usedBin.getValue().allocateOneChunk();\n \n // If no chunk available\n // Try to take a inferior chunk if not available superior chunk and two inf chunk two sup chunk etc...\n if (chunkAddr < 0) {\n Map.Entry<Integer, Bins> currentBin = usedBin;\n // take inf\n currentBin = binsBySize.lowerEntry(currentBin.getKey());\n if (currentBin != null) {\n chunkAddr = currentBin.getValue().allocateOneChunk();\n }\n }\n \n // Here try superior chunk\n if (chunkAddr < 0) {\n Map.Entry<Integer, Bins> currentBin = usedBin;\n // take inf\n currentBin = binsBySize.higherEntry(currentBin.getKey());\n if (currentBin != null) {\n chunkAddr = currentBin.getValue().allocateOneChunk();\n }\n }\n \n \n // update next chunk of previous element\n if (previousChunkAddr != -1) {\n setNextChunk(previousChunkAddr, chunkAddr);\n } else {\n // First chunk\n firstChunk = chunkAddr;\n }\n previousChunkAddr = chunkAddr;\n // update memory to allocate\n memoryToAllocate -= usedBin.getKey();\n // update used memory\n usedMemoryByAllocate += usedBin.getValue().finalChunkSize;\n \n nbAllocateChunk++;\n }\n // Set no next chunk to last chunk\n setNextChunk(previousChunkAddr, -1);\n this.usedMemory.getAndAdd(usedMemoryByAllocate);\n this.nbAllocation.getAndAdd(nbAllocateChunk);\n return firstChunk;\n }", "title": "" }, { "docid": "ba9b432a0cc1d72a4b03bbec22e02eb8", "score": "0.5853289", "text": "static\n\tint check_mem_leak(String where)\n\t{\n\t return 0;\n\t}", "title": "" }, { "docid": "372e470f8fc8f6afbe5b1f2dc488d3e3", "score": "0.5851781", "text": "protected void collectMemory(final StatsCollector sc) {\n\t\ttry {\n\t\t\tsc.addExtraTag(\"group\", \"memory\");\n\t\t\tsc.record(\"PendingFinalizers\", memMXBean.getObjectPendingFinalizationCount());\n\t\t\tMemoryUsage heap = memMXBean.getHeapMemoryUsage();\n\t\t\tMemoryUsage nonHeap = memMXBean.getNonHeapMemoryUsage();\n\t\t\tsc.addExtraTag(\"type\", \"heap\");\n\t\t\t\n\t\t\tsc.record(\"Committed\", heap.getCommitted());\n\t\t\tsc.record(\"Max\", heap.getMax());\n\t\t\tsc.record(\"Init\", heap.getInit());\n\t\t\tsc.record(\"Used\", heap.getUsed());\n\t\t\tsc.record(\"PercentUsed\", calcPercent(heap.getUsed(), heap.getCommitted()));\n\t\t\tsc.record(\"PercentCapacity\", calcPercent(heap.getUsed(), heap.getMax()));\n\t\t\t\n\t\t\tsc.clearExtraTag(\"type\");\n\t\t\tsc.addExtraTag(\"type\", \"nonheap\");\n\n\t\t\tsc.record(\"Committed\", nonHeap.getCommitted());\n\t\t\tsc.record(\"Max\", nonHeap.getMax());\n\t\t\tsc.record(\"Init\", nonHeap.getInit());\n\t\t\tsc.record(\"Used\", nonHeap.getUsed());\n\t\t\tsc.record(\"PercentUsed\", calcPercent(nonHeap.getUsed(), nonHeap.getCommitted()));\n\t\t\tsc.record(\"PercentCapacity\", calcPercent(nonHeap.getUsed(), nonHeap.getMax()));\n\t\t\t\n\t\t} finally {\n\t\t\tsc.clearExtraTag(\"group\");\n\t\t\tsc.clearExtraTag(\"type\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c67058993e8b2856acb3e63e6da0e7c5", "score": "0.5841586", "text": "void deallocateProc(Proc proc, String why);", "title": "" }, { "docid": "2c4d9d3a4ff47048f5fe436a1fa93074", "score": "0.58284765", "text": "public static void free_lifo_memory(){\n if ( lifo_list != null )\n lifo_list.clear();\n }", "title": "" }, { "docid": "61fd2f090ad06da3d9d73372c65d2b4b", "score": "0.58197653", "text": "public MemoryInformation() {\n collectMemoryUsage();\n }", "title": "" }, { "docid": "601bf39a5c1259316ca7904fdb0f6b0e", "score": "0.58189756", "text": "public static void main(String[] args) {\n long maxMem = Runtime.getRuntime().maxMemory();\n Object[] holder = new Object[(int)maxMem / 16];\n int count = 0;\n try {\n while (true) {\n holder[count++] = new Object[1025]; // A bit over one page.\n }\n } catch (OutOfMemoryError e) {}\n for (int i = 0; i < count; ++i) {\n holder[i] = null;\n }\n // Make sure the heap can handle allocating large object array. This makes sure that free\n // pages are correctly coalesced together by the allocator.\n holder[0] = new Object[(int)maxMem / 8];\n }", "title": "" } ]
e78526475ddee108b3002753aaf7f650
Commands Sets the hours on the clock.
[ { "docid": "2c7f14cb62cb9ae6c7c8f8d8b59b235d", "score": "0.6908928", "text": "protected void setHours(final int the_hours) {\n my_hours = the_hours;\n }", "title": "" } ]
[ { "docid": "4bb4083e4d600bdc74b1665cafde7cc4", "score": "0.73541003", "text": "public void setHours(int h)\n {\n hours = h;\n }", "title": "" }, { "docid": "6666278a15bb9e2a967d79a4a0b5f3cd", "score": "0.69552994", "text": "public final native void setHours(int hours) /*-{\n this.setHours(hours);\n }-*/;", "title": "" }, { "docid": "fb3987342e8dcade1fbf4f8288eea528", "score": "0.69456923", "text": "public void setHours( final int hours )\n {\n m_hours = hours;\n }", "title": "" }, { "docid": "894ce531876620931aad297865ddd261", "score": "0.6837181", "text": "public final native void setHours(int hours, int mins, int secs, int ms) /*-{\n this.setHours(hours, mins, secs, ms);\n }-*/;", "title": "" }, { "docid": "9cd56dfdfa93f4d748c4a78827e9946e", "score": "0.67516387", "text": "public void setHour(int value) {\r\n this.hour = value;\r\n }", "title": "" }, { "docid": "f1d9ddeb40759e184add7424c758a323", "score": "0.6381806", "text": "void updateTimeLine(int hour, int minute);", "title": "" }, { "docid": "05658ebb057b9142facf9f3b31ffa411", "score": "0.63616955", "text": "public void setView(int hour, int min) {\n }", "title": "" }, { "docid": "91bbc41fc16b950aba98fb76b3acfaef", "score": "0.6338698", "text": "private void updateTime(int hours, int mins) {\r\n\r\n\t\tString timeSet = \"\";\r\n\t\tif (hours > 12) {\r\n\t\t\thours -= 12;\r\n\t\t\ttimeSet = \"PM\";\r\n\t\t} else if (hours == 0) {\r\n\t\t\thours += 12;\r\n\t\t\ttimeSet = \"AM\";\r\n\t\t} else if (hours == 12)\r\n\t\t\ttimeSet = \"PM\";\r\n\t\telse\r\n\t\t\ttimeSet = \"AM\";\r\n\r\n\r\n\t\tString minutes = \"\";\r\n\t\tif (mins < 10)\r\n\t\t\tminutes = \"0\" + mins;\r\n\t\telse\r\n\t\t\tminutes = String.valueOf(mins);\r\n\r\n\t\t// Append in a StringBuilder\r\n\t\tString aTime = new StringBuilder().append(hours).append(':')\r\n\t\t\t\t.append(minutes).append(\" \").append(timeSet).toString();\r\n\r\n\t\tlblTimeRem.setText(aTime);\r\n\t}", "title": "" }, { "docid": "f8f17ae697ab475c3ae2f42db46d0cc9", "score": "0.6265987", "text": "public abstract <T> T setHour(int hr) throws InterpssException;", "title": "" }, { "docid": "adf71cb2cb2a8e3ec66b8f194034ecfb", "score": "0.62292135", "text": "public void setStopwatchTimeHour(int hour){\n\t\tif(hour < 0 || hour >9){\n\t\t\tthrow new IllegalArgumentException(\"Stopwatch auto lap Hour must be between 0 and 9\");\n\t\t}\n\t\twriteByteToData(Utils.convertIntToBCD(hour),25);\n\t}", "title": "" }, { "docid": "b21891d333528a4ff0210302ae11cbf6", "score": "0.62210727", "text": "public void setHour(Integer hour) {\r\n this.hour = hour;\r\n }", "title": "" }, { "docid": "b21891d333528a4ff0210302ae11cbf6", "score": "0.62210727", "text": "public void setHour(Integer hour) {\r\n this.hour = hour;\r\n }", "title": "" }, { "docid": "afdd0ccc002c41a291a1c87144d0d69e", "score": "0.621968", "text": "public void setHours(int hours) throws Exception {\n if (hours < 0 || hours > 23) {\n throw new Exception(\"hours is not in range.\");\n }\n this.hours = hours;\n }", "title": "" }, { "docid": "3aed86e955830a90d29147cb117e163a", "score": "0.6201237", "text": "public void setHoursBg(int newval) throws YAPI_Exception\n {\n _hours = newval;\n _ywakeupschedule.set_hours(newval);\n }", "title": "" }, { "docid": "862a52dad7c8b916bc179ce3c1bdb6c6", "score": "0.61580795", "text": "public void setHour(Integer hour) {\r\n m_hour = hour;\r\n }", "title": "" }, { "docid": "a4d62706be9c4cf788d9e20d0bf57dac", "score": "0.61531603", "text": "public void resetHoursTab(){\n //getPoRadioHourEvery().setValue(null);\n getPoCadaHoras().setValue(null);\n //getPoRadioHourBegin().setValue(null);\n getPoBeginHoras().setValue(null);\n getPoBeginMinutes().setValue(null);\n getPoLunHoras().setValue(null);\n getPoMarHoras().setValue(null);\n getPoMieHoras().setValue(null);\n getPoJueHoras().setValue(null);\n getPoVieHoras().setValue(null);\n getPoSabHoras().setValue(null);\n getPoDomHoras().setValue(null);\n \n getPoDeadLineHoras().setValue(null);\n getPoDeadLineMinHoras().setValue(null); \n }", "title": "" }, { "docid": "667c4eb0253241bb8143187d64bf6b1a", "score": "0.61473566", "text": "@FXML\n void addHours() {\n storage.getTime().addHours(1);\n currentTime.setText(storage.timeToString());\n storage.refreshOrganisers();\n EventsEvent(currentOrganiser);\n\n }", "title": "" }, { "docid": "22e7c0c85abc7a1af42846ca90ec96a7", "score": "0.6119284", "text": "public void setTime(int h, int m)\n {\n if (h < 0 || m < 0)\n throw new IllegalArgumentException(\"Time24.setTime: argument\"\n + \" must not be negative\");\n this.hour = h;\n this.minute = m;\n normalizeTime();\n }", "title": "" }, { "docid": "ff618988f227351d776dba8870a18427", "score": "0.61166817", "text": "void setAlarm(int hours, int minute) {\n\t\t// Make sure the hour value is within range, otherwise set it to -1 to disable alarm.\n\t\tif((hours >= 0) && (hours < 24) ){\n\t\t\talarmHour = hours;\n\t\t} else {\n\t\t\talarmHour = -1;\n\t\t}\n\n\t\t// Make sure the minute value is within range, otherwise set it to -1 to disable alarm.\n\t\tif((minute >= 0) && (minute < 60) ){\n\t\t\talarmMinute = minute;\n\t\t} else {\n\t\t\talarmMinute = -1;\n\t\t}\n\t\t\n\t\t// Update GUI.\n\t\t// Update the alarm label with new value, or set to \"disabled\" if invalid value(s) was used.\n\t\tif((alarmHour >= 0) && (alarmMinute >= 0))\n\t\t{\n\t\t\t// Create a decimal format object for formatting the time string.\n\t\t\tDecimalFormat decimalFormat = new DecimalFormat(\"00\");\n\n\t\t\tclockGUI.setAlarmTimeOnLabel(decimalFormat.format(hours) + \":\" + decimalFormat.format(minute));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tclockGUI.setAlarmTimeOnLabel(\"disabled\");\n\t\t}\n\t}", "title": "" }, { "docid": "8e72f4bf8d69aa1beaf175ae06977e1a", "score": "0.6037399", "text": "public void setHour(int hour) {\n\t\tthis.hour = hour;\n\t}", "title": "" }, { "docid": "8e72f4bf8d69aa1beaf175ae06977e1a", "score": "0.6037399", "text": "public void setHour(int hour) {\n\t\tthis.hour = hour;\n\t}", "title": "" }, { "docid": "40285bc26fe62afc55312d4ab688d330", "score": "0.6022454", "text": "public void setHour(int newHour) {\n\n setValue(year, month, day, newHour, minute, second);\n }", "title": "" }, { "docid": "e69e90225cdbaf7538210a120dc4ff62", "score": "0.59931606", "text": "protected TriggerHour(Integer h)\n\t{\n\t\tsuper(\"mgcore_h_\"+h, \"H\"+h, \"Ingame hour \"+h+\" of 23.\");\n\t}", "title": "" }, { "docid": "322bc53592b8a04fe16048bf2a8ff45b", "score": "0.5989761", "text": "public void setHours(double hours) {\n\t\tif ((hours < 0.0) || (hours > 168.0)) // valida horas\n\t\t\tthrow new IllegalArgumentException(\"Hours worked must be >= 0.0 and <= 168.0\");\n\t\tthis.hours = hours;\n\t}", "title": "" }, { "docid": "7d5d237e0a9a7a17d3f1f6a667e08023", "score": "0.5982948", "text": "public void setTimes() {\n\t\tclearTime();\n\t\tText floating = new Text(Config.floating);\n\t\tfloating.setStyle(Config.minorTextStyle);\n\t\ttime.getChildren().add(floating);\n\t\tthis.overdue.setVisible(false);\n\t}", "title": "" }, { "docid": "fbe2b9674da1e5d624429899d34c91f0", "score": "0.59794337", "text": "public void setClassHours(int inClassHours)\n {\n\tclassHours = inClassHours;\n }", "title": "" }, { "docid": "67c57b4d7febb41cf3cfdb9fc707c351", "score": "0.59649587", "text": "public void passHours(double hours){\r\n\t\tmilliseconds = milliseconds + (hours / 7 / 24) * 1000;\r\n\t}", "title": "" }, { "docid": "04791d3af4d54417c89edf3ebf09c185", "score": "0.595272", "text": "public void setTimeLoopHour(int value) {\n this.timeLoopHour = value;\n }", "title": "" }, { "docid": "7f634b77116ede0ca8007175ee1193b1", "score": "0.5922182", "text": "protected void setTimeDisplay() {\n\t\tBoolean b = !allDayCheckBox.isSelected();\n\t\t\n\t\tfromHour.setEnabled(b);\n\t\tfromMin.setEnabled(b);\n\t\tfromAmPm.setEnabled(b);\n\t\ttoHour.setEnabled(b);\n\t\ttoMin.setEnabled(b);\n\t\ttoAmPm.setEnabled(b);\n\t}", "title": "" }, { "docid": "354fb87854f9c600340c6ad748690e7e", "score": "0.5899654", "text": "public ClockDisplay()\n\t{\n\t\thoras = new NumberDisplay(13);\n\t\tminutos = new NumberDisplay(60);\n\t\tam = \"am\";\n\t\tpm =\"pm\";\n\t\thoraActual = horas.getDisplayValue() + \":\" + minutos.getDisplayValue();\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "468f0f4e9054db03c709cb4b9fd182d8", "score": "0.58894557", "text": "public void settoHours(Number value) {\r\n setAttributeInternal(TOHOURS, value);\r\n }", "title": "" }, { "docid": "aeeaab8c6d143fce4f10664988fc7acf", "score": "0.5876754", "text": "public ReminderTask(int iHour) {\r\n this.hour = iHour;\r\n initComponents();\r\n }", "title": "" }, { "docid": "305d5d250575f5775f3a7cd92aac248d", "score": "0.5876627", "text": "public final void setInputHours(double hours) throws IllegalHoursException{\r\n if (hours < 1 && Double.isNaN(hours)){\r\n throw new IllegalHoursException();\r\n }\r\n hours = hours;\r\n }", "title": "" }, { "docid": "b30dda5a75cada7bd85823f946dcf708", "score": "0.58472353", "text": "public static String setTime(int hours, int mins) {\n\n String minutes = \"\";\n if (mins < 10)\n minutes = \"0\" + mins;\n else\n minutes = String.valueOf(mins);\n String hour = \"\";\n if (hours < 10)\n hour = \"0\" + hours;\n else\n hour = String.valueOf(hours);\n\n // Append in a StringBuilder\n String aTime = new StringBuilder().append(hour).append(':')\n .append(minutes).append(\" \").toString();\n\n return aTime;\n }", "title": "" }, { "docid": "a86c2ab9ae4dcb9766f16486878d7eb8", "score": "0.58455944", "text": "public void setHour(int index, int hour){\n\t\tsetHour(index, hour, false);\n\t}", "title": "" }, { "docid": "344b18646c0c94d0c0036f20f7308861", "score": "0.5837335", "text": "public void setHomeworkHours(int inHomeworkHours)\n {\n\thomeworkHours = inHomeworkHours;\n }", "title": "" }, { "docid": "e30b82f968a1785db3424205ce93cc0f", "score": "0.580663", "text": "private void updateTime(int hours, int mins, TextView fromtime) {\n\n String timeSet;\n if (hours > 12) {\n hours -= 12;\n timeSet = \"PM\";\n } else if (hours == 0) {\n hours += 12;\n timeSet = \"AM\";\n } else if (hours == 12)\n timeSet = \"PM\";\n else\n timeSet = \"AM\";\n\n\n String minutes = \"\";\n if (mins < 10)\n minutes = \"0\" + mins;\n else\n minutes = String.valueOf(mins);\n\n // Append in a StringBuilder\n String aTime = String.valueOf(hours) + ':' + minutes + \" \" + timeSet;\n\n fromtime.setText(aTime);\n }", "title": "" }, { "docid": "6c253db6a54913190431edbed859d1fa", "score": "0.5800948", "text": "public void setHour(String hour) {\n this.hour = hour;\n }", "title": "" }, { "docid": "7ba83b668e0d632703f0a0104b047ea3", "score": "0.57876784", "text": "public ClockDisplay(int minutos, int horas)\n {\n \n minuto = new NumberDisplay(60);\n hora = new NumberDisplay(24);\n minuto.setValue(minutos);\n hora.setValue(horas);\n if (hora.getValue() >=0 & hora.getValue() < 13 )\n {\n horaActual = hora.getDisplayValue() + \":\" + minuto.getDisplayValue() + \"am\";\n }\n else\n {\n horaActual = hora.getDisplayValue() + \":\" + minuto.getDisplayValue() + \"pm\";\n }\n }", "title": "" }, { "docid": "29945e0be067d8d9d7a69ec50a6de0fe", "score": "0.5778723", "text": "public Duration setHours(Double hours) {\n this.hours = hours;\n return this;\n }", "title": "" }, { "docid": "88a2af39aa58c5b348a59ef043bb38b8", "score": "0.577167", "text": "public void setTime(int newHours, int newMinutes) {\n\t\tif (isValid(newHours, newMinutes)) {\n\t\t\thours = newHours;\n\t\t\tminutes = newMinutes;\n\t\t}\n\t}", "title": "" }, { "docid": "23033033496356ed868cb4fbbe3d218b", "score": "0.57369775", "text": "public void setTime(int hour, int minute, String pDayTime)\n {\n hours.setValue(hour);\n minutes.setValue(minute);\n dayTime = pDayTime;\n updateDisplay();\n }", "title": "" }, { "docid": "bb7f3c74586a91a88459885a22c8df2c", "score": "0.57145566", "text": "public void setTime(View view){\n\n new TimePickerDialog(MainActivity.this, setTimeVariables,\n myCalendar.get(Calendar.HOUR),\n myCalendar.get(Calendar.MINUTE),\n true\n\n ).show();\n\n }", "title": "" }, { "docid": "3693153ee8b008187796453babf62127", "score": "0.5711639", "text": "public void setHour(int hour) {\n\t\tif (hour < 0 || hour > 23) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"Valid hour value is between 0..23\");\n\t\t}\n\t\tthis.hour = hour;\n\t}", "title": "" }, { "docid": "736f6ba540fd9edd7ddd3cb799e4cb3d", "score": "0.5708945", "text": "public void setTime(int time);", "title": "" }, { "docid": "d4ad9dd4c23476e9b05681bebf408ce2", "score": "0.57069993", "text": "public JobLogEntity setHours(String hours) {\n this.hours = hours;\n return this;\n }", "title": "" }, { "docid": "51dbcbf1e7eaabb3867abb853f62ab0a", "score": "0.5683051", "text": "private void setTimeField(){\r\n\t\tint hours = currentTime / 60; \r\n\t\tint mins = currentTime % 60;\r\n\t\tif(hours >= 0 && hours <= 11){\r\n\t\t\t/**Append a leading zero if the minutes is single digit. */\r\n\t\t\tString min = \"\";\r\n\t\t\tif(mins >=0 && mins <= 9){\r\n\t\t\t\tmin = \"0\" + mins;\r\n\t\t\t}else{\r\n\t\t\t\tmin = \"\"+ mins;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tGameView.timeField.setText(hours + \":\" + min + \" AM\");\r\n\t\t}else if(hours > 12 && hours <= 23){\r\n\t\t\tint pmHours = hours - 12;\r\n\t\t\t/**Append a leading zero if the minutes is a single digit. */\r\n\t\t\tString min = \"\";\r\n\t\t\tif(mins >=0 && mins <= 9){\r\n\t\t\t\tmin = \"0\" + mins;\r\n\t\t\t}else{\r\n\t\t\t\tmin = \"\" + mins;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tGameView.timeField.setText(pmHours + \":\" + min + \" PM\");\r\n\t\t}\r\n\t\r\n\t\r\n\t}", "title": "" }, { "docid": "b26bb20efe56f680d6ca574058c8a86c", "score": "0.5681387", "text": "@Override\n public void onTimeSet(TimePickerDialog view, int hourOfDay, int minute, int second) {\n\n SetTomorrowTask(hour, minute, hourSystem , minuteSystem);\n this.hour = hourOfDay;\n this.minute = minute;\n\n checkNextTask();\n\n CharSequence texto = \"La nueva hora es: \" + hour + \":\" + this.minute;\n showHour.setText(texto);\n }", "title": "" }, { "docid": "5df86fe8cd093b580679822c98170a26", "score": "0.5665411", "text": "public final void enableHours(boolean enable) {\n showHours = enable;\n }", "title": "" }, { "docid": "cb8510cc787e053559fae0df6bc5e383", "score": "0.56536883", "text": "public synchronized void setHoursOfService(final InternationalString newValue) {\n checkWritePermission();\n hoursOfService = newValue;\n }", "title": "" }, { "docid": "be0627701aeb06dfaaaf9e77904fbc12", "score": "0.56414336", "text": "void time(int hour, int min) {\n\t\tSystem.out.println(hour + \":\" + min);\n\n\t}", "title": "" }, { "docid": "e064839289772ed2c4a0c9540657c0fc", "score": "0.5636155", "text": "public ClockDisplay()\n {\n // initialise instance variables\n minuto = new NumberDisplay(60);\n hora = new NumberDisplay(24);\n minuto.setValue(00);\n hora.setValue(00);\n horaActual = \"00:00 am\";\n }", "title": "" }, { "docid": "2b962538322c1652b2e81afa53946aca", "score": "0.5634668", "text": "public void setTime(int newHours, int newMinutes, boolean isAM) {\n\t\tif (newHours >= 1 && newHours <= 12) {\n\t\t\tif (isAM && newHours == 12) {\n\t\t\t\t// 12AM is 0 hours.\n\t\t\t\tnewHours = 0;\n\t\t\t} else if (!isAM && newHours < 12) {\n\t\t\t\t// 8PM is 20 hours\n\t\t\t\tnewHours = newHours + 12;\n\t\t\t}\n\t\t\t// The remaining hours are unchanged\n\t\t\t// 11AM is 11 hours, 12PM is 12 hours\n\n\t\t\tif (isValid(newHours, newMinutes)) {\n\t\t\t\thours = newHours;\n\t\t\t\tminutes = newMinutes;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a74664398adf5d9771701145a0016374", "score": "0.56296706", "text": "public Builder clearHour13() {\n\n hour13_ = 0D;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "beb8ccc874dcf48e63b81d0d8337b7b0", "score": "0.560653", "text": "public void setStartHour(int startHour) {\n this.starthour = startHour;\n }", "title": "" }, { "docid": "c7c22a03d7a5509f0e5d739d0d9eb6e9", "score": "0.5602583", "text": "public void timeTick()\n {\n minutes.increment();\n if(minutes.getValue() == 0) { // it just rolled over!\n if (hours.getValue() == 11) {\n dayTime = dayTime.equals(\"am\") ? \"pm\" : \"am\";\n }\n hours.increment();\n }\n updateDisplay();\n }", "title": "" }, { "docid": "3f9ccba78e6d9126c983fbd222e8bdf8", "score": "0.5592107", "text": "public void setTime( int inHr, int inMin, int inSec)\n\t{\n\t\thr = inHr;\n\t\tmin = inMin; \n\t\tsec = inSec;\n\t}", "title": "" }, { "docid": "23f7b68b77723230b0f3bda05cf4fe9d", "score": "0.55886626", "text": "public void onTimeSet(TimePicker view, int mHour, int mMinute) {\n EditText mHoras = (EditText) getActivity().findViewById(R.id.editText_time);\n mHoras.setText(\"\");\n mHoras.setText(String.format(Locale.US,\"%02d\",view.getCurrentHour()) + \":\" + String.format(Locale.US,\"%02d\",view.getCurrentMinute()) );\n\n }", "title": "" }, { "docid": "d674a72abe204c5802f6e55ce914f735", "score": "0.5586414", "text": "public void setTimeValues() {\n long currentMillis = SimulatedTime.getSystemTime().getTime().getTime();\n\n obsBeginTime.setTimeInMillis(currentMillis - (HydroConstants.MILLIS_PER_HOUR * (long) obshrs));\n fcstEndTime.setTimeInMillis(currentMillis + (HydroConstants.MILLIS_PER_HOUR * (long) fcsthrs));\n basisTime.setTimeInMillis(currentMillis - (HydroConstants.MILLIS_PER_HOUR * (long) basishrs));\n }", "title": "" }, { "docid": "fe0af0d38f95280f784ba4b83c7185d7", "score": "0.55836177", "text": "public void setHasHours(boolean hasHours) {\n this.hasHours = hasHours;\n }", "title": "" }, { "docid": "5937c40f345910904c7a22266cb5470a", "score": "0.5573749", "text": "void runEachHour();", "title": "" }, { "docid": "af3f6b6c06853ee9ec9408d601e043a2", "score": "0.5568794", "text": "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n this.hora = hourOfDay;\n this.minos = minute;\n }", "title": "" }, { "docid": "c46a33d134ae532f22ddc715c8cb6698", "score": "0.5568359", "text": "public HoursOfDayTB() {\n super (1,0);\n }", "title": "" }, { "docid": "4fec46e315f25e10ab0cf2e4155b90c9", "score": "0.5566787", "text": "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minutes) {\n hr = hourOfDay;\n min = minutes;\n updateTime(hr, min);\n }", "title": "" }, { "docid": "d67c6a2acde1cbb5e2bffded25261257", "score": "0.5557879", "text": "private void updateTime(int hour, int minute)\n\t{\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, hour);\n\t\tcalendar.set(Calendar.MINUTE, minute);\n\t}", "title": "" }, { "docid": "c7f265920936f040bf155112446f23f6", "score": "0.55403084", "text": "public void setTimeInterval(int hours, int minutes){\n\t\tmLeavingSeekBarHours = hours;\n mLeavingSeekBarMinutes = minutes;\n\t\tcountDateAndTime();\n\t}", "title": "" }, { "docid": "eb2867a17ed4446c4dcd2851786777b6", "score": "0.5534697", "text": "void unsetMinT24HrC();", "title": "" }, { "docid": "093d3bc4d0ddfba9361c728aaec43985", "score": "0.55328685", "text": "public void modificarHora() {\r\n\r\n }", "title": "" }, { "docid": "e5500ec5b8660d9fafb1c96a3e2ba1c7", "score": "0.55324817", "text": "public Builder setHour0(double value) {\n\n hour0_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "076f6decdaaa89c384eb257fba2d1388", "score": "0.55297804", "text": "private void setTimes(){\n timeSetter = FXCollections.observableArrayList();\n LocalTime timeStart = LocalTime.MIDNIGHT.plusHours(8);\n for(int t = 0; t < 20; t++){\n timeSetter.add(timeStart.format(timeF));\n timeStart = timeStart.plusMinutes(30);\n }\n mAppStart.getItems().addAll(timeSetter);\n mAppEnd.getItems().addAll(timeSetter);\n }", "title": "" }, { "docid": "f06dc2b6b85007168eff23ef23a13e37", "score": "0.55275047", "text": "public void setOffsetHours(int hours) {\n\t\tif (hours < -13 || hours > 13) {\n\t\t\tthrow new IllegalArgumentException(\"Offset out of bounds [-13..13]\");\n\t\t}\n\t\tthis.offsetHours = hours;\n\t}", "title": "" }, { "docid": "e6573a3d86be48e11ce7d957940ada33", "score": "0.5518249", "text": "private void setTime() {\n LocalTime localTime = LocalTime.now();\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"hh:mm a\");\n displayTime = localTime.format(dateTimeFormatter);\n LocalDate dateOfWeek = LocalDate.now();\n String dayOfTheWeek = dateOfWeek.toString();\n binding.shadow1.setText(dayOfTheWeek + \" \" + displayTime);\n }", "title": "" }, { "docid": "3652d5bb78c0cf62cb1df07ee1c3ccb7", "score": "0.551378", "text": "public Builder setHours(\n int index, com.lys.protobuf.ProtocolShop.MatterHour value) {\n if (hoursBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureHoursIsMutable();\n hours_.set(index, value);\n onChanged();\n } else {\n hoursBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "175bd759995705e8dbc06b0838b3be5a", "score": "0.5513235", "text": "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minutes) {\n hour = hourOfDay;\n minute = minutes;\n updateTime(hour, minute);\n }", "title": "" }, { "docid": "f3aff864973974ee66632b70bb9790ed", "score": "0.5513068", "text": "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n ((EateryActivity) getContext()).getMeetUp().setHours(hourOfDay);\n ((EateryActivity) getContext()).getMeetUp().setMinutes(minute);\n ((EateryActivity) getContext()).requestMeet();\n }", "title": "" }, { "docid": "ba3d536c77dfd66ec7ff567aad5565cb", "score": "0.5512592", "text": "public int getHour() {return hour;}", "title": "" }, { "docid": "23e5f3dcbf90eafc40ecc44845676c53", "score": "0.5506814", "text": "public void setAlarm(int hour, int minute, String dayTime) {\n alarmHour = hour;\n alarmMinute = minute;\n alarmDayTime = dayTime;\n }", "title": "" }, { "docid": "91b04a577db0faf657fbda4dadfed347", "score": "0.55048615", "text": "public void setHourAdd(Hour hour) {\n\t\thours.add(hour);\n\t\t }", "title": "" }, { "docid": "116a0b05b5725c14374b8d51dcfa98a8", "score": "0.54865545", "text": "public void setTime(Event event)\n {\n int startH;\n int startM;\n int endH;\n int endM;\n Time startTime;\n Time endTime;\n\n scan = new Scanner(System.in);\n\n logger.log(Level.INFO, \"Enter the new start hour of the event.\");\n startH = scan.nextInt();\n logger.log(Level.INFO, \"Enter the new start minute of the event.\");\n startM = scan.nextInt();\n logger.log(Level.INFO, \"Enter the new end hour of the event.\");\n endH = scan.nextInt();\n logger.log(Level.INFO, \"Enter the new end minute of the event.\");\n endM = scan.nextInt();\n\n startTime = new Time(startH, startM);\n endTime = new Time(endH, endM);\n\n event.setTime(startTime, endTime);\n }", "title": "" }, { "docid": "0925956d1ee73eae2751ec79c8601ebf", "score": "0.5472953", "text": "void setHoras(int h)\n { //funcion que comprueba si hay horas suficientes\n //hasta la fecha del deadline\n this.num_Horas=h;\n }", "title": "" }, { "docid": "e0d3b70d3084093a7f1722e150a65522", "score": "0.5472938", "text": "private static void hours() {\n System.out.println(\"Leasing Office Business Hours: \");\n System.out.println(\"Mon-Fri 9am-6:30pm\");\n System.out.println(\"Sat 10am-3pm\");\n System.out.println(\"Sun CLOSED\");\n\n System.out.println(\"Search other building/complex hours\");\n System.out.println(\"[1] Gym hours\");\n System.out.println(\"[2] Pool hours\");\n System.out.println(\"[3] Business Center Hours\");\n Scanner scan = new Scanner(System.in);\n Object input = scan.nextLine();\n if(input.equals(\"1\")){\n gymHours();\n }\n if(input.equals(\"2\")){\n poolHours();\n }\n if(input.equals(\"3\")){\n businessCenterHours();\n }\n }", "title": "" }, { "docid": "85e20780a39b1959b6e2fcdd5d191365", "score": "0.54668045", "text": "private void updateStartTime() {\n Date date = startTimeCalendar.getTime();\n String startTime = new SimpleDateFormat(\"HH:mm\").format(date);\n startHourText.setText(startTime);\n }", "title": "" }, { "docid": "829acb7848dee4851d6cde4192688ffd", "score": "0.54653466", "text": "public void onTimeSet(TimePicker view, int hour, int minute) {\n\t\t\tString hourString = hour + \"\";\n\t\t\tString minuteString = minute + \"\";\n\t\t\tif (hour < 10)\n\t\t\t\thourString = \"0\" + hour;\n\t\t\tif (minute < 10)\n\t\t\t\tminuteString = \"0\" + minute;\n\n\t\t\ttimePiker = hourString + \":\" + minuteString;\n\t\t\taddTime.setText(timePiker);\n\t\t}", "title": "" }, { "docid": "46f218b3a236c7de80c35d581e449d81", "score": "0.54600376", "text": "public void setTime(View v){\n showDialog(DIALOG_TIME);\n }", "title": "" }, { "docid": "ed3d0207a250f87b01efbee24ea3c2f0", "score": "0.5446934", "text": "public ClockDisplay()\n {\n hours = new NumberDisplay(12);\n minutes = new NumberDisplay(60);\n alarmHour = -1;\n alarmMinute = -1;\n alarmDayTime = null;\n isAlarmActive = false;\n updateDisplay();\n }", "title": "" }, { "docid": "c6c37d985a03cf9829613908bfac76cf", "score": "0.5439339", "text": "public Builder setHour13(double value) {\n\n hour13_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "47a6f2fc89a928db36333509c9eaefba", "score": "0.5426254", "text": "@Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n editText.append(\" \" + getString(R.string.hour_format, i, i1,0) );\n\n }", "title": "" }, { "docid": "2c19de3d571cd8b9ead23043c9b9fe6b", "score": "0.54249275", "text": "public void incHours(ActionEvent e) {\r\n\t\tif (Integer.valueOf(timeForExamHours.getText()) < 60) {\r\n\t\t\ttimeForExamHours.setText(String.valueOf(Integer.valueOf(timeForExamHours.getText()) + 1));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fa8ceb822057fd16ad2d7c808a656c00", "score": "0.5424123", "text": "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n hour = hourOfDay;\n NotificationSettingsActivity.minute = minute;\n notifyHourField.setText(hour + \":\" + minute);\n\n }", "title": "" }, { "docid": "10a5505a6ccd8965c974ba55d2557f95", "score": "0.54199004", "text": "public boolean setHours(Employee employee) { // Set working hours for a part-time\r\n int index = this.find(employee);\r\n if(index == MISS || employee instanceof Fulltime)\r\n return false;\r\n\r\n // call some part-time method to set hours\r\n Parttime temp = (Parttime) employee;\r\n Parttime real = (Parttime) this.emplist[index];\r\n\r\n real.setHours(temp.getHours());\r\n return true;\r\n }", "title": "" }, { "docid": "de0d75b8354f3d7cf47dcd4c4a2c482d", "score": "0.5417227", "text": "public Builder clearHour22() {\n\n hour22_ = 0D;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "79f0d2d65b9038f5d1662ab58650186e", "score": "0.5412687", "text": "public Builder setHour6(double value) {\n\n hour6_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8b55fe16c8bd185a33edbdbfc66eca1e", "score": "0.54093206", "text": "public ClockDisplay (int horasX, int minutosX)\n\t{\n\t\thoras = new NumberDisplay(13);\n\t\tminutos = new NumberDisplay(60);\t\n\t\thoras.setValue(horasX);\t\n\t\tminutos.setValue(minutosX);\n\t\thoraActual = horas.getDisplayValue() + \":\" + minutos.getDisplayValue();\t\t\n\t}", "title": "" }, { "docid": "1421c37fc4db80769c650751440237ca", "score": "0.5400299", "text": "public void setHour(int index, int hour, boolean GMT){\n\t\tindexExceptionCheck(index);\n\t\thourExceptionCheck(hour, GMT);\n\t\t\n\t\tif(GMT)\n\t\t\tthis.time[index].setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\telse\n\t\t\tthis.time[index].setTimeZone(TimeZone.getDefault());\n\t\t\n\t\ttime[index].set(Calendar.HOUR_OF_DAY, hour);\n\t}", "title": "" }, { "docid": "b701e3f7442b3cea7052b9bca0f5e2eb", "score": "0.5391333", "text": "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n mTimeDisplay.setText(new StringBuilder()\n .append(pad(hourOfDay)).append(\":\")\n .append(pad(minute)));\n }", "title": "" }, { "docid": "d64a2031a233c21462fa52cf47fbfdba", "score": "0.53865755", "text": "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tif (hours > 0) {\n\t\t\t\t\thours = hours - 1;\n\t\t\t\t} else {\n\t\t\t\t\thours = 23;\n\t\t\t\t}\n\t\t\t\thoursLabel.setValue(displayhours(hours));\n\t\t\t\tui.updateMealOptionDeadlineHours(connectionPool, mealoptiondeadline, hours);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0e765486444a5ff56bb8d54ec22917eb", "score": "0.5383147", "text": "private void\nParseMeridianAndSetHour(\n ClockToken[] dt,\t\t// Input as scanned array of tokens\n ParsePosition parsePos,\t// Current position in input\n Calendar calendar,\t\t// calendar object to set\n int hour)\t\t\t// hour value (1-12 or 0-23) to set.\n{\n int pos = parsePos.getIndex();\n int hourField;\n\n if (pos < dt.length &&\n\tdt[pos].is(ClockToken.MERIDIAN)) {\n calendar.set(Calendar.AM_PM, dt[pos].getInt());\n parsePos.setIndex(pos+1);\n\thourField = Calendar.HOUR;\n } else {\n\thourField = Calendar.HOUR_OF_DAY;\n }\n\n if (hourField == Calendar.HOUR && hour == 12) {\n hour = 0;\n }\n calendar.set(hourField, hour);\n}", "title": "" }, { "docid": "ec8221f9127e0a41b13adf0e55439b77", "score": "0.5382924", "text": "public void setDuration(int h, int m)\n {\n h += m / 60;\n m %= 60;\n\n hours = h;\n minutes = m;\n }", "title": "" }, { "docid": "f4c90057a5d7cdbc77f065c43fc5ed5e", "score": "0.5382046", "text": "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n String horaFormateada = (hourOfDay < 10)? String.valueOf(CERO + hourOfDay) : String.valueOf(hourOfDay);\n //Formateo el minuto obtenido: antepone el 0 si son menores de 10\n String minutoFormateado = (minute < 10)? String.valueOf(CERO + minute):String.valueOf(minute);\n //Obtengo el valor a.m. o p.m., dependiendo de la selección del usuario\n\n //Muestro la hora con el formato deseado\n show_inicial.setText(horaFormateada + DOS_PUNTOS + minutoFormateado);\n hora_inicial = horaFormateada + DOS_PUNTOS + minutoFormateado;\n }", "title": "" }, { "docid": "5eeaf0c7e4c94de2053c229d6dd05ced", "score": "0.5376836", "text": "public void timeTick()\n\t {\n\t\tminutos.increment();\n\t\tif ( minutos.getValue() == 0) {\n\t\t\thoras.increment();\n\t\t}\n\t\thoraActual = horas.getDisplayValue() + \":\" + minutos.getDisplayValue();\n\t }", "title": "" } ]
3441f3901780a9020fdc82dbc2e45b47
todo check faces positions
[ { "docid": "460fd6a9b1ced2bd63c529a20cc55b95", "score": "0.6597267", "text": "private boolean hasCorrectFaces(ModelGraph modelGraph) {\n if(4 != modelGraph.getFaces().size()) {\n return false;\n }\n return true;\n }", "title": "" } ]
[ { "docid": "f129abf70049b8334d9796813ced78ae", "score": "0.6829899", "text": "@Test\n\tpublic void testFacesDetected() {\n\t\tdetection.detectFacesAndMovements();\n\t\tassert(detection.getFacesAmount() > 0);\n\t}", "title": "" }, { "docid": "b0b027bd1d524fb5eb5c5479637188b1", "score": "0.6726811", "text": "boolean frontface(){\n\t\t\treturn PVector.sub(CAM, p, VIEW).dot(n_face) > 0;\n\t\t}", "title": "" }, { "docid": "ad4a2f362e806eb3cd0e9ff1d018d5fa", "score": "0.6592619", "text": "private static void testFaceDetect() {\r\n\r\n\t}", "title": "" }, { "docid": "9d6f5d998ba983d8f85ef247734db0a0", "score": "0.65052325", "text": "@SuppressWarnings(\"unlikely-arg-type\")\n @Test\n public void testFaceCentroidBug()\n {\n Box3D unitBox3D = new Box3D(1.0, 1.0, 1.0);\n FrameBox3D unitFrameBox3D = new FrameBox3D(worldFrame, 1.0, 1.0, 1.0);\n BoxPolytope3DView boxPolytope = unitBox3D.asConvexPolytope();\n FrameBoxPolytope3DView frameBoxPolytope = unitFrameBox3D.asConvexPolytope();\n\n assertEquals(new Point3D(-0.5, 0.0, 0.0), boxPolytope.getFace(0).getCentroid());\n assertEquals(new Point3D(0.0, -0.5, 0.0), boxPolytope.getFace(1).getCentroid());\n assertEquals(new Point3D(0.0, 0.0, -0.5), boxPolytope.getFace(2).getCentroid());\n assertEquals(new Point3D(0.5, 0.0, 0.0), boxPolytope.getFace(3).getCentroid());\n assertEquals(new Point3D(0.0, 0.5, 0.0), boxPolytope.getFace(4).getCentroid());\n assertEquals(new Point3D(0.0, 0.0, 0.5), boxPolytope.getFace(5).getCentroid());\n\n assertEquals(new Point3D(-0.5, 0.0, 0.0), frameBoxPolytope.getFace(0).getCentroid());\n assertEquals(new Point3D(0.0, -0.5, 0.0), frameBoxPolytope.getFace(1).getCentroid());\n assertEquals(new Point3D(0.0, 0.0, -0.5), frameBoxPolytope.getFace(2).getCentroid());\n assertEquals(new Point3D(0.5, 0.0, 0.0), frameBoxPolytope.getFace(3).getCentroid());\n assertEquals(new Point3D(0.0, 0.5, 0.0), frameBoxPolytope.getFace(4).getCentroid());\n assertEquals(new Point3D(0.0, 0.0, 0.5), frameBoxPolytope.getFace(5).getCentroid());\n\n for (int i = 0; i < 8; i++)\n {\n assertTrue(frameBoxPolytope.getVertices().contains(unitFrameBox3D.getVertex(i)));\n assertEquals(boxPolytope.getVertex(i), frameBoxPolytope.getVertex(i));\n assertEquals(boxPolytope.getHalfEdge(i), frameBoxPolytope.getHalfEdge(i));\n assertEquals(1.0, boxPolytope.getHalfEdge(i).length());\n assertEquals(1.0, frameBoxPolytope.getHalfEdge(i).length());\n }\n\n for (int i = 0; i < 6; i++)\n {\n Face3DReadOnly boxFace = boxPolytope.getFace(i);\n FrameFace3DReadOnly frameBoxFace = frameBoxPolytope.getFace(i);\n\n for (int j = 0; j < 4; j++)\n {\n assertEquals(boxFace.getVertex(j), frameBoxFace.getVertex(j));\n }\n\n assertEquals(boxFace.getNormal(), frameBoxFace.getNormal());\n assertEquals(boxFace.getCentroid(), frameBoxFace.getCentroid());\n assertEquals(boxFace.getBoundingBox(), frameBoxFace.getBoundingBox());\n assertEquals(1.0, boxFace.getArea());\n assertEquals(1.0, frameBoxFace.getArea());\n }\n }", "title": "" }, { "docid": "b994ae43b16b96e9b6ee777b2fabbec3", "score": "0.63733023", "text": "public boolean isFace() { return this.isFace; }", "title": "" }, { "docid": "ef032c67522481065315a162b25d5206", "score": "0.6312872", "text": "public int findFaces(byte[] data, Face[] faces){\n\n\t\tint number = nativeDetect(data);\n\t\tLog.d(TAG,\"number: \"+number);\n \tif(number > 0){\n\n\t\t\tfloat eyeLeftX = GetEyeLeftX();\n\t\t\tfloat eyeRightX = GetEyeRightX();\n\t\t\tfloat eyeLeftY = GetEyeLeftY();\n\t\t\tfloat eyeRightY = GetEyeRightY();\n\n\t\t\tLog.d(TAG,\"eyes_para: \"+eyeLeftX+\" \"+eyeRightX+\" \"+eyeLeftY+\" \"+eyeRightY);\n\n\t\t\tMessage msg = new Message();\n\t\t\tmsg.what = 1;\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putFloat(\"eyeLeftX\",eyeLeftX); //往Bundle中存放数据\n\t\t\tbundle.putFloat(\"eyeLeftY\",eyeLeftY); //往Bundle中存放数据\n\t\t\tbundle.putFloat(\"eyeRightX\",eyeRightX); //往Bundle中存放数据\n\t\t\tbundle.putFloat(\"eyeRightY\",eyeRightY); //往Bundle中存放数据\n\t\t\tmsg.setData(bundle);//mes利用Bundle传递数据\n//\t\t\tmHoloLister.onMessage(msg); 用监听接口方法传递消息 TODO 2017-12-8\n\t\t\tCameraActivity.mInfoHandler.sendMessage(msg);//用activity中的handler发送消息\n \t}\n\n \t\n \tfor(int i =0;i < number;i++){\n // \t\tLog.d(TAG,\"I:\"+i);\n \t//\tnativeGetFace(null,i);\n // \t\tLog.d(TAG,\" \" + nativeGetMidpointx()+\" \" + nativeGetMidpointy()+ \" \"\n // \t\t+ nativeGetEyedist() + \" \" + nativeGetConfidence());\n \t//\tif(faces[i] == null){\n \t//\t\tfaces[i] = new Face();\n \t//\t}\n \t//\tfaces[i].setValue(nativeGetMidpointx(), nativeGetMidpointy(), nativeGetEyedist(), nativeGetConfidence());\t\n \t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "801a515d7910192de89d4241fcf1e140", "score": "0.6218889", "text": "private void doFace(int x, int z, int y, int chunkX, int chunkZ, byte from, byte to, byte dir)\n\t{\n\t\tif((behavior[from] & 0x01) != 0)\n\t\t{\n\t\t\tif((behavior[to] & 0x08) != 0)\n\t\t\t{\n\t\t\t\tfaces.add(new Face(x+16*chunkX, z+16*chunkZ, y, dir, to));\n\t\t\t\t//System.out.println(\"adding a face from \" + from + \" to \" + to);\n\t\t\t}\n\t\t}\n\t\tif((behavior[from] & 0x02) !=0)\n\t\t{\n\t\t\tif(from != to)\n\t\t\t\tfaces.add(new Face(x+16*chunkX, z+16*chunkZ, y, dir, to));\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\tif ((behavior[from] & 0x04) != 0)\n\t\t{\n\t\t\tif(dir == 0x03)\n\t\t\t\tfaces.add(new Face(x+16*chunkX, z+16*chunkZ, y, dir, from));\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t}", "title": "" }, { "docid": "9121190258e2c76fac829fdd731b96d6", "score": "0.61330503", "text": "public Cube(double size) {\n\n this.transform = new Transform();\n this.size = size;\n //Default color, whatever\n this.color = Color.BLUE;\n\n //a cube has six faces, I'm a genius\n this.faces = new Face[6];\n\n //clockwise rotation, from bottom left corner to bottom right corner\n this.faces[0] = new Face(\n new Point[]{\n new Point(-size / 2, -size / 2, -size / 2),\n new Point(-size / 2, size / 2, -size / 2),\n new Point(size / 2, size / 2, -size / 2),\n new Point(size / 2, -size / 2, -size / 2)\n });\n\n //we do the same for the other faces\n //up face\n this.faces[1] = new Face(\n new Point[]{\n new Point(-size / 2,size / 2,-size / 2),\n new Point(-size / 2,size / 2,size / 2),\n new Point(size / 2,size / 2,size / 2),\n new Point(size/2,size/2,-size/2)\n });\n\n //right face\n this.faces[2] = new Face(\n new Point[]{\n new Point(size/2,-size/2,-size/2),\n new Point(size/2,size/2,-size/2),\n new Point(size/2,size/2,size/2),\n new Point(size/2,-size/2,size/2)\n });\n\n //Back face\n this.faces[3] = new Face(\n new Point[]{\n new Point(-size/2,-size/2,size/2),\n new Point(-size/2,size/2,size/2),\n new Point(size/2,size/2,size/2),\n new Point(size/2,-size/2,size/2)\n });\n\n //left face\n this.faces[4] = new Face(\n new Point[]{\n new Point(-size/2,-size/2,-size/2),\n new Point(-size/2,size/2,-size/2),\n new Point(-size/2,size/2,size/2),\n new Point(-size/2,-size/2,size/2)\n });\n\n //down face\n this.faces[5] = new Face(\n new Point[]{\n new Point(-size/2,-size/2,-size/2),\n new Point(-size/2,-size/2,size/2),\n new Point(size/2,-size/2,size/2),\n new Point(size/2,-size/2,-size/2)\n });\n }", "title": "" }, { "docid": "137845c2a2e1020b701919468ea8f433", "score": "0.61320585", "text": "public int detectFace(IplImage testFace, int index) {\n int temp = 2;\n IplImage origImg = null;\n ProcessImage processImg = new ProcessImage();\n /*\n * total face\n */\n int total = 0;\n // load an image\n origImg = testFace;\n\n // create temp storage, used during object detection\n CvMemStorage storage = CvMemStorage.create();\n while (true) {\n IplImage equImg = processImg.setGray(origImg);\n // reload the opencv_objdetect module to work around a known bug\n Loader.load(opencv_objdetect.class);\n // instantiate a classifier cascade for face detection\n CvHaarClassifierCascade cascade;\n if ((temp % 2) == 0) {\n cascade = App.cascadeFD;\n temp++;\n } else if ((temp % 2 == 1)) {\n cascade = App.cascadeLR;\n temp++;\n } else {\n break;\n }\n System.out.println(\"Detecting faces...\");\n CvSeq face = cvHaarDetectObjects(equImg, cascade, storage, 1.1, 3,\n CV_HAAR_DO_CANNY_PRUNING);\n\n total = face.total();\n System.out.println(\"Found \" + total + \" face(s)\");\n for (int i = 0; i < total; i++) {\n CvRect r = new CvRect(cvGetSeqElem(face, i));\n\n /*\n * crop face image\n */\n GLImageList.load(index);\n BufferedImage tmp = GLImageList.getImage();\n BufferedImage objBufferedImage = tmp.getSubimage(r.x(), r.y(), r.width(), r.width());\n\n /*\n * resize face image with 92 height 112 type .pgm\n */\n objBufferedImage = processImg.resize(objBufferedImage, 92, 112);\n GLPCustom.faceListArr.add(objBufferedImage);\n GLPCustom.countFaces++;\n }\n if (total > 0) {\n return total;\n }\n if ((temp == 4) && (total == 0)) {\n return 0;\n } //no found a face\n }\n // clear temp storage\n cvClearMemStorage(storage);\n return total;\n }", "title": "" }, { "docid": "d04d33d91a4ddeba6c65be5bc7091d2b", "score": "0.60385555", "text": "public Cube(double size, Color color, Vector4d position) {\n\n this.transform = new Transform(\n position,\n new Vector4d(0,0,0),\n new Vector4d(1,1,1)\n );\n this.size = size;\n this.color = color;\n\n //a cube has six faces, I'm a genius\n this.faces = new Face[6];\n\n //clockwise rotation, from bottom left corner to bottom right corner\n this.faces[0] = new Face(\n new Point[]{\n new Point(-size / 2, -size / 2, -size / 2),\n new Point(-size / 2, size / 2, -size / 2),\n new Point(size / 2, size / 2, -size / 2),\n new Point(size / 2, -size / 2, -size / 2)\n });\n\n //we do the same for the other faces\n //up face\n this.faces[1] = new Face(\n new Point[]{\n new Point(-size / 2,size / 2,-size / 2),\n new Point(-size / 2,size / 2,size / 2),\n new Point(size / 2,size / 2,size / 2),\n new Point(size/2,size/2,-size/2)\n });\n\n //right face\n this.faces[2] = new Face(\n new Point[]{\n new Point(size/2,-size/2,-size/2),\n new Point(size/2,size/2,-size/2),\n new Point(size/2,size/2,size/2),\n new Point(size/2,-size/2,size/2)\n });\n\n //Back face\n this.faces[3] = new Face(\n new Point[]{\n new Point(-size/2,-size/2,size/2),\n new Point(-size/2,size/2,size/2),\n new Point(size/2,size/2,size/2),\n new Point(size/2,-size/2,size/2)\n });\n\n //left face\n this.faces[4] = new Face(\n new Point[]{\n new Point(-size/2,-size/2,-size/2),\n new Point(-size/2,size/2,-size/2),\n new Point(-size/2,size/2,size/2),\n new Point(-size/2,-size/2,size/2)\n });\n\n //down face\n this.faces[5] = new Face(\n new Point[]{\n new Point(-size/2,-size/2,-size/2),\n new Point(-size/2,-size/2,size/2),\n new Point(size/2,-size/2,size/2),\n new Point(size/2,-size/2,-size/2)\n });\n }", "title": "" }, { "docid": "1c2ac3e5272823d6ad1bb1cc88db6b98", "score": "0.60234636", "text": "public Face() {\n super();\n this._pointIdList = new java.util.Vector<java.lang.Integer>();\n }", "title": "" }, { "docid": "f4588bf984ac2cdc10639fa13136e7db", "score": "0.60047114", "text": "public int getFace(){\n return face;\n }", "title": "" }, { "docid": "72c8d6a3059afe66c1a19bfa2362e4be", "score": "0.6000746", "text": "public int getFace(){\n return face;\n }", "title": "" }, { "docid": "97b21b2104c63874e75814be5922d950", "score": "0.59990436", "text": "public double getFace(){\n return m_face;\n }", "title": "" }, { "docid": "4314adcdbcd067d35493490e8be42a60", "score": "0.5989807", "text": "@Override\n public void draw(Canvas canvas) {\n PointF detectPosition = mPosition;\n PointF detectLeftPosition = mLeftEyePosition;\n PointF detectRightPosition = mRightEyePosition;\n PointF detectNoseBasePosition = mNoseBasePosition;\n PointF detectMouthLeftPosition = mMouthLeftPosition;\n PointF detectBottomMouthPosition = mMouthBottomPosition;\n PointF detectMouthRightPosition = mMouthRightPosition;\n\n //////////EARINGS//////////////\n\n PointF detectLeftEarTip = mLeftEarTip;\n PointF detectLeftEarPosition = mLeftEarPosition;\n PointF detectRightEarTip = mRightEarTip;\n PointF detectRightEarPosition = mRightEarPosition;\n\n //////////EARINGS//////////////\n\n\n if ((detectPosition == null) ||\n (detectLeftPosition == null) ||\n (detectRightPosition == null) ||\n (detectNoseBasePosition == null) ||\n (detectMouthLeftPosition == null) ||\n (detectBottomMouthPosition == null) ||\n (detectMouthRightPosition == null) ||\n (detectLeftEarTip == null) ||\n (detectLeftEarPosition == null) ||\n (detectRightEarTip == null) ||\n (detectRightEarPosition == null)\n\n ) {\n return;\n }\n\n // Convert the face's camera coordinates and dimensions\n // to view coordinates and dimensions.\n PointF position = new PointF(scaleX(detectPosition.x),\n scaleY(detectPosition.y));\n float width = scaleX(mWidth);\n float height = scaleY(mHeight);\n PointF leftEyePosition = new PointF(translateX(detectLeftPosition.x),\n translateY(detectLeftPosition.y));\n PointF rightEyePosition = new PointF(translateX(detectRightPosition.x),\n translateY(detectRightPosition.y));\n PointF noseBasePosition = new PointF(translateX(detectNoseBasePosition.x),\n translateY(detectNoseBasePosition.y));\n PointF mouthLeftPosition = new PointF(translateX(detectMouthLeftPosition.x),\n translateY(detectMouthLeftPosition.y));\n PointF mouthRightPosition = new PointF(translateX(detectMouthRightPosition.x),\n translateY(detectMouthRightPosition.y));\n\n PointF mouthBottomPosition = new PointF(translateX(detectBottomMouthPosition.x),\n translateY(detectBottomMouthPosition.y));\n\n //////////EARINGS//////////////\n\n PointF leftEarTip = new PointF(translateX(detectLeftEarTip.x),\n translateY(detectLeftEarTip.y));\n PointF leftEarPos = new PointF(translateX(detectLeftEarPosition.x),\n translateY(detectLeftEarPosition.y));\n\n PointF rightEarTip = new PointF(translateX(detectRightEarTip.x),\n translateY(detectRightEarTip.y));\n\n PointF rightEarPos = new PointF(translateX(detectRightEarPosition.x),\n translateY(detectRightEarPosition.y));\n\n\n //////////EARINGS//////////////\n\n\n // Calculate the distance between the eyes using Pythagoras' formula,\n // and we'll use that distance to set the size of the eyes and irises.\n float distance = (float) Math.sqrt(\n (rightEyePosition.x - leftEyePosition.x) * (rightEyePosition.x - leftEyePosition.x) +\n (rightEyePosition.y - leftEyePosition.y) * ((rightEyePosition.y - leftEyePosition.y)));\n float eyeRadius = EYE_RADIUS_PROPORTION * distance;\n float irisRadius = IRIS_RADIUS_PROPORTION * distance;\n\n // Draw the eyes.\n PointF leftIrisPosition = mLeftPhysics.nextIrisPosition(leftEyePosition, eyeRadius, irisRadius);\n //drawEye(canvas, leftEyePosition, eyeRadius, leftIrisPosition, irisRadius, mLeftEyeOpen, mIsSmiling);\n PointF rightIrisPosition = mRightPhysics.nextIrisPosition(rightEyePosition, eyeRadius, irisRadius);\n //drawEye(canvas, rightEyePosition, eyeRadius, rightIrisPosition, irisRadius, mRightEyeOpen, mIsSmiling);\n\n // Draw the mustache and nose.\n //drawMustache(canvas, noseBasePosition, mouthLeftPosition, mouthRightPosition);\n\n //drawLeftEaring(canvas, leftEarPos, leftEarTip);\n\n //drawNecklace(canvas, mouthBottomPosition, leftEarTip, rightEarTip, position, width, height);\n //drawMaangTeeka(canvas, position, width, height, noseBasePosition);\n //drawLeftEar(canvas, leftEarTip, leftEarPos, width);\n //drawRightEar(canvas, rightEarTip, rightEarPos, width);\n //drawNose(canvas, noseBasePosition, leftEyePosition, rightEyePosition, irisRadius);\n\n //drawNecklace(canvas, mouthBottomPosition, leftEarTip, rightEarTip, position, width, height, mouthLeftPosition, mouthRightPosition, noseBasePosition, rightEyePosition, leftEyePosition);\n\n\n // Draw the hat only if the subject's head is titled at a\n // sufficiently jaunty angle.\n// if (Math.abs(mEulerZ) > HEAD_TILT_HAT_THRESHOLD) {\n// drawHat(canvas, position, width, height, noseBasePosition);\n// }\n\n //mNecklace = FaceActivity.hereIsDrawable();\n TryOnPojo tryOnPojo = FaceActivity.hereIsDrawableAndType();\n\n switch (tryOnPojo.getType()) {\n\n case \"default_image\":\n Log.d(TAG, \"drawwww: YOU ARE ON DEFAULT IMAGE\");\n break;\n\n case \"necklace\":\n Log.d(TAG, \"drawwww: YOU CHOSE NECKLACE\");\n drawNecklace(tryOnPojo.getImage(), canvas, mouthBottomPosition, leftEarTip, rightEarTip, position, width, height, mouthLeftPosition, mouthRightPosition, noseBasePosition, rightEyePosition, leftEyePosition);\n break;\n\n case \"nosepin\":\n drawNose(tryOnPojo.getImage(), canvas, noseBasePosition, leftEyePosition, rightEyePosition, irisRadius, rightEarPos);\n Log.d(TAG, \"drawwww: YOU CHOSE NOSEPIN\");\n break;\n\n case \"maangteeka\":\n Log.d(TAG, \"drawwww: YOU CHOSE MAANG TIKKA\");\n drawMaangTeeka(tryOnPojo.getImage(), canvas, position, width, height, noseBasePosition);\n break;\n\n case \"earrings\":\n drawLeftEar(tryOnPojo.getImage(), canvas, leftEarTip, leftEarPos, width, mouthBottomPosition, noseBasePosition, leftEyePosition, rightEyePosition, rightEarPos);\n drawRightEar(tryOnPojo.getImage(), canvas, rightEarTip, rightEarPos, width, mouthBottomPosition, noseBasePosition, leftEyePosition, rightEyePosition, leftEarPos);\n Log.d(TAG, \"drawwww: YOU CHOSE EARRINGS\");\n break;\n\n }\n\n\n }", "title": "" }, { "docid": "14780de61e2794639b04a8b2df83d438", "score": "0.59598863", "text": "private static Mat detectFaces(Mat image, CascadeClassifier faceDetector, VideoFrame frame)\n {\n MatOfRect faceDetections = new MatOfRect();\n \n //a function that maybe ...\n faceDetector.detectMultiScale(image, faceDetections);\n \n //an array of faces detected, a function imported from MatOfRect\n //named faces\n Rect[] faces = faceDetections.toArray();\n \n //,...\n boolean shouldSave = frame.shouldSave();\n \n //get a name\n String name = frame.getFileName();\n \n \n Scalar color = frame.getTextColor();\n\n //for elements in the array, faces\n for (Rect face : faces)\n {\n \t\n Mat croppedImage = new Mat(image, face);\n\n //we save the images\n if (shouldSave)\n saveImage(croppedImage, name);\n \n //\n //annotated the faces on the frame\n Imgproc.putText(image, \"Name: \" + identifyFace(croppedImage), face.tl(), Font.BOLD, 3, color);\n \n //在image上识别人脸,修改并保存至原image object\n Imgproc.rectangle(image, face.tl(), face.br(), color);\n }\n\n //how many faces detected\n int faceCount = faces.length;\n \n //topLeft corner displayed message\n String message = faceCount + \" Student\" + (faceCount == 1 ? \"\" : \"s\") + \" detected!\";\n Imgproc.putText(image, message, new Point(3, 25), Font.BOLD, 2, color);\n\n return image;\n }", "title": "" }, { "docid": "1b4be9075aa9a41c1d4f203bee8d491f", "score": "0.59467745", "text": "@Override\r\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {\n\t\ttry{\r\n\t\t\tcamera.setDisplayOrientation(90);\r\n\t\t\tCamera.Parameters parameters = camera.getParameters();\r\n\t\t\ttry{\r\n\t\t\t\tif(parameters.getMaxNumDetectedFaces()>0){\r\n\t\t\t\t\tcamera.setFaceDetectionListener(new Camera.FaceDetectionListener() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onFaceDetection(Face[] faces, Camera camera) {\r\n\t\t\t\t\t\t\tif(faces!=null){\r\n\t\t\t\t\t\t\t\tfor(Face iFace: faces){\r\n\t\t\t\t\t\t\t\t\tint id=iFace.id;\r\n\t\t\t\t\t\t\t\t\tint score=iFace.score;\r\n\t\t\t\t\t\t\t\t\tPoint leftEye=iFace.leftEye;\r\n\t\t\t\t\t\t\t\t\tPoint mouth=iFace.mouth;\r\n\t\t\t\t\t\t\t\t\tPoint rightEye=iFace.rightEye;\r\n\t\t\t\t\t\t\t\t\tRect rect=iFace.rect;\r\n\r\n\t\t\t\t\t\t\t\t\tLog.e(\"Face Detection\", id+score+leftEye.x+leftEye.y+mouth.x+rightEye.x+rect.bottom+\"\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}catch(NoSuchMethodError e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tparameters.setPreviewSize(w, h);\r\n\t\t\tcamera.setParameters(parameters);\r\n\t\t\tcamera.startPreview();\r\n\t\t}catch(NullPointerException e){\r\n\t\t}catch (Exception e) {\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8107c83752318b908bf34bd5119f970d", "score": "0.5915178", "text": "private void checkBoundaries() {\n\n OrthographicCamera camera = (OrthographicCamera)getCamera();\n for (Actor actor : getActors()) {\n if(actor instanceof SpaceObject) {\n SpaceObject object = (SpaceObject)actor;\n Vector2 center = object.getCenterCoordinates();\n\n if(!camera.frustum.pointInFrustum(center.x, center.y, 0f)) {\n\n float posX = object.getBody().getPosition().x;\n float posY = object.getBody().getPosition().y;\n\n float height = camera.viewportHeight / 2;\n float width = camera.viewportWidth / 2;\n\n posX = center.x < -width || center.x > width ? -posX : posX;\n posY = center.y < -height || center.y > height ? -posY : posY;\n\n object.relocate(posX, posY, object.getBody().getAngle(), true);\n }\n }\n }\n }", "title": "" }, { "docid": "75d7a84fa612c4efb5c328f479067c97", "score": "0.58984846", "text": "private void face() {\r\n\t\tgraphics.setColor(new Color(113, 126, 140));\r\n\t\tgraphics.fillRect(this.point.x, this.point.y, this.size, this.size);\r\n\t}", "title": "" }, { "docid": "a1d916fb03ce3fe1a45db692e036fae6", "score": "0.58885866", "text": "public static Face[] getSolvedCubeFaces() {\n\n Face[] faces = new Face[6];\n faces[0] = new Face(\"--0--\" +\n \"-000-\" +\n \"00000\" +\n \"-000-\" +\n \"--0--\");\n faces[1] = new Face(\"--0-0\" +\n \"00000\" +\n \"-000-\" +\n \"00000\" +\n \"-0-00\");\n faces[2] = new Face(\"-0-0-\" +\n \"-000-\" +\n \"00000\" +\n \"-000-\" +\n \"--0--\");\n faces[3] = new Face(\"0-0--\" +\n \"00000\" +\n \"-000-\" +\n \"00000\" +\n \"-0-0-\");\n faces[4] = new Face(\"0-0-0\" +\n \"00000\" +\n \"-000-\" +\n \"00000\" +\n \"0-0-0\");\n faces[5] = new Face(\"-0-0-\" +\n \"0000-\" +\n \"-0000\" +\n \"0000-\" +\n \"00-0-\");\n return faces;\n }", "title": "" }, { "docid": "cba1a99b6012726246b1babf67ecf6d0", "score": "0.5871694", "text": "final private void renderCubeFaces( final double hfov, final double vfov )\n\t{\n\t\tfinal double cubeSize = frontSource.getWidth() - 1;\n\n\t\t/* prepare extended image */\n\t\tipSource = ip.createProcessor(\n\t\t\t\thfov == 2.0 * Math.PI ? imp.getWidth() + 1 : imp.getWidth(),\n\t\t\t\tvfov == Math.PI ? imp.getHeight() + 1 : imp.getHeight() );\n\t\tprepareExtendedImage( imp.getProcessor(), ipSource );\n\n\t\t/* render cube faces */\n\t\tfinal EquirectangularProjection q = p.clone();\n\t\tq.resetOrientation();\n\t\tq.setTargetWidth( cubeSize );\n\t\tq.setTargetHeight( cubeSize );\n\t\tq.setF( 0.5f );\n\n\t\tfinal InverseTransformMapping< EquirectangularProjection > qMapping = new InverseTransformMapping< EquirectangularProjection >( q );\n\n\t\tIJ.showStatus( \"Rendering cube faces...\" );\n\t\tIJ.showProgress( 0, 6 );\n\t\tqMapping.mapInterpolated( ipSource, frontSource );\n\t\tIJ.showProgress( 1, 6 );\n\t\tq.pan( Math.PI );\n\t\tqMapping.mapInterpolated( ipSource, backSource );\n\t\tIJ.showProgress( 2, 6 );\n\t\tq.resetOrientation();\n\t\tq.pan( Math.PI / 2 );\n\t\tqMapping.mapInterpolated( ipSource, leftSource );\n\t\tIJ.showProgress( 3, 6 );\n\t\tq.resetOrientation();\n\t\tq.pan( -Math.PI / 2 );\n\t\tqMapping.mapInterpolated( ipSource, rightSource );\n\t\tIJ.showProgress( 4, 6 );\n\t\tq.resetOrientation();\n\t\tq.tilt( -Math.PI / 2 );\n\t\tqMapping.mapInterpolated( ipSource, topSource );\n\t\tIJ.showProgress( 5, 6 );\n\t\tq.resetOrientation();\n\t\tq.tilt( Math.PI / 2 );\n\t\tqMapping.mapInterpolated( ipSource, bottomSource );\n\t\tIJ.showProgress( 6, 6 );\n\n\t\tif ( showCubefaces )\n\t\t{\n\t\t\tnew ImagePlus( \"front\", frontSource ).show();\n\t\t\tnew ImagePlus( \"back\", backSource ).show();\n\t\t\tnew ImagePlus( \"left\", leftSource ).show();\n\t\t\tnew ImagePlus( \"right\", rightSource ).show();\n\t\t\tnew ImagePlus( \"top\", topSource ).show();\n\t\t\tnew ImagePlus( \"bottom\", bottomSource ).show();\n\t\t}\n\t}", "title": "" }, { "docid": "e344a5f5b35d43b448214e0889e9295c", "score": "0.5865875", "text": "public FT_Face face() { return nface(address()); }", "title": "" }, { "docid": "f5f50895cc0f32f952b3b6b4f36a7002", "score": "0.58294356", "text": "public Cube(double size, Color color) {\n\n this.transform = new Transform();\n this.size = size;\n System.out.println(\"Color \" + color);\n this.color = color;\n\n //a cube has six faces, I'm a genius\n this.faces = new Face[6];\n\n //clockwise rotation, from bottom left corner to bottom right corner\n this.faces[0] = new Face(\n new Point[]{\n new Point(-size / 2, -size / 2, -size / 2),\n new Point(-size / 2, size / 2, -size / 2),\n new Point(size / 2, size / 2, -size / 2),\n new Point(size / 2, -size / 2, -size / 2)\n });\n\n //we do the same for the other faces\n //up face\n this.faces[1] = new Face(\n new Point[]{\n new Point(-size / 2,size / 2,-size / 2),\n new Point(-size / 2,size / 2,size / 2),\n new Point(size / 2,size / 2,size / 2),\n new Point(size/2,size/2,-size/2)\n });\n\n //right face\n this.faces[2] = new Face(\n new Point[]{\n new Point(size/2,-size/2,-size/2),\n new Point(size/2,size/2,-size/2),\n new Point(size/2,size/2,size/2),\n new Point(size/2,-size/2,size/2)\n });\n\n //Back face\n this.faces[3] = new Face(\n new Point[]{\n new Point(-size/2,-size/2,size/2),\n new Point(-size/2,size/2,size/2),\n new Point(size/2,size/2,size/2),\n new Point(size/2,-size/2,size/2)\n });\n\n //left face\n this.faces[4] = new Face(\n new Point[]{\n new Point(-size/2,-size/2,-size/2),\n new Point(-size/2,size/2,-size/2),\n new Point(-size/2,size/2,size/2),\n new Point(-size/2,-size/2,size/2)\n });\n\n //down face\n this.faces[5] = new Face(\n new Point[]{\n new Point(-size/2,-size/2,-size/2),\n new Point(-size/2,-size/2,size/2),\n new Point(size/2,-size/2,size/2),\n new Point(size/2,-size/2,-size/2)\n });\n }", "title": "" }, { "docid": "912d81fd4953e22e4980a1aec2df3b49", "score": "0.58288884", "text": "public static boolean isCubeSolved() {\n\t\tColor temp;\n\t\tfor (int i = 0; i < 6; i++) {\n\t\t\ttemp = face[i].rect[0][0].color;\n\n\t\t\tfor (int j = 0; j < size; j++)\n\t\t\t\tfor (int k = 0; k < size; k++)\n\t\t\t\t\tif (face[i].rect[j][k].color != temp)\n\t\t\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7f3f7361373f37a2773caf2a0d34b55a", "score": "0.57944244", "text": "private boolean SolveBiomes(List<List<WorldTri>> surface)\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f2188a604060dd75b5ecdaa10b6bda27", "score": "0.5783522", "text": "public void facePlayer(int xpos, int ypos) {\r\n\t\tif(xpos - getX() >= 0 && ypos - getY() <= 0) {\r\n\t\t\tif(checkGreater(xpos - getX(), ypos - getY())){\r\n\t\t\t\tcurrentOrientation = 1;\r\n\t\t\t}else {\r\n\t\t\t\tcurrentOrientation = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}else if(xpos - getX() >= 0 && ypos - getY() >= 0) {\r\n\t\t\tif(checkGreater(xpos - getX(), ypos - getY())){\r\n\t\t\t\tcurrentOrientation = 1;\r\n\t\t\t}else {\r\n\t\t\t\tcurrentOrientation = 2;\r\n\t\t\t}\r\n\t\t}else if(xpos - getX() <= 0 && ypos - getY() >= 0) {\r\n\t\t\tif(checkGreater(xpos - getX(), ypos - getY())){\r\n\t\t\t\tcurrentOrientation = 3;\r\n\t\t\t}else {\r\n\t\t\t\tcurrentOrientation = 2;\r\n\t\t\t}\r\n\t\t}else if(xpos - getX() <= 0 && ypos - getY() <= 0){\r\n\t\t\tif(checkGreater(xpos - getX(), ypos - getY())){\r\n\t\t\t\tcurrentOrientation = 3;\r\n\t\t\t}else {\r\n\t\t\t\tcurrentOrientation = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "af27349dff10a4a95fab5a7cc5b1d6c6", "score": "0.5738422", "text": "public void faceObj(MapObj obj) {\n int x = obj.tile().x;\n int z = obj.tile().z;\n\n // Do some trickery to face properly\n if (tile.x == x && tile.z == z && (obj.type() == 0 || obj.type() == 5)) {\n if (obj.rot() == 0) {\n x--;\n } else if (obj.rot() == 1) {\n z++;\n } else if (obj.rot() == 2) {\n x++;\n } else if (obj.rot() == 3) {\n z--;\n }\n }\n\n int sx = obj.definition(world).sizeX;\n int sz = obj.definition(world).sizeY;\n\n //sync.facetile(new Tile((int) (x * 2) + sx, (int) (z * 2) + sz));\n sync.facetile(new Tile(x + (sx / 2), z + (sz / 2)));\n }", "title": "" }, { "docid": "700cd4a71c60a109283a040324f0c4b5", "score": "0.5728703", "text": "private boolean checkFlowerPositions (Flower flower) {\n\n Position pos1 = flower.getFirst();\n Position pos2 = flower.getSecond();\n Position pos3 = flower.getThird();\n\n //Summe einer Position darf nie size+2 ueberschreiten!\n if(!checkPosition(pos1, size) || !checkPosition(pos2, size) || !checkPosition(pos3, size)) {\n return false;\n }\n\n if((pos1.equals(pos2)) || (pos2.equals(pos3)) || (pos3.equals(pos1))) {\n return false;\n }\n\n /*vv Wenn einer dieser Graeben ungueltig sein sollte, ist somit auch\n die Blume ungueltig!*/\n Ditch one = new Ditch(pos1, pos2);\n Ditch two = new Ditch(pos2, pos3);\n Ditch three = new Ditch(pos3, pos1);\n\n if(checkDitchPositions(one) && checkDitchPositions(two) && checkDitchPositions(three)) {\n return true;\n }\n else {\n return false;\n }\n\n }", "title": "" }, { "docid": "347fda038ba707a041e3b48b65e80d15", "score": "0.57155114", "text": "protected void initSides() {\n int i, j, k;\n idx3d_Object cylinder;\n\n float[] verts = {\n //0:luff ldff ruff rdff\n -8, 8, 9, -8,-8, 9, 8, 8, 9, 8,-8, 9,\n\n //4:rubb, rdbb, lubb, ldbb\n 8,8,-1, 8,-8,-1, -8,8,-1, -8,-8,-1,\n\n //8:lluf lldf rruf rrdf\n -9, 8, 8, -9,-8, 8, 9, 8, 8, 9,-8, 8,\n\n //12:rrub, rrdb, llub, lldb\n 9,8,0, 9,-8,0, -9,8,0, -9,-8,0,\n\n //16:luuf lddf ruuf rddf\n -8, 9, 8, -8,-9, 8, 8, 9, 8, 8,-9, 8,\n\n //20:ruub, rddb, luub, lddb\n 8,9,0, 8,-9,0, -8,9,0, -8,-9,0,\n /*\n //24\n 2,4.5f,-1, 4.5f,2,-1, 4.5f,-2,-1, 2,-4.5f,-1, -2,-4.5f,-1, -4.5f,-2,-1, -4.5f,2,-1, -2,4.5f,-1,\n\n //32\n 2,4.5f,-9, 4.5f,2,-9, 4.5f,-2,-9, 2,-4.5f,-9, -2,-4.5f,-9, -4.5f,-2,-9, -4.5f,2,-9, -2,4.5f,-9,\n */\n };\n int[][] faces = {\n // Faces with stickers and with outlines\n //--------------------------------------\n {0, 2, 3, 1}, //Front\n\n // Faces with outlines\n // (all faces which have outlines must be\n // at the beginning, this is relevant\n // for method updatePartsOutlineColor()\n //--------------------------------------\n {16, 22, 20, 18}, //Top\n {14, 8, 9, 15}, //Left\n {12, 13, 11, 10}, //Right\n {17, 19, 21, 23}, //Bottom\n {4, 6, 7, 5}, //Back\n /*\n // Back face of the axis\n {39, 38, 37, 36, 35, 34, 33, 32},\n\n // Faces of the axis\n {24, 32, 33, 25},\n {25, 33, 34, 26},\n {26, 34, 35, 27},\n {27, 35, 36, 28},\n {28, 36, 37, 29},\n {29, 37, 38, 30},\n {30, 38, 39, 31},\n {31, 39, 32, 24},\n */\n // Faces without outlines\n //--------------------------------------\n {17, 9, 1}, //Bottom Left Front lddf lldf ldff\n {19, 3,11}, //Bottom Front Right rddf rdff rrdf\n {23, 7,15}, //Bottom Back Left lddb ldbb lldb\n {21,13, 5}, //Bottom Right Back rddb rrdb rdbb\n\n {16, 0, 8}, //Top Front Left luuf luff lluf\n {18,10, 2}, //Top Right Front ruuf rruf ruff\n {22,14, 6}, //Top Left Back luub llub lubb\n {20, 4,12}, //Top Back Right ruub rubb rrub\n\n {16, 18, 2, 0}, //Top Front\n {18, 20, 12, 10}, //Top Right\n {20, 22, 6, 4}, //Top Back\n {22, 16, 8, 14}, //Top Left\n\n {19, 17, 1, 3}, //Bottom Front\n {21, 19, 11, 13}, //Bottom Right rddb rddf rrdf rrdb\n {23, 21, 5, 7}, //Bottom Back lddb rddb rdbb ldbb\n {17,23,15, 9}, //Bottom Left lddf lddb lldb lldf\n\n {3, 2, 10, 11}, //Front Right rdff ruff rruf rrdf\n {0, 1, 9, 8}, //Front Left\n {4, 5, 13, 12}, //Back Right\n {7, 6, 14, 15}, //Back Left\n\n };\n\n for (k = 0; k < 6; k++) {\n idx3d_Object object3D = new idx3d_Object();\n for (i=0; i < verts.length / 3; i++) {\n object3D.addVertex(\n verts[i*3], verts[i*3+1], verts[i*3+2]\n );\n }\n for (i=0; i < faces.length; i++) {\n for (j = 2; j < faces[i].length; j++) {\n idx3d_Triangle triangle = new idx3d_Triangle(\n object3D.vertex(faces[i][0]),\n object3D.vertex(faces[i][j-1]),\n object3D.vertex(faces[i][j])\n );\n object3D.addTriangle(triangle);\n //if (i == 0) triangle.setMaterial(STICKER_MATERIALS[k]);\n }\n }\n\n cylinder = idx3d_ObjectFactory.CYLINDER(8f, 4.5f, 12, true, false);\n cylinder.rotate((float) (Math.PI / 2), 0f, 0f);\n cylinder.shift(0f, 0f, -5f);\n cylinder.matrixMeltdown();\n\n object3D.incorporateGeometry(cylinder);\n object3D.material = new idx3d_InternalMaterial();\n idx3d_InternalMaterial sticker1 = new idx3d_InternalMaterial();\n object3D.triangle(0).setTriangleMaterial(sticker1);\n object3D.triangle(1).setTriangleMaterial(sticker1);\n\n idx3d_Group group = new idx3d_Group();\n group.addChild(object3D);\n parts[sideOffset + k] = group;\n }\n }", "title": "" }, { "docid": "1b68d13e6dfad9e79710fa93a6842f83", "score": "0.57064515", "text": "public boolean testFbsmfaces(EIfcfacebasedsurfacemodel type) throws SdaiException;", "title": "" }, { "docid": "982d86c004fc66fe12f7a4e9bd55bd5e", "score": "0.5671371", "text": "@Override\n public boolean isFlammable(IBlockAccess world, int x, int y, int z,\n ForgeDirection face) {\n return super.isFlammable(world, x, y, z, face);\n }", "title": "" }, { "docid": "5948bd997694023ab2b38d68e421a4ed", "score": "0.56435853", "text": "public void DetectFace() {\r\n\r\n\t\t// creating object of Mat class with webcameImage variable\r\n\t\tMat webcamImage = new Mat();\r\n\r\n\t\t// creating object of VideoCapture class with videoCapture variable\r\n\t\tVideoCapture videoCapture = new VideoCapture(0);\r\n\r\n\t\t// logical condition to check if vedioCapture is open\r\n\t\tif (videoCapture.isOpened()) {\r\n\r\n\t\t\t// while loop to iterate till it detects the face\r\n\t\t\twhile (isTrue) {\r\n\r\n\t\t\t\tvideoCapture.read(webcamImage);\r\n\r\n\t\t\t\t// logical condition to check if webcamImage is not empty\r\n\t\t\t\tif (!webcamImage.empty()) {\r\n\r\n\t\t\t\t\twebcamImage.copyTo(coloredImage); // copying coloredImage reference variable to webcamImage\r\n\t\t\t\t\twebcamImage.copyTo(greyImage); // copying greyImage reference variable to webcameImage\r\n\r\n\t\t\t\t\tImgproc.cvtColor(coloredImage, greyImage, Imgproc.COLOR_BGR2GRAY);\r\n\t\t\t\t\tImgproc.equalizeHist(greyImage, greyImage);\r\n\r\n\t\t\t\t\t// calling detectMultiScale method of cascadeClassifier class to detect face\r\n\t\t\t\t\tcascadeClassifier.detectMultiScale(greyImage, detectedFaces);\r\n\r\n\t\t\t\t\t// this creates rectangle around detected faces\r\n\t\t\t\t\tint width = webcamImage.width(), height = webcamImage.height(), channels = webcamImage.channels();\r\n\t\t\t\t\tbyte[] sourcePixels = new byte[width * height * channels];\r\n\t\t\t\t\twebcamImage.get(0, 0, sourcePixels);\r\n\r\n\t\t\t\t\timage = new BufferedImage(width, height, BufferedImage.TYPE_3BYTE_BGR);\r\n\t\t\t\t\tfinal byte[] targetPixels = ((DataBufferByte) image.getRaster().getDataBuffer()).getData();\r\n\t\t\t\t\tSystem.arraycopy(sourcePixels, 0, targetPixels, 0, sourcePixels.length);\r\n\r\n\t\t\t\t\t// detectedFAces.toArray().length with store the number of faces detected in\r\n\t\t\t\t\t// accumulator variable\r\n\t\t\t\t\tint accumulator = detectedFaces.toArray().length;\r\n\r\n\t\t\t\t\t// this will set the value of isDetected variable to 1 if it detected faces\r\n\t\t\t\t\tif (accumulator > 0) {\r\n\t\t\t\t\t\tthis.isDetected = 1;\r\n\t\t\t\t\t\tisTrue = false;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.isDetected = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// this will print 1 in the conlose if face is detected and 0 if not\r\n\t\t\t\t\tSystem.out.println(\"Detected faces: \" + this.isDetected);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Problem\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tvideoCapture.release();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0859e24299892fc197e7560376c35f21", "score": "0.56330055", "text": "public WB_Point2d[] getFaceCoordinates() {\n\t\tfinal FastList<WB_Point2d> facePoints = new FastList<WB_Point2d>();\n\t\t// reset 'used' flags\n\t\tclearFlags(Tri_HalfEdge.FLAG_READ);\n\t\t// find the faces\n\t\tfor (final Tri_HalfEdge he0 : halfEdges) {\n\t\t\tif (he0.isFlagged(Tri_HalfEdge.FLAG_READ)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfinal Tri_HalfEdge he1 = he0.next;\n\t\t\tfinal Tri_HalfEdge he2 = he1.next;\n\t\t\t// the face is oriented CCW\n\t\t\tfacePoints.add(new WB_Point2d(he0.origin));\n\t\t\tfacePoints.add(new WB_Point2d(he1.origin));\n\t\t\tfacePoints.add(new WB_Point2d(he2.origin));\n\t\t\t// mark these half edges as used\n\t\t\the0.flag(Tri_HalfEdge.FLAG_READ);\n\t\t\the1.flag(Tri_HalfEdge.FLAG_READ);\n\t\t\the2.flag(Tri_HalfEdge.FLAG_READ);\n\t\t}\n\t\treturn facePoints.toArray(new WB_Point2d[0]);\n\t}", "title": "" }, { "docid": "38af0413deed8ff224888878b07b32fa", "score": "0.56320685", "text": "private static boolean isValidFaceLine(String line)\n\t{\n\t\treturn WavefrontObject.isValidFace_V_VT_VN_Line(line) || WavefrontObject.isValidFace_V_VT_Line(line)\n\t\t\t\t|| WavefrontObject.isValidFace_V_VN_Line(line) || WavefrontObject.isValidFace_V_Line(line);\n\t}", "title": "" }, { "docid": "27169da3bdc8d0ee95630309a4d77228", "score": "0.56213295", "text": "HashMap<Integer, HashMap<Integer, Face>> cull(ChunkLArray chunk) {\n for (int i = 0; i < DataConstants.CHUNK_SIZE; i++) {\n TerraObject object = chunk.get(i);\n\n if (object.getTexture() == null) {\n continue;\n }\n\n if (object.hasMesh()) {\n HashMap<Integer, Face> resources = sector.get(6);\n Face face = new Face();\n face.setObject(object);\n resources.put(i, face);\n continue;\n }\n\n //Position of current voxel\n int z = i / 4096;\n int y = (i - 4096 * z) / 64;\n int x = i % 64;\n\n //Culls face if there is in Left, Right, Top, Bottom, Back, Front exiting face\n //Left, Bottom, Back faces are reversed\n\n // LEFT\n /*&& buf.get(i + 64) != object*/\n if (x == 0 || chunk.get(i - 1) != object) {\n Face face = new Face();\n HashMap<Integer, Face> side = sector.get(0);\n face.setObject(object);\n face.setNormals(new Vector3f(-1, 0, 0), new Vector3f(-1, 0, 0), new Vector3f(-1, 0, 0), new Vector3f(-1, 0, 0));\n face.setVector3f(x, y, z + 1, 0);\n face.setVector3f(x, y + 1, z + 1, 1);\n face.setVector3f(x, y + 1, z, 2);\n face.setVector3f(x, y, z, 3);\n side.put(i, face);\n\n //Naive Greedy Meshing\n if (i > 4096) {\n Face previousFace = side.get(i - 4096);\n if (previousFace != null && previousFace.getObject() == face.getObject()) {\n if (face.getVector3fs()[3].equals(previousFace.getVector3fs()[0]) &&\n face.getVector3fs()[2].equals(previousFace.getVector3fs()[1])) {\n face.setVector3f(previousFace.getVector3fs()[2], 2);\n face.setVector3f(previousFace.getVector3fs()[3], 3);\n side.remove(i - 4096);\n }\n }\n }\n }\n\n // RIGHT\n /*&& buf.get(i + 64) != object*/\n if (x == 63 || chunk.get(i + 1) != object) {\n Face face = new Face();\n face.setObject(object);\n face.setNormals(new Vector3f(1, 0, 0), new Vector3f(1, 0, 0), new Vector3f(1, 0, 0), new Vector3f(1, 0, 0));\n HashMap<Integer, Face> side = sector.get(1);\n face.setVector3f(x + 1, y, z, 0);\n face.setVector3f(x + 1, y + 1, z, 1);\n face.setVector3f(x + 1, y + 1, z + 1, 2);\n face.setVector3f(x + 1, y, z + 1, 3);\n side.put(i, face);\n\n //Naive Greedy Meshing\n if (i > 4096) {\n Face previousFace = side.get(i - 4096);\n if (previousFace != null && previousFace.getObject() == face.getObject()) {\n if (face.getVector3fs()[0].equals(previousFace.getVector3fs()[3]) &&\n face.getVector3fs()[1].equals(previousFace.getVector3fs()[2])) {\n face.setVector3f(previousFace.getVector3fs()[0], 0);\n face.setVector3f(previousFace.getVector3fs()[1], 1);\n side.remove(i - 4096);\n }\n }\n }\n }\n\n // TOP\n if (y == 63 || chunk.get(i + 64) != object) {\n Face face = new Face();\n face.setObject(object);\n face.setNormals(new Vector3f(0, 1, 0), new Vector3f(0, 1, 0), new Vector3f(0, 1, 0), new Vector3f(0, 1, 0));\n HashMap<Integer, Face> side = sector.get(2);\n face.setVector3f(x, y + 1, z, 0);\n face.setVector3f(x, y + 1, z + 1, 1);\n face.setVector3f(x + 1, y + 1, z + 1, 2);\n face.setVector3f(x + 1, y + 1, z, 3);\n side.put(i, face);\n\n //Naive Greedy Meshing\n if (i > 1) {\n Face previousFace = side.get(i - 1);\n if (previousFace != null && previousFace.getObject() == face.getObject()) {\n if (face.getVector3fs()[0].equals(previousFace.getVector3fs()[3]) &&\n face.getVector3fs()[1].equals(previousFace.getVector3fs()[2])) {\n face.setVector3f(previousFace.getVector3fs()[0], 0);\n face.setVector3f(previousFace.getVector3fs()[1], 1);\n side.remove(i - 1);\n }\n }\n }\n }\n\n // BOTTOM\n if (y == 0 || y > 0 && chunk.get(i - 64) != object) {\n Face face = new Face();\n face.setObject(object);\n face.setNormals(new Vector3f(0, -1, 0), new Vector3f(0, -1, 0), new Vector3f(0, -1, 0), new Vector3f(0, -1, 0));\n HashMap<Integer, Face> side = sector.get(3);\n face.setVector3f(x + 1, y, z, 0);\n face.setVector3f(x + 1, y, z + 1, 1);\n face.setVector3f(x, y, z + 1, 2);\n face.setVector3f(x, y, z, 3);\n side.put(i, face);\n\n //Naive Greedy Meshing\n if (i > 1) {\n Face previousFace = side.get(i - 1);\n if (previousFace != null && previousFace.getObject() == face.getObject()) {\n if (face.getVector3fs()[3].equals(previousFace.getVector3fs()[0]) &&\n face.getVector3fs()[2].equals(previousFace.getVector3fs()[1])) {\n face.setVector3f(previousFace.getVector3fs()[3], 3);\n face.setVector3f(previousFace.getVector3fs()[2], 2);\n side.remove(i - 1);\n }\n }\n }\n }\n //&& buf.get(i + 64) != object*/ || z < 63\n // BACK\n if (z == 63 || chunk.get(i + 4096) != object) {\n Face face = new Face();\n face.setObject(object);\n face.setNormals(new Vector3f(0, 0, 1), new Vector3f(0, 0, 1), new Vector3f(0, 0, 1), new Vector3f(0, 0, 1));\n HashMap<Integer, Face> side = sector.get(4);\n face.setVector3f(x + 1, y, z + 1, 0);\n face.setVector3f(x + 1, y + 1, z + 1, 1);\n face.setVector3f(x, y + 1, z + 1, 2);\n face.setVector3f(x, y, z + 1, 3);\n side.put(i, face);\n\n //Naive Greedy Meshing\n if (i > 1) {\n Face previousFace = side.get(i - 1);\n if (previousFace != null && previousFace.getObject() == face.getObject()) {\n if (face.getVector3fs()[3].equals(previousFace.getVector3fs()[0]) &&\n face.getVector3fs()[2].equals(previousFace.getVector3fs()[1])) {\n face.setVector3f(previousFace.getVector3fs()[3], 3);\n face.setVector3f(previousFace.getVector3fs()[2], 2);\n side.remove(i - 1);\n }\n }\n }\n }\n\n // FRONT\n if (z == 0 || chunk.get(i - 4096) != object) {\n Face face = new Face();\n face.setObject(object);\n face.setNormals(new Vector3f(0, 0, -1), new Vector3f(0, 0, -1), new Vector3f(0, 0, -1), new Vector3f(0, 0, -1));\n HashMap<Integer, Face> side = sector.get(5);\n face.setVector3f(x, y, z, 0);\n face.setVector3f(x, y + 1, z, 1);\n face.setVector3f(x + 1, y + 1, z, 2);\n face.setVector3f(x + 1, y, z, 3);\n side.put(i, face);\n\n //Naive Greedy Meshing\n if (i > 1) {\n Face previousFace = side.get(i - 1);\n if (previousFace != null && previousFace.getObject() == face.getObject()) {\n if (face.getVector3fs()[0].equals(previousFace.getVector3fs()[3]) &&\n face.getVector3fs()[1].equals(previousFace.getVector3fs()[2])) {\n face.setVector3f(previousFace.getVector3fs()[0], 0);\n face.setVector3f(previousFace.getVector3fs()[1], 1);\n side.remove(i - 1);\n }\n }\n }\n }\n }\n\n chunk.free();\n return sector;\n }", "title": "" }, { "docid": "9ba4e4efb6ecb3ca05f76279d377e056", "score": "0.5617465", "text": "private void detectAndDisplay(Mat frame) {\n\t\tMatOfRect faces = new MatOfRect();\n\t\tMat grayFrame = new Mat();\n\t\tImgproc.cvtColor(frame, grayFrame, Imgproc.COLOR_BGR2GRAY);\n\t\tImgproc.equalizeHist(grayFrame, grayFrame);\n\t\tif (this.absoluteFaceSize == 0) {\n\t\t\tint height = grayFrame.rows();\n\t\t\tif (Math.round(height * 0.2f) > 0) {\n\t\t\t\tthis.absoluteFaceSize = Math.round(height * 0.2f);\n\t\t\t}\n\t\t}\n\t\tthis.faceCascade.detectMultiScale(grayFrame, faces, 1.1, 2, 0 | Objdetect.CASCADE_SCALE_IMAGE,\n\t\t\t\tnew Size(this.absoluteFaceSize, this.absoluteFaceSize), new Size());\n\t\tRect[] facesArray = faces.toArray();\n\t\tfor (int i = 0; i < facesArray.length; i++) {\n\t\t\tImgproc.rectangle(frame, facesArray[i].tl(), facesArray[i].br(), new Scalar(255, 255, 0), 3);\n\t\t}\n\t}", "title": "" }, { "docid": "3d8e1912e7ab43f462d5fdf0b6b41078", "score": "0.5613902", "text": "public int getFace(){\r\n if(face > 0 && face < 7){\r\n return this.face;\r\n }else{\r\n System.out.println(\"Jogue o dado novamente\");\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "db2cd7d3700affbf5398edbdd1538e0e", "score": "0.5612976", "text": "public String getFace(){\r\n return this.face;\r\n }", "title": "" }, { "docid": "db2cd7d3700affbf5398edbdd1538e0e", "score": "0.5612976", "text": "public String getFace(){\r\n return this.face;\r\n }", "title": "" }, { "docid": "d650dfc6adad7c692bd4efac96b9db5e", "score": "0.558487", "text": "public boolean isFaceDetected() {\r\n\r\n\t\t// creating boolean variable and initializating it to false\r\n\t\tboolean faceNumber = false;\r\n\r\n\t\t// checking if isDetected variable's value is 0 or 1\r\n\t\tif (this.isDetected == 0) {\r\n\t\t\tfaceNumber = false;\r\n\t\t} else if (this.isDetected >= 1) {\r\n\t\t\tfaceNumber = true;\r\n\t\t}\r\n\r\n\t\t// returning true if isDetected is equal to 1 else returning false\r\n\t\treturn faceNumber;\r\n\t}", "title": "" }, { "docid": "6211c8aeadf6d18b33cd7368bb5da2c0", "score": "0.55726844", "text": "public Face getFace()\n {\n return face;\n }", "title": "" }, { "docid": "6e6264a7532f081784a76b7bb1059e9d", "score": "0.55717856", "text": "public int[/*nFaces*/] getFace2OppositeFace();", "title": "" }, { "docid": "cf9a0d479e10f9b74bc705ba5c90ed98", "score": "0.5569341", "text": "@Override\n public boolean hasCollision(\n Spatial scene, boolean checkTriangles, int requiredOnBits) {\n return false;\n }", "title": "" }, { "docid": "b1796f876fc083dd966f09a4167c9d52", "score": "0.5564619", "text": "public void calculate_face_normals() {\n float u[] = new float[3];\n float v[] = new float[3];\n\n for (int i = 0; i < triangles.size(); i++) {\n Triangle triangle = triangles.get(i);\n\n u[0] = triangle.vertices[1].x - triangle.vertices[0].x;\n u[1] = triangle.vertices[1].y - triangle.vertices[0].y;\n u[2] = triangle.vertices[1].z - triangle.vertices[0].z;\n\n v[0] = triangle.vertices[2].x - triangle.vertices[0].x;\n v[1] = triangle.vertices[2].y - triangle.vertices[0].y;\n v[2] = triangle.vertices[2].z - triangle.vertices[0].z;\n\n float[] n = VectorMath.cross(u, v);\n VectorMath.normalize(n);\n\n triangle.face_normal = new Normal(n[0], n[1], n[2]);\n }\n }", "title": "" }, { "docid": "7c5d00c6ef0c6f3a651daf1b808ece70", "score": "0.55447626", "text": "public FaceDetection() {\n initComponents();\n System.out.println(\"haarcascade_frontalface_alt.xml\");\n }", "title": "" }, { "docid": "33be1baef762b6a25c324bcdafc058cf", "score": "0.554371", "text": "public boolean isFaceUp() {\r\n\t\t\r\n\t\tif (faceUp == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ace8dedd6f0d5309269eeb4cfde25189", "score": "0.55392134", "text": "public int showFace() {\r\n\t \treturn(faceUp);\r\n\t}", "title": "" }, { "docid": "9bc526e0c08998f954ff2a1b27d6344a", "score": "0.5538506", "text": "private void initSurfacePosFBwElev(List<WorldTri> surface )\n\t{\n\t\tFloatBuffer fboP = null;\n\n\t\tmTris = surface.size();\n\n\t\tint p = 0;\n\n\t\tfloat[] triPosData = new float[ mTris * 3 * mPositionDataSize ];\n\t\tfor( WorldTri tri : surface ){\n\t\t\tfor( int i = 0; i < 3; i++ ){\n\t\t\t\tWorldVert cI = tri.corner.get(i);\n\t\t\t\ttriPosData[ p ] = cI.pos.gX() * mRadiusInv; p++;\n\t\t\t\ttriPosData[ p ] = cI.pos.gY() * mRadiusInv; p++;\n\t\t\t\ttriPosData[ p ] = cI.pos.gZ() * mRadiusInv; p++;\n\t\t\t}\n\t\t}\n\n\t\t//Logger.post( \"pos 0, 1, & 2 \" + pointPos[0] + \", \" + pointPos[1] + \", \" + pointPos[2] );\n\t\tfboP = InitializeBuffer( fboP, triPosData );\n\t\tmSurfacePositions = fboP;\n\t}", "title": "" }, { "docid": "fa1f83c6337fdab85f6733e11436a781", "score": "0.55342275", "text": "private void checkRep(){\n assert this.edges.length>=0; \n assert this.circularParts.length>=0; \n assert this.getWidth()==1;\n assert this.getHeight() ==1;\n assert this.getPosition() !=null; \n }", "title": "" }, { "docid": "bae0c83258e65a71a0948407a1212d9f", "score": "0.55315125", "text": "public void detectFaceInAnImage(String input, String facepath,String croppath, String eyepath)\r\n\t{\n\t System.loadLibrary( Core.NATIVE_LIBRARY_NAME ); \r\n\r\n\t //Reading the Image from the file and storing it in to a Matrix object \r\n\t // \"C:/Users/admin/Pictures/Face Images/face1.jpg\";\r\n\t String file =input;\r\n\t Mat src = Highgui.imread(file); \r\n\t \r\n\t //Instantiating the CascadeClassifier \r\n\t String xmlFile = \"lbpcascade_frontalface.xml\"; \r\n\t CascadeClassifier classifier = new CascadeClassifier(xmlFile); \r\n\t \r\n\t CascadeClassifier cascadeEyeClassifier = new CascadeClassifier(\r\n\t\t\t\t\t\"haarcascade_eye_tree_eyeglasses.xml\");\r\n\t \r\n\t /*CascadeClassifier cascadeEyeClassifier = new CascadeClassifier(\r\n\t\t\t\t\t\"haarcascade_eye.xml\");*/\r\n\t \r\n\t System.out.println(\"Start Process.....\");\r\n\r\n\t //Detecting the face in the snap \r\n\t MatOfRect faceDetections = new MatOfRect(); \r\n\t classifier.detectMultiScale(src, faceDetections); \r\n\t System.out.println(String.format(\"Detected %s faces\", \r\n\t faceDetections.toArray().length)); \r\n\t \r\n\t Rect rect_Crop=null;\r\n\t //Drawing boxes \r\n\t for (Rect rect : faceDetections.toArray()) { \r\n\t \t//name\r\n\t\t\tCore.putText(src, \"FACE\", new Point(rect.x,rect.y-5), 1, 2, new Scalar(0,0,255));\r\n\t\t\t//Detect Face\r\n\t \tCore.rectangle(src, //where to draw the box \r\n\t new Point(rect.x, rect.y), //bottom left \r\n\t new Point(rect.x + rect.width, rect.y + rect.height), //top right \r\n\t new Scalar(0, 0, 255), \r\n\t 3); //RGB color \r\n\t \t \r\n\t \t rect_Crop = new Rect(rect.x, rect.y, rect.width, rect.height);\r\n\t } \r\n\t //Writing the image \r\n\t Highgui.imwrite(facepath, src); \r\n\t \r\n\t System.out.println(\"Face Detection Processed\");\r\n\t \r\n\t Mat image_roi = new Mat(src,rect_Crop);\r\n\t Highgui.imwrite(croppath,image_roi);\r\n\t System.out.println(\"Image Crop Successed!!!\");\r\n\t \r\n\t //Eye Detection\r\n\t MatOfRect eyes = new MatOfRect();\r\n\t\t\tcascadeEyeClassifier.detectMultiScale(src, eyes);\r\n\t\t\tfor (Rect rect : eyes.toArray()) {\r\n\t\t\t\t//name\r\n\t\t\t\tCore.putText(src, \"EYE\", new Point(rect.x,rect.y-5), 1, 2, new Scalar(0,0,255));\t\t\t\t\r\n\t\t\t\t//Eye Detection\r\n\t\t\t\tCore.rectangle(src, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\r\n\t\t\t\t\t\tnew Scalar(200, 200, 100),2);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tHighgui.imwrite(eyepath, src);\r\n\t\t\tSystem.out.println(\"Eye Detection Process Successed!!!\");\r\n\t}", "title": "" }, { "docid": "65c0ed88ce67fac35a5b13ba078a0a8a", "score": "0.55306166", "text": "public Mat onCameraFrame(CvCameraViewFrame inputFrame) {\n\t\tmRgba = inputFrame.rgba();\n\t\tmGray = inputFrame.gray();\n\n\t\t// face detection!!\n\t\t// Core.flip(mRgba.t(), mRgba, 0);// counter-clock wise 90\n\t\t// Core.flip(mGray.t(), mGray, 0);\n\n\t\t// java detector\n\t\t// if (mAbsoluteFaceSize == 0) {\n\t\t// int height = mGray.rows();\n\t\t// if (Math.round(height * mRelativeFaceSize) > 0) {\n\t\t// mAbsoluteFaceSize = Math.round(height * mRelativeFaceSize);\n\t\t// }\n\t\t// // mNativeDetector.setMinFaceSize(mAbsoluteFaceSize);//\n\t\t// }\n\t\t//\n\t\t// MatOfRect faces = new MatOfRect();\n\t\t// if (mJavaDetector != null) {// use only java detector\n\t\t// mJavaDetector.detectMultiScale(mGray, faces, 1.1, 2, 2, // TODO: objdetect.CV_HAAR_SCALE_IMAGE\n\t\t// new Size(mAbsoluteFaceSize, mAbsoluteFaceSize), new Size());\n\t\t// }\n\t\t//\n\t\t// Rect[] facesArray = faces.toArray();\n\t\t// for (int i = 0; i < facesArray.length; i++) {\n\t\t// Core.rectangle(mRgba, facesArray[i].tl(), facesArray[i].br(), FACE_RECT_COLOR, 3);\n\t\t// }\n\t\t//\n\t\t// Core.flip(mRgba.t(), mRgba, 1);// counter-clock wise 90\n\t\t// Core.flip(mGray.t(), mGray, 1);\n\n\t\t// native detector\n\t\t// if (mAbsoluteFaceSize == 0) {\n\t\t// int height = mGray.rows();\n\t\t// if (Math.round(height * mRelativeFaceSize) > 0) {\n\t\t// mAbsoluteFaceSize = Math.round(height * mRelativeFaceSize);\n\t\t// }\n\t\t// xface.setMinFaceSize(mAbsoluteFaceSize);//\n\t\t// }\n\t\t//\n\t\t// MatOfRect faces = new MatOfRect();\n\t\t//\n\t\t// if (xface != null)\n\t\t// xface.detect(mGray, faces);\n\t\t//\n\t\t// Rect[] facesArray = faces.toArray();\n\t\t// for (int i = 0; i < facesArray.length; i++)\n\t\t// Core.rectangle(mRgba, facesArray[i].tl(), facesArray[i].br(), FACE_RECT_COLOR, 3);\n\t\t//\n\t\t// Core.flip(mRgba.t(), mRgba, 1);// clock wise 90\n\t\t// Core.flip(mGray.t(), mGray, 1);\n\t\t// face detection!!\n\n\t\treturn mRgba;\n\t}", "title": "" }, { "docid": "87eb57afe712dd645c1d1865b0239f2f", "score": "0.55216265", "text": "private void handleFace(FaceDetector.Face f) {\n\n PointF midPoint = new PointF();\n\n int r = ((int) (f.eyesDistance() * mScale)) * 2;\n f.getMidPoint(midPoint);\n midPoint.x *= mScale;\n midPoint.y *= mScale;\n\n int midX = (int) midPoint.x;\n int midY = (int) midPoint.y;\n\n HighlightView hv = new HighlightView(mCropImageView);\n\n int width = mImageWidth;\n int height = mImageHeight;\n\n Rect imageRect = new Rect(0, 0, width, height);\n\n RectF faceRect = new RectF(midX, midY, midX, midY);\n faceRect.inset(-r, -r);\n if (faceRect.left < 0) {\n faceRect.inset(-faceRect.left, -faceRect.left);\n }\n\n if (faceRect.top < 0) {\n faceRect.inset(-faceRect.top, -faceRect.top);\n }\n\n if (faceRect.right > imageRect.right) {\n faceRect.inset(faceRect.right - imageRect.right,\n faceRect.right - imageRect.right);\n }\n\n if (faceRect.bottom > imageRect.bottom) {\n faceRect.inset(faceRect.bottom - imageRect.bottom,\n faceRect.bottom - imageRect.bottom);\n }\n\n hv.setup(mImageMatrix, imageRect, faceRect, mCircleCrop,\n mAspectX != 0 && mAspectY != 0);\n\n mCropImageView.add(hv);\n }", "title": "" }, { "docid": "904e35ba99275c056dad7417cec70226", "score": "0.55126864", "text": "public String getFace() {\n return face;\n }", "title": "" }, { "docid": "65fd9fcbcf463450e04e729523220c16", "score": "0.55050117", "text": "public static boolean areCornersSolved() {\n\t\tColor temp;\n\t\tfor (int i = 0; i < 6; i++) {\n\t\t\ttemp = face[i].rect[0][0].color;\n\n\t\t\tfor (int j = 0; j < size; j += size - 1)\n\t\t\t\tfor (int k = 0; k < size; k += size - 1)\n\t\t\t\t\tif (face[i].rect[j][k].color != temp)\n\t\t\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "8b1257db168c9a2085dcddeba4b2d89d", "score": "0.5496947", "text": "public ArrayList<BufferedImage> serverDetectFace(BufferedImage testFace) {\n ArrayList<BufferedImage> faceArr = new ArrayList<BufferedImage>();\n int temp = 2;\n IplImage origImg = null;\n ProcessImage processImg = new ProcessImage();\n /*\n * total face\n */\n int total = 0;\n // load an image\n \n origImg = processImg.toIplImage(testFace);\n\n // create temp storage, used during object detection\n CvMemStorage storage = CvMemStorage.create();\n while (true) {\n IplImage equImg = processImg.setGray(origImg);\n // reload the opencv_objdetect module to work around a known bug\n Loader.load(opencv_objdetect.class);\n // instantiate a classifier cascade for face detection\n CvHaarClassifierCascade cascade;\n if ((temp % 2) == 0) {\n cascade = App.cascadeFD;\n temp++;\n } else if ((temp % 2 == 1)) {\n cascade = App.cascadeLR;\n temp++;\n } else {\n break;\n }\n System.out.println(\"Detecting faces...\");\n CvSeq face = cvHaarDetectObjects(equImg, cascade, storage, 1.1, 3,\n CV_HAAR_DO_CANNY_PRUNING);\n\n total = face.total();\n System.out.println(\"Found \" + total + \" face(s)\");\n for (int i = 0; i < total; i++) {\n CvRect r = new CvRect(cvGetSeqElem(face, i));\n\n /*\n * crop face image\n */\n BufferedImage tmp = testFace;\n BufferedImage objBufferedImage = tmp.getSubimage(r.x() + 4, r.y(), r.width() - 10, r.height());\n\n /*\n * resize face image with 92 height 112 type .pgm\n */\n objBufferedImage = processImg.resize(objBufferedImage, 92, 112);\n faceArr.add(objBufferedImage);\n }\n if (total > 0) {\n return faceArr;\n }\n if ((temp == 4) && (total == 0)) {\n return faceArr;\n } //no found a face\n }\n // clear temp storage\n cvClearMemStorage(storage);\n return faceArr;\n }", "title": "" }, { "docid": "2deb3991cbc5016b351d6b9213fe2ca6", "score": "0.5489484", "text": "public void printFace (int face) {\n\n\t\tSystem.out.println(\"Face number: \" + (face+1));\n\t\tSystem.out.println(numToCol(cube[face][0][0])+\" \"+numToCol(cube[face][0][1])+\" \"+numToCol(cube[face][0][2]));\n\t\tSystem.out.println(numToCol(cube[face][1][0])+\" \"+numToCol(cube[face][1][1])+\" \"+numToCol(cube[face][1][2]));\n\t\tSystem.out.println(numToCol(cube[face][2][0])+\" \"+numToCol(cube[face][2][1])+\" \"+numToCol(cube[face][2][2]));\n\t}", "title": "" }, { "docid": "05ae15f0203f10929962a29d12ba8ab7", "score": "0.5485643", "text": "public ValidateMesh() {\r\n\t\ttheIndex = new PointIndexTreeAndList();\r\n\t}", "title": "" }, { "docid": "bf112d6c4f4ddddc489494304da58d61", "score": "0.54575586", "text": "public static boolean findRect(int fn, int i, int j, int adf) {\n\n\t\tint ci1, ci2;\n\t\tfor (int iterator = 0; iterator < 4; iterator++) {\n\t\t\tci1 = face[fn].rect[i][j].a;\n\t\t\tci2 = face[fn].rect[i][j].b;\n\t\t\tif (iterator == 1) {\n\n\t\t\t\tci1 = face[fn].rect[i][j].b;\n\t\t\t\tci2 = face[fn].rect[i][j].c;\n\t\t\t}\n\t\t\tif (iterator == 2) {\n\n\t\t\t\tci1 = face[fn].rect[i][j].c;\n\t\t\t\tci2 = face[fn].rect[i][j].d;\n\t\t\t}\n\t\t\tif (iterator == 3) {\n\n\t\t\t\tci1 = face[fn].rect[i][j].d;\n\t\t\t\tci2 = face[fn].rect[i][j].a;\n\t\t\t}\n\n\t\t\tfor (int f = 0; f < 6; f++) {\n\t\t\t\tfor (int ca = 0; ca < size; ca++) {\n\t\t\t\t\tfor (int cb = 0; cb < size; cb++) {\n\t\t\t\t\t\tif ((face[f].rect[ca][cb].a == ci1\n\t\t\t\t\t\t\t\t|| face[f].rect[ca][cb].b == ci1\n\t\t\t\t\t\t\t\t|| face[f].rect[ca][cb].c == ci1 || face[f].rect[ca][cb].d == ci1)\n\t\t\t\t\t\t\t\t&& (face[f].rect[ca][cb].a == ci2\n\t\t\t\t\t\t\t\t\t\t|| face[f].rect[ca][cb].b == ci2\n\t\t\t\t\t\t\t\t\t\t|| face[f].rect[ca][cb].c == ci2 || face[f].rect[ca][cb].d == ci2)) {\n\t\t\t\t\t\t\tif ((f == adf)\n\t\t\t\t\t\t\t\t\t&& (!face[f].rect[ca][cb].markedInFaceCycle)) {\n\t\t\t\t\t\t\t\taffno = f;\n\t\t\t\t\t\t\t\tafa = ca;\n\t\t\t\t\t\t\t\tafb = cb;\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\taffno = -1;\n\t\tafa = -1;\n\t\tafb = -1;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6d8d01e7182221537afcbf3f4c58622f", "score": "0.5449257", "text": "public void detectFace(String input, String output)\r\n\t{\n\t System.loadLibrary( Core.NATIVE_LIBRARY_NAME ); \r\n\r\n\t //Reading the Image from the file and storing it in to a Matrix object \r\n\t // \"C:/Users/admin/Pictures/Face Images/face1.jpg\";\r\n\t String file =input;\r\n\t Mat src = Highgui.imread(file); \r\n\t \r\n\t //Instantiating the CascadeClassifier \r\n\t String xmlFile = \"lbpcascade_frontalface.xml\"; \r\n\t CascadeClassifier classifier = new CascadeClassifier(xmlFile); \r\n\t \r\n\t System.out.println(\"Start Process.....\");\r\n\r\n\t //Detecting the face in the snap \r\n\t MatOfRect faceDetections = new MatOfRect(); \r\n\t classifier.detectMultiScale(src, faceDetections); \r\n\t System.out.println(String.format(\"Detected %s faces\", \r\n\t faceDetections.toArray().length)); \r\n\t \r\n\t Rect rect_Crop=null;\r\n\t //Drawing boxes \r\n\t for (Rect rect : faceDetections.toArray()) { \r\n\t \t Core.rectangle(src, //where to draw the box \r\n\t new Point(rect.x, rect.y), //bottom left \r\n\t new Point(rect.x + rect.width, rect.y + rect.height), //top right \r\n\t new Scalar(0, 0, 255), \r\n\t 3); //RGB color \r\n\t \t \r\n\t \t rect_Crop = new Rect(rect.x, rect.y, rect.width, rect.height);\r\n\t } \r\n\t //Writing the image \r\n\t \r\n\t System.out.println(\"Detection Processed\");\r\n\t \r\n\t Mat image_roi = new Mat(src,rect_Crop);\r\n\t Highgui.imwrite(output,image_roi);\r\n\t System.out.println(\"Image Crop Success\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e527aa4b22e38c80dc609ec4d406088c", "score": "0.54480565", "text": "public BRepAlgo_Image OffsetFacesFromShapes() {\n BRepAlgo_Image ret = new BRepAlgo_Image(OCCwrapJavaJNI.BRepOffset_MakeOffset_OffsetFacesFromShapes(swigCPtr, this), false, this);\n return ret;\n }", "title": "" }, { "docid": "c64ab7709e9d43e8db9f8a9ff9d64414", "score": "0.5429735", "text": "void updateFace(FirebaseVisionFace face, FirebaseVisionFace face2,\n FirebaseVisionFace face3) {\n firebaseVisionFace = face;\n firebaseVisionFace2 = face2;\n firebaseVisionFace3 = face3;\n postInvalidate();\n }", "title": "" }, { "docid": "ca712fc066a5f26abac2970e5c5cfba3", "score": "0.5426333", "text": "public static boolean findIndex(int f1, int a1, int b1, int f2, int a2,\n\t\t\tint b2) {\n\n\t\tint iterator = 0;\n\t\tif (face[f1].rect[a1][b1].a == face[f2].rect[a2][b2].a) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].a;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].a == face[f2].rect[a2][b2].b) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].a;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].a == face[f2].rect[a2][b2].c) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].a;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].a == face[f2].rect[a2][b2].d) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].a;\n\t\t\titerator++;\n\t\t}\n\n\t\tif (face[f1].rect[a1][b1].b == face[f2].rect[a2][b2].a) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].b;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].b == face[f2].rect[a2][b2].b) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].b;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].b == face[f2].rect[a2][b2].c) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].b;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].b == face[f2].rect[a2][b2].d) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].b;\n\t\t\titerator++;\n\t\t}\n\n\t\tif (face[f1].rect[a1][b1].c == face[f2].rect[a2][b2].a) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].c;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].c == face[f2].rect[a2][b2].b) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].c;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].c == face[f2].rect[a2][b2].c) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].c;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].c == face[f2].rect[a2][b2].d) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].c;\n\t\t\titerator++;\n\t\t}\n\n\t\tif (face[f1].rect[a1][b1].d == face[f2].rect[a2][b2].a) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].d;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].d == face[f2].rect[a2][b2].b) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].d;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].d == face[f2].rect[a2][b2].c) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].d;\n\t\t\titerator++;\n\t\t} else if (face[f1].rect[a1][b1].d == face[f2].rect[a2][b2].d) {\n\t\t\tindex[iterator] = face[f1].rect[a1][b1].d;\n\t\t\titerator++;\n\t\t}\n\n\t\tif (iterator == 2)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "2b4e30a2e51d610851a307b26934be31", "score": "0.5421984", "text": "public FaceDetectionFragment(/*no parameter here please*/){\r\n\t}", "title": "" }, { "docid": "a6f5698f3c64856928a03ede308b7741", "score": "0.5403181", "text": "private static void scanPerspectiveTextureEdge(int x0, int y0, double w0, double b0,\r\n int x1, int y1, double w1, double b1,\r\n int u0, int v0,\r\n int u1, int v1,\r\n PerspectiveEdgeInfo[][] edgeInfo) {\n if (x0 > x1) {\r\n int temp = x0;\r\n x0 = x1;\r\n x1 = temp;\r\n\r\n temp = y0;\r\n y0 = y1;\r\n y1 = temp;\r\n\r\n temp = u0;\r\n u0 = u1;\r\n u1 = temp;\r\n\r\n temp = v0;\r\n v0 = v1;\r\n v1 = temp;\r\n\r\n double dtemp = w0;\r\n w0 = w1;\r\n w1 = dtemp;\r\n\r\n dtemp = b0;\r\n b0 = b1;\r\n b1 = dtemp;\r\n\r\n }\r\n\r\n int dx = x1 - x0;\r\n int dy = y1 - y0;\r\n\r\n if (dx != 0 || dy != 0) {\r\n\r\n int udx = Math.abs(dx);\r\n int udy = Math.abs(dy);\r\n\r\n int yadd = (dy < 0) ? -1 : +1;\r\n\r\n int error = 0;\r\n\r\n int loop = 0;\r\n\r\n double u = u0 * w0;\r\n double v = v0 * w0;\r\n double w = w0;\r\n double b = b0;\r\n\r\n if (udx > udy) {\r\n\r\n double uadd = ((u1 * w1) - u) / udx;\r\n double vadd = ((v1 * w1) - v) / udx;\r\n double wadd = (w1 - w0) / udx;\r\n double badd = (b1 - b0) / udx;\r\n\r\n if (y0 >= 0 && y0 < edgeInfo.length) {\r\n if (edgeInfo[y0][0].x == EMPTY) {\r\n edgeInfo[y0][0].x = x0;\r\n edgeInfo[y0][0].uOverz = u;\r\n edgeInfo[y0][0].vOverz = v;\r\n edgeInfo[y0][0].oneOverz = w;\r\n edgeInfo[y0][0].brightness = b;\r\n\r\n } else {\r\n if (edgeInfo[y0][1].x == EMPTY && x0 != edgeInfo[y0][0].x) {\r\n edgeInfo[y0][1].x = x0;\r\n edgeInfo[y0][1].uOverz = u;\r\n edgeInfo[y0][1].vOverz = v;\r\n edgeInfo[y0][1].oneOverz = w;\r\n edgeInfo[y0][1].brightness = b;\r\n }\r\n }\r\n }\r\n\r\n do {\r\n error += udy;\r\n\r\n u += uadd;\r\n v += vadd;\r\n w += wadd;\r\n b += badd;\r\n\r\n ++loop;\r\n\r\n ++x0;\r\n\r\n if (error >= udx) {\r\n error -= udx;\r\n y0 += yadd;\r\n\r\n\r\n if (y0 >= 0 && y0 < edgeInfo.length) {\r\n if (edgeInfo[y0][0].x == EMPTY) {\r\n edgeInfo[y0][0].x = x0;\r\n edgeInfo[y0][0].uOverz = u;\r\n edgeInfo[y0][0].vOverz = v;\r\n edgeInfo[y0][0].oneOverz = w;\r\n edgeInfo[y0][0].brightness = b;\r\n\r\n } else {\r\n if (x0 != edgeInfo[y0][0].x) {\r\n edgeInfo[y0][1].x = x0;\r\n edgeInfo[y0][1].uOverz = u;\r\n edgeInfo[y0][1].vOverz = v;\r\n edgeInfo[y0][1].oneOverz = w;\r\n edgeInfo[y0][1].brightness = b;\r\n }\r\n }\r\n }\r\n }\r\n } while (loop < udx);\r\n } else {\r\n\r\n double uadd = ((u1 * w1) - u) / udy;\r\n double vadd = ((v1 * w1) - v) / udy;\r\n double wadd = (w1 - w0) / udy;\r\n double badd = (b1 - b0) / udy;\r\n\r\n if (udx < udy) {\r\n\r\n int max = udy + 1;\r\n\r\n do {\r\n\r\n if (y0 >= 0 && y0 < edgeInfo.length) {\r\n if (edgeInfo[y0][0].x == EMPTY) {\r\n edgeInfo[y0][0].x = x0;\r\n edgeInfo[y0][0].uOverz = u;\r\n edgeInfo[y0][0].vOverz = v;\r\n edgeInfo[y0][0].oneOverz = w;\r\n edgeInfo[y0][0].brightness = b;\r\n } else {\r\n if (x0 != edgeInfo[y0][0].x) {\r\n edgeInfo[y0][1].x = x0;\r\n edgeInfo[y0][1].uOverz = u;\r\n edgeInfo[y0][1].vOverz = v;\r\n edgeInfo[y0][1].oneOverz = w;\r\n edgeInfo[y0][1].brightness = b;\r\n }\r\n }\r\n }\r\n\r\n y0 += yadd;\r\n\r\n error += udx;\r\n\r\n if (error >= udy) {\r\n error -= udy;\r\n ++x0;\r\n }\r\n\r\n ++loop;\r\n\r\n u += uadd;\r\n v += vadd;\r\n w += wadd;\r\n b += badd;\r\n\r\n } while (loop < max);\r\n } else { // delta x = delta y\r\n\r\n int max = udy + 1;\r\n\r\n do {\r\n\r\n if (y0 >= 0 && y0 < edgeInfo.length) {\r\n if (edgeInfo[y0][0].x == EMPTY) {\r\n edgeInfo[y0][0].x = x0;\r\n edgeInfo[y0][0].uOverz = u;\r\n edgeInfo[y0][0].vOverz = v;\r\n edgeInfo[y0][0].oneOverz = w;\r\n edgeInfo[y0][0].brightness = b;\r\n } else {\r\n if (x0 != edgeInfo[y0][0].x) {\r\n edgeInfo[y0][1].x = x0;\r\n edgeInfo[y0][1].uOverz = u;\r\n edgeInfo[y0][1].vOverz = v;\r\n edgeInfo[y0][1].oneOverz = w;\r\n edgeInfo[y0][1].brightness = b;\r\n }\r\n }\r\n }\r\n\r\n y0 += yadd;\r\n ++x0;\r\n ++loop;\r\n\r\n u += uadd;\r\n v += vadd;\r\n w += wadd;\r\n b += badd;\r\n\r\n } while (loop < max);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "843c2271daedb559fc3b7c606b158db0", "score": "0.540292", "text": "private boolean facesSameDirection(Moveable moveable, Float64Vector endPosLine) {\r\n double angle = calcAngle(moveable.getPosition(), endPosLine);\r\n return angleMargin >= angle && angle >= 0.0d;\r\n }", "title": "" }, { "docid": "2c2b0071324eb9674d29b23e5c73ee2e", "score": "0.5398131", "text": "public void DrawFace( int face, int positionhandle, int texturehandle ) {\n\t\t// Figure out what buffers to draw\n\t\tFloatBuffer vbuffer;\n\t\tFloatBuffer tbuffer;\n\t\tif( face < 5 ) {\n\t\t\tmOtherFaceVBuffer.position(0);\n\t\t\tvbuffer = mOtherFaceVBuffer;\n\t\t\tmOtherFaceTBuffers[face].position(0);\n\t\t\ttbuffer = mOtherFaceTBuffers[face];\n\t\t} else {\n\t\t\tmFrontFaceVBuffer.position(0);\n\t\t\tvbuffer = mFrontFaceVBuffer;\n\t\t\tmFrontFaceTBuffer.position(0);\n\t\t\ttbuffer = mFrontFaceTBuffer;\n\t\t}\n\t\t\n\t\t// Enable attributes in current program\n\t\tif( face < 4 ) {\n\t\t\tGLES20.glVertexAttribPointer(positionhandle, 3, GLES20.GL_FLOAT, false,\n\t GraphicsUtil.TRIANGLE_VERTICES_DATA_STRIDE_BYTES, vbuffer);\n\t\t\tGraphicsUtil.checkGlError(\"glVertexAttribPointer maPosition\");\n\t \n\t\t\tGLES20.glVertexAttribPointer(texturehandle, 3, GLES20.GL_FLOAT, false,\n\t \t\tGraphicsUtil.TRIANGLE_VERTICES_UVQ_STRIDE_BYTES, tbuffer);\n\t\t\tGraphicsUtil.checkGlError(\"glVertexAttribPointer maTextureHandle\");\n\t\t}\n\t\telse {\n\t\t\tGLES20.glVertexAttribPointer(positionhandle, 3, GLES20.GL_FLOAT, false,\n\t GraphicsUtil.TRIANGLE_VERTICES_DATA_STRIDE_BYTES, vbuffer);\n\t\t\tGraphicsUtil.checkGlError(\"glVertexAttribPointer maPosition\");\n\t \n\t\t\tGLES20.glVertexAttribPointer(texturehandle, 2, GLES20.GL_FLOAT, false,\n\t \t\tGraphicsUtil.TRIANGLE_VERTICES_UV_STRIDE_BYTES, tbuffer);\n\t\t\tGraphicsUtil.checkGlError(\"glVertexAttribPointer maTextureHandle\");\n\t\t}\n\t\t\t\n\t\t\n\t\tGLES20.glEnableVertexAttribArray(positionhandle);\n\t\tGraphicsUtil.checkGlError(\"glEnableVertexAttribArray maPositionHandle\");\n\t\tGLES20.glEnableVertexAttribArray(texturehandle);\n\t\tGraphicsUtil.checkGlError(\"glEnableVertexAttribArray maTextureHandle\");\n\t\t\n\t\t// Draw the face\n\t\tif( face < 5 ) {\n\t\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLE_STRIP, 0, 4 );\n\t\t} else {\n\t\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, edu.dhbw.andar.Config.CUBEMAP_QUALITY * 8 * 3 );\n\t\t}\n\t\tGraphicsUtil.checkGlError(\"glDrawArrays\");\n\t\t\n\t\t// Disable the attributes to reset to initial state\n\t\tGLES20.glDisableVertexAttribArray(positionhandle);\n\t\tGLES20.glDisableVertexAttribArray(texturehandle);\t\n\t}", "title": "" }, { "docid": "4ba88ef38a1836117ebd76eeb9a9abab", "score": "0.5395855", "text": "private void calculateVerts(){\n Vec3 v1 = new Vec3(center.x()-extentX,center.y()-extentY,center.z()-extentZ);\n Vec3 v2 = new Vec3(center.x()+extentX,center.y()-extentY,center.z()-extentZ);\n Vec3 v3 = new Vec3(center.x()-extentX,center.y()+extentY,center.z()-extentZ);\n Vec3 v4 = new Vec3(center.x()-extentX,center.y()-extentY,center.z()+extentZ);\n Vec3 v5 = new Vec3(center.x()+extentX,center.y()+extentY,center.z()-extentZ);\n Vec3 v6 = new Vec3(center.x()-extentX,center.y()+extentY,center.z()+extentZ);\n Vec3 v7 = new Vec3(center.x()+extentX,center.y()-extentY,center.z()+extentZ);\n Vec3 v8 = new Vec3(center.x()+extentX,center.y()+extentY,center.z()+extentZ);\n verts = new PointCloud(v1,v2,v3,v4,v5,v6,v7,v8);\n }", "title": "" }, { "docid": "0548663892682a466e9e6a6bd7aef590", "score": "0.53947407", "text": "public int getNumberOfFaces() {\n\t\treturn this.valueMap.keySet().size();\n\n\t}", "title": "" }, { "docid": "018bef91922512a0c32394105c537d71", "score": "0.5385551", "text": "@Test\r\n public void testDetectFace() throws IOException {\r\n System.out.println(\"detectFace\");\r\n File file = new File(\"C:\\\\PISFC\\\\TestImg\\\\1_8.jpg\");\r\n BufferedImage imgfile=ImageIO.read(file);\r\n Detecting instance = new Detecting();\r\n int expResult = 1;\r\n int x=0;\r\n \r\n BufferedImage result = instance.detectFace(imgfile);\r\n if(result!=null)\r\n x=1;\r\n assertEquals(expResult, x);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "title": "" }, { "docid": "7f9386ec20a41df006ca2332f13267fc", "score": "0.53794426", "text": "boolean isPaintValid(SunGraphics2D param1SunGraphics2D) {\n/* 110 */ TexturePaint texturePaint = (TexturePaint)param1SunGraphics2D.paint;\n/* 111 */ OGLSurfaceData oGLSurfaceData1 = (OGLSurfaceData)param1SunGraphics2D.surfaceData;\n/* 112 */ BufferedImage bufferedImage = texturePaint.getImage();\n/* */ \n/* */ \n/* 115 */ if (!oGLSurfaceData1.isTexNonPow2Available()) {\n/* 116 */ int i = bufferedImage.getWidth();\n/* 117 */ int j = bufferedImage.getHeight();\n/* */ \n/* */ \n/* 120 */ if ((i & i - 1) != 0 || (j & j - 1) != 0) {\n/* 121 */ return false;\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 126 */ SurfaceData surfaceData = oGLSurfaceData1.getSourceSurfaceData(bufferedImage, 0, CompositeType.SrcOver, null);\n/* */ \n/* */ \n/* 129 */ if (!(surfaceData instanceof OGLSurfaceData)) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 134 */ surfaceData = oGLSurfaceData1.getSourceSurfaceData(bufferedImage, 0, CompositeType.SrcOver, null);\n/* */ \n/* */ \n/* 137 */ if (!(surfaceData instanceof OGLSurfaceData)) {\n/* 138 */ return false;\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 143 */ OGLSurfaceData oGLSurfaceData2 = (OGLSurfaceData)surfaceData;\n/* 144 */ if (oGLSurfaceData2.getType() != 3) {\n/* 145 */ return false;\n/* */ }\n/* */ \n/* 148 */ return true;\n/* */ }", "title": "" }, { "docid": "10783359296b2a48b2c6e2f7d83a2f04", "score": "0.53703284", "text": "private int search(int color1,int color2){\n\n //for front face\n\n if(front[1]==color1&&top[7]==color2)\n return 11;\n\n if(front[3]==color1&&left[5]==color2)\n return 13;\n\n if(front[7]==color1&&bottom[1]==color2)\n return 17;\n\n if(front[5]==color1&&right[3]==color2)\n return 15;\n\n\n\n //for top face\n\n if(top[1]==color1&&back[7]==color2)\n return 21;\n\n if(top[3]==color1&&left[1]==color2)\n return 23;\n\n if(top[7]==color1&&front[1]==color2)\n return 27;\n\n if(top[5]==color1&&right[1]==color2)\n return 25;\n\n\n //for back face\n\n if(back[1]==color1&&bottom[7]==color2)\n return 31;\n\n if(back[3]==color1&&left[3]==color2)\n return 33;\n\n if(back[7]==color1&&top[1]==color2)\n return 37;\n\n if(back[5]==color1&&right[5]==color2)\n return 35;\n\n\n //for bottom face\n\n\n if(bottom[1]==color1&&front[7]==color2)\n return 41;\n\n if(bottom[3]==color1&&left[7]==color2)\n return 43;\n\n if(bottom[7]==color1&&back[1]==color2)\n return 47;\n\n if(bottom[5]==color1&&right[7]==color2)\n return 45;\n\n\n //for left face\n\n if(left[1]==color1&&top[3]==color2)\n return 51;\n\n if(left[3]==color1&&back[3]==color2)\n return 53;\n\n if(left[7]==color1&&bottom[3]==color2)\n return 57;\n\n if(left[5]==color1&&front[3]==color2)\n return 55;\n\n\n //for right face\n\n if(right[1]==color1&&top[5]==color2)\n return 61;\n\n if(right[3]==color1&&front[5]==color2)\n return 63;\n\n if(right[7]==color1&&bottom[5]==color2)\n return 67;\n\n if(right[5]==color1&&back[5]==color2)\n return 65;\n\n\n return 0;\n }", "title": "" }, { "docid": "225d116f0607c0dde7d39418de199e02", "score": "0.53495264", "text": "@Override\r\n public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face)\r\n {\r\n\t\tMaterial mat = world.getBlockState(pos.offset(face)).getMaterial();\r\n\t\t\r\n\t\tif (state.getValue(MBS) > 0 && (mat == Material.WATER || mat == Material.LAVA))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n return false;\r\n }", "title": "" }, { "docid": "06857e7e482fddf9908c1306119c38ec", "score": "0.5340634", "text": "private void face(IsoBlock b, int faceType, double[] sx, double[] sy) {\n\t\tfor (int corner = 0; corner < 4; corner++) {\n\t\t\tdouble xx = b.fx[faceType][corner];\n\t\t\tdouble yy = b.fy[faceType][corner];\n\t\t\tdouble z = b.fz[faceType][corner] * zScale;\n\n\t\t\t// rotate...\n\t\t\tdouble x = tc * xx + ts * yy;\n\t\t\tdouble y = -ts * xx + tc * yy;\n\n\t\t\tisometric(corner, sx, sy, x, y, z);\n\t\t}\n\t}", "title": "" }, { "docid": "63ea5a3b8116b6a36fe63d1ef38f1977", "score": "0.53368986", "text": "private void detectFace(Bitmap bitmap) {\n FirebaseVisionFaceDetectorOptions options\n = new FirebaseVisionFaceDetectorOptions\n .Builder()\n .setModeType(\n FirebaseVisionFaceDetectorOptions\n .ACCURATE_MODE)\n .setLandmarkType(\n FirebaseVisionFaceDetectorOptions\n .ALL_LANDMARKS)\n .setClassificationType(\n FirebaseVisionFaceDetectorOptions\n .ALL_CLASSIFICATIONS)\n .build();\n\n // we need to create a FirebaseVisionImage object\n // from the above mentioned image types(bitmap in\n // this case) and pass it to the model.\n try {\n image = FirebaseVisionImage.fromBitmap(bitmap);\n detector = FirebaseVision.getInstance()\n .getVisionFaceDetector(options);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // It’s time to prepare our Face Detection model.\n detector.detectInImage(image)\n .addOnSuccessListener(new OnSuccessListener<List<FirebaseVisionFace>>() {\n @Override\n // adding an onSuccess Listener, i.e, in case\n // our image is successfully detected, it will\n // append it's attribute to the result\n // textview in result dialog box.\n public void onSuccess(\n List<FirebaseVisionFace>\n firebaseVisionFaces) {\n String resultText = \"\";\n int i = 1;\n for (FirebaseVisionFace face :\n firebaseVisionFaces) {\n resultText\n = resultText\n .concat(\"\\nFACE NUMBER. \"\n + i + \": \")\n .concat(\n \"\\nSmile: \"\n + face.getSmilingProbability()\n * 100\n + \"%\")\n .concat(\n \"\\nleft eye open: \"\n + face.getLeftEyeOpenProbability()\n * 100\n + \"%\")\n .concat(\n \"\\nright eye open \"\n + face.getRightEyeOpenProbability()\n * 100\n + \"%\");\n i++;\n }\n\n // if no face is detected, give a toast\n // message.\n if (firebaseVisionFaces.size() == 0) {\n Toast\n .makeText(MainActivity.this,\n \"NO FACE DETECT\",\n Toast.LENGTH_SHORT)\n .show();\n } else {\n Bundle bundle = new Bundle();\n bundle.putString(\n LCOFaceDetection.RESULT_TEXT,\n resultText);\n DialogFragment resultDialog\n = new ResultDialog();\n resultDialog.setArguments(bundle);\n resultDialog.setCancelable(true);\n resultDialog.show(\n getSupportFragmentManager(),\n LCOFaceDetection.RESULT_DIALOG);\n }\n }\n }) // adding an onfailure listener as well if\n // something goes wrong.\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast\n .makeText(\n MainActivity.this,\n \"Oops, Something went wrong\",\n Toast.LENGTH_SHORT)\n .show();\n }\n });\n }", "title": "" }, { "docid": "f5e308fd7016016ea1a632397adf9189", "score": "0.53366756", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r3, java.lang.Object r4, java.lang.Object r5) {\n /*\n r2 = this;\n int[] r5 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r0 = 1\n int r3 = r3 - r0\n r3 = r5[r3]\n r5 = 0\n r1 = 0\n switch(r3) {\n case 1: goto L_0x0056;\n case 2: goto L_0x0050;\n case 3: goto L_0x003c;\n case 4: goto L_0x0039;\n case 5: goto L_0x001f;\n case 6: goto L_0x0018;\n case 7: goto L_0x0011;\n default: goto L_0x000b;\n }\n L_0x000b:\n java.lang.UnsupportedOperationException r3 = new java.lang.UnsupportedOperationException\n r3.<init>()\n throw r3\n L_0x0011:\n if (r4 != 0) goto L_0x0014\n r0 = 0\n L_0x0014:\n byte r3 = (byte) r0\n r2.zze = r3\n return r1\n L_0x0018:\n byte r3 = r2.zze\n java.lang.Byte r3 = java.lang.Byte.valueOf(r3)\n return r3\n L_0x001f:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzl.zzg\n if (r3 != 0) goto L_0x0038\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl> r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzl.class\n monitor-enter(r4)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzl.zzg // Catch:{ all -> 0x0035 }\n if (r3 != 0) goto L_0x0033\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r3 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x0035 }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl r5 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzl.zzf // Catch:{ all -> 0x0035 }\n r3.<init>(r5) // Catch:{ all -> 0x0035 }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zzl.zzg = r3 // Catch:{ all -> 0x0035 }\n L_0x0033:\n monitor-exit(r4) // Catch:{ all -> 0x0035 }\n goto L_0x0038\n L_0x0035:\n r3 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x0035 }\n throw r3\n L_0x0038:\n return r3\n L_0x0039:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzl.zzf\n return r3\n L_0x003c:\n r3 = 2\n java.lang.Object[] r3 = new java.lang.Object[r3]\n java.lang.String r4 = \"zzd\"\n r3[r5] = r4\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl$zza> r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzl.zza.class\n r3[r0] = r4\n java.lang.String r4 = \"\\u0001\\u0001\\u0000\\u0000\\u0001\\u0001\\u0001\\u0000\\u0001\\u0000\\u0001\\u001b\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl r5 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzl.zzf\n java.lang.Object r3 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r5, r4, r3)\n return r3\n L_0x0050:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl$zzb r3 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl$zzb\n r3.<init>(r1)\n return r3\n L_0x0056:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl r3 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzl\n r3.<init>()\n return r3\n switch-data {1->0x0056, 2->0x0050, 3->0x003c, 4->0x0039, 5->0x001f, 6->0x0018, 7->0x0011, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zzl.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "76657a11ce4a1739856e5b64124a7767", "score": "0.5336006", "text": "public void DrawTexCube() \n {\n\n\t \n\t\tPoint4f vertices[] = { \tnew Point4f(-1.0f, -1.0f, -1.0f,0.0f),\n\t\t\t\tnew Point4f(-1.0f, -1.0f, 1.0f, 0.0f), \t\n\t\t\t\tnew Point4f(-1.0f, 1.0f, 1.0f,0.0f),\n\t\t\t\tnew Point4f(-1.0f, 1.0f, -1.0f, 0.0f),\n\t\t\t\tnew Point4f(1.0f, -1.0f, -1.0f,0.0f),\n\t\t\t\tnew Point4f(1.0f, -1.0f, 1.0f, 0.0f),\n\t\t\t\tnew Point4f(1.0f, 1.0f, 1.0f, 0.0f),\n\t\t\t\tnew Point4f(1.0f, 1.0f, -1.0f,0.0f) };\n\n//2*faces dtriangles\nint faces [] [] = {{0,1,2,3},\n\t\t\t\n\t\t\t{0,4,5,1},\n\t\t\t\n\t\t\t{6,2,1,5},\n\t\t\t\n\t\t\t{7,3,2,6},\n\t\t\t\n\t\t\t{4,0,3,7},\n\t\t\t\n\t\t\t{4,7,6,5},\t\t\t\n};\n\n\nthis.initTexture();\n\nGL11.glBegin(GL11.GL_QUADS);\nfor(int face=0; face < 6; face++) \n{\n\n//test code here\n//int i = 2;\n//if(face == i || face == i++) {\n//\n//continue;\n//}\nVector4f v = vertices[faces[face][0]].MinusPoint(vertices[faces[face][1]]);\nVector4f w = vertices[faces[face][0]].MinusPoint(vertices[faces[face][2]]);\n//calculate norm\nVector4f n = v.cross(w);\n\n//inputs vertices\nGL11.glNormal3f(n.x/n.length(), n.y/n.length(), n.z/n.length());\nGL11.glTexCoord2d(1.0f,1.0f);\nGL11.glVertex3f(vertices[faces[face][0]].x,vertices[faces[face][0]].y, vertices[faces[face][0]].z);\nGL11.glTexCoord2d(1.0f,0.0f);\nGL11.glVertex3f(vertices[faces[face][1]].x,vertices[faces[face][1]].y, vertices[faces[face][1]].z);\nGL11.glTexCoord2d(0.0f,0.0f);\nGL11.glVertex3f(vertices[faces[face][2]].x,vertices[faces[face][2]].y, vertices[faces[face][2]].z);\nGL11.glTexCoord2d(0.0f,1.0f);\nGL11.glVertex3f(vertices[faces[face][3]].x,vertices[faces[face][3]].y, vertices[faces[face][3]].z);\n\n}\nGL11.glEnd();\nGL11.glDisable(GL11.GL_TEXTURE_2D);\n\n\t\t\n\n\t}", "title": "" }, { "docid": "6f3dab9667f0b26a827570855b8a93c8", "score": "0.5326915", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r1, java.lang.Object r2, java.lang.Object r3) {\n /*\n r0 = this;\n int[] r2 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r3 = 1\n int r1 = r1 - r3\n r1 = r2[r1]\n r2 = 0\n switch(r1) {\n case 1: goto L_0x0049;\n case 2: goto L_0x0043;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r1 = new java.lang.UnsupportedOperationException\n r1.<init>()\n throw r1\n L_0x0010:\n return r2\n L_0x0011:\n java.lang.Byte r1 = java.lang.Byte.valueOf(r3)\n return r1\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg> r1 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzg.zze\n if (r1 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzg.class\n monitor-enter(r2)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg> r1 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzg.zze // Catch:{ all -> 0x002c }\n if (r1 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r1 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzg.zzd // Catch:{ all -> 0x002c }\n r1.<init>(r3) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zzg.zze = r1 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r2) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r1 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x002c }\n throw r1\n L_0x002f:\n return r1\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg r1 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzg.zzd\n return r1\n L_0x0033:\n java.lang.Object[] r1 = new java.lang.Object[r3]\n r2 = 0\n java.lang.String r3 = \"zzc\"\n r1[r2] = r3\n java.lang.String r2 = \"\\u0001\\u0001\\u0000\\u0000\\u0001\\u0001\\u0001\\u0000\\u0001\\u0000\\u0001\\u0016\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzg.zzd\n java.lang.Object r1 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r3, r2, r1)\n return r1\n L_0x0043:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg$zza r1 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg$zza\n r1.<init>(r2)\n return r1\n L_0x0049:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg r1 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg\n r1.<init>()\n return r1\n switch-data {1->0x0049, 2->0x0043, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zzg.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "99d7857bf4e3e0ec9e98cbb67447d9b0", "score": "0.53253967", "text": "public Boolean isFacetable() {\n return this.isFacetable;\n }", "title": "" }, { "docid": "b43979775ad2a9afa45a1417c6d3298a", "score": "0.5323648", "text": "public void setFace(double face){\n m_face = face;\n }", "title": "" }, { "docid": "3d345ad1b984ef120b8c6ee76e16fbf4", "score": "0.5322919", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x006d;\n case 2: goto L_0x0067;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzd> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzd.zzl\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzd> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzd.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzd> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzd.zzl // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzd r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzd.zzk // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zzd.zzl = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzd r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzd.zzk\n return r2\n L_0x0033:\n r2 = 8\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n java.lang.String r3 = \"zzd\"\n r2[r4] = r3\n r3 = 2\n java.lang.String r4 = \"zze\"\n r2[r3] = r4\n r3 = 3\n java.lang.String r4 = \"zzf\"\n r2[r3] = r4\n r3 = 4\n java.lang.String r4 = \"zzg\"\n r2[r3] = r4\n r3 = 5\n java.lang.String r4 = \"zzh\"\n r2[r3] = r4\n r3 = 6\n java.lang.String r4 = \"zzi\"\n r2[r3] = r4\n r3 = 7\n java.lang.String r4 = \"zzj\"\n r2[r3] = r4\n java.lang.String r3 = \"\\u0001\\u0007\\u0000\\u0001\\u0001\\u0007\\u0007\\u0000\\u0000\\u0000\\u0001ဈ\\u0000\\u0002ဈ\\u0001\\u0003ဈ\\u0002\\u0004င\\u0003\\u0005င\\u0004\\u0006ဈ\\u0005\\u0007င\\u0006\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzd r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzd.zzk\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x0067:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzd$zza r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzd$zza\n r2.<init>(r3)\n return r2\n L_0x006d:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzd r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzd\n r2.<init>()\n return r2\n switch-data {1->0x006d, 2->0x0067, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zzd.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "dd2ea5acd03f187635b6f23761e10a37", "score": "0.5319197", "text": "public CritterFace getFace(int w,int h);", "title": "" }, { "docid": "98e269261b70ea2bd08761816f97b71b", "score": "0.531563", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x004e;\n case 2: goto L_0x0048;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzi.zze\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzi.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzi.zze // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzi.zzd // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zzi.zze = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzi.zzd\n return r2\n L_0x0033:\n r2 = 2\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi$zza> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzi.zza.class\n r2[r4] = r3\n java.lang.String r3 = \"\\u0001\\u0001\\u0000\\u0000\\u0001\\u0001\\u0001\\u0000\\u0001\\u0000\\u0001\\u001b\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzi.zzd\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x0048:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi$zzb r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi$zzb\n r2.<init>(r3)\n return r2\n L_0x004e:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzi\n r2.<init>()\n return r2\n switch-data {1->0x004e, 2->0x0048, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zzi.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "55ef9349a550301db310cfff65c3600d", "score": "0.5312539", "text": "public static boolean goodCfg() {\n String posString = ConfigManager.getString(\"position\").toUpperCase();\n try {\n BlockFace.valueOf(posString);\n return true;\n } catch (Exception iae) {\n return posString.equals(\"ANY\");\n }\n }", "title": "" }, { "docid": "bdea525342e991d86ed31c80a54650c5", "score": "0.53065807", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x008f;\n case 2: goto L_0x0089;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzc> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzc.zzn\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzc> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzc.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzc> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzc.zzn // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzc r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzc.zzm // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zzc.zzn = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzc r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzc.zzm\n return r2\n L_0x0033:\n r2 = 13\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n java.lang.String r3 = \"zzd\"\n r2[r4] = r3\n r3 = 2\n com.google.android.gms.internal.mlkit_vision_face.zzgh r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzc.zza.zzb()\n r2[r3] = r4\n r3 = 3\n java.lang.String r4 = \"zze\"\n r2[r3] = r4\n r3 = 4\n com.google.android.gms.internal.mlkit_vision_face.zzgh r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzc.zze.zzb()\n r2[r3] = r4\n r3 = 5\n java.lang.String r4 = \"zzf\"\n r2[r3] = r4\n r3 = 6\n java.lang.String r4 = \"zzg\"\n r2[r3] = r4\n r3 = 7\n java.lang.String r4 = \"zzh\"\n r2[r3] = r4\n r3 = 8\n java.lang.String r4 = \"zzi\"\n r2[r3] = r4\n r3 = 9\n java.lang.String r4 = \"zzj\"\n r2[r3] = r4\n r3 = 10\n java.lang.String r4 = \"zzk\"\n r2[r3] = r4\n r3 = 11\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzg> r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzg.class\n r2[r3] = r4\n r3 = 12\n java.lang.String r4 = \"zzl\"\n r2[r3] = r4\n java.lang.String r3 = \"\\u0001\\t\\u0000\\u0001\\u0001\\t\\t\\u0000\\u0001\\u0000\\u0001ဌ\\u0000\\u0002ဌ\\u0001\\u0003ဈ\\u0002\\u0004ဈ\\u0003\\u0005ဉ\\u0004\\u0006ဉ\\u0005\\u0007င\\u0006\\b\\u001b\\tင\\u0007\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzc r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzc.zzm\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x0089:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzc$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzc$zzc\n r2.<init>(r3)\n return r2\n L_0x008f:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzc\n r2.<init>()\n return r2\n switch-data {1->0x008f, 2->0x0089, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zzc.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "275d71a9f2153130c7cf1a3ae8c6074f", "score": "0.5305348", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzdy.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x0050;\n case 2: goto L_0x004a;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzdx$zza> r2 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zza.zzf\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzdx$zza> r3 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zza.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzdx$zza> r2 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zza.zzf // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzdx$zza r4 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zza.zze // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzdx.zza.zzf = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzdx$zza r2 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zza.zze\n return r2\n L_0x0033:\n r2 = 2\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n com.google.android.gms.internal.mlkit_vision_face.zzgh r3 = com.google.android.gms.internal.mlkit_vision_face.zzeq.zzb()\n r2[r4] = r3\n java.lang.String r3 = \"\\u0001\\u0001\\u0000\\u0000\\u0001\\u0001\\u0001\\u0000\\u0001\\u0000\\u0001\\u001e\"\n com.google.android.gms.internal.mlkit_vision_face.zzdx$zza r4 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zza.zze\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x004a:\n com.google.android.gms.internal.mlkit_vision_face.zzdx$zza$zza r2 = new com.google.android.gms.internal.mlkit_vision_face.zzdx$zza$zza\n r2.<init>(r3)\n return r2\n L_0x0050:\n com.google.android.gms.internal.mlkit_vision_face.zzdx$zza r2 = new com.google.android.gms.internal.mlkit_vision_face.zzdx$zza\n r2.<init>()\n return r2\n switch-data {1->0x0050, 2->0x004a, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzdx.zza.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "9f90a575457cda0f27d4fdaa28b44129", "score": "0.5302507", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x007f;\n case 2: goto L_0x0079;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzb> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzb.zzo\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzb> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzb.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzb> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzb.zzo // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzb r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzb.zzn // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zzb.zzo = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzb r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzb.zzn\n return r2\n L_0x0033:\n r2 = 11\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n java.lang.String r3 = \"zzd\"\n r2[r4] = r3\n r3 = 2\n java.lang.String r4 = \"zze\"\n r2[r3] = r4\n r3 = 3\n java.lang.String r4 = \"zzf\"\n r2[r3] = r4\n r3 = 4\n java.lang.String r4 = \"zzg\"\n r2[r3] = r4\n r3 = 5\n java.lang.String r4 = \"zzh\"\n r2[r3] = r4\n r3 = 6\n java.lang.String r4 = \"zzi\"\n r2[r3] = r4\n r3 = 7\n java.lang.String r4 = \"zzj\"\n r2[r3] = r4\n r3 = 8\n java.lang.String r4 = \"zzk\"\n r2[r3] = r4\n r3 = 9\n java.lang.String r4 = \"zzl\"\n r2[r3] = r4\n r3 = 10\n java.lang.String r4 = \"zzm\"\n r2[r3] = r4\n java.lang.String r3 = \"\\u0001\\n\\u0000\\u0001\\u0001\\n\\n\\u0000\\u0000\\u0000\\u0001င\\u0000\\u0002ဈ\\u0001\\u0003ဈ\\u0002\\u0004ဈ\\u0003\\u0005ဈ\\u0004\\u0006ဈ\\u0005\\u0007ဈ\\u0006\\bဈ\\u0007\\tဈ\\b\\nဈ\\t\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzb r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzb.zzn\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x0079:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzb$zza r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzb$zza\n r2.<init>(r3)\n return r2\n L_0x007f:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzb r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzb\n r2.<init>()\n return r2\n switch-data {1->0x007f, 2->0x0079, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zzb.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "e7a0c62d6802e506187a21ee0864eb21", "score": "0.5301882", "text": "static boolean __gl_meshTessellateMonoRegion(GLUface face) {\n\t\tGLUhalfEdge up, lo;\n\n\t\t/*\n\t\t * All edges are oriented CCW around the boundary of the region. First, find the half-edge whose origin vertex is rightmost. Since the sweep goes from left to right, face->anEdge should be close to the edge we want.\n\t\t */\n\t\tup = face.anEdge;\n\t\tassert (up.Lnext != up && up.Lnext.Lnext != up);\n\n\t\tfor (; Geom.VertLeq(up.Sym.Org, up.Org); up = up.Onext.Sym)\n\t\t\t;\n\t\tfor (; Geom.VertLeq(up.Org, up.Sym.Org); up = up.Lnext)\n\t\t\t;\n\t\tlo = up.Onext.Sym;\n\n\t\twhile (up.Lnext != lo) {\n\t\t\tif (Geom.VertLeq(up.Sym.Org, lo.Org)) {\n\t\t\t\t/*\n\t\t\t\t * up.Sym.Org is on the left. It is safe to form triangles from lo.Org. The EdgeGoesLeft test guarantees progress even when some triangles are CW, given that the upper and lower chains are truly monotone.\n\t\t\t\t */\n\t\t\t\twhile (lo.Lnext != up && (Geom.EdgeGoesLeft(lo.Lnext) || Geom.EdgeSign(lo.Org, lo.Sym.Org, lo.Lnext.Sym.Org) <= 0)) {\n\t\t\t\t\tGLUhalfEdge tempHalfEdge = Mesh.__gl_meshConnect(lo.Lnext, lo);\n\t\t\t\t\tif (tempHalfEdge == null)\n\t\t\t\t\t\treturn false;\n\t\t\t\t\tlo = tempHalfEdge.Sym;\n\t\t\t\t}\n\t\t\t\tlo = lo.Onext.Sym;\n\t\t\t} else {\n\t\t\t\t/* lo.Org is on the left. We can make CCW triangles from up.Sym.Org. */\n\t\t\t\twhile (lo.Lnext != up && (Geom.EdgeGoesRight(up.Onext.Sym) || Geom.EdgeSign(up.Sym.Org, up.Org, up.Onext.Sym.Org) >= 0)) {\n\t\t\t\t\tGLUhalfEdge tempHalfEdge = Mesh.__gl_meshConnect(up, up.Onext.Sym);\n\t\t\t\t\tif (tempHalfEdge == null)\n\t\t\t\t\t\treturn false;\n\t\t\t\t\tup = tempHalfEdge.Sym;\n\t\t\t\t}\n\t\t\t\tup = up.Lnext;\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Now lo.Org == up.Sym.Org == the leftmost vertex. The remaining region can be tessellated in a fan from this leftmost vertex.\n\t\t */\n\t\tassert (lo.Lnext != up);\n\t\twhile (lo.Lnext.Lnext != up) {\n\t\t\tGLUhalfEdge tempHalfEdge = Mesh.__gl_meshConnect(lo.Lnext, lo);\n\t\t\tif (tempHalfEdge == null)\n\t\t\t\treturn false;\n\t\t\tlo = tempHalfEdge.Sym;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "17694ae25050230771ea1a759d367a95", "score": "0.5300566", "text": "public Face getFace() {\n \n return face;\n }", "title": "" }, { "docid": "dd23e109f48cc88290b921ccaaf93c06", "score": "0.5300386", "text": "private static Map<String, Object> CreateFaceStates(List<VisionDetRet> faceList, int bitmapWidth, int bitmapHeight) {\n Map<String, Object> faceStates = new HashMap<>();\n List<FaceItem> faces = new ArrayList<>();\n List<co.polarr.renderer.entities.Context.FaceFeaturesState> faceFeatures = new ArrayList<>();\n\n faceStates.put(\"faces\", faces);\n faceStates.put(\"face_features\", faceFeatures);\n\n assert faceList != null;\n for (VisionDetRet visionDetRet : faceList) {\n FaceItem faceItem = new FaceItem();\n ArrayList<Point> markArray = visionDetRet.getFaceLandmarks();\n float keyPoints[][] = new float[markArray.size()][];\n for (int i = 0; i < markArray.size(); i++) {\n Point point = markArray.get(i);\n ;\n keyPoints[i] = new float[]{\n point.x / (float) bitmapWidth,\n point.y / (float) bitmapHeight,\n };\n }\n faceItem.markers = keyPoints;\n faceItem.boundaries = new float[]{\n visionDetRet.getLeft() / (float) bitmapWidth,\n visionDetRet.getTop() / (float) bitmapHeight,\n (visionDetRet.getRight() - visionDetRet.getLeft()) / (float) bitmapWidth,\n (visionDetRet.getBottom() - visionDetRet.getTop()) / (float) bitmapHeight\n };\n faces.add(faceItem);\n\n faceFeatures.add(new co.polarr.renderer.entities.Context.FaceFeaturesState());\n }\n\n return faceStates;\n }", "title": "" }, { "docid": "4b72b7eaf6e3929b97f81b4edfe43e3f", "score": "0.5299638", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x005a;\n case 2: goto L_0x0054;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zza> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zza.zzg\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zza> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zza.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zza> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zza.zzg // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zza r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zza.zzf // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zza.zzg = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zza r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zza.zzf\n return r2\n L_0x0033:\n r2 = 4\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n java.lang.String r3 = \"zzd\"\n r2[r4] = r3\n r3 = 2\n com.google.android.gms.internal.mlkit_vision_face.zzgh r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zza.EnumC0263zza.zzb()\n r2[r3] = r4\n r3 = 3\n java.lang.String r4 = \"zze\"\n r2[r3] = r4\n java.lang.String r3 = \"\\u0001\\u0002\\u0000\\u0001\\u0001\\u0002\\u0002\\u0000\\u0000\\u0000\\u0001ဌ\\u0000\\u0002ဉ\\u0001\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zza r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zza.zzf\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x0054:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zza$zzb r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zza$zzb\n r2.<init>(r3)\n return r2\n L_0x005a:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zza r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zza\n r2.<init>()\n return r2\n switch-data {1->0x005a, 2->0x0054, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zza.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "50ceca37cdd53149663e7380ed8904d7", "score": "0.529837", "text": "public boolean isFaceUp()\n {\n return faceUp;\n }", "title": "" }, { "docid": "02ee233c2c3ed94d637b7ab5fd26d0c0", "score": "0.5297257", "text": "public FACE getFace() {\n return face;\n }", "title": "" }, { "docid": "3d0ab9db06d489160a3155512ff7197f", "score": "0.5297095", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x0053;\n case 2: goto L_0x004d;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzh> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzh.zzg\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzh> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzh.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzh> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzh.zzg // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzh r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzh.zzf // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zzh.zzg = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzh r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzh.zzf\n return r2\n L_0x0033:\n r2 = 3\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n java.lang.String r3 = \"zzd\"\n r2[r4] = r3\n r3 = 2\n java.lang.String r4 = \"zze\"\n r2[r3] = r4\n java.lang.String r3 = \"\\u0001\\u0002\\u0000\\u0001\\u0001\\u0002\\u0002\\u0000\\u0000\\u0000\\u0001ဈ\\u0000\\u0002င\\u0001\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzh r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzh.zzf\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x004d:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzh$zza r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzh$zza\n r2.<init>(r3)\n return r2\n L_0x0053:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzh r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzh\n r2.<init>()\n return r2\n switch-data {1->0x0053, 2->0x004d, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zzh.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "1c93246c0cf6a6fe6bc941fde18b17c5", "score": "0.52955127", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r3, java.lang.Object r4, java.lang.Object r5) {\n /*\n r2 = this;\n int[] r5 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r0 = 1\n int r3 = r3 - r0\n r3 = r5[r3]\n r5 = 0\n r1 = 0\n switch(r3) {\n case 1: goto L_0x008f;\n case 2: goto L_0x0089;\n case 3: goto L_0x003c;\n case 4: goto L_0x0039;\n case 5: goto L_0x001f;\n case 6: goto L_0x0018;\n case 7: goto L_0x0011;\n default: goto L_0x000b;\n }\n L_0x000b:\n java.lang.UnsupportedOperationException r3 = new java.lang.UnsupportedOperationException\n r3.<init>()\n throw r3\n L_0x0011:\n if (r4 != 0) goto L_0x0014\n r0 = 0\n L_0x0014:\n byte r3 = (byte) r0\n r2.zzn = r3\n return r1\n L_0x0018:\n byte r3 = r2.zzn\n java.lang.Byte r3 = java.lang.Byte.valueOf(r3)\n return r3\n L_0x001f:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzf> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzf.zzp\n if (r3 != 0) goto L_0x0038\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzf> r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzf.class\n monitor-enter(r4)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzf> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzf.zzp // Catch:{ all -> 0x0035 }\n if (r3 != 0) goto L_0x0033\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r3 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x0035 }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzf r5 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzf.zzo // Catch:{ all -> 0x0035 }\n r3.<init>(r5) // Catch:{ all -> 0x0035 }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zzf.zzp = r3 // Catch:{ all -> 0x0035 }\n L_0x0033:\n monitor-exit(r4) // Catch:{ all -> 0x0035 }\n goto L_0x0038\n L_0x0035:\n r3 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x0035 }\n throw r3\n L_0x0038:\n return r3\n L_0x0039:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzf r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzf.zzo\n return r3\n L_0x003c:\n r3 = 12\n java.lang.Object[] r3 = new java.lang.Object[r3]\n java.lang.String r4 = \"zzc\"\n r3[r5] = r4\n java.lang.String r4 = \"zzd\"\n r3[r0] = r4\n r4 = 2\n java.lang.String r5 = \"zze\"\n r3[r4] = r5\n r4 = 3\n java.lang.String r5 = \"zzg\"\n r3[r4] = r5\n r4 = 4\n com.google.android.gms.internal.mlkit_vision_face.zzgh r5 = com.google.android.gms.internal.mlkit_vision_face.zzjz.zzb()\n r3[r4] = r5\n r4 = 5\n java.lang.String r5 = \"zzh\"\n r3[r4] = r5\n r4 = 6\n java.lang.String r5 = \"zzi\"\n r3[r4] = r5\n r4 = 7\n java.lang.String r5 = \"zzj\"\n r3[r4] = r5\n r4 = 8\n java.lang.String r5 = \"zzk\"\n r3[r4] = r5\n r4 = 9\n java.lang.String r5 = \"zzl\"\n r3[r4] = r5\n r4 = 10\n java.lang.String r5 = \"zzm\"\n r3[r4] = r5\n r4 = 11\n java.lang.String r5 = \"zzf\"\n r3[r4] = r5\n java.lang.String r4 = \"\\u0001\\n\\u0000\\u0001\\u0001\\n\\n\\u0000\\u0000\\u0001\\u0001ဉ\\u0000\\u0002ဉ\\u0001\\u0003ဌ\\u0003\\u0004ဉ\\u0004\\u0005ᐉ\\u0005\\u0006ဂ\\u0006\\u0007ဂ\\u0007\\bဇ\\b\\tင\\t\\nဉ\\u0002\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzf r5 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzf.zzo\n java.lang.Object r3 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r5, r4, r3)\n return r3\n L_0x0089:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzf$zza r3 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzf$zza\n r3.<init>(r1)\n return r3\n L_0x008f:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzf r3 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzf\n r3.<init>()\n return r3\n switch-data {1->0x008f, 2->0x0089, 3->0x003c, 4->0x0039, 5->0x001f, 6->0x0018, 7->0x0011, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zzf.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "72fa7337e7943d55b01bc1f52a0dae4a", "score": "0.5291567", "text": "@Override\n public BlockFaceShape getBlockFaceShape(IBlockAccess world, IBlockState state, BlockPos pos, EnumFacing face) {\n return super.getBlockFaceShape(world, state, pos, face);\n }", "title": "" }, { "docid": "c88cec39b638ad29e1dd9449d2c2f596", "score": "0.5290955", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x005f;\n case 2: goto L_0x0059;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzj> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzj.zzh\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzj> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzj.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzj> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzj.zzh // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzj r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzj.zzg // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zzj.zzh = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzj r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzj.zzg\n return r2\n L_0x0033:\n r2 = 5\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n java.lang.String r3 = \"zzd\"\n r2[r4] = r3\n r3 = 2\n com.google.android.gms.internal.mlkit_vision_face.zzgh r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzj.zza.zzb()\n r2[r3] = r4\n r3 = 3\n java.lang.String r4 = \"zze\"\n r2[r3] = r4\n r3 = 4\n java.lang.String r4 = \"zzf\"\n r2[r3] = r4\n java.lang.String r3 = \"\\u0001\\u0003\\u0000\\u0001\\u0001\\u0003\\u0003\\u0000\\u0000\\u0000\\u0001ဌ\\u0000\\u0002ဉ\\u0001\\u0003ဉ\\u0002\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzj r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzj.zzg\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x0059:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzj$zzb r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzj$zzb\n r2.<init>(r3)\n return r2\n L_0x005f:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzj r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzj\n r2.<init>()\n return r2\n switch-data {1->0x005f, 2->0x0059, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zzj.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "276636db3c2b53b706aa5b2b570a43a5", "score": "0.5288648", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x004e;\n case 2: goto L_0x0048;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zze> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zze.zzf\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zze> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zze.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zze> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zze.zzf // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zze r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zze.zze // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zze.zzf = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zze r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zze.zze\n return r2\n L_0x0033:\n r2 = 2\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n java.lang.String r3 = \"zzd\"\n r2[r4] = r3\n java.lang.String r3 = \"\\u0001\\u0001\\u0000\\u0001\\u0001\\u0001\\u0001\\u0000\\u0000\\u0000\\u0001င\\u0000\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zze r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zze.zze\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x0048:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zze$zza r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zze$zza\n r2.<init>(r3)\n return r2\n L_0x004e:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zze r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zze\n r2.<init>()\n return r2\n switch-data {1->0x004e, 2->0x0048, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zze.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "260582f9b78ee0f87def5098c0c0f006", "score": "0.52826804", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzjr.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x005a;\n case 2: goto L_0x0054;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzk> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzk.zzg\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzk> r3 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzk.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzjp$zzk> r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzk.zzg // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzk r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzk.zzf // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzjp.zzk.zzg = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzk r2 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzk.zzf\n return r2\n L_0x0033:\n r2 = 4\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n java.lang.String r3 = \"zzd\"\n r2[r4] = r3\n r3 = 2\n com.google.android.gms.internal.mlkit_vision_face.zzgh r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzk.zzb.zzb()\n r2[r3] = r4\n r3 = 3\n java.lang.String r4 = \"zze\"\n r2[r3] = r4\n java.lang.String r3 = \"\\u0001\\u0002\\u0000\\u0001\\u0001\\u0002\\u0002\\u0000\\u0000\\u0000\\u0001ဌ\\u0000\\u0002ခ\\u0001\"\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzk r4 = com.google.android.gms.internal.mlkit_vision_face.zzjp.zzk.zzf\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x0054:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzk$zza r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzk$zza\n r2.<init>(r3)\n return r2\n L_0x005a:\n com.google.android.gms.internal.mlkit_vision_face.zzjp$zzk r2 = new com.google.android.gms.internal.mlkit_vision_face.zzjp$zzk\n r2.<init>()\n return r2\n switch-data {1->0x005a, 2->0x0054, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzjp.zzk.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "88e1b922c96b20ac678b2f8c56f68708", "score": "0.5278843", "text": "@Override // com.google.android.gms.internal.mlkit_vision_face.zzgd\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final java.lang.Object zza(int r2, java.lang.Object r3, java.lang.Object r4) {\n /*\n r1 = this;\n int[] r3 = com.google.android.gms.internal.mlkit_vision_face.zzdy.zza\n r4 = 1\n int r2 = r2 - r4\n r2 = r3[r2]\n r3 = 0\n switch(r2) {\n case 1: goto L_0x007f;\n case 2: goto L_0x0079;\n case 3: goto L_0x0033;\n case 4: goto L_0x0030;\n case 5: goto L_0x0016;\n case 6: goto L_0x0011;\n case 7: goto L_0x0010;\n default: goto L_0x000a;\n }\n L_0x000a:\n java.lang.UnsupportedOperationException r2 = new java.lang.UnsupportedOperationException\n r2.<init>()\n throw r2\n L_0x0010:\n return r3\n L_0x0011:\n java.lang.Byte r2 = java.lang.Byte.valueOf(r4)\n return r2\n L_0x0016:\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzdx$zzb> r2 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.zzk\n if (r2 != 0) goto L_0x002f\n java.lang.Class<com.google.android.gms.internal.mlkit_vision_face.zzdx$zzb> r3 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.class\n monitor-enter(r3)\n com.google.android.gms.internal.mlkit_vision_face.zzhv<com.google.android.gms.internal.mlkit_vision_face.zzdx$zzb> r2 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.zzk // Catch:{ all -> 0x002c }\n if (r2 != 0) goto L_0x002a\n com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc r2 = new com.google.android.gms.internal.mlkit_vision_face.zzgd$zzc // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzdx$zzb r4 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.zzj // Catch:{ all -> 0x002c }\n r2.<init>(r4) // Catch:{ all -> 0x002c }\n com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.zzk = r2 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n goto L_0x002f\n L_0x002c:\n r2 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x002c }\n throw r2\n L_0x002f:\n return r2\n L_0x0030:\n com.google.android.gms.internal.mlkit_vision_face.zzdx$zzb r2 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.zzj\n return r2\n L_0x0033:\n r2 = 10\n java.lang.Object[] r2 = new java.lang.Object[r2]\n r3 = 0\n java.lang.String r0 = \"zzc\"\n r2[r3] = r0\n java.lang.String r3 = \"zzd\"\n r2[r4] = r3\n r3 = 2\n com.google.android.gms.internal.mlkit_vision_face.zzgh r4 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.zzd.zzb()\n r2[r3] = r4\n r3 = 3\n java.lang.String r4 = \"zze\"\n r2[r3] = r4\n r3 = 4\n com.google.android.gms.internal.mlkit_vision_face.zzgh r4 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.zzc.zzb()\n r2[r3] = r4\n r3 = 5\n java.lang.String r4 = \"zzf\"\n r2[r3] = r4\n r3 = 6\n com.google.android.gms.internal.mlkit_vision_face.zzgh r4 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.EnumC0262zzb.zzb()\n r2[r3] = r4\n r3 = 7\n java.lang.String r4 = \"zzg\"\n r2[r3] = r4\n r3 = 8\n java.lang.String r4 = \"zzh\"\n r2[r3] = r4\n r3 = 9\n java.lang.String r4 = \"zzi\"\n r2[r3] = r4\n java.lang.String r3 = \"\\u0001\\u0006\\u0000\\u0001\\u0001\\u0006\\u0006\\u0000\\u0000\\u0000\\u0001ဌ\\u0000\\u0002ဌ\\u0001\\u0003ဌ\\u0002\\u0004ဇ\\u0003\\u0005ဇ\\u0004\\u0006ခ\\u0005\"\n com.google.android.gms.internal.mlkit_vision_face.zzdx$zzb r4 = com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.zzj\n java.lang.Object r2 = com.google.android.gms.internal.mlkit_vision_face.zzgd.zza(r4, r3, r2)\n return r2\n L_0x0079:\n com.google.android.gms.internal.mlkit_vision_face.zzdx$zzb$zza r2 = new com.google.android.gms.internal.mlkit_vision_face.zzdx$zzb$zza\n r2.<init>(r3)\n return r2\n L_0x007f:\n com.google.android.gms.internal.mlkit_vision_face.zzdx$zzb r2 = new com.google.android.gms.internal.mlkit_vision_face.zzdx$zzb\n r2.<init>()\n return r2\n switch-data {1->0x007f, 2->0x0079, 3->0x0033, 4->0x0030, 5->0x0016, 6->0x0011, 7->0x0010, }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mlkit_vision_face.zzdx.zzb.zza(int, java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "title": "" }, { "docid": "67d399aefc8ef137e6d9583207fd0c38", "score": "0.52756155", "text": "public static Map<String, Object> GetFaceFeaturesWithPoints(List<List<PointF>> facePoints, int imageWidth, int imageHeight) {\n Map<String, Object> faces = new HashMap<>();\n\n if (facePoints == null) {\n return faces;\n }\n\n List<FaceDetResult> faceDetResults = new ArrayList<>();\n for (List<PointF> points : facePoints) {\n if (points.size() == 106) {\n faceDetResults.add(mapSenstimeToDlib(points));\n }\n }\n\n faces = createFaceStates(faceDetResults, imageWidth, imageHeight);\n\n\n return faces;\n }", "title": "" } ]
dd57e47dc0ef4a4dd68e790a3166aa08
Test of isPrivate method, of class GradleTask.
[ { "docid": "aa38a8d8fecf8cc99da2f2cc90b53056", "score": "0.90781707", "text": "@Test\n public void testIsPrivate() {\n GradleTask instance = new GradleTask(\":run\", null, \"run\", \"\");\n assertTrue(instance.isPrivate());\n }", "title": "" } ]
[ { "docid": "bce7138b7662e45a820fdad47b55fd08", "score": "0.68101484", "text": "@Test\n public void testGetGroup2() {\n GradleTask instance = new GradleTask(\":run\", null, \"run\", \"\");\n String expResult = GradleBaseProject.PRIVATE_TASK_GROUP;\n String result = instance.getGroup();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "11d1cadbf8ad7714121656a87aaa4631", "score": "0.6330895", "text": "public abstract boolean getIsPrivate();", "title": "" }, { "docid": "e2978cdfe5ad9a8be7aa04afa7c08019", "score": "0.63085616", "text": "public boolean isPrivate();", "title": "" }, { "docid": "f9f23e0c7ecb2acb07d958a7680b6bb8", "score": "0.6088607", "text": "public boolean isPrivate() { return _private; }", "title": "" }, { "docid": "7bbc2ebdfe4fd5d8fd3d2444194716a2", "score": "0.6039544", "text": "boolean getPrivate();", "title": "" }, { "docid": "24f768711b0d08855186200fc279daeb", "score": "0.59878945", "text": "public boolean isPrivate() {\n return ti.priv();\n }", "title": "" }, { "docid": "94927bff07eeb3c56c6742a898d83694", "score": "0.57852143", "text": "private void doSomethingPrivate() {\n\n }", "title": "" }, { "docid": "e78448e07fe380ce06b98f363e81eb21", "score": "0.5749431", "text": "@Test\n public void secureAccessUseInternalBastionTest() {\n // TODO: test secureAccessUseInternalBastion\n }", "title": "" }, { "docid": "0f77eee5a76080614ead954384b681d0", "score": "0.5748434", "text": "private void checkAmazonECRPrivateAccess(String amazonECRDockerPath, boolean privateAccess) {\n // Public Amazon ECR tool (public.ecr.aws docker path) can't be set to private\n if (Registry.AMAZON_ECR.getDockerPath().equals(amazonECRDockerPath) && privateAccess) {\n throw new CustomWebApplicationException(\"The public Amazon ECR tool cannot be set to private.\", HttpStatus.SC_BAD_REQUEST);\n }\n\n // Private Amazon ECR tool with custom docker path can't be set to public\n if (AMAZON_ECR_PRIVATE_REGISTRY_REGEX.matcher(amazonECRDockerPath).matches() && !privateAccess) {\n throw new CustomWebApplicationException(\"The private Amazon ECR tool cannot be set to public.\", HttpStatus.SC_BAD_REQUEST);\n }\n }", "title": "" }, { "docid": "50755816cc032ea74a785a2a6bbdf944", "score": "0.5712649", "text": "@Test\n\tpublic void executeScheduledTask_shouldNotThrowErrorIfCalledFromATimerSchedulerTaskClass() throws Throwable {\n\t\tTask task = new PrivateTask();\n\t\tAssert.assertTrue(new PrivateSchedulerTask(task).runTheTest());\n\t}", "title": "" }, { "docid": "84d14344bf97b2271c67a06a5dc41888", "score": "0.56922275", "text": "public abstract void setIsPrivate(boolean isPrivate);", "title": "" }, { "docid": "1893b21554c5557f90f855e4ee089915", "score": "0.5588069", "text": "public void testProtectedDoStuffMethod(){\r\n doStuff();\r\n }", "title": "" }, { "docid": "9da81c7cf4c57f031c70aa56e7b34251", "score": "0.5576642", "text": "@Test\n public void testGetGroup1() {\n GradleTask instance = new GradleTask(\":run\", \"application\", \"run\", \"\");\n String expResult = \"application\";\n String result = instance.getGroup();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "85865248c12a2e12389e05f8d6e3c3ce", "score": "0.5566244", "text": "@Test\n public void testTaskInstance() {\n // TODO: test TaskInstance\n }", "title": "" }, { "docid": "45842bf5e4bd7c537290554951af9a65", "score": "0.5546553", "text": "private static void privateStaticMethod() {\n\n }", "title": "" }, { "docid": "c1cfba1e4b51663e571705cd237f331f", "score": "0.5538321", "text": "@Test\n public void taskIdTest() {\n // TODO: test taskId\n }", "title": "" }, { "docid": "36ad01ef387c222664c18f2604c2fd1a", "score": "0.54771006", "text": "public void setPrivate(boolean isPrivate)\n {\n _private = isPrivate;\n }", "title": "" }, { "docid": "7e554e703ca89c4e90dffb45aa8e70b7", "score": "0.54307044", "text": "public void setPrivate(Boolean isPrivate) {\n this.isPrivate = isPrivate;\n }", "title": "" }, { "docid": "bc6009876723d9f9e12ca060bae351d9", "score": "0.5405542", "text": "@Test\n void testDefaultToEmailInDescriptorForPrivateRepos() {\n // Setup DB\n\n // Manual publish public repo\n Client.main(new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, MANUAL_PUBLISH, \"--registry\",\n Registry.DOCKER_HUB.name(), Registry.DOCKER_HUB.toString(), \"--namespace\", \"dockstoretestuser\", \"--name\", \"private_test_repo\",\n \"--git-url\", \"git@github.com:DockstoreTestUser/dockstore-whalesay-2.git\", \"--git-reference\", \"master\", \"--toolname\", \"tool1\",\n SCRIPT_FLAG });\n\n // NOTE: The tool should have an associated email\n\n // Make the tool private\n Client.main(\n new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, UPDATE_TOOL, ENTRY,\n \"registry.hub.docker.com/dockstoretestuser/private_test_repo/tool1\", \"--private\", \"true\", SCRIPT_FLAG });\n\n // The tool should be private, published and not have a maintainer email\n final long count = testingPostgres\n .runSelectStatement(\"select count(*) from tool where ispublished='true' and privateaccess='true' and toolmaintaineremail=''\",\n long.class);\n assertEquals(1, count, \"one tool should be private and published, there are \" + count);\n\n // Convert the tool back to public\n Client.main(\n new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, UPDATE_TOOL, ENTRY,\n \"registry.hub.docker.com/dockstoretestuser/private_test_repo/tool1\", \"--private\", \"false\", SCRIPT_FLAG });\n\n // Check that the tool is no longer private\n final long count2 = testingPostgres.runSelectStatement(\n \"select count(*) from tool where ispublished='true' and privateaccess='true' and toolmaintaineremail='testemail@domain.com'\",\n long.class);\n assertEquals(0, count2, \"no tool should be private, but there are \" + count2);\n\n // Make the tool private but this time define a tool maintainer\n Client.main(\n new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, UPDATE_TOOL, ENTRY,\n \"registry.hub.docker.com/dockstoretestuser/private_test_repo/tool1\", \"--private\", \"true\", \"--tool-maintainer-email\",\n \"testemail2@domain.com\", SCRIPT_FLAG });\n\n // Check that the tool is no longer private\n final long count3 = testingPostgres.runSelectStatement(\n \"select count(*) from tool where ispublished='true' and privateaccess='true' and toolmaintaineremail='testemail2@domain.com'\",\n long.class);\n assertEquals(1, count3, \"one tool should be private and published, there are \" + count3);\n }", "title": "" }, { "docid": "f0fd89270e48d97282c4ef750efd17f7", "score": "0.53993666", "text": "private void assertNoTaskVisibility() {\n onView(withId(R.id.lbl_no_task))\n .check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)));\n // Check that the task list is not displayed\n onView(withId(R.id.list_tasks))\n .check(matches(withEffectiveVisibility(ViewMatchers.Visibility.GONE)));\n }", "title": "" }, { "docid": "618ce47f5085db754eb2de93fd1fe243", "score": "0.537634", "text": "@Test\n public void disruptionsAllowedTest() {\n // TODO: test disruptionsAllowed\n }", "title": "" }, { "docid": "62dc5ac8a94803e4e32f3dbd4670f0f7", "score": "0.53745604", "text": "@Test\n public void testPrivateSource() throws WattDepotClientException {\n WattDepotClient client =\n new WattDepotClient(getHostName(), defaultOwnerUsername, defaultOwnerPassword);\n assertEquals(\"Expected private source not found\", client.getSource(privateSource.getName()),\n privateSource);\n }", "title": "" }, { "docid": "c092161641eaa4946e3f901a9582a17b", "score": "0.53608793", "text": "@Test\n void testPrivateManualPublishNoToolMaintainerEmail() throws Exception {\n // Manual publish private repo without tool maintainer email\n int exitCode = catchSystemExit(() -> Client.main(\n new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, MANUAL_PUBLISH, \"--registry\",\n Registry.DOCKER_HUB.name(), Registry.DOCKER_HUB.toString(), \"--namespace\", \"dockstoretestuser\", \"--name\",\n \"private_test_repo\", \"--git-url\", \"git@github.com:DockstoreTestUser/dockstore-whalesay.git\", \"--git-reference\",\n \"master\", \"--private\", \"true\", SCRIPT_FLAG }));\n assertEquals(Client.CLIENT_ERROR, exitCode);\n }", "title": "" }, { "docid": "76d302d1701bb3b66f8cf3b0ceec5346", "score": "0.53519285", "text": "public boolean isPrivate(long contestId, boolean isStudio) throws ContestServiceException;", "title": "" }, { "docid": "2be203be00294f9bc2424ca442bc7a88", "score": "0.5330851", "text": "@Test\n void testManualPublishPrivateOnlyRegistry() throws Exception {\n // Setup database\n\n // Manual publish\n Client.main(new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, MANUAL_PUBLISH, \"--registry\",\n Registry.AMAZON_ECR.name(), \"--namespace\", \"notarealnamespace\", \"--name\", \"notarealname\", \"--git-url\",\n \"git@github.com:DockstoreTestUser/dockstore-whalesay.git\", \"--git-reference\", \"master\", \"--toolname\", \"alternate\", \"--private\",\n \"true\", \"--tool-maintainer-email\", \"duncan.andrew.g@gmail.com\", \"--custom-docker-path\", \"test.dkr.ecr.test.amazonaws.com\",\n SCRIPT_FLAG });\n\n // Check that tool is published and has correct values\n final long count = testingPostgres.runSelectStatement(\n \"select count(*) from tool where ispublished='true' and privateaccess='true' and registry='test.dkr.ecr.test.amazonaws.com' and namespace = 'notarealnamespace' and name = 'notarealname'\",\n long.class);\n assertEquals(1, count, \"one tool should be private, published and from amazon, there are \" + count);\n\n // Update tool to public (shouldn't work)\n int exitCode = catchSystemExit(() -> Client.main(\n new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, UPDATE_TOOL, ENTRY,\n \"test.dkr.ecr.test.amazonaws.com/notarealnamespace/notarealname/alternate\", \"--private\", \"false\", SCRIPT_FLAG }));\n assertEquals(Client.API_ERROR, exitCode);\n }", "title": "" }, { "docid": "abf93bdfba04de4d7eb8c9ce8fe88f79", "score": "0.5324063", "text": "boolean hasTaskId();", "title": "" }, { "docid": "8dcef7cf81f2983edf28774cff5d2d7c", "score": "0.5310701", "text": "@Override\n\t\t\tpublic boolean isTeamPrivateMember() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "c45f1ca2651080532bfac1b7072ed8d2", "score": "0.5305426", "text": "@Test\n public void testTaskExecutionStatus(){\n\n TaskFactory taskFactory = new TaskFactory();\n Tasks task = taskFactory.makeTasks(TaskFactory.DRIVING);\n task.executeTask();\n boolean result = task.isTaskExecuted();\n\n Assert.assertEquals(true,result);\n\n }", "title": "" }, { "docid": "7614dde4af9b3ed7290dee9808ef69cd", "score": "0.5281922", "text": "void testAccessProtectedMethodAsInstanceMethod() {\n }", "title": "" }, { "docid": "1723aac3c98e41aa67de924cd8bf5295", "score": "0.5275636", "text": "@Test\n public void donTHaveTaskAndCheckNoTaskDisplayOnList() {\n // We check \"no task\" is displayed\n this.assertNoTaskVisibility();\n\n // We check the number of task\n this.assertTaskCount(ZERO);\n }", "title": "" }, { "docid": "9f59ea5357720c45de5583767433721a", "score": "0.5262223", "text": "@Test\n public void testGetCompletedExcludes(){\n Task t2 = new Task(\"task2\", 5, 1, LocalDateTime.now());\n data.task().insertTask(t2, () ->{});\n taskSorter.getCompletedTasks(tasks -> {\n assertFalse(\"TaskManager Get Completed tasks didn't included an incomplete task.\", tasks.contains(t2));\n });\n }", "title": "" }, { "docid": "f87b12bef5ee86dcca15eaa7eb2a7f75", "score": "0.52523726", "text": "private Subtask03() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "title": "" }, { "docid": "989eaa67044fa232b6b88864f7c4465c", "score": "0.5239857", "text": "@Test\n public void testInterfaceWithPrivateAccessMethodInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface access='org.auraframework.impl.test.util.TestAccessMethods.allowPrivate'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" }, { "docid": "1e2191a81f5f7eb7b8610f7f6ff4fe27", "score": "0.52028465", "text": "@Override\n\t\t\tpublic void setTeamPrivateMember(final boolean isTeamPrivate) throws CoreException {\n\n\t\t\t}", "title": "" }, { "docid": "23bc887a014854448b1ca74e6b8b65da", "score": "0.5188573", "text": "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:45.010 -0500\", hash_original_method = \"0FEA708DB7A5B3B6D16FEC9623D0EEF8\", hash_generated_method = \"0FEA708DB7A5B3B6D16FEC9623D0EEF8\")\n \nboolean checkError() {\n return false;\n }", "title": "" }, { "docid": "f03d45b803c2a10dd2b92ba216386e7b", "score": "0.5165191", "text": "@Test\n void testPrivateManualPublish() throws Exception {\n // Setup DB\n\n // Manual publish private repo with tool maintainer email\n Client.main(new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, MANUAL_PUBLISH, \"--registry\",\n Registry.DOCKER_HUB.name(), \"--namespace\", \"dockstoretestuser\", \"--name\", \"private_test_repo\", \"--git-url\",\n \"git@github.com:DockstoreTestUser/dockstore-whalesay.git\", \"--git-reference\", \"master\", \"--toolname\", \"tool1\",\n \"--tool-maintainer-email\", \"testemail@domain.com\", \"--private\", \"true\", SCRIPT_FLAG });\n\n // The tool should be private, published and have the correct email\n final long count = testingPostgres.runSelectStatement(\n \"select count(*) from tool where ispublished='true' and privateaccess='true' and toolmaintaineremail='testemail@domain.com'\",\n long.class);\n assertEquals(1, count, \"one tool should be private and published, there are \" + count);\n\n // Manual publish public repo\n Client.main(new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, MANUAL_PUBLISH, \"--registry\",\n Registry.DOCKER_HUB.name(), \"--namespace\", \"dockstoretestuser\", \"--name\", \"private_test_repo\", \"--git-url\",\n \"git@github.com:DockstoreTestUser/dockstore-whalesay.git\", \"--git-reference\", \"master\", \"--toolname\", \"tool2\", SCRIPT_FLAG });\n\n // NOTE: The tool should not have an associated email\n\n // Should not be able to convert to a private repo since it is published and has no email\n int exitCode = catchSystemExit(() -> Client.main(\n new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, UPDATE_TOOL, ENTRY,\n \"registry.hub.docker.com/dockstoretestuser/private_test_repo/tool2\", \"--private\", \"true\", SCRIPT_FLAG }));\n assertEquals(Client.CLIENT_ERROR, exitCode);\n\n // Give the tool a tool maintainer email\n Client.main(\n new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, UPDATE_TOOL, ENTRY,\n \"registry.hub.docker.com/dockstoretestuser/private_test_repo/tool2\", \"--private\", \"true\", \"--tool-maintainer-email\",\n \"testemail@domain.com\", SCRIPT_FLAG });\n }", "title": "" }, { "docid": "c28c0b839c9ede0e4355eac2f2a43a7e", "score": "0.51625794", "text": "@Test\n void testPublicToPrivateToPublicTool() {\n // Setup DB\n\n // Manual publish public repo\n Client.main(new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, MANUAL_PUBLISH, \"--registry\",\n Registry.DOCKER_HUB.name(), Registry.DOCKER_HUB.toString(), \"--namespace\", \"dockstoretestuser\", \"--name\", \"private_test_repo\",\n \"--git-url\", \"git@github.com:DockstoreTestUser/dockstore-whalesay.git\", \"--git-reference\", \"master\", \"--toolname\", \"tool1\",\n SCRIPT_FLAG });\n\n // NOTE: The tool should not have an associated email\n\n // Give the tool a tool maintainer email and make private\n Client.main(\n new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, UPDATE_TOOL, ENTRY,\n \"registry.hub.docker.com/dockstoretestuser/private_test_repo/tool1\", \"--private\", \"true\", \"--tool-maintainer-email\",\n \"testemail@domain.com\", SCRIPT_FLAG });\n\n // The tool should be private, published and have the correct email\n final long count = testingPostgres.runSelectStatement(\n \"select count(*) from tool where ispublished='true' and privateaccess='true' and toolmaintaineremail='testemail@domain.com'\",\n long.class);\n assertEquals(1, count, \"one tool should be private and published, there are \" + count);\n\n // Convert the tool back to public\n Client.main(\n new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, UPDATE_TOOL, ENTRY,\n \"registry.hub.docker.com/dockstoretestuser/private_test_repo/tool1\", \"--private\", \"false\", SCRIPT_FLAG });\n\n // Check that the tool is no longer private\n final long count2 = testingPostgres.runSelectStatement(\n \"select count(*) from tool where ispublished='true' and privateaccess='true' and toolmaintaineremail='testemail@domain.com'\",\n long.class);\n assertEquals(0, count2, \"no tool should be private, but there are \" + count2);\n\n }", "title": "" }, { "docid": "990e61c3369ca3919bade04f7f485b63", "score": "0.5145445", "text": "private void setupGroupNoSuppress()\n {\n context.checking(new Expectations()\n {\n {\n allowing(group).isSuppressPostNotifToMember();\n will(returnValue(false));\n allowing(group).isSuppressPostNotifToCoordinator();\n will(returnValue(false));\n }\n });\n }", "title": "" }, { "docid": "137bea4e271df6b982085a9e3178aa0d", "score": "0.51443714", "text": "@Test\n public void testExportTwicePublicOK() throws Exception {\n expectEvalSuccess(\n \"exports_files([\\\"a.cc\\\"],\",\n \" visibility = [ \\\"//visibility:public\\\" ])\",\n \"exports_files([\\\"a.cc\\\"],\",\n \" visibility = [ \\\"//visibility:public\\\" ])\");\n }", "title": "" }, { "docid": "220f0a0d2d4eb8ee6d802e10cbc742bf", "score": "0.513816", "text": "public static String TestabilityResult_PkgPrivate() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f2f3e2b9bf552c409003679dbadc9744", "score": "0.513517", "text": "protected abstract void checkAccess();", "title": "" }, { "docid": "a55a117206823f1c09b2ed1fbc8a44d9", "score": "0.51274806", "text": "private Utilities() {}", "title": "" }, { "docid": "ba4d8ddf94783243535a8290c2b79549", "score": "0.511615", "text": "@Test\n void testManualPublishPrivateOnlyRegistryAsPublic() throws Exception {\n // Manual publish\n int exitCode = catchSystemExit(() -> Client.main(\n new String[] { CONFIG, ResourceHelpers.resourceFilePath(\"config_file.txt\"), TOOL, MANUAL_PUBLISH, \"--registry\",\n Registry.AMAZON_ECR.name(), \"--namespace\", \"notarealnamespace\", \"--name\", \"notarealname\", \"--git-url\",\n \"git@github.com:DockstoreTestUser/dockstore-whalesay.git\", \"--git-reference\", \"master\", \"--toolname\", \"alternate\",\n \"--tool-maintainer-email\", \"duncan.andrew.g@gmail.com\", \"--custom-docker-path\", \"amazon.registry\", SCRIPT_FLAG }));\n assertEquals(Client.CLIENT_ERROR, exitCode);\n }", "title": "" }, { "docid": "793ac8a8ad7fd4c2091e3bbe20897b15", "score": "0.5106052", "text": "private check() {\n throw new IllegalStateException(\"Utility Class\");\n }", "title": "" }, { "docid": "303d397dd7ad85d26b9e1f58ae7270f7", "score": "0.50881267", "text": "@Test\n void deleteTaskTest() {\n }", "title": "" }, { "docid": "48991c9b8334e232d3b8fc29854dafe1", "score": "0.50866705", "text": "public boolean makeAccessible()\r\n {\r\n return false;\r\n }", "title": "" }, { "docid": "f0843d85061e17938090118e3c96bec2", "score": "0.5080043", "text": "@Override\n\t\t\tpublic boolean isAccessible() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "3156160f8eefc0159759f2e7531a96d7", "score": "0.50746363", "text": "public boolean isPrivate() {\n\t\treturn Modifier.isPrivate(mClass.getModifiers());\n\t}", "title": "" }, { "docid": "061b70fe6ee30b3c809e8c680da6bf29", "score": "0.5056276", "text": "@Test\n public void testTokensWithPrivateAccessMethodInternalNamespace() throws Exception {\n String tokenSource = \"<aura:tokens access='org.auraframework.impl.test.util.TestAccessMethods.allowPrivate'/>\";\n DefDescriptor<TokensDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(TokensDef.class,\n tokenSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testTokens\",\n NamespaceAccess.INTERNAL);\n Source<TokensDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<TokensDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" }, { "docid": "fb1a6f138b0fb919ca23549f42057925", "score": "0.50509745", "text": "boolean isSkipTests();", "title": "" }, { "docid": "21a4d46baaf7a098cb68006fcca68d0d", "score": "0.504234", "text": "@SuppressWarnings(\"static-method\")\n\t@Test\n\tpublic void testGetClub_privateClubIsMember() throws Exception {\n\t\tRateLimitedTestRunner.run(() -> {\n\t\t\tfinal StravaClub club = TestUtils.strava().getClub(ClubDataUtils.CLUB_PRIVATE_MEMBER_ID);\n\t\t\tassertNotNull(club);\n\t\t\tClubDataUtils.validate(club, ClubDataUtils.CLUB_PRIVATE_MEMBER_ID, club.getResourceState());\n\t\t});\n\t}", "title": "" }, { "docid": "88e56bbeaeff8d284fa2127794d87bd4", "score": "0.5040083", "text": "private boolean private_returns_t()\n {\n return true;\n }", "title": "" }, { "docid": "5a5e520b356eaa5e24049c6b11c3b280", "score": "0.5038581", "text": "private static void methodPrivateStatic(){\n\t\t\tSystem.out.println(\"I am Private Static Method of Abstract Class\");\n\t\t}", "title": "" }, { "docid": "efdc115095118270e9a65517ea211041", "score": "0.5037844", "text": "@Test\n public void checkAsyncTask()\n {\n assertTrue(MainActivity.testAsyncTask());\n }", "title": "" }, { "docid": "c48215460af840f7f6f88161de1fefb7", "score": "0.5031559", "text": "public boolean isInternalCommand() {\r\n return false;\r\n }", "title": "" }, { "docid": "c1a064843b594a03a7e96a3f65522406", "score": "0.50308186", "text": "private ExportTask ()\r\n {\r\n }", "title": "" }, { "docid": "e8788618b0f3866df1e3bad37ddcc7f8", "score": "0.5028304", "text": "public static String TestabilityResult_Private() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "279a5e0b98e865687147b9500a3aea44", "score": "0.5022724", "text": "public boolean getPublicAccessible();", "title": "" }, { "docid": "d235e33a302cf04e3946fafc8720861b", "score": "0.5020093", "text": "@Test\n @Disabled\n void testReplaceChecksum() throws Exception {\n }", "title": "" }, { "docid": "0fb1f517fdba9c20faee49138c6262ad", "score": "0.5018739", "text": "public Exclude(YGuardBaseTask task) {\n this.task = task;\n }", "title": "" }, { "docid": "a9a54b3c27cf00852c26e6535e6f2fc2", "score": "0.5018717", "text": "public void testNothing() throws Exception {\n // keep this so build doesn't fail if other tests are disabled\n }", "title": "" }, { "docid": "a552db89887e6afa04ee4faa46ffbc1a", "score": "0.50134486", "text": "void taskUnreachable();", "title": "" }, { "docid": "a975d4724d7975224c3632237a29e193", "score": "0.49970585", "text": "private OnlyStaticMethodUtility() {\n throw new AssertionError();\n }", "title": "" }, { "docid": "96c6405cc99c10c73ed20097537d969f", "score": "0.49947134", "text": "@Override\n public GradleRunner withoutDeprecationChecks() {\n return newInstance(parameters.withDeprecationChecks(DeprecationChecksProvider.ignores()));\n }", "title": "" }, { "docid": "87951bc2ac45f512274573f957beb2d8", "score": "0.49872077", "text": "public boolean taskValid(int taskID){\n return false;\n }", "title": "" }, { "docid": "220c8024d9affdddaaa66face76531f6", "score": "0.49863774", "text": "private Utility(){\n throw new AssertionError();\n }", "title": "" }, { "docid": "def41a8e3c89c56a9f36b58c6507bde1", "score": "0.4984272", "text": "@Override\n public boolean isProtected() {\n return true;\n }", "title": "" }, { "docid": "fb314a5b8b7c7aaa076074bc26f25a72", "score": "0.49805364", "text": "public void checkAccess() {\r\n\t}", "title": "" }, { "docid": "53d4c0e8f80fe661ef54dac79c9057a9", "score": "0.4965544", "text": "private GoogleUserTasks() {\n throw new UserException(ExceptionCodes.WRONG_OPERATION.getMessageError());\n }", "title": "" }, { "docid": "22d6acd7c9f9e6f59ba124def6e8e3d8", "score": "0.49544263", "text": "public boolean isPublic();", "title": "" }, { "docid": "5682aa3d6b2d8d735c318e4d7b9a6d5c", "score": "0.4952242", "text": "public void privateMethodThatWillNotBeInherited() {\n System.out.print(\"This method is invisible to all sub classes\");\n }", "title": "" }, { "docid": "65a122135ddeadf2a6aba6072d1dd104", "score": "0.4945623", "text": "@Test\n\t\tvoid noJarTaskWhenJvmLanguagePluginNotApplied() {\n\t\t\tassertThat(subject.getTasks().get(), not(hasItem(named(\"jarQuzu\"))));\n\t\t}", "title": "" }, { "docid": "dd50aeebebec22ce264e8ca0f267fcb5", "score": "0.49387652", "text": "@Test\n public void testitShouldResolveTheDependenciesWithoutBuildConsumer() throws Exception {\n File testDir =\n ResourceExtractor.simpleExtractResources(getClass(), \"/mng-5895-ci-friendly-usage-with-property\");\n\n Verifier verifier = newVerifier(testDir.getAbsolutePath(), false);\n verifier.setAutoclean(false);\n\n // verifier.setLogFileName( \"log-only.txt\" );\n verifier.addCliArgument(\"-Drevision=1.2\");\n verifier.addCliArgument(\"-Dmaven.experimental.buildconsumer=false\");\n verifier.addCliArgument(\"clean\");\n verifier.execute();\n verifier.addCliArgument(\"package\");\n verifier.execute();\n verifier.verifyErrorFreeLog();\n }", "title": "" }, { "docid": "b9f1283fc86af67d082e103e63d642c0", "score": "0.49375135", "text": "@Test\n @Ignore\n public void test_7777_IT() throws IOException, GeneralSecurityException {\n }", "title": "" }, { "docid": "183d74e45ba6cbd3f6dc347b2348ecb4", "score": "0.4935022", "text": "boolean hasTaskDescription();", "title": "" }, { "docid": "a24c8283a7fb356b211eca75a53bde1b", "score": "0.49334848", "text": "public boolean isInternal() {\n return false;\n }", "title": "" }, { "docid": "ca459862932d3627d3c1b84944924324", "score": "0.49318457", "text": "@Test\n void addTaskTest() {\n }", "title": "" }, { "docid": "5eb2cb8770fd2a3da24594a86f43ea7e", "score": "0.49307847", "text": "@Test()\n public void testInvalidInputData() throws Exception {\n try {\n // Execute the task.\n final TaskExecutor taskExecutor = getTaskExecutor(null, null);\n taskExecutor.execute();\n\n // This should not be reached.\n fail();\n } catch (NullPointerException e) {\n assertTrue(true);\n }\n }", "title": "" }, { "docid": "4715125769cf8f6caa2fef99fadbcd78", "score": "0.49263933", "text": "@Test\n public void protectionKeyTest() {\n // TODO: test protectionKey\n }", "title": "" }, { "docid": "8769b1577c55aa66265bcffe59b5a5e1", "score": "0.4924526", "text": "public void otherToTestLancher() {\n assert (false);\n }", "title": "" }, { "docid": "2353a54a67740ee99a4b6ba9cbd6ef8f", "score": "0.49198133", "text": "@Override\n\t\t\t\t\t\t\tpublic boolean isProtected() {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "3d92453b4561cda2fdc78619ac56dbdf", "score": "0.49138135", "text": "private TestUtil()\n\t{\n\n\t}", "title": "" }, { "docid": "902790b6597a229d321d61faeb8f3f4a", "score": "0.49109298", "text": "@Test\n\tpublic void shouldNotGenerateCandidatesWhenTaskIsDisabled() {\n\t\tgiven(scheduledTaskService.isActive(Name.CandidatesRetrievalJob)).willReturn(false);\n\n\t\t// when\n\t\tcandidateRetrievalJob.generateCandidates();\n\n\t\t// then\n\t\tverify(candidateRetrievalService, never()).generateCandidates();\n\t}", "title": "" }, { "docid": "8d491a4ea184b2437d71e59973cb9594", "score": "0.49009442", "text": "protected boolean needsAITick ()\n {\n return false;\n }", "title": "" }, { "docid": "5a980c98ff21ad4f5ab6575f0417240f", "score": "0.4898876", "text": "public boolean hasTaskId() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "5e20cbe79587be9eefbb24afd48c483b", "score": "0.48981342", "text": "protected static void checkTask(final Task task) {\n if (!TaskPropertyService.isProcess(task)) {\n throw new IllegalArgumentException(\"Node \" + task.getId() + \" is not a function node.\");\n }\n }", "title": "" }, { "docid": "384c589950aad1801a561482ea4783e2", "score": "0.4887333", "text": "@Test\n public void testIgnorePublicationFalse() throws Exception {\n PublicationBuiltinTopicData data = mock(PublicationBuiltinTopicData.class);\n BuiltinTopicKey_t key = PowerMockito.mock(BuiltinTopicKey_t.class);\n Whitebox.setInternalState(data, \"participant_key\", key);\n Whitebox.setInternalState(data, \"topic_name\", \"topic\");\n\n // setup mock for instance handle\n InstanceHandle_t instanceHandle = mock(InstanceHandle_t.class);\n\n // call ignore publication\n assertFalse(filter.ignorePublication(domainParticipant, instanceHandle, data));\n }", "title": "" }, { "docid": "b70f811a64b09bd739c3a8096d49e2fc", "score": "0.48858482", "text": "public void onTaskObsolete() {\n\n }", "title": "" }, { "docid": "900343755d740c6cbd5f3f310be69d9b", "score": "0.4881986", "text": "public boolean isDeletable()\n\t{\n\t\tProject project = this.project;\n\t\tList<Component> components = project.components;\n\n\t\tfor( Component component : components )\n\t\t{\n\t\t\tfor( Task task : component.componentTasks )\n\t\t\t{\n\t\t\t\tif( task.dependentTasks.contains( this ) )\n\t\t\t\t{\n\t\t\t\t\tfor( Task task2 : this.subTasks )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( task2.dependentTasks.contains( this ) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e38c1675792f4760bfba6f81beb38cba", "score": "0.487814", "text": "@Override\n protected void checkPreConditions() {\n checkForValidTask();\n }", "title": "" }, { "docid": "4f093e7a9b005dc1423d9583e1e397a9", "score": "0.48774368", "text": "public void setPublicAccessible(boolean isPublic);", "title": "" }, { "docid": "2a28667a7f8136884cfff3c731bd9923", "score": "0.48724294", "text": "@Override\n\t\t\tpublic boolean isProtected() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "d8ae8c1f74cfa7f6cf861eebcf492e78", "score": "0.48722664", "text": "@Test\n void editTaskTest() {\n }", "title": "" }, { "docid": "1f70cc70621cd797392327b45043daef", "score": "0.4868407", "text": "private Utils() {\n throw new AssertionError();\n }", "title": "" }, { "docid": "dbc4c4733c1d435c3383847001d14904", "score": "0.4867866", "text": "private Util() {\n // do nothing\n }", "title": "" }, { "docid": "5889093bdc50abbb9375dc5ee01c695b", "score": "0.4864661", "text": "@Override\n\t\t\t\t\tpublic boolean isProtected() {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}", "title": "" }, { "docid": "f3e3be37dd83f543cd039a19ccf8bf1b", "score": "0.48646253", "text": "private AdhocPLUTask() {\n\n\t}", "title": "" }, { "docid": "974f288c4a4e96272a86b691e3a80ad0", "score": "0.48645732", "text": "@Override\n public void testIgnored(final Description description) throws Exception {\n\n }", "title": "" }, { "docid": "1eaedc7543ffffc4c5808f1248d1b0c9", "score": "0.48634934", "text": "@Test\n\tpublic void testHasSubTasks_2()\n\t\tthrows Exception {\n\t\tTaskImpl fixture = new TaskImpl(new Element(\"\"), new TaskListImpl(new ProjectImpl(new Element(\"\"))));\n\t\tString id = \"\";\n\n\t\tboolean result = fixture.hasSubTasks(id);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// nu.xom.IllegalNameException: NCNames cannot be empty\n\t\t// at nu.xom.Verifier.throwIllegalNameException(Unknown Source)\n\t\t// at nu.xom.Verifier.checkNCName(Unknown Source)\n\t\t// at nu.xom.Element._setLocalName(Unknown Source)\n\t\t// at nu.xom.Element.<init>(Unknown Source)\n\t\t// at nu.xom.Element.<init>(Unknown Source)\n\t\tassertTrue(result);\n\t}", "title": "" }, { "docid": "dbddea966643b56f1a4b536f4fa959fc", "score": "0.48585644", "text": "@Deprecated\n\tpublic boolean isAccessible();", "title": "" } ]
99c0f180f06518c8175773f02659fe65
Gets the "areaUnit" attribute
[ { "docid": "2bdd85d88ecfe5867ed26d40006f4d5e", "score": "0.785809", "text": "public org.landxml.schema.landXML11.ImpArea.Enum getAreaUnit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(AREAUNIT$0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return (org.landxml.schema.landXML11.ImpArea.Enum)target.getEnumValue();\r\n }\r\n }", "title": "" } ]
[ { "docid": "112d07fa5ff511c59663fe8429074b8c", "score": "0.7928587", "text": "public String getArea() {\r\n return area;\r\n }", "title": "" }, { "docid": "c8894c1a3db4d89250240b76391a37a3", "score": "0.78865546", "text": "public String getArea() {\n return area;\n }", "title": "" }, { "docid": "c8894c1a3db4d89250240b76391a37a3", "score": "0.78865546", "text": "public String getArea() {\n return area;\n }", "title": "" }, { "docid": "c8894c1a3db4d89250240b76391a37a3", "score": "0.78865546", "text": "public String getArea() {\n return area;\n }", "title": "" }, { "docid": "9a6d5c929cb102fe1e168c1a9e0dac61", "score": "0.7847652", "text": "public double getArea() {\n\t\treturn area;\n\t}", "title": "" }, { "docid": "9a6d5c929cb102fe1e168c1a9e0dac61", "score": "0.7847652", "text": "public double getArea() {\n\t\treturn area;\n\t}", "title": "" }, { "docid": "671c35298dd98abc9e03d552fc0d219b", "score": "0.7813845", "text": "public double getArea()\n\t{\n\t\treturn area;\n\t}", "title": "" }, { "docid": "7e0dcdb3ac3ddd155de6b75ee76feedd", "score": "0.77992797", "text": "public String getArea() {\n return this.AREA;\n }", "title": "" }, { "docid": "04d80ca9dc6f98858e4618bb81f78e2c", "score": "0.77843297", "text": "public double getArea() {\n return area;\n }", "title": "" }, { "docid": "42572d5ed5effd6eb9117f05ccc2ffca", "score": "0.77824277", "text": "public java.lang.String getArea_prop() {\n return area_prop;\n }", "title": "" }, { "docid": "b7959111f29a1f936ad736b5102936ec", "score": "0.777949", "text": "java.lang.String getArea();", "title": "" }, { "docid": "b7959111f29a1f936ad736b5102936ec", "score": "0.777949", "text": "java.lang.String getArea();", "title": "" }, { "docid": "0094b6429665a8071dc633dc34623882", "score": "0.77023417", "text": "public com.google.protobuf.ByteString\n getAreaBytes() {\n java.lang.Object ref = area_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n area_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "550beb0684cab740b694d4b20808bd7a", "score": "0.76979196", "text": "public int getArea() {\r\n\t\treturn area;\r\n\t}", "title": "" }, { "docid": "ea46a56f80b5c225caf0dd7c2e4525f4", "score": "0.7681639", "text": "String getArea();", "title": "" }, { "docid": "ea46a56f80b5c225caf0dd7c2e4525f4", "score": "0.7681639", "text": "String getArea();", "title": "" }, { "docid": "f042844cfacf56c7d498f46aefc6a6b7", "score": "0.76773673", "text": "public com.google.protobuf.ByteString\n getAreaBytes() {\n java.lang.Object ref = area_;\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 area_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "9c116bcbaa68ca499a9bab82f06468c0", "score": "0.76681924", "text": "public com.google.protobuf.ByteString\n getAreaBytes() {\n java.lang.Object ref = area_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n area_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "5b1dfd117217cecf79015991fbf9a1e6", "score": "0.7665793", "text": "public com.google.protobuf.ByteString\n getAreaBytes() {\n java.lang.Object ref = area_;\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 area_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "1c7059d07ddf1f3b71232fc5da274a49", "score": "0.7644861", "text": "public double getArea();", "title": "" }, { "docid": "28d8c89971b7b59369cc1caf7bc8fb8a", "score": "0.7643761", "text": "public int getArea() {\n return area;\n }", "title": "" }, { "docid": "411c6ef79a41b84b7cfe430764910840", "score": "0.76368535", "text": "public java.lang.String getArea() {\n java.lang.Object ref = area_;\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 area_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "8b6208434960b44a9b1666aa164721f3", "score": "0.7621684", "text": "public java.lang.String getArea() {\n java.lang.Object ref = area_;\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 area_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "bda9c5c78c2361d0748ede7be09b78a5", "score": "0.76117903", "text": "public java.lang.String getArea() {\n java.lang.Object ref = area_;\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 area_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "8abb0ba18817e97ef23ee3e75f29c20e", "score": "0.7602277", "text": "public java.lang.String getArea() {\n java.lang.Object ref = area_;\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 area_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "eb7391296950c0b7ae67abe1cda37be7", "score": "0.7587484", "text": "public double getRoomArea() {\n\t\treturn this.area;\n\t}", "title": "" }, { "docid": "10b821587e818ee820ecf2825e3351eb", "score": "0.75786805", "text": "public Byte getArea() {\n return area;\n }", "title": "" }, { "docid": "427cdb45773b9b0d62073b9db8c12eb0", "score": "0.7532511", "text": "double getArea();", "title": "" }, { "docid": "f958a7b711bdecec01a5f90cc6764b31", "score": "0.752982", "text": "public float area() {\n return area;\n }", "title": "" }, { "docid": "9867413ad6d9443ebb4971599acc2404", "score": "0.741968", "text": "public IArea getArea() {\r\n\t\treturn this.area;\r\n\t}", "title": "" }, { "docid": "4d7cd8a42000c94e3f536d4275469128", "score": "0.7409228", "text": "private double areaValue(){\r\n return this.area;\r\n }", "title": "" }, { "docid": "5f94d811b746b837bca4d68131192f50", "score": "0.73992956", "text": "public org.landxml.schema.landXML11.ImpArea xgetAreaUnit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.ImpArea target = null;\r\n target = (org.landxml.schema.landXML11.ImpArea)get_store().find_attribute_user(AREAUNIT$0);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "40780ff1ed5d937a7c5380c462a0157c", "score": "0.7373883", "text": "private double getArea(){\n\t\treturn this.width * this.height;\n\t}", "title": "" }, { "docid": "d0fec2d12658cd89bc240530d4ab1403", "score": "0.73725307", "text": "public double getArea() {\n return getWidth() * getHeight(); // to return area as getWidth X getHeight\n }", "title": "" }, { "docid": "589ae65ddaa40c88369169187b4085bd", "score": "0.73707634", "text": "public double getArea(){\n\t\treturn Double.valueOf(df.format(width * height));\n\t}", "title": "" }, { "docid": "440e5faf79329f4ae402c0c42d351b83", "score": "0.73643893", "text": "public double getArea() {\n\t\treturn this.getCalculatedArea();\n\t}", "title": "" }, { "docid": "f0c4553ac665616fe17bd26d9292bd01", "score": "0.73569965", "text": "public double getArea() {\n\t\treturn length * width;\n\t}", "title": "" }, { "docid": "75f0adbede37770a838fd598e9f081a7", "score": "0.729461", "text": "public double getArea() {\n return length * width;\n }", "title": "" }, { "docid": "4d6b8c6fd17130fbdccc741317e3ed01", "score": "0.7270871", "text": "public int get_areaNum () {\n\t return _areaNum;\n }", "title": "" }, { "docid": "f7c15d783f513c15225bb38beab73486", "score": "0.72652775", "text": "public double getArea() {\n\t\treturn width * height;\n\t}", "title": "" }, { "docid": "f95eb5dc4f84cf25d099e168ac4c41e0", "score": "0.72612506", "text": "public abstract double getArea();", "title": "" }, { "docid": "f95eb5dc4f84cf25d099e168ac4c41e0", "score": "0.72612506", "text": "public abstract double getArea();", "title": "" }, { "docid": "f95eb5dc4f84cf25d099e168ac4c41e0", "score": "0.72612506", "text": "public abstract double getArea();", "title": "" }, { "docid": "f95eb5dc4f84cf25d099e168ac4c41e0", "score": "0.72612506", "text": "public abstract double getArea();", "title": "" }, { "docid": "f95eb5dc4f84cf25d099e168ac4c41e0", "score": "0.72612506", "text": "public abstract double getArea();", "title": "" }, { "docid": "f95eb5dc4f84cf25d099e168ac4c41e0", "score": "0.72612506", "text": "public abstract double getArea();", "title": "" }, { "docid": "f95eb5dc4f84cf25d099e168ac4c41e0", "score": "0.72612506", "text": "public abstract double getArea();", "title": "" }, { "docid": "fb28ea71e48e11d1c89b4875be8e4f1f", "score": "0.7245866", "text": "public double getArea() {\n double area = length * width;\n return area;\n }", "title": "" }, { "docid": "fb28ea71e48e11d1c89b4875be8e4f1f", "score": "0.7245866", "text": "public double getArea() {\n double area = length * width;\n return area;\n }", "title": "" }, { "docid": "53776548739d5eba8b3f4057bde4829c", "score": "0.72358775", "text": "public String getAreaDescription() {\n return \"AREA value\\n\";\n }", "title": "" }, { "docid": "c148b82d841b6ba9193e11abccf1aaf2", "score": "0.72338796", "text": "public double getArea() {\n\t\treturn width * width;\n\t}", "title": "" }, { "docid": "d155c0d50167338c0f587ae1dfcff70c", "score": "0.7232928", "text": "public double getArea()\n {\n return (width * height);\n }", "title": "" }, { "docid": "0d9ecadf31a399fb9887cdbe5d0fc5c8", "score": "0.7229331", "text": "public double getArea() {\n return 3.14 * radius * radius;\n }", "title": "" }, { "docid": "600ae9e7205c9eae713fae61bf8fb126", "score": "0.7225755", "text": "public double getArea() {\n return 3.1416 * radius * radius;\n }", "title": "" }, { "docid": "6ac6678df6cf62634653006e75497e5d", "score": "0.7223659", "text": "public double value() {\r\n return area;\r\n }", "title": "" }, { "docid": "4b87ca3496c929f04113f5b33936be23", "score": "0.722033", "text": "public java.math.BigDecimal getTotalArea() {\r\n return totalArea;\r\n }", "title": "" }, { "docid": "d812150da9aa5ba9ca3d327e58ea712b", "score": "0.71982926", "text": "abstract public double getArea();", "title": "" }, { "docid": "217a326f9de595e62317d49357ae4803", "score": "0.71939516", "text": "com.google.protobuf.ByteString\n getAreaBytes();", "title": "" }, { "docid": "4e556ef0dcd6f58209e37aef287cf841", "score": "0.7192799", "text": "public double getArea() {\n return (0.5 * base * height);\n }", "title": "" }, { "docid": "71fe4945fea08e2deb7b3623de8cc4c7", "score": "0.71711475", "text": "public double area() {\n\t\treturn length * width;\t\t\t\t\t\t//width*length = area\r\n\t}", "title": "" }, { "docid": "9acde8e9d8ebf0443bc151d175c6f889", "score": "0.71650946", "text": "public double getArea() {\n return 0;\n }", "title": "" }, { "docid": "c20dc76b40268714c48a022ca252bcf6", "score": "0.7164859", "text": "@Override\n\n\tpublic float getArea() {\n\t\tSystem.out.println(\"Finding area of rectangle with length = \" + length + \" and width = \" + width);\n\t\treturn (float) (width * length);\n\n\t}", "title": "" }, { "docid": "2c01df2b4bade0a5572ef237d77d1366", "score": "0.71573895", "text": "@Override\n public int getArea() {\n return value;\n }", "title": "" }, { "docid": "137c304c60749be13ee56f7b4fad3d18", "score": "0.7135556", "text": "public Area getArea()\r\n \t{\r\n \t\treturn new Area(computeBounds());\r\n \t}", "title": "" }, { "docid": "95d9b0931b96238d9c904dd232d65d46", "score": "0.7120693", "text": "public double getArea() {\n\t\t// Variables\n\t\tRectangle square;\n\t\tdouble area;\n\t\t\n\t\tsquare = new Rectangle(side, side);\n\t\tarea = square.getArea();\n\t\t\n\t\treturn area;\n\t}", "title": "" }, { "docid": "baeb266aa71a6c9ba4039e7e77a7aa8c", "score": "0.71121174", "text": "public double getArea(){\n return this.getSize() * this.getSize();\n }", "title": "" }, { "docid": "baeb266aa71a6c9ba4039e7e77a7aa8c", "score": "0.71121174", "text": "public double getArea(){\n return this.getSize() * this.getSize();\n }", "title": "" }, { "docid": "bc8be8f9533714259819db77d07ea255", "score": "0.7108822", "text": "double getArea() {\r\n return height * width;\r\n }", "title": "" }, { "docid": "bb13dcbcab8d5601961ee44ef0ec678c", "score": "0.708414", "text": "double getArea(){\n \treturn width * height;\n }", "title": "" }, { "docid": "7e4dc1d7e5b1b195a9ccdc0e387daf1a", "score": "0.70557624", "text": "public String [] getArea() {\n return this.Area;\n }", "title": "" }, { "docid": "7c631d0a2f5de1e494e6d0c5bf0a4107", "score": "0.7052843", "text": "public Vector2I[] getArea() {\n return area;\n }", "title": "" }, { "docid": "dced3886bcf3f43120131d0e9c380184", "score": "0.7037841", "text": "@Override\n\tpublic double getArea() {\n\n\t\tdouble area = (22 * radius * radius) / 7;\n\n\t\treturn area;\n\t}", "title": "" }, { "docid": "296884593394f9b0ec61a90ac6bc291e", "score": "0.70374745", "text": "public double getArea() {\n\n\t\treturn (myRadius * myRadius) * Math.PI;\n\n\t}", "title": "" }, { "docid": "a27eda79f22d8c0821233a6869639f1f", "score": "0.7022936", "text": "@Override\n\tpublic double getArea() {\n\t\treturn width * height;\n\t}", "title": "" }, { "docid": "d0482f16a715691eb3fe2059ad895df9", "score": "0.70165956", "text": "@Override\n public double getArea() {\n double area;\n area=2*Math.PI*radius*(radius+height);\n return area;\n }", "title": "" }, { "docid": "75a216488e6d30286134b7d68293233a", "score": "0.69879806", "text": "public double getArea() {\n\n return Math.PI * Math.pow(radius, 2);\n\n }", "title": "" }, { "docid": "a9bd429cdc0594a798a5bb81a1c75bb3", "score": "0.69856775", "text": "double getArea() {\n\t\treturn radius * radius * Math.PI;\n\t}", "title": "" }, { "docid": "a9bd429cdc0594a798a5bb81a1c75bb3", "score": "0.69856775", "text": "double getArea() {\n\t\treturn radius * radius * Math.PI;\n\t}", "title": "" }, { "docid": "8dd93121e1fd2f84868dfe724d3cde84", "score": "0.69761163", "text": "@Override\r\n\tpublic double getArea() {\n\t\treturn Math.pow(this.radius, 2) * Math.PI;\r\n\t}", "title": "" }, { "docid": "b41db5cd60b6cc8a0485928b010071b9", "score": "0.697125", "text": "public double getArea() {\n\t\treturn Math.PI * Math.pow(radius, 2);\n\t}", "title": "" }, { "docid": "9fcf96376e626ba817c7dad800684f35", "score": "0.6967781", "text": "public double getArea() // returns the area of the rectangle.\r\n {\r\n return length*breadth; // formula for caculating area of rectangle.\r\n }", "title": "" }, { "docid": "7185c4ccf818018179695ad044953368", "score": "0.6966323", "text": "double getArea() {\n return (radius * radius * Math.PI);\n }", "title": "" }, { "docid": "e8ddeddec208b67280fa471bd7d8be03", "score": "0.6962374", "text": "public double getArea() {\n\t\treturn 1.5 * (Math.pow(size * 3, .5));\n\t}", "title": "" }, { "docid": "b3978cfd541b475fa84211415a5eefa5", "score": "0.69540226", "text": "public double getArea() {\n return -1;\n }", "title": "" }, { "docid": "9c87ac73cbd0a7616800b4ea7033d66b", "score": "0.69495064", "text": "@Override\n\tpublic double getArea() {\n\t\treturn (2*l*w)+(2*l*h)+(2*h*w);\n\t}", "title": "" }, { "docid": "40bf03726f253af83a7b7eb2e4b747b4", "score": "0.69414", "text": "com.google.protobuf.ByteString\n getAreaBytes();", "title": "" }, { "docid": "b7cf9a1680365990a4e5a28116c5bc48", "score": "0.6926343", "text": "public double area() {\n\t\treturn (Math.pow(this.radius, 2) * Math.PI);\n\t}", "title": "" }, { "docid": "f8e78c001379c2ed59703148d302b5e2", "score": "0.6915725", "text": "@Override\r\n public double getArea() {\r\n double area=width*width;\r\n return area;\r\n }", "title": "" }, { "docid": "c6e14624ae07d68f53ab48a78d226348", "score": "0.6905671", "text": "@Override\r\n\tpublic double getArea() {\r\n\t\treturn Math.pow(this.radius.doubleValue(),2) * Math.PI;\r\n\t}", "title": "" }, { "docid": "afb976846233379066f7f41d6d39dd60", "score": "0.6898029", "text": "double area() {\r\n\t\treturn radius*2*thickness;\r\n\t}", "title": "" }, { "docid": "ec8ea37e9872cfde94d34c0082050885", "score": "0.6876758", "text": "public int getArea() {\n return (barLength * barWidth);\n }", "title": "" }, { "docid": "4e8e703acfb825c3fea6f4e8c7591ec7", "score": "0.68731433", "text": "public double getArea() {\n\t\treturn Math.PI * radius * radius;\n\t}", "title": "" }, { "docid": "15767a922b67add4fd7ad50344803869", "score": "0.6871449", "text": "public double area ( ) ;", "title": "" }, { "docid": "5db148d11df0bdc6c1335e2f09a19ae6", "score": "0.6842888", "text": "public double getArea(){\n return (sidesCount * Math.pow(sideLength, 2) / (4 * Math.tan(Math.PI / sidesCount)));\n }", "title": "" }, { "docid": "be73df19101d854e0b496316e73b60ad", "score": "0.68369955", "text": "public double getArea(){\n return Math.PI * radius * radius;\n }", "title": "" }, { "docid": "a3ea084be40addc664f3959e7a24e92d", "score": "0.68236905", "text": "public double getArea() {\n\t\tdouble area = pi* Math.pow(r, 2);\n\t\treturn area;\n\n\t}", "title": "" }, { "docid": "3e0a2ef98c4f37bf63770eb67c420b6d", "score": "0.6820125", "text": "public double CalcArea() {\n\t\treturn length * width;// return area of rectangle.\n\t}", "title": "" }, { "docid": "73f6f7ac85f490460627c17c232f10e6", "score": "0.68056494", "text": "public double area ( ) {\n\t// someSquare.nwCorner someSquare.length\n\t// this.nwCorner this.length\n\treturn this.length * this.length ;\n\t// return Math.pow( this.length, 2 );\n }", "title": "" }, { "docid": "6a73986427c77f2ca090650173fc9b42", "score": "0.6805596", "text": "public String getRegionArea() {\n return this.RegionArea;\n }", "title": "" }, { "docid": "fdb8639fc972278e8738111c3fa6c9dd", "score": "0.6800007", "text": "public Integer getAreaId() {\n return areaId;\n }", "title": "" } ]
7832654c623dcd93d782ae8fc2127df5
Gets the current pages image from database or returns null if error
[ { "docid": "8b439cef65798949a1f1d47b02d435b7", "score": "0.64697737", "text": "public String getPageImage() {\n TeacherDBCommands tdbc = new TeacherDBCommands(ctx);\n byte[] body = new byte[0];\n try {\n body = tdbc.getContentModuleHtml(contentModuleId);\n } catch (SQLException e) {\n log.log(Level.SEVERE, e.getMessage(), e);\n }\n if(body == null){\n body = new byte[0];\n }\n tdbc.closeConnection();\n return DatatypeConverter.printBase64Binary(body);\n }", "title": "" } ]
[ { "docid": "cb41dba1bcd0c1f016d4e6a7f23c4eb5", "score": "0.6428515", "text": "@Override\n\tpublic Image getPageImage() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b0804940e942bf8061e65007d8c1da52", "score": "0.6266354", "text": "public static Object getCurrentImage() {\n\t\tImagePlus imageplus = WindowManager.getCurrentImage();\n\t\tif (imageplus == null)\n\t\t\treturn null;\n\t\treturn get(imageplus);\n\t}", "title": "" }, { "docid": "7f1ca5b0659a4b11c593fca3ea80fa34", "score": "0.61742187", "text": "@Override\n\tpublic List<String> findFirstPics() throws Exception {\n\t\tDBContextHolder.setDBType(\"0\");\n\t\treturn fHomePageMapper.findFirstPics();\n\t}", "title": "" }, { "docid": "40d272e894a890bcdfe79c101d2d3888", "score": "0.61618745", "text": "protected Image getPageImage(int pageIndex) {\r\n\t\treturn getItem(pageIndex).getImage();\r\n\t}", "title": "" }, { "docid": "4fade2dd1cffead164c8bb6b02fb5bd9", "score": "0.610838", "text": "public static ImageResource getImageResource( int nPageId )\n {\n return _dao.loadImageResource( nPageId );\n }", "title": "" }, { "docid": "812c2d2a37f0d401ad653a61f720c2d4", "score": "0.6107292", "text": "public Image getImage() {\n \treturn null;\n }", "title": "" }, { "docid": "54f4c56e07ea21741d6e0edc76d9fca1", "score": "0.6098568", "text": "@Override\n public Image call() {\n \tfinal Expression expression = getExpression(request);\n \tPropertyBag<? extends MetadataBase>[] listEntities= ds.get(EntityType.IMAGE, expression, 200, null, null, null);\n \tif(listEntities.length > 1)\n \t\treturn null;\n \telse\n \t\treturn (Image) listEntities[0].getEntityObject();\n }", "title": "" }, { "docid": "eea951e1dcb346362c2c52c07844f5d3", "score": "0.6091476", "text": "public StreamedContent getDbImage(){\n\t\t return dbImage;\n\t}", "title": "" }, { "docid": "374454b28ade0d8939610df76f7d8180", "score": "0.6070945", "text": "private Image getPageFromDisk(int pageNum) {\r\n \t\tPDFPage page = pdfFile.getPage(pageNum + 1);\r\n \t\tRectangle2D r2d = page.getBBox();\r\n \t\timageWidth = r2d.getWidth();\r\n \t\timageHeight = r2d.getHeight();\r\n \t\timageWidth /= PAGE_DIMENSION_RATIO;\r\n \t\timageHeight /= PAGE_DIMENSION_RATIO;\r\n \t\tint res = Toolkit.getDefaultToolkit().getScreenResolution();\r\n \t\timageWidth *= res;\r\n \t\timageHeight *= res;\r\n \t\treturn page.getImage((int) imageWidth, (int) imageHeight, r2d, null,\r\n \t\t\t\ttrue, true);\r\n \t}", "title": "" }, { "docid": "a7975465e03b5143433d2d8d0e090ffd", "score": "0.6028029", "text": "@Override\n public ModelImage getComponentImage(int componentTBNO) {\n \n ModelImage result = null; \n \n SqlSession session = sqlMapper.openSession();\n try { \n result = session.selectOne(\"com.lecture.spring.mybatis.MapperBoard.getComponentImage\", componentTBNO);\n session.commit();\n } catch (Exception e){\n \n logger.error(e.toString());\n \n throw e;\n } finally {\n session.close();\n }\n return result;\n \n }", "title": "" }, { "docid": "08a3189829c5bb07955520f1adcdfddd", "score": "0.60029507", "text": "Image getCurrentScreenshot() throws SlickException;", "title": "" }, { "docid": "279e6a04b254c16b8e320842ceb34887", "score": "0.59506553", "text": "private static int getPageImage(final Properties extraParams) {\r\n\t\tfinal String imagePage = extraParams.getProperty(\"imagePage\"); //$NON-NLS-1$\r\n\t\tif (imagePage == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"No se ha indicado el numero de pagina en el que insertar la imagen\"); //$NON-NLS-1$\r\n\t\t}\r\n\r\n\t\tfinal int numPage;\r\n\t\ttry {\r\n\t\t\tnumPage = Integer.parseInt(imagePage);\r\n\t\t}\r\n\t\tcatch (NumberFormatException e) {\r\n\t\t\tthrow new IllegalArgumentException(\"No se ha introducido un valor valido como numero de pagina\", e); //$NON-NLS-1$\r\n\t\t}\r\n\t\treturn numPage;\r\n\t}", "title": "" }, { "docid": "063c6fa8c4b060cdf08f465639fbbe19", "score": "0.5940369", "text": "String GetImage();", "title": "" }, { "docid": "350270c8c108f09c1160e0ef5adfb915", "score": "0.59061086", "text": "public Pic getImage(String imageName) {\n\t\tList<Pic> pics = imageCache.get(currentPath);\n\t\t\n\t\tfor (Pic pic : pics) {\n\t\t\tif (pic.getName().equals(imageName)) { return pic; } \n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e0c8a6889f2d415315dc586a8ebee5a3", "score": "0.5903777", "text": "public int getImage();", "title": "" }, { "docid": "dd99e7a5b18378585f698bd0b579415a", "score": "0.5877504", "text": "public synchronized Image getImage() {\n if (frames.size() == 0) { //si la animacion no tiene frames regresa null\n return null;\n }\n else { // Si tiene frames regrasa la imagen\n return getFrame(currFrameIndex).image;\n }\n }", "title": "" }, { "docid": "dc7f0d0c3dda0415ffbec8d1d18183a4", "score": "0.5876735", "text": "public Image getImage() {\r\n \t return image;\r\n }", "title": "" }, { "docid": "236780754aac99cbe9f792b75d7bbfe7", "score": "0.5862604", "text": "public Image getImage() {\n return picture;\n }", "title": "" }, { "docid": "5dcdf88a1093203069c98f60fe2402d7", "score": "0.5839055", "text": "public Image getImage(){\n return image.get();\n }", "title": "" }, { "docid": "159585915f79d4b2127ea7f2c5fc1323", "score": "0.5828967", "text": "public String \t\t\t\tgetImage();", "title": "" }, { "docid": "2fac8bf593cf4ca20ea71c808d67bee5", "score": "0.5810194", "text": "private ImageResource getFromPageSeeder(URL url) throws IOException {\n\n // Extract metadata\n URLConnection connection = url.openConnection();\n String media = connection.getContentType();\n int length = connection.getContentLength();\n long modified = connection.getLastModified();\n\n // Copy content into buffer\n BufferedInputStream in = null;\n byte[] data = null;\n try (InputStream raw = connection.getInputStream()) {\n if (raw == null)\n return new ImageResource(modified, length, media, new byte[]{});\n in = new BufferedInputStream(raw);\n data = IOUtils.toByteArray(in, length);\n } catch (FileNotFoundException ex) {\n return null;\n }\n return new ImageResource(modified, length, media, data);\n }", "title": "" }, { "docid": "fc0f1bd6a8069ffe23ada08bbacb804a", "score": "0.5802035", "text": "public Image getImage(){\n\t\treturn _image;\n\t}", "title": "" }, { "docid": "655de46ac9878b22460b9f6889ab2038", "score": "0.5801087", "text": "public Image getImage()\n {\n return image; \n }", "title": "" }, { "docid": "cf7cddfa06c4face6ad1db57b9e88ed4", "score": "0.5790493", "text": "public Image getImage(){\n\treturn image;\n }", "title": "" }, { "docid": "8b647898641f11c214108e2baf80a391", "score": "0.5786119", "text": "@Override\n\tpublic String findSecondPic(String memo) throws Exception {\n\t\tDBContextHolder.setDBType(\"0\");\n\t\treturn fHomePageMapper.findSecondPic(memo);\n\t}", "title": "" }, { "docid": "5ddd358303887f45bc96a059c5b05b5d", "score": "0.5783454", "text": "public int getImage() {\n return image;\n }", "title": "" }, { "docid": "3d364fad200782b719c6a5afab5f1a47", "score": "0.57818246", "text": "public Image getImage () {\r\n\tcheckWidget();\r\n\treturn image;\r\n}", "title": "" }, { "docid": "033a6ee6dbd92ef78c9e7c91f1b716bc", "score": "0.5777153", "text": "public File getImageFile() {\n ODMGXAWrapper txw = new ODMGXAWrapper();\n txw.lock(this, Transaction.READ);\n txw.commit();\n return imageFile;\n }", "title": "" }, { "docid": "f3a1119938d2f27e4165617539e518de", "score": "0.57672507", "text": "@Override\n public String getImageFrom(Chapter chapter, int page) throws Exception {\n String source = getNavigatorAndFlushParameters().get(chapter.getPath() + page + \".html\");\n String img = \"\";\n try {\n img = getFirstMatchDefault(\"src=\\\"(http://cdn.japscan.com/[^\\\"]+?)\\\"/>\", source, \"Error getting image\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n //Log.d(\"JS\", \"img: \" + img);\n return img;\n }", "title": "" }, { "docid": "17863da5627faec96e9eeaf54e58baee", "score": "0.5744583", "text": "public byte[] getImage()\n {\n return null;\n }", "title": "" }, { "docid": "0ee3a856df5ecd293ae3c4d3d122fc4f", "score": "0.5734195", "text": "public String getImage();", "title": "" }, { "docid": "6edd65198d08f17b2fb22448525c23bf", "score": "0.5721449", "text": "public Image getImage() { return this.image; }", "title": "" }, { "docid": "4848906d9c54ef9541c0c8a7644d7d18", "score": "0.5717907", "text": "public BufferedImage getImage() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tbyte[] buf = getImageBytes();\r\n\t\t\t\r\n\t\t\t// return result image\r\n\t\t\tif (buf != null) {\r\n\t\t\t\treturn getPicture(buf);\r\n\t\t\t} else {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\r\n\t\treturn null;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f7ca7ee3112347750ff78f43a1123413", "score": "0.5716149", "text": "public BufferedImage getTopImage() throws IOException {\n \tArrayList<QuadTree.QuadTreeNode> nodes = new ArrayList<QuadTree.QuadTreeNode>();\n \tboolean found = findWorldsQT_.getAllNodesToDepth(0, 0, nodes);\n \tif (!found || (nodes.size() != 1)) {\n \t\tthrow new IOException();\n \t}\n WorldPieceOffering wpo = allWorldsToImageName_.get(nodes.get(0).getWorldExtent());\n if (wpo == null) { // After a new network is created....\n \treturn (null);\n }\n BufferedImage retval = null;\n \n //\n // It is true there are two locks floating around, one on this object, and one of the\n // bis_ BufImgStack. But since bis_ does not acquire any locks during its methods, we\n // do not need to worry about deadlock conditions.\n //\n synchronized (this) {\n retval = cache_.getAnImage(wpo.cacheHandle, bis_);\n }\n return (retval);\n }", "title": "" }, { "docid": "b498f2972c4d756a9a83d82e3327512f", "score": "0.5715751", "text": "public Image getImage();", "title": "" }, { "docid": "e1a78549271754be6f8a0ef4d252353d", "score": "0.571116", "text": "private Bitmap getImage(int position){\r\n\t\tif (fileList == null || fileList.size() < position)\r\n\t\t\treturn null;\r\n\r\n\t\t//Load the image\r\n\t\tString path = (String)fileList.get(position);\r\n\t\tif (path != null && !path.equals(\"\")){\r\n\t\t\tBitmap bitmap = BitmapFactory.decodeFile(path);\r\n\t\t\treturn bitmap;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "fc2d914eeb072be8a1c3d3ff9728611f", "score": "0.57097125", "text": "public Image getImage() {\r\n genImage();\r\n \r\n return image;\r\n }", "title": "" }, { "docid": "b795e68abff5ec8218a0d29003cc2cb4", "score": "0.569451", "text": "@Override\r\n\tpublic PageBean findAppPictures(String currentPage, String factoryid) {\n\t\treturn apppictureDao.findAppPictures( currentPage, factoryid);\r\n\t}", "title": "" }, { "docid": "2f7ab085cb3102b318f8ba292bb0b7c1", "score": "0.5681263", "text": "@Override\n protected File doInBackground(Integer... params) {\n bmp = getPageThumbnailBitmap(position);\n return null;\n }", "title": "" }, { "docid": "7f8c138801d9bb97d958b08b41ef585e", "score": "0.5665106", "text": "public Image getImage() {\n\t\treturn image;\n\t}", "title": "" }, { "docid": "43cf6336c9e4309e2c58e3d884134cf3", "score": "0.5661632", "text": "@Override\n public String getImageFrom(Chapter chapter, int page) throws Exception {\n String source = \"\";\n try {\n source = getNavigatorAndFlushParameters().get(this.getPagesNumber(chapter, page));\n } catch (Exception e) {\n e.printStackTrace();\n }\n String img = \"\";\n try {\n img = getFirstMatchDefault(\"\\\"(//img\\\\.readms\\\\.net/cdn/manga/[^\\\"]+?)\\\"\", source, \"Error getting image\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n img = \"http:\" + img;\n //Log.d(\"MS\", \"img: \" + img);\n return img;\n }", "title": "" }, { "docid": "5ec3d84420e270cc4a4ade369f176e95", "score": "0.5648601", "text": "private ImagePlus getFirstImage() {\n String selected = image1Choice.getSelectedItem();\n if (selected != null) {\n int id = Integer.parseInt(selected.substring(0, selected.indexOf(' ')));\n ImagePlus ret = WindowManager.getImage(id);\n if (ret != null) {\n return ret;\n }\n }\n return null;\n }", "title": "" }, { "docid": "d96c2a3077e287ba9e94ec776fa3fe36", "score": "0.56485045", "text": "java.lang.String getImageUrl();", "title": "" }, { "docid": "d57b17dbdf3e546701bc8b5167df52a2", "score": "0.5645919", "text": "public String getImage() { return image; }", "title": "" }, { "docid": "b205e3bd412cd6d072c01d0b19d108d3", "score": "0.5642356", "text": "String getImageUrl();", "title": "" }, { "docid": "7be8ab0dc2e77c96916be0696aebcc84", "score": "0.5633707", "text": "java.lang.String getImage();", "title": "" }, { "docid": "c70f11eaf2afce47232f2c099ac70214", "score": "0.56331146", "text": "public Image getImage() {\n return image;\n }", "title": "" }, { "docid": "c70f11eaf2afce47232f2c099ac70214", "score": "0.56331146", "text": "public Image getImage() {\n return image;\n }", "title": "" }, { "docid": "84ee3b356f78a024e6ee18de43124463", "score": "0.5631537", "text": "int getCurrentPage();", "title": "" }, { "docid": "84ee3b356f78a024e6ee18de43124463", "score": "0.5631537", "text": "int getCurrentPage();", "title": "" }, { "docid": "dcca3357fcaedf65b83c9411aedd41d8", "score": "0.56301206", "text": "Image findPrevImage(long imageId);", "title": "" }, { "docid": "ea7adbaa13915524386b5f1218a70863", "score": "0.5614466", "text": "public BufferedImage getImage() {\n\t\treturn images[direction.getOrientation()][index];\n\t}", "title": "" }, { "docid": "1286fb5c739f079781721001f69c1e1b", "score": "0.5604774", "text": "public RCSessionImage.Queries getSessionImageDao() {\n\t\tRCSessionImage.Queries result = _imgDao;\n\t\tif (null == result) {\n\t\t\tsynchronized(this) {\n\t\t\t\tresult = _imgDao;\n\t\t\t\tif (result == null)\n\t\t\t\t\t_imgDao = result = _dbi.onDemand(RCSessionImage.Queries.class);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "bf754d658165325ce6e44ca9dac35096", "score": "0.5598325", "text": "public Pic getTestImage() {\n\t\tString testImageName = testImageNames.get(currentPath);\n\t\tif (testImageName != null) {\n\t\t\treturn getImage(testImageName);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "2a4805ac6d86a36f9efdca67ac4e0b26", "score": "0.55968595", "text": "public String getImage( )\n {\n return image;\n }", "title": "" }, { "docid": "0ccb4bdb52c73d69d0951a665b802c6d", "score": "0.5589354", "text": "public int getDefaultImageID(){\r\n return localDefaultImageID;\r\n }", "title": "" }, { "docid": "b9376b95aa3569a8e4768ccaaee2b21e", "score": "0.5589055", "text": "public Image getImage() {\n return imageRef;\n }", "title": "" }, { "docid": "fd11621f58bd6fe2f8df0ead6d7eb14d", "score": "0.5586211", "text": "public Image getImage() { return frames[currentFrame]; }", "title": "" }, { "docid": "a973eb932b71a648605e5908063e86c1", "score": "0.5574503", "text": "public String getImage() {\n\t\treturn _image;\n\t}", "title": "" }, { "docid": "69d15be6f94e7912316d4a0b6b3e6ddd", "score": "0.55640435", "text": "public int getActualPicture() {\n return actualPicture;\n }", "title": "" }, { "docid": "b90956528e9c60ba2027d7de99df6242", "score": "0.5557185", "text": "public BufferedImage getImage() {\n\t\treturn images.get(currentFrame);\n\t}", "title": "" }, { "docid": "d4413e2a8a190e92ab480a18a7f25078", "score": "0.5547191", "text": "public Image getImage() {\n return this._image;\n }", "title": "" }, { "docid": "f218d78ce29201af977d571699391a0a", "score": "0.55398196", "text": "public List<Image> getPictures(int surchGamerID) throws DALException, SQLException, IOException {\n BufferedImage bimg = null;\r\n Image image = null;\r\n List<Image> pictures = new ArrayList<>();\r\n // File image = null;\r\n StringBuilder result = new StringBuilder();\r\n String sql = \"select\\n\"\r\n + \"distinct\\n\"\r\n + \"gp.picture_link\\n\"\r\n + \"from\\n\"\r\n + \"note_tracker_database.gamer_picture gp\\n\"\r\n + \"where\\n\"\r\n + \"gp.gamer_id = ?\";\r\n try (Connection conn = DriverManager.getConnection(dbmsConnString, userName, password);\r\n PreparedStatement statement = conn.prepareStatement(sql)) {\r\n statement.setInt(1, surchGamerID);\r\n\r\n try (ResultSet rs = statement.executeQuery()) {\r\n while (rs.next()) {\r\n \r\n\t\t\t\t\tbimg = ImageIO.read(rs.getBinaryStream(\"picture_link\"));\r\n\t\t\t\t\tint width = bimg.getWidth();\r\n\t\t\t\t\tint height = bimg.getHeight();\r\n image = bimg;\r\n pictures.add(image);\r\n \r\n }\r\n }\r\n \r\n } catch (SQLException ex) {\r\n throw new DALException(\"Error in pictures surch!\", ex);\r\n }\r\n return pictures;\r\n}", "title": "" }, { "docid": "0d262d3d468de696706b0968586b89a6", "score": "0.5538003", "text": "public ImageResource getImage(String name) {\r\n\t\tString methodName = \"getImage(\" + name + \")\";\r\n\t\tif (name == null) {\r\n\t\t\tLog.warning(this, methodName, \"Can not retrieve a NULL image! USING ImageNotFound instead\");\r\n\t\t\tname = \"ImageNotFound\";\r\n\t\t}\r\n\t\tImageResource ir = null;\r\n\t\ttry {\r\n\t\t\tir = (ImageResource) media.get(name);\r\n\t\t\tif (ir == null) {\r\n\t\t\t\tLog.warning(this, methodName, \"Image [\" + name + \"] could not be found! USING ImageNotFound instead\");\r\n\t\t\t\tir = (ImageResource) media.get(\"ImageNotFound\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.warning(this, methodName, \"Exception occured while retrieving Image: \" + e);\r\n\t\t}\r\n\t\treturn ir;\r\n\t}", "title": "" }, { "docid": "7c32a8793e85fb04edaf010c18aca635", "score": "0.55321807", "text": "public String getImage() {\n return this.image;\n }", "title": "" }, { "docid": "b9f4fd43e3906b8df725000f173f0370", "score": "0.5528621", "text": "protected Point getImagePoint() {\n\t\treturn imagePoint;\n\t}", "title": "" }, { "docid": "cd4aa079ba2a1a78f45d3a2786b72187", "score": "0.5515096", "text": "Image getImage() {\n return image;\n }", "title": "" }, { "docid": "6040e5597c4f81281754abafad41147f", "score": "0.5487043", "text": "public java.lang.String getPicID(){\n return localPicID;\n }", "title": "" }, { "docid": "cb1d5a6c6594752e2dfcde5c573fee3b", "score": "0.5486708", "text": "public Image getImage() {\n\t\treturn im;\r\n\t}", "title": "" }, { "docid": "59dfd7c0439de396b425cfd81c77f137", "score": "0.54817903", "text": "String getDetailImageUrl();", "title": "" }, { "docid": "111dc23d280b8c36b0cbbb9acc9bc23c", "score": "0.5476769", "text": "public String getImage() {\n\t\treturn image;\n\t}", "title": "" }, { "docid": "111dc23d280b8c36b0cbbb9acc9bc23c", "score": "0.5476769", "text": "public String getImage() {\n\t\treturn image;\n\t}", "title": "" }, { "docid": "e2f4265c9dad5361d4d36fc47be2d656", "score": "0.54766", "text": "@Override\n\t\tpublic Bitmap getImage() {\n\t\t\tBitmap image = BitmapFactory.decodeResource(context.getResources(), R.drawable.sub_search);\n\t\t\treturn image;\n\t\t}", "title": "" }, { "docid": "7afe5f9e340f0d63ce1c03506cf6989a", "score": "0.54738784", "text": "public Blob getPicture(Integer pictureId) throws BPLException;", "title": "" }, { "docid": "867fd0fd2fc9d9dcb34268a9e7d106f7", "score": "0.5471001", "text": "public abstract Image getLanguagePicture();", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5469004", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5469004", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5469004", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5469004", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5469004", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5469004", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5469004", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5469004", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5469004", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "a931b21229f597d02eb09e7424b15db2", "score": "0.5456825", "text": "private Image getImageFromFile(){\n\t\treturn FileLoadUtility.loadImage();\n\t}", "title": "" }, { "docid": "ca422069bb6f8fb916fe42801c6c0e66", "score": "0.5454984", "text": "public PictureDTO getPicture() {\n\t\tif (picture == null) {\n\t\t\tif (TeaserName.FINDING.toString().equals(entity.getName())) {\n\t\t\t\t// Finding teaser\n\t\t\t\tPicture findingPicture = applicationContext.getBean(GalleryService.class).getRandomPicture();\n\t\t\t\tif (findingPicture != null) {\n\t\t\t\t\tpicture = applicationContext.getBean(PictureDTOAssembler.class).toDTO(findingPicture);\n\t\t\t\t} else {\n\t\t\t\t\tlogger.warn(\"No random Picture found for finding teaser.\");\n\t\t\t\t}\n\t\t\t} else if (entity.getPicture() != null) {\n\t\t\t\t// General teaser with picture from image archive.\n\t\t\t\tpicture = applicationContext.getBean(PictureDTOAssembler.class).toDTO(entity.getPicture());\n\t\t\t}\n\t\t}\n\t\treturn picture;\n\t}", "title": "" }, { "docid": "07c25d48af101973b4c3a9c0844788ef", "score": "0.5453285", "text": "public abstract Image getImage();", "title": "" }, { "docid": "07c25d48af101973b4c3a9c0844788ef", "score": "0.5453285", "text": "public abstract Image getImage();", "title": "" }, { "docid": "56a31844d2af29b4914384aea0ae9c2a", "score": "0.5449333", "text": "public URL getImageLink(){\n\t\treturn _imageLink;\n\t}", "title": "" }, { "docid": "b211ef418075944edf0e453293c34e5b", "score": "0.54464144", "text": "public ImageItem getImageItem() {\n\t\treturn holded.getImageItem();\r\n\t}", "title": "" }, { "docid": "d6ce3504597b46ef398d986a5392fc77", "score": "0.5444093", "text": "private ImageCacheData getFaceDownImage() {\n if (isPermanent() && getGameCard() instanceof PermanentView) {\n if (((PermanentView) getGameCard()).isMorphed()) {\n return ImageCache.getMorphImage();\n } else {\n return ImageCache.getManifestImage();\n }\n } else if (this.getGameCard() instanceof StackAbilityView) {\n return ImageCache.getMorphImage();\n } else {\n return ImageCache.getCardbackImage();\n }\n }", "title": "" }, { "docid": "80db33a9d25ca85779648b0d1e52fdd5", "score": "0.54407036", "text": "@Override\n\tpublic Image getImage() {\n\t\treturn ImageLoader.Moloch.dzialkogaussa();\n\t}", "title": "" }, { "docid": "f39f294789c0d9d69240ae892ca6da27", "score": "0.5438267", "text": "java.lang.String getMarketingImage();", "title": "" }, { "docid": "2b5c7f4ea8296a2d776ef9f1ddc00359", "score": "0.54381686", "text": "public File getImage() throws ESellException {\n\t\tFile image = new File(getFullPath());\n if(image.exists()) {\n \treturn image;\n }\n else {\n \tthrow new ESellException(ESellException.ErrorCode.ERR);\n }\n\t}", "title": "" }, { "docid": "4591117afd418fcda51a2a97d4e7ead6", "score": "0.54217964", "text": "public Image getImage(String name) {\n\t\tif (images.containsKey(name)) {\r\n\t\t\tif (images.get(name) == null) {\r\n//\t\t\t\tSystem.out.println(\"Image \" + name + \" not loaded...loading...\");\r\n\t\t\t\timages.put(name, loadImage(imageFiles.get(name)));\r\n\t\t\t}\r\n\t\t\tint count = imageCounts.get(name) + 1;\r\n\t\t\timageCounts.put(name, count);\r\n\t\t\treturn images.get(name);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "fe4fe3789e907498ade6e2cd799356fa", "score": "0.54175824", "text": "public static BufferedImage getImage(int i) {\n\t\tif (imageLinks.size() != 0) {\n\t\t\ttry {\n\t\t\t\treturn ImageIO.read(new URL(imageLinks.get(i)));\n\t\t\t\t\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8f95835c462b8c9f5e802fa833bb8f24", "score": "0.54140717", "text": "public Optional<String> getImageURL() {\n return Optional.ofNullable(imageURL);\n }", "title": "" }, { "docid": "c122dbf0347a7ae894bc2a98233363a3", "score": "0.5411091", "text": "@Override\n\t\tpublic Bitmap getImage() {\n\t\t\tBitmap image = BitmapFactory.decodeResource(context.getResources(), R.drawable.sub_facebook);\n\t\t\treturn image;\n\t\t}", "title": "" }, { "docid": "1d4328f5c04d6d06d46821d4650fac65", "score": "0.54099834", "text": "String getLargeImageUrl();", "title": "" }, { "docid": "0ade2d151d29fab77c5a9830ba4fdbcb", "score": "0.54097855", "text": "public HippoGalleryImageSetBean getImage() {\n return getLinkedBean(\"hippockleaflet:image\", HippoGalleryImageSetBean.class);\n }", "title": "" } ]
4cf4006ce73ab656192c497cf4a550fb
Sets (as xml) the "ValSubtotSTI" element
[ { "docid": "07ff8e5308db54a4190bff409a544ec5", "score": "0.83270156", "text": "void xsetValSubtotSTI(cl.sii.siiDte.Dec162Type valSubtotSTI);", "title": "" } ]
[ { "docid": "2e97d1493ae8421fa16f1c1867397376", "score": "0.7968288", "text": "void setValSubtotSTI(java.math.BigDecimal valSubtotSTI);", "title": "" }, { "docid": "2e97d1493ae8421fa16f1c1867397376", "score": "0.79675645", "text": "void setValSubtotSTI(java.math.BigDecimal valSubtotSTI);", "title": "" }, { "docid": "2e97d1493ae8421fa16f1c1867397376", "score": "0.79675645", "text": "void setValSubtotSTI(java.math.BigDecimal valSubtotSTI);", "title": "" }, { "docid": "f3dacd1edbcfc00c37dd43704c2a3fc7", "score": "0.7654082", "text": "void xsetSubTotIVASTI(cl.sii.siiDte.Dec162Type subTotIVASTI);", "title": "" }, { "docid": "f3dacd1edbcfc00c37dd43704c2a3fc7", "score": "0.7654082", "text": "void xsetSubTotIVASTI(cl.sii.siiDte.Dec162Type subTotIVASTI);", "title": "" }, { "docid": "f3dacd1edbcfc00c37dd43704c2a3fc7", "score": "0.7654008", "text": "void xsetSubTotIVASTI(cl.sii.siiDte.Dec162Type subTotIVASTI);", "title": "" }, { "docid": "645e42e643d88f7126ba7338134eb1dc", "score": "0.76474583", "text": "void xsetSubTotAdicSTI(cl.sii.siiDte.Dec162Type subTotAdicSTI);", "title": "" }, { "docid": "645e42e643d88f7126ba7338134eb1dc", "score": "0.7645736", "text": "void xsetSubTotAdicSTI(cl.sii.siiDte.Dec162Type subTotAdicSTI);", "title": "" }, { "docid": "645e42e643d88f7126ba7338134eb1dc", "score": "0.7645736", "text": "void xsetSubTotAdicSTI(cl.sii.siiDte.Dec162Type subTotAdicSTI);", "title": "" }, { "docid": "bba918fd124d1357a6314295bf329dad", "score": "0.7485187", "text": "void xsetSubTotExeSTI(cl.sii.siiDte.Dec162Type subTotExeSTI);", "title": "" }, { "docid": "bba918fd124d1357a6314295bf329dad", "score": "0.7485187", "text": "void xsetSubTotExeSTI(cl.sii.siiDte.Dec162Type subTotExeSTI);", "title": "" }, { "docid": "bba918fd124d1357a6314295bf329dad", "score": "0.7483976", "text": "void xsetSubTotExeSTI(cl.sii.siiDte.Dec162Type subTotExeSTI);", "title": "" }, { "docid": "1bcbe0f6841c95aa5c7d020f7abd59f5", "score": "0.7390384", "text": "void xsetSubTotNetoSTI(cl.sii.siiDte.Dec162Type subTotNetoSTI);", "title": "" }, { "docid": "1bcbe0f6841c95aa5c7d020f7abd59f5", "score": "0.7390384", "text": "void xsetSubTotNetoSTI(cl.sii.siiDte.Dec162Type subTotNetoSTI);", "title": "" }, { "docid": "1bcbe0f6841c95aa5c7d020f7abd59f5", "score": "0.73894566", "text": "void xsetSubTotNetoSTI(cl.sii.siiDte.Dec162Type subTotNetoSTI);", "title": "" }, { "docid": "5f1482829dae019ddb6f73b4080d565c", "score": "0.70216095", "text": "void setSubTotExeSTI(java.math.BigDecimal subTotExeSTI);", "title": "" }, { "docid": "5f1482829dae019ddb6f73b4080d565c", "score": "0.70216095", "text": "void setSubTotExeSTI(java.math.BigDecimal subTotExeSTI);", "title": "" }, { "docid": "5f1482829dae019ddb6f73b4080d565c", "score": "0.70216095", "text": "void setSubTotExeSTI(java.math.BigDecimal subTotExeSTI);", "title": "" }, { "docid": "efad53d7a46fcb4b522ad27c01eba948", "score": "0.7006837", "text": "void setSubTotAdicSTI(java.math.BigDecimal subTotAdicSTI);", "title": "" }, { "docid": "efad53d7a46fcb4b522ad27c01eba948", "score": "0.7006837", "text": "void setSubTotAdicSTI(java.math.BigDecimal subTotAdicSTI);", "title": "" }, { "docid": "efad53d7a46fcb4b522ad27c01eba948", "score": "0.70047307", "text": "void setSubTotAdicSTI(java.math.BigDecimal subTotAdicSTI);", "title": "" }, { "docid": "982458df51426bc4ec15720357ed63aa", "score": "0.698162", "text": "void setSubTotNetoSTI(java.math.BigDecimal subTotNetoSTI);", "title": "" }, { "docid": "982458df51426bc4ec15720357ed63aa", "score": "0.698162", "text": "void setSubTotNetoSTI(java.math.BigDecimal subTotNetoSTI);", "title": "" }, { "docid": "982458df51426bc4ec15720357ed63aa", "score": "0.69805276", "text": "void setSubTotNetoSTI(java.math.BigDecimal subTotNetoSTI);", "title": "" }, { "docid": "c45d705fd5fd5370b448af7510d845a8", "score": "0.67523336", "text": "void setSubTotIVASTI(java.math.BigDecimal subTotIVASTI);", "title": "" }, { "docid": "c45d705fd5fd5370b448af7510d845a8", "score": "0.67523336", "text": "void setSubTotIVASTI(java.math.BigDecimal subTotIVASTI);", "title": "" }, { "docid": "c45d705fd5fd5370b448af7510d845a8", "score": "0.67523336", "text": "void setSubTotIVASTI(java.math.BigDecimal subTotIVASTI);", "title": "" }, { "docid": "ccfaeeb2889458d3d84b60efcb49d007", "score": "0.6727729", "text": "void unsetValSubtotSTI();", "title": "" }, { "docid": "ccfaeeb2889458d3d84b60efcb49d007", "score": "0.6727729", "text": "void unsetValSubtotSTI();", "title": "" }, { "docid": "ccfaeeb2889458d3d84b60efcb49d007", "score": "0.6727729", "text": "void unsetValSubtotSTI();", "title": "" }, { "docid": "6389568d7360a8f20fc92eec0c90f281", "score": "0.669054", "text": "void xsetNroSTI(cl.sii.siiDte.DTEDefType.Liquidacion.SubTotInfo.NroSTI nroSTI);", "title": "" }, { "docid": "e652afbda891614177957c7dbe9aca82", "score": "0.6640651", "text": "void xsetNroSTI(cl.sii.siiDte.DTEDefType.Documento.SubTotInfo.NroSTI nroSTI);", "title": "" }, { "docid": "a7829a14bed85bf17516d2375c05c836", "score": "0.65988815", "text": "cl.sii.siiDte.Dec162Type xgetValSubtotSTI();", "title": "" }, { "docid": "a7829a14bed85bf17516d2375c05c836", "score": "0.65988815", "text": "cl.sii.siiDte.Dec162Type xgetValSubtotSTI();", "title": "" }, { "docid": "a7829a14bed85bf17516d2375c05c836", "score": "0.65988815", "text": "cl.sii.siiDte.Dec162Type xgetValSubtotSTI();", "title": "" }, { "docid": "a952ec754ef698e599cc8a9fc40650a7", "score": "0.6446262", "text": "void xsetSubQty(cl.sii.siiDte.Dec126Type subQty);", "title": "" }, { "docid": "a952ec754ef698e599cc8a9fc40650a7", "score": "0.6446262", "text": "void xsetSubQty(cl.sii.siiDte.Dec126Type subQty);", "title": "" }, { "docid": "a952ec754ef698e599cc8a9fc40650a7", "score": "0.6446262", "text": "void xsetSubQty(cl.sii.siiDte.Dec126Type subQty);", "title": "" }, { "docid": "9fec68c21e24aa6e058fb5c64dbde502", "score": "0.6437332", "text": "void xsetOrdenSTI(cl.sii.siiDte.DTEDefType.Liquidacion.SubTotInfo.OrdenSTI ordenSTI);", "title": "" }, { "docid": "f54b81d64e8250020e88b44756e98d2e", "score": "0.6409706", "text": "void xsetOrdenSTI(cl.sii.siiDte.DTEDefType.Documento.SubTotInfo.OrdenSTI ordenSTI);", "title": "" }, { "docid": "207275d0a2db20e55327ef5c2280a60b", "score": "0.63909656", "text": "void xsetTipCodSubQty(cl.sii.siiDte.DTEDefType.Exportaciones.Detalle.Subcantidad.TipCodSubQty tipCodSubQty);", "title": "" }, { "docid": "deeb137dfeb825fbd82aec8fbf762a39", "score": "0.63686514", "text": "void xsetNroSTI(cl.sii.siiDte.DTEDefType.Exportaciones.SubTotInfo.NroSTI nroSTI);", "title": "" }, { "docid": "c0baca3a64c46111cf95bc6771667808", "score": "0.63559145", "text": "void xsetGlosaSTI(cl.sii.siiDte.DTEDefType.Documento.SubTotInfo.GlosaSTI glosaSTI);", "title": "" }, { "docid": "66d4fa543a76b621300507118247326e", "score": "0.6261226", "text": "java.math.BigDecimal getValSubtotSTI();", "title": "" }, { "docid": "66d4fa543a76b621300507118247326e", "score": "0.6261226", "text": "java.math.BigDecimal getValSubtotSTI();", "title": "" }, { "docid": "8b65e5fa44aec8d171ad1f4685b73005", "score": "0.6260963", "text": "void xsetOrdenSTI(cl.sii.siiDte.DTEDefType.Exportaciones.SubTotInfo.OrdenSTI ordenSTI);", "title": "" }, { "docid": "66d4fa543a76b621300507118247326e", "score": "0.62582064", "text": "java.math.BigDecimal getValSubtotSTI();", "title": "" }, { "docid": "d16d54e30d8b347726a2c462c25b1d0c", "score": "0.6227737", "text": "void xsetGlosaSTI(cl.sii.siiDte.DTEDefType.Liquidacion.SubTotInfo.GlosaSTI glosaSTI);", "title": "" }, { "docid": "bf8cc5550109f06ffdbf00aac7169b03", "score": "0.622106", "text": "boolean isSetValSubtotSTI();", "title": "" }, { "docid": "bf8cc5550109f06ffdbf00aac7169b03", "score": "0.62208116", "text": "boolean isSetValSubtotSTI();", "title": "" }, { "docid": "bf8cc5550109f06ffdbf00aac7169b03", "score": "0.62208116", "text": "boolean isSetValSubtotSTI();", "title": "" }, { "docid": "4093203382a004fd2bf0e78ed0e78010", "score": "0.6076859", "text": "void xsetGlosaSTI(cl.sii.siiDte.DTEDefType.Exportaciones.SubTotInfo.GlosaSTI glosaSTI);", "title": "" }, { "docid": "99350a938b9e458407e293d77be395df", "score": "0.5972165", "text": "void xsetTotClauVenta(cl.sii.siiDte.Dec162Type totClauVenta);", "title": "" }, { "docid": "99350a938b9e458407e293d77be395df", "score": "0.5970542", "text": "void xsetTotClauVenta(cl.sii.siiDte.Dec162Type totClauVenta);", "title": "" }, { "docid": "03caecb3f449ab69c8ea42b691d4043e", "score": "0.5812391", "text": "cl.sii.siiDte.Dec162Type xgetSubTotIVASTI();", "title": "" }, { "docid": "03caecb3f449ab69c8ea42b691d4043e", "score": "0.5812191", "text": "cl.sii.siiDte.Dec162Type xgetSubTotIVASTI();", "title": "" }, { "docid": "03caecb3f449ab69c8ea42b691d4043e", "score": "0.5812191", "text": "cl.sii.siiDte.Dec162Type xgetSubTotIVASTI();", "title": "" }, { "docid": "494c002a9a1226569077c3c6b7f2ec5d", "score": "0.5685361", "text": "cl.sii.siiDte.Dec162Type xgetSubTotAdicSTI();", "title": "" }, { "docid": "494c002a9a1226569077c3c6b7f2ec5d", "score": "0.5685361", "text": "cl.sii.siiDte.Dec162Type xgetSubTotAdicSTI();", "title": "" }, { "docid": "494c002a9a1226569077c3c6b7f2ec5d", "score": "0.5685361", "text": "cl.sii.siiDte.Dec162Type xgetSubTotAdicSTI();", "title": "" }, { "docid": "478e144be1645561c3c89b73b0e8dac0", "score": "0.5679373", "text": "void xsetSubCod(cl.sii.siiDte.DTEDefType.Liquidacion.Detalle.Subcantidad.SubCod subCod);", "title": "" }, { "docid": "c91e7b767c8b42e257d5e914019cad2b", "score": "0.5660702", "text": "void unsetSubTotNetoSTI();", "title": "" }, { "docid": "c91e7b767c8b42e257d5e914019cad2b", "score": "0.5660702", "text": "void unsetSubTotNetoSTI();", "title": "" }, { "docid": "c91e7b767c8b42e257d5e914019cad2b", "score": "0.5660702", "text": "void unsetSubTotNetoSTI();", "title": "" }, { "docid": "e66a8af3cbb5ca54abb0a33a197eb181", "score": "0.5660219", "text": "cl.sii.siiDte.Dec162Type xgetSubTotNetoSTI();", "title": "" }, { "docid": "e66a8af3cbb5ca54abb0a33a197eb181", "score": "0.5660219", "text": "cl.sii.siiDte.Dec162Type xgetSubTotNetoSTI();", "title": "" }, { "docid": "e66a8af3cbb5ca54abb0a33a197eb181", "score": "0.5660219", "text": "cl.sii.siiDte.Dec162Type xgetSubTotNetoSTI();", "title": "" }, { "docid": "a2a801dec656b400c86f879d422b509d", "score": "0.5643539", "text": "void xsetSubCod(cl.sii.siiDte.DTEDefType.Documento.Detalle.Subcantidad.SubCod subCod);", "title": "" }, { "docid": "675612939a82ceb6eec3cea25eb1e2b1", "score": "0.562257", "text": "void unsetSubTotAdicSTI();", "title": "" }, { "docid": "675612939a82ceb6eec3cea25eb1e2b1", "score": "0.562257", "text": "void unsetSubTotAdicSTI();", "title": "" }, { "docid": "675612939a82ceb6eec3cea25eb1e2b1", "score": "0.562257", "text": "void unsetSubTotAdicSTI();", "title": "" }, { "docid": "b714b4d77e22b336a386068691d8d616", "score": "0.5598566", "text": "java.math.BigDecimal getSubTotNetoSTI();", "title": "" }, { "docid": "b714b4d77e22b336a386068691d8d616", "score": "0.5598566", "text": "java.math.BigDecimal getSubTotNetoSTI();", "title": "" }, { "docid": "b714b4d77e22b336a386068691d8d616", "score": "0.5597887", "text": "java.math.BigDecimal getSubTotNetoSTI();", "title": "" }, { "docid": "2e2c2a97cdc05fd680104f20a33183ed", "score": "0.5589854", "text": "void xsetMntTotal(cl.sii.siiDte.ValorType mntTotal);", "title": "" }, { "docid": "246e4ee2b03a9e9dce4b76d3bee18650", "score": "0.55143124", "text": "void xsetSubCod(cl.sii.siiDte.DTEDefType.Exportaciones.Detalle.Subcantidad.SubCod subCod);", "title": "" }, { "docid": "b0d57897647e73fdb2a42c98e117c0da", "score": "0.5495555", "text": "cl.sii.siiDte.Dec162Type xgetSubTotExeSTI();", "title": "" }, { "docid": "b0d57897647e73fdb2a42c98e117c0da", "score": "0.5494926", "text": "cl.sii.siiDte.Dec162Type xgetSubTotExeSTI();", "title": "" }, { "docid": "b0d57897647e73fdb2a42c98e117c0da", "score": "0.5494926", "text": "cl.sii.siiDte.Dec162Type xgetSubTotExeSTI();", "title": "" }, { "docid": "3909d752c3779643f37d3acb72448bd0", "score": "0.54795486", "text": "void setSubQty(java.math.BigDecimal subQty);", "title": "" }, { "docid": "3909d752c3779643f37d3acb72448bd0", "score": "0.54795486", "text": "void setSubQty(java.math.BigDecimal subQty);", "title": "" }, { "docid": "3909d752c3779643f37d3acb72448bd0", "score": "0.54783875", "text": "void setSubQty(java.math.BigDecimal subQty);", "title": "" }, { "docid": "81eee3f3d58004e3c7725e2bd4cb6f78", "score": "0.54644763", "text": "boolean isSetSubTotNetoSTI();", "title": "" }, { "docid": "81eee3f3d58004e3c7725e2bd4cb6f78", "score": "0.5462891", "text": "boolean isSetSubTotNetoSTI();", "title": "" }, { "docid": "81eee3f3d58004e3c7725e2bd4cb6f78", "score": "0.5462891", "text": "boolean isSetSubTotNetoSTI();", "title": "" }, { "docid": "7eccf5fdfabcac4ea4ecea7b798ee733", "score": "0.54586154", "text": "void unsetSubTotIVASTI();", "title": "" }, { "docid": "7eccf5fdfabcac4ea4ecea7b798ee733", "score": "0.54586154", "text": "void unsetSubTotIVASTI();", "title": "" }, { "docid": "7eccf5fdfabcac4ea4ecea7b798ee733", "score": "0.54586154", "text": "void unsetSubTotIVASTI();", "title": "" }, { "docid": "0a2d57c979bea84b7727df8987902cdc", "score": "0.5395354", "text": "public void setSubsciptionVal(String subsciptionVal) {\n this.subsciptionVal = subsciptionVal;\n }", "title": "" }, { "docid": "cfea3921dfa378535233228b4dc79eb6", "score": "0.53814095", "text": "void setNroSTI(int nroSTI);", "title": "" }, { "docid": "cfea3921dfa378535233228b4dc79eb6", "score": "0.53814095", "text": "void setNroSTI(int nroSTI);", "title": "" }, { "docid": "cfea3921dfa378535233228b4dc79eb6", "score": "0.5380427", "text": "void setNroSTI(int nroSTI);", "title": "" }, { "docid": "da41567e72a15f6abf3e21af0a8010a7", "score": "0.53532547", "text": "java.math.BigDecimal getSubTotExeSTI();", "title": "" }, { "docid": "da41567e72a15f6abf3e21af0a8010a7", "score": "0.5352602", "text": "java.math.BigDecimal getSubTotExeSTI();", "title": "" }, { "docid": "da41567e72a15f6abf3e21af0a8010a7", "score": "0.5352602", "text": "java.math.BigDecimal getSubTotExeSTI();", "title": "" }, { "docid": "40462e2bc2e8457aea6cd404f8120e29", "score": "0.53437185", "text": "public void setBasedOnValue(entity.GL7SublnTypSchExclItmCov value);", "title": "" }, { "docid": "f10cf530ddd0068470c240e35c676363", "score": "0.5332591", "text": "public Value( Node valnode ) {\n this();\n loadXML( valnode );\n }", "title": "" }, { "docid": "7f9991fc978840c33b3a956af9da88cc", "score": "0.52403283", "text": "public void setFixed(entity.GL7SublnTypSchExclItmCov value);", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "0a68e7172a6ce3daf5f521a97d860bb8", "score": "0.0", "text": "public final int mo5663a(View view) {\n return RecyclerView.this.indexOfChild(view);\n }", "title": "" } ]
[ { "docid": "ea653814105676b3aa0fd0c45766e6db", "score": "0.6285023", "text": "@C4056a\n /* renamed from: a */\n public abstract void mo17535a(@C0193h0 A a) throws RemoteException;", "title": "" }, { "docid": "943c68e245d857d7dbc5516eee1106d7", "score": "0.61489946", "text": "public interface C7128b {\n /* renamed from: a */\n void mo22947a();\n }", "title": "" }, { "docid": "b7433d9272785787bd3fd7b9e7577bb9", "score": "0.6132255", "text": "public interface C42262a {\n /* renamed from: a */\n void mo103722a();\n }", "title": "" }, { "docid": "7f6bd89bb88afad5956d86a740bbef21", "score": "0.6117444", "text": "public interface brv {\n /* renamed from: a */\n void mo2364a();\n}", "title": "" }, { "docid": "667611d652568b46468e379756ee7644", "score": "0.61169416", "text": "interface C5924a {\n /* renamed from: a */\n void mo7407a(String str);\n }", "title": "" }, { "docid": "9e9d646f9bbead349649020ad18d00c7", "score": "0.6057615", "text": "public interface C4088a {\n /* renamed from: a */\n void mo23360a();\n }", "title": "" }, { "docid": "594a4d853a9f2a11f85e413eab8b0f26", "score": "0.60414404", "text": "public interface C11178k1 {\n /* renamed from: a */\n void mo28618a();\n}", "title": "" }, { "docid": "e687a1469c8b607c427d30c98e993de5", "score": "0.60088986", "text": "public interface C6365a {\n /* renamed from: a */\n void mo27603a(int i);\n }", "title": "" }, { "docid": "b452c5198f826448cf633fc0ee386404", "score": "0.5999193", "text": "protected interface C3467f {\n /* renamed from: a */\n void mo55284a();\n\n /* renamed from: b */\n void mo55285b();\n }", "title": "" }, { "docid": "5990264465bdbf64f9945ee241b8bd04", "score": "0.5989262", "text": "public interface C8352a {\n /* renamed from: a */\n void mo39929a(int i);\n }", "title": "" }, { "docid": "9a9e16b44d7e5eb8778d1261452fac8b", "score": "0.5945046", "text": "private List<String> a(List<String> list) {\n/* 693 */ if (list != null && !list.isEmpty()) {\n/* 694 */ String path = ((String)list.get(0)).intern();\n/* 695 */ Collection<String> orig = c(path);\n/* 696 */ if (orig != null) {\n/* 697 */ List<String> tmp = new ArrayList<String>();\n/* 698 */ tmp.addAll(orig);\n/* 699 */ tmp.addAll(list.subList(1, list.size()));\n/* 700 */ list = tmp;\n/* 701 */ if (b) {\n/* 702 */ a.debug(\"aliasToOriginal() \" + path + \" -> \" + orig);\n/* */ }\n/* */ } \n/* */ } \n/* 706 */ return list;\n/* */ }", "title": "" }, { "docid": "9dbfa4ad329f9d49bf7970e43a01cc43", "score": "0.5944473", "text": "public interface C7129c {\n /* renamed from: a */\n void mo21682a();\n }", "title": "" }, { "docid": "3ee75b20156ae25ec1686844e4abb222", "score": "0.59424865", "text": "public interface C13051e {\n /* renamed from: a */\n void mo31633a();\n}", "title": "" }, { "docid": "86ce7f0f32418b8a108d2aa6551423b4", "score": "0.5930148", "text": "public interface C0374b {\n /* renamed from: a */\n String mo343a();\n }", "title": "" }, { "docid": "2824c3454316db4b36bf41b292504bef", "score": "0.5884324", "text": "interface C8953c {\n /* renamed from: a */\n int mo24392a();\n\n /* renamed from: b */\n int mo24393b();\n }", "title": "" }, { "docid": "95b2d44cb24b50c97d7b497b2e442c47", "score": "0.5877717", "text": "public interface C0537b {\n /* renamed from: a */\n void mo10097a(C0536a aVar);\n}", "title": "" }, { "docid": "12ba3e5eb876f7741e87b33f9bd99dd6", "score": "0.5837483", "text": "public interface C31713a {\n /* renamed from: a */\n void mo82497a(View view, int i);\n }", "title": "" }, { "docid": "52310f416c3c276eb2545c9fe39bdaa1", "score": "0.5835702", "text": "public interface C10994b {\n /* renamed from: a */\n void mo38741a(int i);\n }", "title": "" }, { "docid": "7d06c83f3886d5354c8bf679aee90692", "score": "0.58351356", "text": "public interface C9213e {\n /* renamed from: a */\n void mo11387a();\n\n /* renamed from: b */\n void mo11388b();\n }", "title": "" }, { "docid": "ffd24a0d6d638f11930ee80b7df27da5", "score": "0.58330905", "text": "public interface C1533a {\n /* renamed from: a */\n String mo1216a(String str);\n}", "title": "" }, { "docid": "5df8ab69670be3a51bc325be44e7c3cb", "score": "0.579039", "text": "public interface AbstractC17877a {\n /* renamed from: a */\n void mo86644a();\n }", "title": "" }, { "docid": "ad02ece2796d32f62ad506894ca3aa33", "score": "0.57634115", "text": "public interface C1882d {\n /* renamed from: a */\n void mo3361a();\n\n /* renamed from: a */\n void mo3362a(String str);\n}", "title": "" }, { "docid": "1631f5c5cf7d3c23a8b1915f88623b2e", "score": "0.57556444", "text": "public interface AbstractC2341a {\n /* renamed from: a */\n void mo19302a();\n }", "title": "" }, { "docid": "52a7ee48c38c6ca4126c603c6a4666be", "score": "0.57532126", "text": "public void a(sa paramsa) {}", "title": "" }, { "docid": "bdd8d44cde01c09ea8921bd265b3dd53", "score": "0.5749257", "text": "protected interface C3468g {\n /* renamed from: a */\n void mo55286a(long j);\n }", "title": "" }, { "docid": "9f8ad30b0a9426e9832c50744aaf2b74", "score": "0.5742787", "text": "public interface C0314bf {\n /* renamed from: a */\n CharSequence mo2452a();\n}", "title": "" }, { "docid": "daae42e2d77b58a0847f2e997e20cbc7", "score": "0.5726568", "text": "public interface C12376b {\n /* renamed from: a */\n void mo30215a();\n\n /* renamed from: g */\n void mo30216g();\n}", "title": "" }, { "docid": "e04c4cb3877299f65738ded049ebf34c", "score": "0.57185894", "text": "public interface C4722h {\n /* renamed from: a */\n void mo9857a(C44049s c44049s, int i);\n}", "title": "" }, { "docid": "2ef990e2ef54cf64b7b16cd5446c240c", "score": "0.5715535", "text": "public interface C5151a {\n /* renamed from: a */\n void mo5169a(bn bnVar);\n }", "title": "" }, { "docid": "14fd4a8b1c65a5822185e611b4cd0206", "score": "0.57060724", "text": "@SuppressWarnings(\"unchecked\")\n static void slicing_assignment(String ID,Object a)\n {\n \n if(a instanceof Collection)\n {\n gen_tup(ID);\n tup.get(ID).addAll((Collection<Object>)a);\n } \n else \n {\n gen_var(ID,a);\n }\n }", "title": "" }, { "docid": "e4e1dd3fdb67689cd74b5bc7d45cd655", "score": "0.57012016", "text": "public interface C22889a {\n /* renamed from: a */\n void mo9642a(boolean z, int i, int i2, String str, String str2);\n }", "title": "" }, { "docid": "40edb2fc3d7f42f1c6bc489ed867d5bc", "score": "0.5683801", "text": "interface C0733a {\n /* renamed from: a */\n void mo9348a(int i, C0707b bVar);\n }", "title": "" }, { "docid": "28b1e538fbff793397dc099bca0d7150", "score": "0.5678435", "text": "public interface AbstractC14983a {\n /* renamed from: a */\n void mo77743a();\n }", "title": "" }, { "docid": "32ce16d3f6d76b47f657f11f3770e494", "score": "0.56691855", "text": "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "title": "" }, { "docid": "32ce16d3f6d76b47f657f11f3770e494", "score": "0.56691855", "text": "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "title": "" }, { "docid": "32ce16d3f6d76b47f657f11f3770e494", "score": "0.56691855", "text": "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f113d526a9ddbee02a973e8d654c44b3", "score": "0.56683326", "text": "public interface C31040ek extends C44505dj {\n /* renamed from: a */\n void mo12420a(C31037dq c31037dq);\n\n /* renamed from: e */\n void mo12423e();\n}", "title": "" }, { "docid": "0c51a01c134403c58967a6518af09fa6", "score": "0.56646985", "text": "public interface C1016d {\n /* renamed from: a */\n void mo923a();\n\n /* renamed from: a */\n void mo924a(int i);\n}", "title": "" }, { "docid": "cc23c119cbc27a012f4738b13ea44491", "score": "0.5662965", "text": "public interface C13501f {\n /* renamed from: a */\n C13643t mo34785a();\n}", "title": "" }, { "docid": "494d7f25a16b55409a762a67759d8080", "score": "0.5656703", "text": "private interface C4099c {\n /* renamed from: a */\n int mo14655a(CharSequence charSequence, int i, int i2);\n }", "title": "" }, { "docid": "1507635752ed7951216ac50b725e08d4", "score": "0.5654981", "text": "public interface C9140c<S> {\n /* renamed from: a */\n S mo22344a();\n}", "title": "" }, { "docid": "ed9fa324523bf337cb0794bde33e27ec", "score": "0.5651777", "text": "public interface C1086b {\n /* renamed from: a */\n void mo3408a(C1085a c1085a);\n\n /* renamed from: b */\n void mo3409b(C1085a c1085a);\n}", "title": "" }, { "docid": "737d9d99aeaf6f121f17ba35ff92d7c3", "score": "0.5644303", "text": "public interface C13266a<T> {\n /* renamed from: a */\n C13797m<T> mo42316a();\n}", "title": "" }, { "docid": "05837990d2db5d2b35e2452cbc25fc8a", "score": "0.5635137", "text": "interface C2539a {\n /* renamed from: a */\n void mo6285a(C2550h hVar);\n }", "title": "" }, { "docid": "6d9ecc8514f4f03d7bcb8002758c67d0", "score": "0.5625177", "text": "private Address asAddress(u256 a)\n\t{\n\t\treturn Account.getFromAddress(a).getAddress();\n\t}", "title": "" }, { "docid": "2627e0b705b1644e4261197a508685ea", "score": "0.56247777", "text": "public interface C2322f {\n /* renamed from: a */\n void mo1822a(String str);\n}", "title": "" }, { "docid": "fc84abf654acea7559b0725710ae7d1d", "score": "0.56241316", "text": "public interface C1265d {\n /* renamed from: a */\n int mo5727a(int i, int i2);\n }", "title": "" }, { "docid": "98af7bcb819e19f4bcdfa78c32a16a82", "score": "0.56213737", "text": "public interface C19077a {\n /* renamed from: a */\n void mo50421a();\n\n /* renamed from: a */\n void mo50422a(long j, int i);\n\n /* renamed from: a */\n void mo50423a(long j, int i, int i2, int i3);\n\n /* renamed from: b */\n void mo50424b(long j, int i);\n\n /* renamed from: c */\n void mo50425c(long j, int i);\n }", "title": "" }, { "docid": "52cd5f83b3cf6b7bc18c7a7a45638174", "score": "0.5620823", "text": "protected oa a(EntityGiant paramaff)\r\n/* 28: */ {\r\n/* 29:42 */ return a;\r\n/* 30: */ }", "title": "" }, { "docid": "f50259e4d73b3a0f2c795ec1460a31e6", "score": "0.5620269", "text": "public interface C19076b {\n\n /* renamed from: com.ss.android.ad.splash.core.video.b$a */\n public interface C19077a {\n /* renamed from: a */\n void mo50421a();\n\n /* renamed from: a */\n void mo50422a(long j, int i);\n\n /* renamed from: a */\n void mo50423a(long j, int i, int i2, int i3);\n\n /* renamed from: b */\n void mo50424b(long j, int i);\n\n /* renamed from: c */\n void mo50425c(long j, int i);\n }\n}", "title": "" }, { "docid": "dcbec970a7d3ea69a24973fc5b91b49d", "score": "0.5619364", "text": "public interface C1276a {\n /* renamed from: b */\n void mo5813b(int i, int i2);\n }", "title": "" }, { "docid": "eca1275c3cdf70e7cae4e177ebb6fa5f", "score": "0.56095004", "text": "public interface C5325c {\n /* renamed from: a */\n void mo4015a(C5324b c5324b);\n\n /* renamed from: b */\n void mo4016b(C5324b c5324b);\n}", "title": "" }, { "docid": "c3e261339eee1b411880fdb6b5fba64e", "score": "0.55935895", "text": "public interface C0977b {\n /* renamed from: a */\n void mo13037a(Map<String, String> map);\n}", "title": "" }, { "docid": "884427e8785f208862ceddf8704b6aba", "score": "0.55925447", "text": "public interface C6572r {\n /* renamed from: a */\n void mo35601a();\n\n /* renamed from: a */\n void mo35602a(long j);\n}", "title": "" }, { "docid": "b18d26f9c7efc350f869f5879de6006e", "score": "0.55909115", "text": "public interface C13453a {\n /* renamed from: a */\n Map mo34704a();\n\n /* renamed from: b */\n List mo34705b();\n}", "title": "" }, { "docid": "1e4b31364b3a4e2d5ec26c551e3d8c45", "score": "0.55906534", "text": "public interface AbstractC3593a {\n /* renamed from: a */\n void mo24636a();\n\n /* renamed from: b */\n void mo24637b();\n }", "title": "" }, { "docid": "0f31ca04af689afba5ad8b79a99c495a", "score": "0.5586013", "text": "public interface C45119l {\n /* renamed from: a */\n void mo52836a(C0986k c0986k);\n}", "title": "" }, { "docid": "902d4413cef77212d05d43e91015e07e", "score": "0.55804884", "text": "public interface C33008f {\n /* renamed from: a */\n void mo84439a();\n\n /* renamed from: a */\n void mo84445a(boolean z);\n}", "title": "" }, { "docid": "61528f136393d6e828ef285663b8812d", "score": "0.55722535", "text": "public void a(aor paramaor) {}", "title": "" }, { "docid": "53ec83dd35eed0082bb3028e3da4297d", "score": "0.55638987", "text": "public interface C13819a {\n /* renamed from: a */\n C13817b mo43164a();\n }", "title": "" }, { "docid": "d267bb1b9a0efe5d13f2da02403fc609", "score": "0.55439544", "text": "public interface C3128d {\n /* renamed from: a */\n void mo44103a(List<Intent> list, C3124b bVar);\n}", "title": "" }, { "docid": "a73c7718352533026267f579df485440", "score": "0.55429393", "text": "public interface C10878g {\n /* renamed from: a */\n void mo27988a(String str);\n\n /* renamed from: b */\n void mo27989b(String str);\n}", "title": "" }, { "docid": "5601031c7614f031dfd80932b67f0e63", "score": "0.5541176", "text": "public void rotateObjectSpace(double a)\r\n\t{\r\n\t\ttransformObjectSpace(AffineTransform.getRotateInstance(a));\r\n\t}", "title": "" }, { "docid": "e74887f735ef7463072d2f8aa271af1f", "score": "0.55346173", "text": "public interface C3005bx {\n\n /* renamed from: com.uxcam.internals.bx$aa */\n public interface C3006aa {\n /* renamed from: a */\n C3017cd mo38137a();\n\n /* renamed from: a */\n C3022cf mo38138a(C3017cd cdVar);\n }\n\n /* renamed from: a */\n C3022cf mo38068a(C3006aa aaVar);\n}", "title": "" }, { "docid": "eb7d92454f8b5d587b7b534dd512806d", "score": "0.5533123", "text": "interface C30446e extends C25672e {\n /* renamed from: a */\n void mo80110a();\n\n /* renamed from: a */\n void mo80113a(String str);\n\n /* renamed from: a */\n void mo80114a(List<User> list, boolean z);\n}", "title": "" }, { "docid": "c70dca2593ae147c1d2746dd679ea236", "score": "0.5533024", "text": "public interface C27843a {\n /* renamed from: a */\n void mo35798a(String str, byte[] bArr, boolean z);\n }", "title": "" }, { "docid": "cce81f7e8e52b565336f3040ef478026", "score": "0.5524289", "text": "b(String str, a aVar) {\n this.a = new i(this, 32, str);\n }", "title": "" }, { "docid": "99b7094c48d430e536af98a37e49abbc", "score": "0.55097365", "text": "public interface C0997a {\n /* renamed from: a */\n boolean mo6153a(int i, int i2);\n }", "title": "" }, { "docid": "c82f49540d917fbdbb365bc783d4d63e", "score": "0.55073535", "text": "interface C1269b {\n /* renamed from: a */\n void mo5738a(C1293v vVar);\n }", "title": "" }, { "docid": "7580d77a0fdee05906d6245d046f68c7", "score": "0.55060565", "text": "public void b(sa paramsa) {}", "title": "" }, { "docid": "8a08f56c4725f724144f798d3e03831f", "score": "0.55027086", "text": "public String a()\r\n/* 39: */ {\r\n/* 40:45 */ return this.a;\r\n/* 41: */ }", "title": "" }, { "docid": "fd8dcd4774eff1f0b37d96b28a0f85cc", "score": "0.5498854", "text": "public interface C2767ya {\n /* renamed from: a */\n boolean mo8108a();\n\n /* renamed from: b */\n boolean mo8109b();\n}", "title": "" }, { "docid": "eb024959ba6ee041f25e130edfc22827", "score": "0.5497674", "text": "public interface C0304r {\n /* renamed from: a_ */\n String mo1218a_();\n}", "title": "" }, { "docid": "1b61a1aa1d9b7c6e2f036292703797cd", "score": "0.5494136", "text": "public interface C0737e {\n /* renamed from: a */\n void mo9360a(C0691dh dhVar);\n\n /* renamed from: a */\n void mo9361a(C0733a aVar);\n\n /* renamed from: b */\n void mo9362b(C0691dh dhVar);\n\n /* renamed from: b */\n void mo9363b(C0733a aVar);\n }", "title": "" }, { "docid": "a8d29e3ee2eaf9a078caafed495bccd8", "score": "0.54932666", "text": "public interface C6561r {\n /* renamed from: a */\n C6560q mo22776a(C6263ac acVar, C6539e eVar);\n}", "title": "" }, { "docid": "0b3576b56f8b9eb7eb49d9fa588de7f4", "score": "0.54829395", "text": "public static afw a() {\n }", "title": "" }, { "docid": "f4e24ae84028197b1d3ad7ada34b0818", "score": "0.5476039", "text": "@Override\n\tpublic float resta(float a) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "357b4aca9c1e6e661c977812570b1244", "score": "0.54677445", "text": "public interface C1627k {\n /* renamed from: a */\n void m8803a(String str, float f);\n}", "title": "" }, { "docid": "afdc159cbac4d33ca8345825e250cc6d", "score": "0.5460354", "text": "public interface C3664a {\n /* renamed from: a */\n void mo14956a(C3677f fVar, String str);\n\n /* renamed from: b */\n String mo14957b(C3677f fVar);\n }", "title": "" }, { "docid": "13a2a5c327907c3fe96bbe36575cc257", "score": "0.5454327", "text": "public interface C25129m {\n /* renamed from: a */\n C8143n mo17819a(C44635g c44635g);\n\n /* renamed from: b */\n C8143n mo17820b(C8173a c8173a);\n}", "title": "" }, { "docid": "6e10913fac05a434b44e75b86689b4c1", "score": "0.543626", "text": "public interface C1518g {\n /* renamed from: a */\n void mo28377a(String str);\n\n /* renamed from: a */\n void mo28378a(String str, double d);\n\n /* renamed from: a */\n void mo28379a(String str, VgPosition vgPosition);\n\n /* renamed from: a */\n void mo28380a(String str, String str2);\n\n /* renamed from: b */\n void mo28400b(String str);\n}", "title": "" }, { "docid": "cdbb25873628e7bff82a98be8875d899", "score": "0.54300296", "text": "public interface C22888d {\n\n /* renamed from: com.tencent.mm.plugin.webview.model.d$b */\n public interface C14515b {\n /* renamed from: b */\n void mo26755b(boolean z, String str, String str2, String str3);\n }\n\n /* renamed from: com.tencent.mm.plugin.webview.model.d$a */\n public interface C22889a {\n /* renamed from: a */\n void mo9642a(boolean z, int i, int i2, String str, String str2);\n }\n}", "title": "" }, { "docid": "8b7c736f65bdf835e6310658d03b1529", "score": "0.5427912", "text": "public interface C5640b {\n /* renamed from: a */\n void mo12026a();\n\n /* renamed from: b */\n void mo12027b();\n }", "title": "" }, { "docid": "d00d2744293c0d9c6bdca9eff328cba6", "score": "0.5424884", "text": "public interface C22791b {\n /* renamed from: a */\n void mo9679a(C22790a c22790a);\n\n void cWA();\n\n /* renamed from: s */\n void mo9686s(View view, boolean z);\n }", "title": "" }, { "docid": "c2e446a6d652d0952b3e7ba597e87287", "score": "0.5423144", "text": "public interface C2588nd {\n /* renamed from: a */\n boolean mo7902a();\n}", "title": "" }, { "docid": "e2b39f97b599b1c9db655720fba3f3ba", "score": "0.5422854", "text": "public interface C2243d {\n /* renamed from: b */\n void mo5588b();\n }", "title": "" }, { "docid": "93070a59ce22c5645eefc283075c61c6", "score": "0.542206", "text": "public interface C7949g {\n /* renamed from: a */\n void mo24469a(Object obj);\n\n /* renamed from: a */\n boolean mo24521a(String str);\n\n /* renamed from: c */\n void mo24441c(boolean z);\n\n /* renamed from: k */\n void mo24533k();\n}", "title": "" }, { "docid": "e7906a4d0afce333e267ac955df6e965", "score": "0.5404023", "text": "public interface C3297c extends C3296b {\n /* renamed from: a */\n void mo28825a(int i, int i2);\n}", "title": "" }, { "docid": "3221d23eb663e61f55aa04d3faf34c3b", "score": "0.54027534", "text": "public interface C45035h {\n /* renamed from: a */\n void mo107539a(String str);\n\n /* renamed from: b */\n void mo107540b(String str);\n}", "title": "" }, { "docid": "a5ec476985e95e8a4a7ff251418931a4", "score": "0.5396609", "text": "public void a(e e1)\n {\n class _cls1 {}\n\n e.a(new _cls1(e1));\n }", "title": "" }, { "docid": "4feddb06a56f20939c4748da5c8d9f4f", "score": "0.5395324", "text": "public interface C34671a {\n /* renamed from: a */\n void mo87966a(Context context, Aweme aweme);\n}", "title": "" }, { "docid": "bef30e60d6e7dc63717d0025ea5c03ff", "score": "0.53934216", "text": "public interface ApiRequestInterceptor {\n /* renamed from: a */\n String mo14160a(String str);\n}", "title": "" }, { "docid": "c608db7e68159f5402a4d83c9036d8c7", "score": "0.5392027", "text": "public interface C1278j {\n /* renamed from: a */\n void mo5814a(View view);\n\n /* renamed from: b */\n void mo5815b(View view);\n }", "title": "" }, { "docid": "ba196b6afa50c59ea4cba94bc6f09a73", "score": "0.5390078", "text": "public interface AbstractC0499d {\n /* renamed from: a */\n void mo1311a(String str);\n }", "title": "" }, { "docid": "4e0a2d59351bcebaa3a6783b7a4aa82a", "score": "0.5388685", "text": "protected interface C8814b {\n /* renamed from: a */\n void mo22694a(EventListener eventListener);\n }", "title": "" }, { "docid": "37eb609448aa42930ba4be907b9b6f42", "score": "0.53665954", "text": "public interface C6351m<T> extends C6229d<C6236E<T>> {\n /* renamed from: a */\n C6145c mo18974a(C6349k kVar);\n}", "title": "" }, { "docid": "aa1953769fc926e94b6cfc2432b629ee", "score": "0.5356441", "text": "public interface C2417a {\n /* renamed from: a */\n boolean mo14872a(int i, MaterialMeta kVar, String str, String str2, Object obj);\n }", "title": "" }, { "docid": "e172f3c70a21971b6551f9173b1ffba7", "score": "0.5354876", "text": "public interface C1701b<T> {\n /* renamed from: a */\n void mo7781a(int i, int i2);\n\n /* renamed from: a */\n void mo7782a(int i, C1704a<T> aVar);\n\n /* renamed from: b */\n void mo7783b(int i, int i2);\n }", "title": "" }, { "docid": "9eda248703b4ed377a9226bcb0c142f7", "score": "0.5352374", "text": "public interface awl {\n /* renamed from: a */\n axz mo1495a(axz... axzArr);\n}", "title": "" }, { "docid": "5e94a8d6577cbdede96e064e1d2a34b8", "score": "0.53473014", "text": "public static void rotasjon(char[] a) {\n\n // får hjelpevariabel n som er lengden til a.\n int n = a.length;\n\n // Her sjekker vi om lengden til a er stor nok til å kunne\n // gjøre en rotasjon. Ingenting skjer om n er mindre enn 2.\n if (n<2) return;\n\n // char b er hjelpevariabel som kopierer den siste i a.\n char b = a[n-1];\n\n // Under forflytter alle bokstavene i a et steg til høyre\n for (int i = n - 1; i >= 1; i--) {\n a[i] = a[i-1];\n }\n // Første indeks i a blir her satt til b, som var siste indeks før\n // rotasjonen.\n a[0] = b;\n }", "title": "" }, { "docid": "048ecd143f551ea34dce6d9bb742e3fd", "score": "0.534729", "text": "public interface C0734b {\n /* renamed from: a */\n void mo9278a(boolean z, int i, int i2, ArrayList<C0647cg> arrayList);\n }", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "0e2f965d788cd2c8ac3a1703b2ba46a4", "score": "0.0", "text": "public void m11242a(DkCloudPurchasedFiction dkCloudPurchasedFiction) {\n ((ao) this.f8073a.f8069e.f8048b.f7581b.getContext().queryFeature(ao.class)).mo1832a(null);\n this.f8073a.f8067c.release();\n }", "title": "" } ]
[ { "docid": "ae4048f417bf94dfd212d61cfae413ce", "score": "0.61427313", "text": "public interface C25752e {\n /* renamed from: a */\n void mo66812a();\n }", "title": "" }, { "docid": "6970f3058f2856f3c7f6df66714797c7", "score": "0.611846", "text": "public void func_152634_a() {}", "title": "" }, { "docid": "62f4c9887de9d57d76d578f987bb26c4", "score": "0.6103452", "text": "public interface C1114a {\n /* renamed from: a */\n void mo929a(int i);\n }", "title": "" }, { "docid": "bac3b9c82d7fc9e503d0b4436472dff0", "score": "0.6075929", "text": "interface C1297d {\n /* renamed from: a */\n void m5230a();\n }", "title": "" }, { "docid": "fe8012b343faddff85308376f5dab44d", "score": "0.60472304", "text": "public interface C14008c {\n /* renamed from: a */\n void mo33668a();\n }", "title": "" }, { "docid": "a45e2c193ad73fcb743d1e251e2fe925", "score": "0.60075897", "text": "public interface C1953a {\n /* renamed from: a */\n void mo3297a(int i);\n }", "title": "" }, { "docid": "636a445bc7f8ddda37ba4f40ef352b41", "score": "0.59862274", "text": "public interface C0568b {\n /* renamed from: a */\n void mo3778a(String str);\n}", "title": "" }, { "docid": "c3841cb9d35b7dad904f619b8154d56f", "score": "0.5985658", "text": "public interface azc extends ayt {\n /* renamed from: a */\n void mo1644a(bac bac, int i);\n\n /* renamed from: a */\n void mo1645a(bgl bgl);\n}", "title": "" }, { "docid": "3fa4fd2138d74c541b033538d5790802", "score": "0.5984309", "text": "protected oa a(agi paramagi)\r\n/* 21: */ {\r\n/* 22:27 */ return a;\r\n/* 23: */ }", "title": "" }, { "docid": "fda9102600415cac206b6cbee11d033a", "score": "0.59783196", "text": "public interface C2747a {\n /* renamed from: a */\n void mo2032a();\n }", "title": "" }, { "docid": "646fc516e875fa2461934966c5400dff", "score": "0.59619576", "text": "interface C4045a {\n /* renamed from: a */\n void mo9445a(int i, boolean z);\n }", "title": "" }, { "docid": "56551bc33bc8362bc82eb8a464fdd3f6", "score": "0.5956075", "text": "interface C2371l {\n /* renamed from: a */\n void mo10205a();\n}", "title": "" }, { "docid": "5e2c98798e2da89d535494c93b9e34e4", "score": "0.59537256", "text": "public interface C5535b {\n /* renamed from: a */\n void mo20155a(C5534a aVar);\n }", "title": "" }, { "docid": "1afb0f05133358ef7efeafbd5acc3141", "score": "0.5951181", "text": "public interface C2311a {\n /* renamed from: a */\n void mo27986a();\n\n /* renamed from: a */\n void mo27987a(int i);\n }", "title": "" }, { "docid": "9c2182b7b72b5b7968772173d8aa292e", "score": "0.5925496", "text": "public interface C1767d<T> {\n /* renamed from: a */\n void mo13203a(T t);\n }", "title": "" }, { "docid": "0bee3f137254c4eb371e1caae663c129", "score": "0.5869702", "text": "public interface C24724f {\n /* renamed from: a */\n void mo64702a(String str);\n}", "title": "" }, { "docid": "455ade5ed3482a834709442295e121b4", "score": "0.5842605", "text": "public interface C45138a {\n /* renamed from: a */\n void mo107625a();\n\n /* renamed from: a */\n void mo107626a(int i, String str, String str2);\n}", "title": "" }, { "docid": "854c8ea5dff0d230f8fcbab88b01016b", "score": "0.5833916", "text": "public interface C3640a {\n /* renamed from: a */\n void mo29716a(int i);\n }", "title": "" }, { "docid": "706973f28c781c96725ee4a40e0ff2f5", "score": "0.5831672", "text": "public interface C4875d {\n /* renamed from: a */\n void mo5079a(ba baVar, int i, az azVar);\n}", "title": "" }, { "docid": "5e16f885e7acd2b7081ec1c7fe73301c", "score": "0.5784612", "text": "private interface C1412b {\n /* renamed from: a */\n void mo1161a(C1400e c1400e);\n }", "title": "" }, { "docid": "5c4dca19921df207ca9b892b45eee7f2", "score": "0.5780613", "text": "interface C2762a<T> {\n /* renamed from: a */\n C2698a<T> mo28975a();\n }", "title": "" }, { "docid": "39150e3080b6b725967b850d3afab2a1", "score": "0.57751495", "text": "public interface C5829b {\n /* renamed from: a */\n void mo11544a(String str);\n }", "title": "" }, { "docid": "acdabe513538de753f004a2bbc8b857a", "score": "0.57640254", "text": "public interface accab<R> {\n /* renamed from: a */\n R mo29404a();\n}", "title": "" }, { "docid": "29b334661dff2683158294d023dcc6b6", "score": "0.571979", "text": "public interface C14620j {\n /* renamed from: a */\n void mo36846a(String str, int i);\n}", "title": "" }, { "docid": "11d8c5badbf39ef2779caa5bc63c98ca", "score": "0.5718254", "text": "public interface C4610e {\n /* renamed from: a */\n void mo6139a(C1469k c1469k);\n}", "title": "" }, { "docid": "135aeb7ce443b2f7e6edb36d00628e3d", "score": "0.56954885", "text": "static public Object convertToCatalyst (Object a) { throw new RuntimeException(); }", "title": "" }, { "docid": "280f0b123c8ff3c44e15683da2726d23", "score": "0.56861746", "text": "public interface C0214u {\n /* renamed from: a */\n void m1270a(eb ebVar);\n}", "title": "" }, { "docid": "d9348c2613da57eeb66d8cb530f09c26", "score": "0.5684635", "text": "interface C1297y {\n /* renamed from: a */\n void m3089a(String str);\n}", "title": "" }, { "docid": "b8601d6b39f826a6be8e2d4cd5a1b9cf", "score": "0.5679106", "text": "public Complex from(double a) {\n\treturn new Complex(a - r, -i);\n }", "title": "" }, { "docid": "aadc6b1b38a906541f4e1d47b0e3d88e", "score": "0.5673117", "text": "public interface C42608f {\n /* renamed from: a */\n void mo97928a(AVMusic aVMusic);\n\n /* renamed from: b */\n AVMusic mo97931b();\n}", "title": "" }, { "docid": "e4ec9b0444848ad8bda91cc355d90cb3", "score": "0.56392145", "text": "public interface C1268sca {\n /* renamed from: a */\n String mo742a(C1265rca rca);\n}", "title": "" }, { "docid": "62f37a5fb6916628b9e05f46e4e1c16c", "score": "0.56366706", "text": "public interface C9352a {\n /* renamed from: b */\n void mo9570b();\n }", "title": "" }, { "docid": "889be787b4c8c3738723f7d149fd42c8", "score": "0.5631076", "text": "public interface bbf {\n /* renamed from: a */\n bhv mo1703a();\n}", "title": "" }, { "docid": "f0c3f6e6e746150596aafb9625aca312", "score": "0.5630925", "text": "public interface AbstractC0467a {\n /* renamed from: a */\n void mo1213a(String str);\n }", "title": "" }, { "docid": "854135270ae178c67f8833ef9d980385", "score": "0.56282836", "text": "public interface C42770c {\n /* renamed from: a */\n void mo22852a(C42771c c42771c);\n }", "title": "" }, { "docid": "865e3a8e83a9a438022cc8747cd13c9b", "score": "0.56225616", "text": "private interface C5852a {\n /* renamed from: a */\n void mo18221a(C5830g gVar);\n }", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56192684", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56192684", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56192684", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56192684", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56192684", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "a0406e5fa13581af198a732a7f3bc350", "score": "0.5612172", "text": "private interface C12634d extends C12630f {\n /* renamed from: a */\n void mo43668a(Appendable appendable, int i) throws IOException;\n }", "title": "" }, { "docid": "59c40710714b3ffd916a27d5bd99b1ea", "score": "0.5606352", "text": "private static String modifyFormat(String a){\n if(a.length() == 1){\n return 0+a;\n }\n return a;\n }", "title": "" }, { "docid": "511e0295e13789705175d2d5da9b4ce2", "score": "0.56042707", "text": "public interface C15477afu<D, R> {\n /* renamed from: a */\n R mo39250a(D d);\n}", "title": "" }, { "docid": "6b90b367dc28c06f5ff812483730d075", "score": "0.5593809", "text": "public interface C2044cn<T> {\n /* renamed from: a */\n T mo33266a();\n}", "title": "" }, { "docid": "a6f7cd02bd4bdb86dafcd6ca7760a547", "score": "0.5588004", "text": "public interface C0229a {\n /* renamed from: a */\n void mo4268a(MenuItem menuItem);\n }", "title": "" }, { "docid": "7f390929a40f263d0c2145d1434c73e2", "score": "0.55778533", "text": "public interface C29251bk {\n\n /* renamed from: com.ss.android.ugc.aweme.filter.bk$a */\n public interface C29252a {\n }\n}", "title": "" }, { "docid": "23453f6b1fa3526469644fdcfb1b7384", "score": "0.55775446", "text": "public interface C48138e<E> {\n /* renamed from: a */\n C48135b<E> mo120362a();\n}", "title": "" }, { "docid": "b707b998ac1924297f0ac56b2aba37a0", "score": "0.55757153", "text": "public void a(aer ☃) {\r\n/* 93 */ if (☃ instanceof afb) {\r\n/* 94 */ this.a.add(((afb)☃).t());\r\n/* */ }", "title": "" }, { "docid": "6cf76165ce19fd73e8435dfccfcc93c1", "score": "0.5574297", "text": "b(a aVar, String str) {\n super(str);\n this.f25063a = aVar;\n }", "title": "" }, { "docid": "fae3a85317874a6942b6646e5b56d97f", "score": "0.55716604", "text": "public A foo(A a);", "title": "" }, { "docid": "6a506fd069923810ef9304d6108f79cf", "score": "0.55672723", "text": "public d(String name, Map<String, a> nameToCodeMap) {\n/* 40 */ this.a = name;\n/* 41 */ this.c = nameToCodeMap;\n/* 42 */ this.b = (a[])nameToCodeMap.values().toArray((Object[])new a[nameToCodeMap.size()]);\n/* */ }", "title": "" }, { "docid": "28fb946cf16f2652d5526d3bb64e546d", "score": "0.5561676", "text": "public interface C7375g {\n /* renamed from: a */\n C7320f mo23641a(C6713a aVar);\n}", "title": "" }, { "docid": "85e6b3e0bff08b18f6d8bd97a49d522b", "score": "0.5554018", "text": "public interface C0039d {\n /* renamed from: a */\n void mo1a(Object obj);\n\n /* renamed from: a */\n void mo2a(Object obj, Object obj2, Object obj3, int i, int i2, int i3);\n}", "title": "" }, { "docid": "3ce2006444fad6a670c84dc4f7ed8d86", "score": "0.5542225", "text": "public interface C9139b {\n /* renamed from: a */\n void mo23556a(Format format);\n }", "title": "" }, { "docid": "d7250c50ff2a24b3d0f4707ac3dd0679", "score": "0.55407953", "text": "public static String nameConvert(String a)\n {\n if (a.charAt(0) != '$') return a;\n int n = a.indexOf('/');\n if (n < 0) n = a.indexOf('\\\\');\n String prefix, tail;\n if (n < 0) \n { prefix = a.substring(1);\n tail = \"\";\n }\n else \n { prefix = a.substring(1, n);\n tail = a.substring(n);\n }\n LispObject x = Symbol.intern(\"$\" + prefix).car/*value*/;\n if (x instanceof LispString) prefix = ((LispString)x).string;\n else if ((x = Symbol.intern(\"@\" + prefix).car/*value*/) \n instanceof LispString) prefix = ((LispString)x).string;\n else prefix = \".\";\n return prefix + tail;\n }", "title": "" }, { "docid": "deb9c3351daecfd8065fb441e4f63f8d", "score": "0.5529515", "text": "public interface C2128e {\n /* renamed from: a */\n C2129f mo33762a();\n}", "title": "" }, { "docid": "b39264e2da870e57ddc7a1a86b9d45bc", "score": "0.5520719", "text": "public interface C4716ca {\n /* renamed from: a */\n boolean mo18876a();\n\n /* renamed from: i */\n boolean mo18877i();\n\n /* renamed from: l */\n boolean mo18878l();\n}", "title": "" }, { "docid": "c8787991f1b44c6176662eb34047db2e", "score": "0.5514781", "text": "public interface AbstractC24286a {\n /* renamed from: a */\n void mo106554a(View view, int i, int i2, int i3, int i4);\n }", "title": "" }, { "docid": "bcbe42e2bc947327312269263e6d22f7", "score": "0.55028343", "text": "private interface C0608a<T> {\n /* renamed from: a */\n boolean mo3678a(T t);\n\n /* renamed from: b */\n int mo3679b(T t);\n }", "title": "" }, { "docid": "b1904051dfc055cb8bc30e78ecb06f7d", "score": "0.5502814", "text": "public interface C1764a<T> {\n /* renamed from: b */\n T mo12521b();\n }", "title": "" }, { "docid": "f943bb2ffaee2df762380fef16996f83", "score": "0.5499191", "text": "a(int i2) {\n this.e = i2;\n }", "title": "" }, { "docid": "fde02e0e62245c1b273afe5944dbc705", "score": "0.549889", "text": "public interface C4201a {\n /* renamed from: a */\n String mo23976a();\n\n /* renamed from: a */\n void mo23977a(String str, C4203c cVar);\n\n /* renamed from: b */\n void mo23978b();\n}", "title": "" }, { "docid": "aa8d57f52d332d530cac4e615a242b10", "score": "0.54988337", "text": "public void changeFirst(A a1){\n first=a1;\n }", "title": "" }, { "docid": "83026f1cb4e64b3bd083a2c33ae20d9b", "score": "0.54883325", "text": "public interface AbstractC0438a {\n /* renamed from: a */\n void mo4129a(AbstractC0458e eVar);\n}", "title": "" }, { "docid": "5a73d20ec2202ced4b6d0fc2fbe25069", "score": "0.5481695", "text": "interface C0379e {\n /* renamed from: a */\n Intent mo387a();\n\n /* renamed from: b */\n void mo388b();\n }", "title": "" }, { "docid": "8ab0215a1b21bef3b89340a2004e8d3f", "score": "0.5471828", "text": "public interface C8571b {\n /* renamed from: a */\n void mo25151a(int i, Object obj) throws ExoPlaybackException;\n }", "title": "" }, { "docid": "04b19640a9efae06dee3a45573c9bc78", "score": "0.5469931", "text": "public interface AbstractC0485a {\n /* renamed from: a */\n void mo7045a();\n\n /* renamed from: b */\n void mo7046b();\n\n /* renamed from: c */\n void mo7047c();\n }", "title": "" }, { "docid": "91698c6cf0c72149e1f7f776ce205bc9", "score": "0.54678625", "text": "public interface C0510j {\n /* renamed from: a */\n void mo4848a();\n}", "title": "" }, { "docid": "45e3c105f171ec06147529faea4dac24", "score": "0.54575825", "text": "@Override\r\n\tvoid a() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2f4d315975dcf75e3895aec126c39c7e", "score": "0.5452325", "text": "public interface C4050b {\n /* renamed from: a */\n float mo23630a(float f, float f2);\n}", "title": "" }, { "docid": "cca0ce061ec6427ddace067d637e1e30", "score": "0.5444239", "text": "public aab(EntityWalkingMob paramxu)\r\n/* 7: */ {\r\n/* 8:10 */ this.a = paramxu;\r\n/* 9: */ }", "title": "" }, { "docid": "ab7d0cc2ac276057b32af95cb22ec927", "score": "0.54433346", "text": "public interface C37515a {\n /* renamed from: a */\n void mo43846a(byte[] bArr, boolean z, long j);\n }", "title": "" }, { "docid": "179da997ebb3a1e55d02a6e5d65695bc", "score": "0.54390657", "text": "public interface C9318b {\n /* renamed from: a */\n void mo11991a(PlayerMessage playerMessage, Object obj);\n }", "title": "" }, { "docid": "e4f4000c176e9344ec950fcf1db947ff", "score": "0.54388946", "text": "interface C3905a {\n /* renamed from: a */\n String mo11398a();\n\n /* renamed from: a */\n boolean mo11399a(Map<String, String> map);\n }", "title": "" }, { "docid": "c8e7b05a1c1dc4ba276442eaa05bafdb", "score": "0.5435489", "text": "interface C1352a {\n /* renamed from: a */\n void mo1839a(Object... objArr);\n\n /* renamed from: b */\n void mo1840b(Object... objArr);\n}", "title": "" }, { "docid": "5ce2cc3608f56a2722ab3f29233c7cde", "score": "0.5418917", "text": "void mo1633a(aa aaVar);", "title": "" }, { "docid": "3efb2afc40984dab01cfa70a9c25b3d2", "score": "0.54089147", "text": "public interface C3827b {\n /* renamed from: a */\n void mo15352a(boolean z);\n }", "title": "" }, { "docid": "adcee253e93e6805e403946c5f5e5321", "score": "0.5408871", "text": "public interface C6847c {\n /* renamed from: a */\n void mo22280a(C6884d dVar);\n}", "title": "" }, { "docid": "ce55f22a4055ae9793b623c8ad739ad8", "score": "0.54083484", "text": "@Override\r\n public String renameElement( String name ) {\n return null;\r\n }", "title": "" }, { "docid": "ea6656f12c042d83c21fb2d987baaac8", "score": "0.5405419", "text": "public interface C3343a {\n /* renamed from: a */\n void mo2173a(C3350b c3350b);\n\n C3350b getState();\n\n void setState(C3350b c3350b);\n\n void setTransformationDuration(int i);\n}", "title": "" }, { "docid": "297e8a3d00e2bf403c5822a0bd26c44c", "score": "0.54045165", "text": "public interface C4367m {\n /* renamed from: a */\n int mo24516a(byte[] bArr);\n\n /* renamed from: a */\n long mo24517a();\n\n /* renamed from: a */\n void mo24518a(long j);\n\n /* renamed from: b */\n void mo24519b();\n}", "title": "" }, { "docid": "e07dccee76bb327d48d3be20c8e63cc5", "score": "0.5399023", "text": "public void a(ng paramng)\r\n/* 75: */ {\r\n/* 76:90 */ this.d.a(paramng.a());\r\n/* 77: */ }", "title": "" }, { "docid": "99b889ade37b2b10f186fa060f06ca8a", "score": "0.5398358", "text": "protected void a(String paramString, a<b> parama) {\n }", "title": "" }, { "docid": "d8f4cadfa440fe4203410146145f5c44", "score": "0.5396161", "text": "void b(t paramt, ag.a parama) {\n}", "title": "" }, { "docid": "1612a0a18fd9316057f217779105d213", "score": "0.5393441", "text": "public interface C1091b {\n /* renamed from: a */\n void mo301a();\n\n /* renamed from: c */\n void mo307c();\n}", "title": "" }, { "docid": "80ae366d11374a0814a89efcfc021c02", "score": "0.5391534", "text": "public interface AbstractC4266ar {\n /* renamed from: a */\n String mo41492a();\n\n /* renamed from: a */\n boolean m11689a();\n\n /* renamed from: b */\n String mo41493b();\n\n /* renamed from: c */\n String mo41494c();\n\n /* renamed from: d */\n String mo41495d();\n}", "title": "" }, { "docid": "6c0e4db20ecde1b42a42a7065f8785f5", "score": "0.5391284", "text": "public interface C43744a {\n /* renamed from: a */\n void mo105789a(Message message);\n }", "title": "" }, { "docid": "4e5b9659efac2536715a4d65eb176f1e", "score": "0.5359909", "text": "public interface C15399b {\n /* renamed from: a */\n void mo38897a(int i);\n\n /* renamed from: a */\n void mo38898a(EnigmaResult enigmaResult);\n }", "title": "" }, { "docid": "6757e2bd1edee47f48d5b160193d155d", "score": "0.53556114", "text": "public interface C23360e<T extends C23358c> {\n /* renamed from: a */\n T mo60671a();\n\n /* renamed from: a */\n void mo60672a(T t);\n}", "title": "" }, { "docid": "6a1c3fce3530fe5f5f6e26f471670fe7", "score": "0.53555554", "text": "interface C5759a {\n /* renamed from: a */\n void m25325a(boolean z);\n}", "title": "" }, { "docid": "368662bbdaada31fd80bba33f3ff00b1", "score": "0.53538156", "text": "public interface C40836b {\n /* renamed from: a */\n void mo101107a(int i, boolean z);\n }", "title": "" }, { "docid": "336a28eb28461d8350e0440f5bce410f", "score": "0.5344217", "text": "public abstract int a(eq.a parama);", "title": "" }, { "docid": "08868a6a61a79e57e097277c5af5790e", "score": "0.5334853", "text": "public interface C13971b<T, K> {\n /* renamed from: a */\n K mo33619a(T t);\n }", "title": "" }, { "docid": "e3f214cae79a10823faff6b57f13ef52", "score": "0.532346", "text": "interface C1398u {\n /* renamed from: a */\n C1357d mo1122a();\n\n /* renamed from: a */\n void mo1123a(long j, String str);\n\n /* renamed from: b */\n byte[] mo1124b();\n\n /* renamed from: c */\n void mo1125c();\n\n /* renamed from: d */\n void mo1126d();\n}", "title": "" }, { "docid": "d2b8e96265b6c1ef9be09df27f224aa9", "score": "0.5320586", "text": "public interface C2969ta {\n /* renamed from: a */\n boolean mo13755a();\n\n /* renamed from: b */\n double mo13756b();\n\n /* renamed from: c */\n long mo13757c();\n\n /* renamed from: d */\n long mo13758d();\n\n /* renamed from: e */\n String mo13759e();\n}", "title": "" }, { "docid": "b530f03953aebb089bfa08db121441ac", "score": "0.5318283", "text": "public interface AbstractC24851a {\n /* renamed from: a */\n void mo108269a(float f, float f2);\n\n /* renamed from: a */\n void mo108270a(int i, int i2);\n }", "title": "" }, { "docid": "a0a6709d61f9bfa97ff4584c610d274e", "score": "0.5307484", "text": "interface C12689c extends C12704d {\n /* renamed from: a */\n void mo42356a(long j, Throwable th);\n }", "title": "" }, { "docid": "a8ddbf60ce062f6865133d0b3677cfde", "score": "0.5306347", "text": "androidx.h.a.b a() {\n }", "title": "" }, { "docid": "c740a67f693f594c1366b7e45b05583a", "score": "0.52956074", "text": "public interface C0239b {\n /* renamed from: a */\n void mo1110a(C0244e eVar);\n\n /* renamed from: b */\n void mo1111b(C0244e eVar);\n\n /* renamed from: c */\n void mo1112c(C0244e eVar);\n }", "title": "" }, { "docid": "7d2cd1c16fd4a6dfd01620fb708e8d15", "score": "0.52868515", "text": "public interface C5903s {\n /* renamed from: a */\n void mo28846a(C5901q qVar, C5875e eVar) throws HttpException, IOException;\n}", "title": "" } ]
93d581beca4b407fea0e6a568cf4e809
.br.com.zup.PixSearchRequest.FilterPixById pixId = 1;
[ { "docid": "b2fffdaf6ab9d87c6343a1183a9d97fa", "score": "0.5707951", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n br.com.zup.PixSearchRequest.FilterPixById, br.com.zup.PixSearchRequest.FilterPixById.Builder, br.com.zup.PixSearchRequest.FilterPixByIdOrBuilder> \n getPixIdFieldBuilder() {\n if (pixIdBuilder_ == null) {\n if (!(filterCase_ == 1)) {\n filter_ = br.com.zup.PixSearchRequest.FilterPixById.getDefaultInstance();\n }\n pixIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n br.com.zup.PixSearchRequest.FilterPixById, br.com.zup.PixSearchRequest.FilterPixById.Builder, br.com.zup.PixSearchRequest.FilterPixByIdOrBuilder>(\n (br.com.zup.PixSearchRequest.FilterPixById) filter_,\n getParentForChildren(),\n isClean());\n filter_ = null;\n }\n filterCase_ = 1;\n onChanged();;\n return pixIdBuilder_;\n }", "title": "" } ]
[ { "docid": "2313e6f48171fec6ab98add8ad3ae037", "score": "0.7020236", "text": "@java.lang.Override\n public br.com.zup.PixSearchRequest.FilterPixById getPixId() {\n if (filterCase_ == 1) {\n return (br.com.zup.PixSearchRequest.FilterPixById) filter_;\n }\n return br.com.zup.PixSearchRequest.FilterPixById.getDefaultInstance();\n }", "title": "" }, { "docid": "51230ff25df06c85ea14420cba5aaa3b", "score": "0.6938467", "text": "public Builder setPixId(br.com.zup.PixSearchRequest.FilterPixById value) {\n if (pixIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n filter_ = value;\n onChanged();\n } else {\n pixIdBuilder_.setMessage(value);\n }\n filterCase_ = 1;\n return this;\n }", "title": "" }, { "docid": "7f82473801d7acc166e21e9c9b7c5382", "score": "0.69366306", "text": "@java.lang.Override\n public br.com.zup.PixSearchRequest.FilterPixByIdOrBuilder getPixIdOrBuilder() {\n if (filterCase_ == 1) {\n return (br.com.zup.PixSearchRequest.FilterPixById) filter_;\n }\n return br.com.zup.PixSearchRequest.FilterPixById.getDefaultInstance();\n }", "title": "" }, { "docid": "50f55d3395b42038051cc8c35b525f04", "score": "0.6744303", "text": "@java.lang.Override\n public br.com.zup.PixSearchRequest.FilterPixById getPixId() {\n if (pixIdBuilder_ == null) {\n if (filterCase_ == 1) {\n return (br.com.zup.PixSearchRequest.FilterPixById) filter_;\n }\n return br.com.zup.PixSearchRequest.FilterPixById.getDefaultInstance();\n } else {\n if (filterCase_ == 1) {\n return pixIdBuilder_.getMessage();\n }\n return br.com.zup.PixSearchRequest.FilterPixById.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "d6f4cc91220f0cf8abf3fdaa37f40330", "score": "0.6635459", "text": "@java.lang.Override\n public br.com.zup.PixSearchRequest.FilterPixByIdOrBuilder getPixIdOrBuilder() {\n if ((filterCase_ == 1) && (pixIdBuilder_ != null)) {\n return pixIdBuilder_.getMessageOrBuilder();\n } else {\n if (filterCase_ == 1) {\n return (br.com.zup.PixSearchRequest.FilterPixById) filter_;\n }\n return br.com.zup.PixSearchRequest.FilterPixById.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "f7d14cd5ec08605ee69676817d6a5294", "score": "0.65458536", "text": "@java.lang.Override\n public boolean hasPixId() {\n return filterCase_ == 1;\n }", "title": "" }, { "docid": "c855867fd0e1dd55ca9b1ba359848a83", "score": "0.64610004", "text": "@java.lang.Override\n public boolean hasPixId() {\n return filterCase_ == 1;\n }", "title": "" }, { "docid": "489518ac07ad32fcfadfe7b15e473e21", "score": "0.62886167", "text": "private FilterPixById(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "ab1511df862871d4247fee102fd52dbf", "score": "0.6144499", "text": "public Builder mergePixId(br.com.zup.PixSearchRequest.FilterPixById value) {\n if (pixIdBuilder_ == null) {\n if (filterCase_ == 1 &&\n filter_ != br.com.zup.PixSearchRequest.FilterPixById.getDefaultInstance()) {\n filter_ = br.com.zup.PixSearchRequest.FilterPixById.newBuilder((br.com.zup.PixSearchRequest.FilterPixById) filter_)\n .mergeFrom(value).buildPartial();\n } else {\n filter_ = value;\n }\n onChanged();\n } else {\n if (filterCase_ == 1) {\n pixIdBuilder_.mergeFrom(value);\n }\n pixIdBuilder_.setMessage(value);\n }\n filterCase_ = 1;\n return this;\n }", "title": "" }, { "docid": "f969b325975526dc98230893ee5c55f9", "score": "0.61083937", "text": "public br.com.zup.PixSearchRequest.FilterPixById.Builder getPixIdBuilder() {\n return getPixIdFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "ef6fea3db60b6dd8d39c5a89280fea30", "score": "0.6043025", "text": "java.lang.String getPixId();", "title": "" }, { "docid": "7058b09a1232d99d9c1dce262bf7213b", "score": "0.59836704", "text": "public Builder setPixId(\n br.com.zup.PixSearchRequest.FilterPixById.Builder builderForValue) {\n if (pixIdBuilder_ == null) {\n filter_ = builderForValue.build();\n onChanged();\n } else {\n pixIdBuilder_.setMessage(builderForValue.build());\n }\n filterCase_ = 1;\n return this;\n }", "title": "" }, { "docid": "cbe6e90cc4144fc105b6f2a4c93dac1b", "score": "0.5706076", "text": "int getFilter();", "title": "" }, { "docid": "eb71f8f0ba175400dfb7ccb8fcee3274", "score": "0.5658193", "text": "public Builder setPixId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n pixId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "07adc68e574f827a5e5d569267a09eb4", "score": "0.55125374", "text": "public void setResourceFilter(int filter);", "title": "" }, { "docid": "7b6c79899b7a79ac24c20f5435a3c96c", "score": "0.5419453", "text": "@Override\n\tpublic void setFilterParams() {\n\t\tparams = srcKey.split(\"_\");\n\t\t// test - print out params\n\t\tfor (int i = 0; i < params.length; i++) {\n\t\t\tSystem.out.println(i + \" : at this element : \" + params[i]);\n\t\t}\n\t\t maskSize = Integer.parseInt(params[1]);\n\t}", "title": "" }, { "docid": "92a5941f3eca4177d4b3761c6cf1b131", "score": "0.53223044", "text": "List<TbSlotImage> selectByExample(TbSlotImageExample example);", "title": "" }, { "docid": "9459768cfb7645d72ea73eec4bed68b1", "score": "0.5257662", "text": "Spectrum searchBySpecId(Integer id);", "title": "" }, { "docid": "f174968ca7d98a94307be05b174b86b3", "score": "0.51556385", "text": "public void setSource(Filter src) {\n/* 84 */ init(src, (Map)null);\n/* */ }", "title": "" }, { "docid": "3768b544cdcbfabee0ef9fb47bc482c9", "score": "0.51412404", "text": "public Builder clearPixId() {\n if (pixIdBuilder_ == null) {\n if (filterCase_ == 1) {\n filterCase_ = 0;\n filter_ = null;\n onChanged();\n }\n } else {\n if (filterCase_ == 1) {\n filterCase_ = 0;\n filter_ = null;\n }\n pixIdBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "9d24fc08287d1716d3aa8b665d2a2248", "score": "0.513667", "text": "List<TbUserImg> selectByExample(TbUserImgExample example);", "title": "" }, { "docid": "cbc62bbd7d2c8d13b0bdf47d160f1cb4", "score": "0.5115088", "text": "void setFixedFilter(QueryFilter filter);", "title": "" }, { "docid": "1949b1cd84cf95bdec14d56e593ba495", "score": "0.5111827", "text": "public interface ClientInterface {\n\n @GET (\"/ajax/services/search/images\")\n void search(\n @Query(\"v\") float version,\n @Query(\"q\") String searchString,\n @Query(\"rsz\") int rSize,\n @Query(\"start\") int start,\n @Query(\"userip\") String ip,\n @Query(\"imgsz\") String size,\n Callback<Map<String,Object>> callback\n );\n\n\n\n}", "title": "" }, { "docid": "4f5168b39bc4cb3de3324c5c6def99da", "score": "0.51115364", "text": "List<Image> selectByExample(ImageExample example);", "title": "" }, { "docid": "dbfde95304fa1286f49936fc5ba963d8", "score": "0.5110743", "text": "public int getResourceFilter();", "title": "" }, { "docid": "20a2fd7d778af4726ec4e3932be37ccb", "score": "0.51035285", "text": "void filter(Filter filter);", "title": "" }, { "docid": "07716f6ee1abb536158fe45ec0908b7a", "score": "0.50855726", "text": "void mo1022c(CustomFiltersUI customFiltersUI);", "title": "" }, { "docid": "0f308b206c79151e2d561213a4e1dfb4", "score": "0.5073773", "text": "public IImg setID(String paramVal);", "title": "" }, { "docid": "08ec366c0620e2c440d10f955f135705", "score": "0.5066124", "text": "public abstract void updateFilter();", "title": "" }, { "docid": "0a6983366560002325318a550839335d", "score": "0.5063509", "text": "public interface PanoramioAPIService {\n\n @GET(\"/get_panoramas.php\")\n public PanoramioResponse getPhotos(\n @Query(\"set\") String set,\n @Query(\"from\") int from,\n @Query(\"to\") int to,\n @Query(\"minx\") int minx,\n @Query(\"miny\") int miny,\n @Query(\"maxx\") int maxx,\n @Query(\"maxy\") int maxy,\n @Query(\"size\") String medium,\n @Query(\"mapfilter\") boolean mapfilter\n );\n}", "title": "" }, { "docid": "f73ade79f53418a11f3f99d72e5c212a", "score": "0.50479597", "text": "public void setCustomerFilterShader(int rawId) {\n try{\n filterShader.setProgramWithFilterRawId(rawId);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "570a381ece308d233a6a357c68369455", "score": "0.5043608", "text": "public Builder setPixIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n pixId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "aaf8adea151b467c1a2183298de19ed6", "score": "0.50161517", "text": "List<ProductImage> selectByExample(ProductImageExample example);", "title": "" }, { "docid": "9e838d53708f5cf884842616d53c6478", "score": "0.5015306", "text": "List<Picture> selectByExample(PictureExample example);", "title": "" }, { "docid": "9ed62e2d85ef113d34919de3757fab8d", "score": "0.5005375", "text": "Custom search(long id);", "title": "" }, { "docid": "d9168dcf1cdb314e32e74cc8a4beba68", "score": "0.49798205", "text": "@Select({\n \"select\",\n \"id, img_key, width, height, jump, type, last_update_time, create_time, is_delete\",\n \"from tb_slot_image\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbSlotImage selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "494a4458fd8e595d8383554f0ccb8132", "score": "0.493986", "text": "@Nullable\n @Deprecated\n @Generated\n @Selector(\"pointOfInterestFilter\")\n public native MKPointOfInterestFilter pointOfInterestFilter();", "title": "" }, { "docid": "019c2f0c883b2d384c92345fa2794995", "score": "0.4939387", "text": "String getImage_id();", "title": "" }, { "docid": "a1ad4f5f659e2f866efe6bc73ac9ae78", "score": "0.4930372", "text": "public interface Filter {\n boolean process(String path, Map<String, RequestValue> mapParams);\n String getCheckFailedDesc();\n int getCheckFailedCode();\n}", "title": "" }, { "docid": "b1bdcb5544f0fe6575d1509dcceb2b37", "score": "0.49195415", "text": "protected abstract void updateFilter();", "title": "" }, { "docid": "6cbc92c16fabc38b97d38ba8aa2f6666", "score": "0.49194023", "text": "public interface ImageFilter {\r\n\r\n Bitmap filter(Bitmap source);\r\n\r\n Bitmap filter(Bitmap source, float percent);\r\n}", "title": "" }, { "docid": "5ca94122c07c4ba1436dc965b70720a2", "score": "0.49183157", "text": "public void setFilter( String filter )\n {\n this.filter = filter;\n }", "title": "" }, { "docid": "6b0abbb2d3ebd9f3ffcb24c2c8367a14", "score": "0.4917738", "text": "java.lang.String getPix();", "title": "" }, { "docid": "23f73a89b3c43bf4ffc25fdb0733f8f8", "score": "0.4908681", "text": "com.google.protobuf.ByteString\n getPixIdBytes();", "title": "" }, { "docid": "71166399fd35a989791e58903c261418", "score": "0.48947045", "text": "List<UploadImage> selectByExample(UploadImageExample example);", "title": "" }, { "docid": "6fcf26b4ae77da86aaaee81efb95ca4d", "score": "0.48527408", "text": "org.jetbrains.r.rinterop.DataFrameFilterRequest.Filter getFilter();", "title": "" }, { "docid": "fd23aeaa4f3f7fa45790de47ce81f819", "score": "0.48364586", "text": "private boolean checkFilter(int id){\n\t\tfor(int index=0; index<3;index++){\n\t\t\tif(image.getImage().size()-5==index){\n\t\t\t\tif(order[2-index]==id){\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "60f40e8871b79c45a976ee0d96e50e94", "score": "0.48284113", "text": "@Override\n\tpublic SecurityModel queryById(String xh) {\n\t\treturn securityModelMapper.queryById(xh);\n\t}", "title": "" }, { "docid": "7aa668e88cdc99952af2a8a8bb2b084f", "score": "0.48244178", "text": "void mo26142a(int i, FilterWord filterWord);", "title": "" }, { "docid": "2fc6e8c3763d19e4f55d555b20d61683", "score": "0.48241866", "text": "public void filter(ImgProvider ip) {\n\t\tshort[][] BW = ip.getBWImage();\n\n\t\t// Make variables for image height and width\n\t\tint height = BW.length;\n\t\tint width = BW[0].length;\n\n\t\t// Create a new array to store the modified image\n\t\tshort[][] im = new short[height][width];\n\n\t\tint thresh = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the threshold you putant slave!!!\"));\n\n\t\tfor (int row = 0; row < height; row++) {\n\t\t\tfor (int col = 0; col < width; col++) {\n\t\t\t\tint a = mask(V, BW, row, col);\n\t\t\t\tint b = mask(H, BW, row, col);\n\t\t\t\tshort F = (short) (Math.sqrt(a * a + b * b));\n\t\t\t\tif (thresh < 0 || thresh > 255) {\n\t\t\t\t\tim[row][col] = F;\n\t\t\t\t} else if (F > thresh) {\n\t\t\t\t\tim[row][col] = 255;\n\t\t\t\t} else {\n\t\t\t\t\tim[row][col] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Create a new ImgProvider and set the filtered image to our new image\n\t\tfilteredImage = new ImgProvider();\n\t\tfilteredImage.setBWImage(im);\n\n\t\t// Show the new image in a new window with title \"Flipped Horizontally\"\n\t\tfilteredImage.showPix(\"Sobeled\");\n\t}", "title": "" }, { "docid": "42732fa827fae9ba16e24b6af32a3b6d", "score": "0.48180917", "text": "@Headers(\"Authorization: Client-ID 8931400a0875247\")\n @GET(\"gallery/search/viral/{page}/search\")\n Call<ImgurGalleryResponse> gallerySearch(@Path(\"page\") int page, @QueryMap Map<String, String> queryMap);", "title": "" }, { "docid": "32b9f12a824cd52312105f41d5e89f4d", "score": "0.4812867", "text": "public interface ApiManager {\n\n @GET(\"data/福利/{count}/{page}\")\n Call<Girls> getGirlsImage(@Path(\"count\") String count, @Path(\"page\") String page);\n\n}", "title": "" }, { "docid": "1feba6792cfc9888678d65781c7151da", "score": "0.4803802", "text": "public void searchShow(String showId) {\n }", "title": "" }, { "docid": "56887a61062d26acd0a8651abce4006f", "score": "0.47972855", "text": "public Image getImageById(String id);", "title": "" }, { "docid": "738d46a4bb2479f08921aa38f87b214d", "score": "0.47871014", "text": "public void setFilterEffect(String filter) {\n this.filter = filter;\n }", "title": "" }, { "docid": "c4b9a3d01883c3a887962f570eb38332", "score": "0.47824773", "text": "private int filterPixel( int argb ) {\n\n \t short alpha = Converter.getAlpha( argb );\n\n if( alpha == 0 )\n return argb; // transparent pixel\n\t \t \n short redIndex = Converter.getRed( argb );\n short blueIndex = Converter.getBlue( argb );\n short greenIndex = Converter.getGreen( argb );\n \n float[] hsbvals = new float[3];\n Color.RGBtoHSB(redIndex, greenIndex, blueIndex, hsbvals);\n \n // Color replace\n float newBrightness = hsbvals[2]+brightness;\n if (newBrightness<0) {\n \tnewBrightness = 0;\n } else {\n \tif (newBrightness>1) {\n \t\tnewBrightness = 1;\n \t}\n }\n return Color.HSBtoRGB(hsbvals[0], hsbvals[1], newBrightness) | (alpha << 24);\n }", "title": "" }, { "docid": "f281c210fb1147d4d394eddba0420b26", "score": "0.47816038", "text": "Filter getFilter();", "title": "" }, { "docid": "8707b78fc5dc00d5fb328e59eaff8d96", "score": "0.47784686", "text": "List<TblImage> selectByExample(TblImageExample example);", "title": "" }, { "docid": "c1f743b87507c84280d6c9d1c113104d", "score": "0.47751406", "text": "public interface SearchResponseFilter {\n\tboolean accept(Map<String, String> map);\n}", "title": "" }, { "docid": "604b433320c117f684c69c5fdf66b218", "score": "0.47686452", "text": "private PixSearchRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "df0b4f2204044e6aebb59a7990339a98", "score": "0.47660658", "text": "public interface FilterType {\n}", "title": "" }, { "docid": "74a59cccdb8161f88bf1f7ca7ee4f634", "score": "0.47606662", "text": "@ColorInt\n protected abstract int colorFilter(float value);", "title": "" }, { "docid": "23b5bf4f05b7d83c5dd1c9697636c711", "score": "0.47597435", "text": "public static DWFilter fromId(long id){\n DWFilter retval = new DWFilter();\n retval.setId(id);\n return retval;\n }", "title": "" }, { "docid": "5c24084631f760250e947d1d34e0765a", "score": "0.4758981", "text": "public Hotsearch getHotsearchByIdAndName(Integer id, String userName);", "title": "" }, { "docid": "cc4ee392e7c7e49c62d7c3f3b635bd5b", "score": "0.475026", "text": "public IImg setOnSelect(String paramVal);", "title": "" }, { "docid": "acc09ca0230aa60e3fe9a00ca9c1def3", "score": "0.47447503", "text": "public final void mo74762c(C29296g gVar) {\n String str;\n String str2;\n C39673j.this.f103151a = gVar;\n if (C39673j.this.f103156f != null) {\n C39673j.this.f103156f.mo98970a(gVar);\n }\n EffectCategoryResponse b = C35563c.m114837d().mo74825b(gVar);\n if (b == null) {\n str = \"\";\n } else {\n str = b.name;\n }\n C42962b bVar = C42962b.f111525a;\n String str3 = \"select_filter\";\n C22984d a = C22984d.m75611a().mo59973a(\"creation_id\", C39673j.this.f103152b.creationId).mo59973a(\"shoot_way\", C39673j.this.f103152b.mShootWay).mo59970a(\"draft_id\", C39673j.this.f103152b.draftId).mo59973a(\"enter_method\", \"click\");\n String str4 = \"enter_from\";\n if (C39673j.this.f103157g) {\n str2 = \"edit_post_page\";\n } else {\n str2 = \"video_edit_page\";\n }\n bVar.mo104671a(str3, a.mo59973a(str4, str2).mo59973a(\"filter_name\", gVar.f77268c).mo59970a(\"filter_id\", gVar.f77266a).mo59973a(\"tab_name\", str).f60753a);\n }", "title": "" }, { "docid": "f62f860490ab33ae4ed8bf9efcab0d4f", "score": "0.4739901", "text": "@Override\r\n\tpublic Cv filtrer(int id) {\n\t\treturn (Cv) cvDao.findById(Cv.class, id);\r\n\t}", "title": "" }, { "docid": "d12172b3509f45c80c009150ede1d6fd", "score": "0.47394413", "text": "List selectByExample(GjDwzhExample example);", "title": "" }, { "docid": "0b4580ba27034c6ecba17dfbf789320b", "score": "0.47386938", "text": "public interface FindYxTeamImgByZzForCoverService {\n public String find(String zz)throws Exception;\n}", "title": "" }, { "docid": "af7f3a3cab8db465de1d3ee6d04b1616", "score": "0.47365415", "text": "@GET\n @Path(\"{id}\")\n @NullToNotFound\n public Image get(@PathParam(\"id\") Integer key) {\n return imageService.get(key);\n }", "title": "" }, { "docid": "7fd3798093aff440b2971e2d67439584", "score": "0.4727939", "text": "public void setId(LongFilter id) {\n this.id = id;\n }", "title": "" }, { "docid": "f3b8f42b619561bd61d119daf31fb7ef", "score": "0.47208783", "text": "public static ImageView setImage(String search, Button ib){\n ib.setVisible(true);\n \n Color[] colors = {Color.BLACK, Color.BLUE, Color.AZURE, Color.RED, Color.GREENYELLOW, Color.CHOCOLATE,\n Color.FUCHSIA, Color.HOTPINK, Color.OLIVEDRAB, Color.TOMATO};\n int random = (int)(Math.random() * colors.length);\n DropShadow ds = new DropShadow(500, colors[random]);\n \n String imgUrl;\n try{//to to find the image based on the search\n Jwiki jwiki = new Jwiki(search);\n imgUrl = jwiki.getImageURL();\n }\n catch(Exception e){\n System.err.println(search + \" was not found, here is a kitten instead.\");\n imgUrl = \"https://images.squarespace-cdn.com/content/v1/582d50986b8f5ba33e73b9c8/1526950762437-USL0U2LQPNL2YQ53XXKO/ke17ZwdGBToddI8pDm48kFWxnDtCdRm2WA9rXcwtIYR7gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z5QPOohDIaIeljMHgDF5CVlOqpeNLcJ80NK65_fV7S1Uf_TT3g97i6_XmO-qcQt4zAfXqdI_5B_HjrxMT8d5xsm3WUfc_ZsVm9Mi1E6FasEnQ/Abby+kitten.png?format=2500w\";\n }\n Image img = new Image(imgUrl, 250, 250, false, false);\n ImageView imgv = new ImageView(img);\n imgv.setEffect(ds);\n return imgv;\n }", "title": "" }, { "docid": "d3aea4b636cbfffed606a9c6b4b7bd1c", "score": "0.47183338", "text": "Filter createFilter();", "title": "" }, { "docid": "cfd23913b1c9e212b6b3e734cd41e0a2", "score": "0.4714002", "text": "public interface FlickrInterface {\n @GET(\"services/rest/?method=flickr.photos.search&safe_search=1&format=json&nojsoncallback=1\")\n Call<FlickrResponseDto> toto(@Query(\"tags\") String query,@Query(\"per_page\") String nbResults,@Query(\"api_key\") String key);\n\n}", "title": "" }, { "docid": "e22b1ec00798c5666a9c832d3368e9ae", "score": "0.47084758", "text": "List<RegsatPayAli> selectByExample(RegsatPayAliExample example);", "title": "" }, { "docid": "93ef19a298fcc680ff6eb994ad38f1c8", "score": "0.47083932", "text": "public void filterImage() {\n\n if (opIndex == lastOp) {\n return;\n }\n\n lastOp = opIndex;\n switch (opIndex) {\n case 0:\n biFiltered = bi; /* original */\n return;\n case 1:\n biFiltered = ImageNegative(bi); /* Image Negative */\n return;\n case 2:\n biFiltered = rescale(bi); // LAB 2\n return;\n case 3:\n biFiltered = randomScaling(bi); // LAB 2\n return;\n case 4:\n biFiltered = Addition(bi, lab3Img); // LAB 3\n return;\n case 5:\n biFiltered = Subtraction(bi, lab3Img); // LAB 3\n return;\n case 6:\n biFiltered = Multiplication(bi, lab3Img); // LAB 3\n return;\n case 7:\n biFiltered = Division(bi, lab3Img); // LAB 3\n return;\n case 8:\n biFiltered = Not(bi); // LAB 3\n return;\n case 9:\n biFiltered = And(bi, lab3Img); // LAB 3\n return;\n case 10:\n biFiltered = Or(bi, lab3Img); // LAB 3\n return;\n case 11:\n biFiltered = Xor(bi, lab3Img); // LAB 3\n return;\n case 12:\n biFiltered = Log(bi); // LAB 4\n return;\n case 13:\n biFiltered = Power(bi); // LAB 4\n return;\n case 14:\n biFiltered = RandomLookUp(bi); // LAB 4\n return;\n case 15:\n biFiltered = BitPlane(bi); // LAB 4\n return;\n case 16:\n biFiltered = Histogram(bi); // LAB 5\n return;\n case 17:\n biFiltered = Masks(bi); // Lab 6\n return;\n case 18:\n biFiltered = SaltAndPepper(bi); // LAB 7\n return;\n case 19:\n biFiltered = MinFilter(bi); // LAB 7\n return;\n case 20:\n biFiltered = MaxFilter(bi); // LAB 7\n return;\n case 21:\n biFiltered = MidPointFiltering(bi); // LAB 7\n return;\n case 22:\n biFiltered = MedianFiltering(bi); // LAB 7\n return;\n case 23:\n MeanAndSD(bi);\n return;\n case 24:\n biFiltered = Thresholding(bi);\n return;\n\n // ***********************************\n // case 2:\n // return;\n // ************************************\n\n }\n\n }", "title": "" }, { "docid": "ebf9149e3c9aed18ce68fbab7219d2fd", "score": "0.47019163", "text": "public com.google.protobuf.ByteString\n getPixIdBytes() {\n java.lang.Object ref = pixId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n pixId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "81bc380dc3a1e3140f298e6292593266", "score": "0.47009745", "text": "@Test\n public void testProdById() {\n Response resp = given().log().all().queryParam(\"filter[ids]\", productId)\n .get(\"https://spree-vapasi-prod.herokuapp.com/api/v2/storefront/products\");\n\n //System.out.println(\"Products filtered by Id :::::\"+resp.jsonPath().prettify());\n\n Map fileteredProd = resp.body().jsonPath().getMap(\"meta\");\n //Product count should be 1\n Assert.assertEquals(1,fileteredProd.get(\"count\"));\n List<Map> prodId = resp.body().jsonPath().getList(\"data\");\n\n //Product Id passed in the query param should match with Product Id in the response\n //Typecast product id captured from the response and validate the value.\n for(Map prodIdMap : prodId) {\n System.out.println(\"Product id is >>>>>\"+prodIdMap.get(\"id\"));\n Assert.assertEquals(productId, Integer.parseInt((String)(prodIdMap.get(\"id\"))));\n }\n }", "title": "" }, { "docid": "0328f2b2593943a1b3d81badc5cbd1d8", "score": "0.46914244", "text": "protected abstract Color filterPixel(int x, int y, Color RBG);", "title": "" }, { "docid": "cc1b0c8ab8b68fcb2531b4ed5d54125c", "score": "0.46859428", "text": "public void setFilter(final Filter<Integer> filter) {\n\t\tthis.filter = filter;\n\t}", "title": "" }, { "docid": "8f074969cf290cda3e4874ff9c0ffeff", "score": "0.46852258", "text": "public GoodsPic getByFileName(Map<String, Object> params);", "title": "" }, { "docid": "a91b0014b2ae3b4d866bc002ad754543", "score": "0.46836194", "text": "public void filter(double[][] filter)\n {\n double[] pix = new double[3];\n\n // compute the filtered pixel channel values (cross product)\n for (int i=0; i<3; i++)\n {\n pix[i] = 0.0;\n\n for (int j=0; j<3; j++)\n pix[i] += (filter[i][j] * pixel.getValue(j, 0));\n }\n\n // set the filtered pixel channel values\n pixel.setMatrix(pix);\n }", "title": "" }, { "docid": "4ce53ce75e4fb337d64c11705ced0f11", "score": "0.46820888", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n public Object visit(Id filter, Object extraData) {\r\n if (mapper == null) {\r\n throw new RuntimeException(\r\n \"Must set a fid mapper before trying to encode FIDFilters\");\r\n }\r\n\r\n FeatureId[] fids = (FeatureId[]) filter.getIdentifiers().toArray(new FeatureId[0]);\r\n\r\n // prepare column name array\r\n String[] colNames = new String[mapper.getColumnCount()];\r\n\r\n for (int i = 0; i < colNames.length; i++) {\r\n colNames[i] = mapper.getColumnName(i);\r\n }\r\n\r\n for (int i = 0; i < fids.length; i++) {\r\n try {\r\n Object[] attValues = mapper.getPKAttributes(fids[i].getID());\r\n\r\n out.write(\"(\");\r\n\r\n for (int j = 0; j < attValues.length; j++) {\r\n out.write( escapeName(colNames[j]) );\r\n out.write(\" = '\");\r\n out.write(attValues[j].toString()); //DJB: changed this to attValues[j] from attValues[i].\r\n out.write(\"'\");\r\n\r\n if (j < (attValues.length - 1)) {\r\n out.write(\" AND \");\r\n }\r\n }\r\n\r\n out.write(\")\");\r\n\r\n if (i < (fids.length - 1)) {\r\n out.write(\" OR \");\r\n }\r\n } catch (java.io.IOException e) {\r\n throw new RuntimeException(IO_ERROR, e);\r\n }\r\n }\r\n \r\n return extraData;\r\n }", "title": "" }, { "docid": "1787f12c7e00d2df5660c3e94b042ccf", "score": "0.4680555", "text": "@Override\n\tpublic void filmFiltern(Filter filter) {\n\t\t\n\t}", "title": "" }, { "docid": "babffdeaa75e57e04ff4d4234f6c8a67", "score": "0.46766943", "text": "Image selectByPrimaryKey(String id);", "title": "" }, { "docid": "6a7fb1d0ba99788558cee470d5cc826f", "score": "0.46763074", "text": "public FiltroOp(int filtro){\n this.filtro = filtro;\n }", "title": "" }, { "docid": "9f240f8ee65510ee6d7215769b6a96b5", "score": "0.46754366", "text": "public void filterBy(Filter f);", "title": "" }, { "docid": "dddb2c6599acc7b5e4be79467ac4c4d3", "score": "0.46744287", "text": "public void clickCarModel(int id){\n\t\tdriver.findElement(By.xpath(\"(//img[@class='image___1R4ra'])[\"+ id +\"]\")).click();\n\t}", "title": "" }, { "docid": "668815920ea694aade3018d3c28b61eb", "score": "0.46711785", "text": "java.lang.String getSourceImageId();", "title": "" }, { "docid": "ca4798706099361548813a80ff15a7ff", "score": "0.46700332", "text": "public interface FilterListener {\n void onFilterSelected(PhotoFilter photoFilter);\n}", "title": "" }, { "docid": "cbef438761b3c15d80575dd946d56c94", "score": "0.4664388", "text": "public TraceTypeFilter(FilterId id) {\r\n\t\t\r\n\t\tif (id == null){\r\n\t\t\tDsfExceptionHelper.chuck(\"id is null\");\r\n\t\t}\r\n\t\t\r\n\t\tm_filterKey = new FilterKey(this.getClass(), id);\r\n\t}", "title": "" }, { "docid": "ee43d2cceef1fbc9fdbccf7b691f6a92", "score": "0.46618035", "text": "@Test\n\tpublic void TestFilterActionAndCurrencyById() {\n\t\tint id = 0;\n\t String response =\n \t\tgiven().\n\t\t\t\tqueryParam(Constants.FILTER.ACTION, Actions.payment).\n\t\t\t\tqueryParam(Constants.FILTER.CURRENCY, Currency.EUR).\n \t\tauth().preemptive().\n \t\tbasic(Constants.AUTHENTICATION.USERNAME, Constants.AUTHENTICATION.PASSWORD). \n \twhen().\n get(Constants.URI.ENDPOINT).\n then().\n \t\t\tassertThat().\n \t\t\tstatusCode(Constants.RESPONSE_CODES.OK).\n \t\t\tcontentType(ContentType.JSON).\n \t\t\textract().\n \t\t\tpath(String.format(\"[%s].id\", id)); \n System.out.println(String.format(\"id of first record which action is: '%s' and currency Code is '%s': %s\", Actions.payment, Currency.EUR,response));\n \n\t\t }", "title": "" }, { "docid": "08114bc30b8ed4c0e8c2f1a80ea977b6", "score": "0.4655217", "text": "List<RequestIP> selectByExample(RequestIPExample example);", "title": "" }, { "docid": "fb20e7bab8323831c7adf67c23a1b68c", "score": "0.46541423", "text": "ResultVO getIconData(String iconId) throws Exception;", "title": "" }, { "docid": "e8ac9be9a02d9ecb5e6b4aa0e13b236e", "score": "0.46513227", "text": "public int contarPorCriterio(Map<String, String> filters)\r\n/* 48: */ {\r\n/* 49:106 */ return this.creditoTributarioSRIDao.contarPorCriterio(filters);\r\n/* 50: */ }", "title": "" }, { "docid": "417f795a20dba13fa92b16698b3e6f7a", "score": "0.4642538", "text": "public double MediaStagioniFilter() {\t\n\tdouble mediastagioni=statsgenerali.MediaStagioniSalvate(true);\n\treturn mediastagioni;\t\n\t\n}", "title": "" }, { "docid": "e7f46978a2fdf6ef82e36e28d2e1405b", "score": "0.4640961", "text": "@Override\n public void filter(final Filter filter) {\n\n }", "title": "" }, { "docid": "8d89efae53457c990174a49eb76cbc0f", "score": "0.46366927", "text": "List<Mingxi> selectByExample(MingxiExample example);", "title": "" }, { "docid": "3ef8f9febbe604c3776c0674dbb061e2", "score": "0.46333513", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getPixIdBytes() {\n java.lang.Object ref = pixId_;\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 pixId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "815e8f9c6ce903dd63883aa3dffd8e3b", "score": "0.46302274", "text": "public void setIn(com.comverse.www.InFilter param){\n \n clearAllSettingTrackers();\n localInTracker = param != null;\n \n this.localIn=param;\n \n\n }", "title": "" } ]
39c51e5b5330d3c75f7c6629acde8cff
Test of setCaller method, of class PhoneConvRecord.
[ { "docid": "46b1a2455ca1beff0a5813752d1e2531", "score": "0.8068931", "text": "@Test\n public void testSetCaller() {\n System.out.println(\"setCaller\");\n String c = \"TestCaller\";\n PhoneConvRecord instance = new PhoneConvRecord();\n instance.setCaller(c);\n assertEquals(c, instance.getWhoCalled());\n }", "title": "" } ]
[ { "docid": "f2da67ccd2fce9809692956560eef9e2", "score": "0.6333627", "text": "public void setPhone(java.lang.String param){\n localPhoneTracker = param != null;\n \n this.localPhone=param;\n \n\n }", "title": "" }, { "docid": "f2da67ccd2fce9809692956560eef9e2", "score": "0.6333627", "text": "public void setPhone(java.lang.String param){\n localPhoneTracker = param != null;\n \n this.localPhone=param;\n \n\n }", "title": "" }, { "docid": "f2da67ccd2fce9809692956560eef9e2", "score": "0.6333627", "text": "public void setPhone(java.lang.String param){\n localPhoneTracker = param != null;\n \n this.localPhone=param;\n \n\n }", "title": "" }, { "docid": "f2da67ccd2fce9809692956560eef9e2", "score": "0.6333627", "text": "public void setPhone(java.lang.String param){\n localPhoneTracker = param != null;\n \n this.localPhone=param;\n \n\n }", "title": "" }, { "docid": "817a74001a4ca3ddcaa374907625045a", "score": "0.6158619", "text": "protected final void ensureCallerInLocalThread() {\n\t\t\tCapacities.CALLER.set(this.caller);\n\t\t}", "title": "" }, { "docid": "27cdb3e2430a02e3da46d18492fa3717", "score": "0.58940375", "text": "@Test\n public void testGetWhoCalled() {\n System.out.println(\"getWhoCalled\");\n PhoneConvRecord instance = this.setupObject();\n String expResult = \"TestWho\";\n String result = instance.getWhoCalled();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "b0eb1c2bd1c52276eab898c926ac065a", "score": "0.57529473", "text": "@Override\n public void calling(long phoneNum) {\n System.out.println(\"Samsung is calling \"+phoneNum);\n }", "title": "" }, { "docid": "c57537c3883c3dbb4a78eba7f48608a3", "score": "0.56892276", "text": "public Caller(String name, String phoneNumber)\r\n\t{\r\n\t\tthis.name = name;\r\n\t\tthis.phoneNumber = phoneNumber;\r\n\t\tthis.callDateTime = new Date();\r\n\t}", "title": "" }, { "docid": "ec58eb53f28f791d3641ba191d5360b2", "score": "0.5643446", "text": "@Test\n public void testGetAmCallerMessage() {\n System.out.println(\"getAmCallerMessage\");\n AnsweringMachine am = new AnsweringMachine();\n Phone cp = new Phone();\n Phone up = new Phone(); \n LogicController instance = new LogicController(am, cp, up);\n String expResult = am.getCallerMessage();\n String result = instance.getAMCallerMessage();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "title": "" }, { "docid": "e5f7764dd912b1929b58766c9f43f422", "score": "0.5603122", "text": "@Override\n\tpublic boolean makeCall(Contact contact) {\n\t\tLog.d(\"RituNavi\",contact.getName()+contact.getNumber());\n\t Intent intent = new Intent();\n\t intent.putExtra(\"number\", contact.getNumber());\n\t intent.setAction(\"android.intent.action.TXZ_CALL_PHONE\");\n\t MyTestApplication.getInstance().getApplicationContext().sendBroadcast(intent);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9d83bf7e5d20a458df4a3456afb0ea83", "score": "0.55967796", "text": "public void setCallphone(String callphone) {\n this.callphone = callphone == null ? null : callphone.trim();\n }", "title": "" }, { "docid": "082a0e0c1c73370a4713c2ddd7c4bf08", "score": "0.5574746", "text": "@SuppressWarnings(\"static-method\")\n\t\tprotected final void resetCallerInLocalThread() {\n\t\t\tCapacities.CALLER.remove();\n\t\t}", "title": "" }, { "docid": "67b246306f55051ae246b412706cbbfd", "score": "0.5552231", "text": "@Test\n public void testSetFirstName() {\n System.out.println(\"setFirstName\");\n String fn = \"TestName\";\n PhoneConvRecord instance = new PhoneConvRecord();\n instance.setFirstName(fn);\n assertEquals(fn, instance.getFirstName());\n }", "title": "" }, { "docid": "6d6b3854fb823820b95ed6986567d39a", "score": "0.5527686", "text": "void xsetFromNumber(com.callfire.api.data.PhoneNumber fromNumber);", "title": "" }, { "docid": "03a3af57b23d238a1af110e9692f50d5", "score": "0.55055255", "text": "public void setContactcall(String contactcall) {\r\n this.contactcall = contactcall;\r\n }", "title": "" }, { "docid": "ff5bdffb37f49bd0e674ce64f5150cf8", "score": "0.545561", "text": "public void setPhone(java.lang.Object phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "d6b3b9a577eba78a852eac571fafaad1", "score": "0.54346305", "text": "@Test\n public void testCall() {\n System.out.println(\"call\");\n AnsweringMachine am = new AnsweringMachine();\n Phone cp = new Phone();\n Phone up = new Phone(); \n LogicController instance = new LogicController(am, cp, up);\n instance.call();\n String expResult = \"temp\";\n String result = instance.getAMCallerMessage();\n assertEquals(expResult, result);\n \n \n }", "title": "" }, { "docid": "9a4efc7f9129f92e43893b39f808f45c", "score": "0.5433807", "text": "@Override\n public void openCaller(String number) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(String.format(\"tel:%s\", number)));\n startActivity(intent);\n }", "title": "" }, { "docid": "2c16ecd127ee5b99f22969c0757bb730", "score": "0.542707", "text": "void call_person(long phone_number) {\r\n System.out.println(\"Calling +91 \" + phone_number);\r\n }", "title": "" }, { "docid": "8e87cb22971ec0305dcaa1c20145c2a9", "score": "0.54024893", "text": "@Test\n public void testSetPCID() {\n System.out.println(\"setPCID\");\n int pcid = 0;\n PhoneConvRecord instance = new PhoneConvRecord();\n instance.setPCID(pcid);\n assertEquals(pcid, instance.getPCID());\n }", "title": "" }, { "docid": "eca028b9b62e1400b7c3d8d318610ab2", "score": "0.5393565", "text": "@Override public void noteCallSite(IfaceLocation loc)\n{\n if (loc == null) return;\n\n synchronized (call_set) {\n call_set.add(loc);\n }\n}", "title": "" }, { "docid": "96afa47a1abb5fe954992243a91f4d8a", "score": "0.53888583", "text": "public String getCallphone() {\n return callphone;\n }", "title": "" }, { "docid": "f01a99f616ef830527c206a5433af3ec", "score": "0.537035", "text": "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n contactMethodCase_ = 6;\n contactMethod_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f894e7946044c4aac04926f90016f2fb", "score": "0.5368578", "text": "public void setPhoneNumber(PhoneNumber[] param) {\n validatePhoneNumber(param);\n\n localPhoneNumberTracker = param != null;\n\n this.localPhoneNumber = param;\n }", "title": "" }, { "docid": "ac76bfa02036a5b4614c4efd7b6179eb", "score": "0.5363072", "text": "public void setFamilyPhone(java.lang.String param) {\r\n\r\n\t\t\tif (param != null) {\r\n\t\t\t\t// update the setting tracker\r\n\t\t\t\tlocalFamilyPhoneTracker = true;\r\n\t\t\t} else {\r\n\t\t\t\tlocalFamilyPhoneTracker = true;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tthis.localFamilyPhone = param;\r\n\r\n\t\t}", "title": "" }, { "docid": "74772e497fab34130d8c6a9de11fec2b", "score": "0.5358799", "text": "public LinphoneCall getCurrentCall();", "title": "" }, { "docid": "45cd49fe8e89d0b6c87fc244c507b696", "score": "0.5352333", "text": "public void setPhone(int phone)\r\n {\r\n this.phone = phone;\r\n }", "title": "" }, { "docid": "81bc941a331dcf4d5fbe9663fb60026a", "score": "0.5351724", "text": "public void setOriginatorPhone(final String originatorPhone) {\n refuseFurtherComments();\n this.originatorPhone = originatorPhone;\n }", "title": "" }, { "docid": "f1afa97b501b8bbd8230dc8c40efc72a", "score": "0.5341737", "text": "public void addCall (Call newCall, String customerId) throws RecordNotFoundException;", "title": "" }, { "docid": "27b6327f3159cc88a8d2a14e3920c19f", "score": "0.53277665", "text": "LinphoneCall startReferedCall(LinphoneCall call, LinphoneCallParams params);", "title": "" }, { "docid": "440c36a96665ca0e7ed9f4ed0ad33ef1", "score": "0.53205216", "text": "public void setPhoneNum(String phoneNum)\r\n/* 63: */ {\r\n/* 64:55 */ this.phoneNum = phoneNum;\r\n/* 65: */ }", "title": "" }, { "docid": "396a516ee77593779899072731131899", "score": "0.52933794", "text": "void transferCall(LinphoneCall call, String referTo);", "title": "" }, { "docid": "d87cabea3e6cda2cc30c52779444527f", "score": "0.5292772", "text": "public void setPhone(PhoneNumber phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "9af4328464ec61e34f796604114e53a7", "score": "0.52926886", "text": "public void setPhone(final String tel) {\n phone = tel;\n }", "title": "" }, { "docid": "e4bb913e84257d1bbd05a186d9acbcb4", "score": "0.5285866", "text": "public void setPhone(String newPhone)\n {\n this.phone = newPhone;\n }", "title": "" }, { "docid": "393bf888e45caf786dc035b56d48a03e", "score": "0.5273093", "text": "public void setPhone(String phone) {\r\n this.phone = phone;\r\n }", "title": "" }, { "docid": "393bf888e45caf786dc035b56d48a03e", "score": "0.5273093", "text": "public void setPhone(String phone) {\r\n this.phone = phone;\r\n }", "title": "" }, { "docid": "b5f5951a85e1e5c19f726f7245e764ef", "score": "0.5266299", "text": "public void setDelegatedBy(int param){\r\n \r\n this.localDelegatedBy=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "1a56a75d017bc75736915494ea93513d", "score": "0.5264016", "text": "protected void onIncomingCallStarted(Context ctx, String number, Date start){}", "title": "" }, { "docid": "d28c363be49f9bbb5ab03e619ade7635", "score": "0.5261039", "text": "@Override\n\tpublic String getCallNumber() {\n\t\treturn callnumber;\n\t}", "title": "" }, { "docid": "aac48e05bc67382ca895ff82320f9fd9", "score": "0.5256141", "text": "public static MOOObjRef caller_perms() throws MOOException\r\n {\r\n MOOObjRef ours = MOOProgrammerLogic.popProgrammer();\r\n MOOObjRef caller = MOOProgrammerLogic.getProgrammerRef();\r\n MOOProgrammerLogic.pushProgrammer(ours);\r\n if (caller == null)\r\n caller = MOOObjRef.NONE;\r\n return caller;\r\n }", "title": "" }, { "docid": "2966de38bb10556f56a358b5084b0f5c", "score": "0.52541625", "text": "public void setPhone(String phone) {\r\n\t\tthis.phone = phone;\r\n\t}", "title": "" }, { "docid": "64ba07908cc48e553d36688ac41bf8d5", "score": "0.5252813", "text": "public void setPhone(String phone) { this.phone = phone; }", "title": "" }, { "docid": "e743dd63faa078d3f5552ec90a696998", "score": "0.5245681", "text": "void addPhoneCall(String customerName, PhoneCall call, AsyncCallback<Void> call_added_successfully);", "title": "" }, { "docid": "5b57f9074da3873f85ad7665eba3283b", "score": "0.52411294", "text": "public void setPhone(String phone)\n\t{\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "1609a2405fa3521b3afde615ec8ad2f3", "score": "0.5237444", "text": "protected void onIncomingCallStarted(Context ctx, String number, long start) {\n callType = PreferenceHelper.CALL_TYPE_INCOMING;\n startRecording(ctx);\n }", "title": "" }, { "docid": "d929791deaf3db16ef01a17085db4d89", "score": "0.5225482", "text": "@java.lang.Override\n public boolean hasPhone() {\n return contactMethodCase_ == 6;\n }", "title": "" }, { "docid": "050ac268ad02d89b6801108630955838", "score": "0.52167964", "text": "@Override\n\tpublic String getCallDetails() {\n\t\treturn phoneSpecification.getCallDetails()+\", Hd Call support added\";\n\t}", "title": "" }, { "docid": "bc903e32a240afe7de5f8a32b248d232", "score": "0.52148503", "text": "public void xsetWorkPhone(com.callfire.api.data.PhoneNumber workPhone)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.callfire.api.data.PhoneNumber target = null;\n target = (com.callfire.api.data.PhoneNumber)get_store().find_attribute_user(WORKPHONE$10);\n if (target == null)\n {\n target = (com.callfire.api.data.PhoneNumber)get_store().add_attribute_user(WORKPHONE$10);\n }\n target.set(workPhone);\n }\n }", "title": "" }, { "docid": "c6d2b90fde5e9b2b64a104c6ea60c43d", "score": "0.52122605", "text": "public void setContactPerson(\n BusinessDocumentMessageHeaderPartyContactPerson param) {\n localContactPersonTracker = param != null;\n\n this.localContactPerson = param;\n }", "title": "" }, { "docid": "279250701719dc04134660bb0f32ff0f", "score": "0.52077883", "text": "void xsetToNumber(com.callfire.api.data.PhoneNumber toNumber);", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.5207439", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.5207439", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.5207439", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.5207439", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.5207439", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.5207439", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "a397636d52c52e950cbe7a5eb2d8bc88", "score": "0.52010196", "text": "public String getContactcall() {\r\n return contactcall;\r\n }", "title": "" }, { "docid": "b6f7b8573f992b9c825a4ed8977cda86", "score": "0.52002025", "text": "public void setPhone( String phone ) {\n this.phone = phone;\n }", "title": "" }, { "docid": "c14cc56de9a6599f6f5be8f3ead1321f", "score": "0.5199997", "text": "@Override\r\n\tpublic void setTelephone(String telephone) {\n\t\tsuper.setTelephone(telephone);\r\n\t}", "title": "" }, { "docid": "5a2524efe31b25713ceb08658419c161", "score": "0.51885164", "text": "public com.diviso.graeshoppe.order.avro.Order.Builder setCustomerPhone(long value) {\n validate(fields()[13], value);\n this.customerPhone = value;\n fieldSetFlags()[13] = true;\n return this;\n }", "title": "" }, { "docid": "7da27e0870fbd7f32d54ab8fd7593cdb", "score": "0.51501465", "text": "public void dial(int phoneNumber);", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.5139433", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.5139433", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.5139433", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.5139433", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "2135efbc2eb17c8ffdd73a56cad40eb3", "score": "0.5132516", "text": "public void setCheckPhone(String checkPhone) {\n this.checkPhone = checkPhone;\n }", "title": "" }, { "docid": "bf86c8b0e0cb928e4bb747794b43a5c1", "score": "0.5126045", "text": "protected void onIncomingCallStarted(Context ctx, String number, Date start,int state) {\n }", "title": "" }, { "docid": "af9d384bd721b08a2874805758c565c8", "score": "0.512322", "text": "@Override\n\tpublic void setTelephone(String telephone) {\n\t\tsuper.setTelephone(telephone);\n\t}", "title": "" }, { "docid": "0f591a2c1328d179bd0a3a59f39d3b08", "score": "0.5121044", "text": "@Override\n\t\t\tpublic void callNotAnswered(String destination, Agi extension) {\n\t\t\t\tCaller.this.log.log(Level.WARNING, \"Giving up to call \" + destination + \". The number is perhabs wrong.\");\n\t\t\t\tfor (CallerListener listener : Caller.this.listeners) {\n\t\t\t\t\tlistener.testCallFinished();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "ee685c2fcd24623590cfbe25e204596b", "score": "0.51206213", "text": "public String getCallNumber();", "title": "" }, { "docid": "337213fd8e7b543e12ab49cd522b42c3", "score": "0.5107567", "text": "public final void setPhone(java.lang.String phone)\n\t{\n\t\tsetPhone(getContext(), phone);\n\t}", "title": "" }, { "docid": "27cf7b0246f7b6b8c1fcf34c31023d50", "score": "0.5103917", "text": "public void setTelephone(String telephone) {\r\n this.telephone = telephone;\r\n }", "title": "" }, { "docid": "ac06469a986b0980b0d0d826e6498a27", "score": "0.5083428", "text": "public void showCallSelector(String recipientName, String recipientNumber) {\n AlertDialog.Builder alert = new AlertDialog.Builder(getContext());\n alert.setTitle(\"Contact\");\n View innerView = LayoutInflater.from(alert.getContext()).inflate(R.layout.caller_manu_snippet, null);\n TextView recipientNameView = innerView.findViewById(R.id.recipient_name);\n TextView recipientNumberView = innerView.findViewById(R.id.recipient_number);\n Button recipientCallButton = innerView.findViewById(R.id.recipient_call_button);\n Button recipientSMSButton = innerView.findViewById(R.id.recipient_sms_button);\n Button supportCallButton = innerView.findViewById(R.id.support_call_button);\n\n recipientNameView.setText(recipientName);\n recipientNumberView.setText(recipientNumber);\n\n recipientCallButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n openCaller(recipientNumber);\n }\n });\n recipientSMSButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent smsIntent = new Intent(android.content.Intent.ACTION_VIEW);\n smsIntent.setType(\"vnd.android-dir/mms-sms\");\n smsIntent.putExtra(\"address\", recipientNumber);\n smsIntent.putExtra(\"sms_body\", R.string.default_sms_message);\n try {\n getContext().startActivity(Intent.createChooser(smsIntent, \"SMS:\"));\n } catch (NullPointerException e) {\n Log.e(TAG, e.getMessage());\n }\n }\n });\n supportCallButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n controller.getSupportNumber();\n }\n });\n alert.setView(innerView);\n alert.show();\n }", "title": "" }, { "docid": "7c1eea577b656b0307f30be4214e9788", "score": "0.50729513", "text": "public void setCallContext(org.apache.axiom.om.OMElement param){\n \n this.localCallContext=param;\n }", "title": "" }, { "docid": "188b0e2228cc503fb8e35f33cf3b41a7", "score": "0.5065229", "text": "private void requestCallPermission(){\n ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CALL_PHONE},1);\n }", "title": "" }, { "docid": "70ceddf85a704edb8626b0e3e070f82f", "score": "0.5064342", "text": "public static boolean checkPhoneCallPermission(Activity activity, int reqcode){\n\n if(ContextCompat.checkSelfPermission(activity,Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n ActivityCompat.requestPermissions(activity, new String[]{Manifest.permission.CALL_PHONE}, reqcode);\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "e2d27535c67fd379fe28e14293bf58d6", "score": "0.5063484", "text": "public Builder setPhoneBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n contactMethodCase_ = 6;\n contactMethod_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a2499e92d67ce37c8a462247b2589724", "score": "0.5058762", "text": "public void testSetFrom()\r\n {\r\n course.setFrom(1111);\r\n assertEquals(1111, course.getFrom());\r\n }", "title": "" }, { "docid": "84fda27986be781e324d1731170294dd", "score": "0.5055179", "text": "void setCallManager(CallManager cm) {\n mCM = cm;\n }", "title": "" }, { "docid": "f1c4f7de923b44a66723b3aa8a2aa352", "score": "0.5054374", "text": "public void setPhone(String p)\n {\n this.phoneNumber = p;\n \n\n }", "title": "" }, { "docid": "59a9a1df0e5684f0125214ff38eba97b", "score": "0.50506437", "text": "public void setBusinessCallee() {\n\t\tDocument doc = this.businessdoc; \n\t\tString caller=this.caller,callee=this.callee,caller_=null,callee_=null;\n\n\t\tNode child=null;\n\t\tElement rootElement = doc.getDocumentElement();\n\t\tint flag=1;\n NodeList children = doc.getElementsByTagName(\"BIZ\");\n for (int i = 0; i < children.getLength(); i++) {\n child = children.item(i);\n Element e = (Element)child;\n caller_ = e.getAttribute(\"user\");\n NodeList elemNodeList = e.getElementsByTagName(\"partner\");\n if (caller_.equals(caller)) { \n\t\t\t\tif (elemNodeList.getLength()==2) {\n \t //Up to 2!\n\t\t\t\t\tthis.business_alert = true;\n \t return;\n\t }\n\t\t\t\tflag=2;\n\t\t \t\tfor (int j=0; j<elemNodeList.getLength(); j++) {\n callee_ = elemNodeList.item(j).getTextContent();\n if (callee_.equals(callee)) {\n\t\t\t\t\t\treturn;\n }\n };\n }\n\t\t\tif (flag==2 || flag==0) break;\n };\n\t\tif (flag==1) { //record doesn't exist at all\n\t\t\tNode childNode = doc.createElement(\"BIZ\");\n \t\t\trootElement.appendChild(childNode);\n\t\t\tAttr newcaller = doc.createAttribute(\"user\");\n\t\t\tnewcaller.setValue(caller);\n\t\t\tElement e = (Element) childNode;\n\t\t\te.setAttributeNode(newcaller);\n\t\t\tNode newcallee = doc.createElement(\"partner\");\n\t\t\te.appendChild(newcallee);\n\t\t\tnewcallee.setTextContent(callee);\n\t\t}\n\t\telse if (flag==2) { //Record exists but not with this element\n\t\t\tElement e = (Element) child;\n\t\t\tNode newcallee = doc.createElement(\"partner\");\n\t\t\te.appendChild(newcallee);\n newcallee.setTextContent(callee);\n\t\t};\n try {\n PrintXML p = new PrintXML(doc, this.businessf);\n p.updateXML();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\t\treturn; \n\t}", "title": "" }, { "docid": "6d81c63af692cd96e2ae72756482d06f", "score": "0.5044897", "text": "private void makeCall(){\n String number = parentPhone.getText().toString();\n if (number.trim().length() > 0) {\n\n if (ContextCompat.checkSelfPermission(getActivity(),\n Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{Manifest.permission.CALL_PHONE}, REQUEST_CALL);\n } else {\n String dial = \"tel:\" + number;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(dial)));\n }\n\n } else {\n Toast.makeText(getActivity(), \"Phone number not provided\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "0a79ffd565bc23a3ca82ad0266fb95b6", "score": "0.50389", "text": "public void setTelephone(String telephone) {\n this.telephone = telephone;\n }", "title": "" }, { "docid": "129dda75653a14bbfa1cbf126a5f0927", "score": "0.50387466", "text": "public void setPhoneNum(String newPhoneNum){\n phoneNum = newPhoneNum;\n }", "title": "" }, { "docid": "179025767ce897fd08fa813b3de7a256", "score": "0.5029855", "text": "public void setReceiverPhone(String receiverPhone) {\n this.receiverPhone = receiverPhone == null ? null : receiverPhone.trim();\n }", "title": "" }, { "docid": "0e1b620d2de36c6e7fab272026cf909c", "score": "0.50235677", "text": "public void Call_phone() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && checkSelfPermission(Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.CALL_PHONE}, PERMISSIONS_REQUEST_PHONE_CALL);\n } else {\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + mobile_number));\n startActivity(intent);\n }\n }", "title": "" }, { "docid": "62a181b319a5be5943d1fe19a1cfaacc", "score": "0.50197405", "text": "public void xsetMobilePhone(com.callfire.api.data.PhoneNumber mobilePhone)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.callfire.api.data.PhoneNumber target = null;\n target = (com.callfire.api.data.PhoneNumber)get_store().find_attribute_user(MOBILEPHONE$12);\n if (target == null)\n {\n target = (com.callfire.api.data.PhoneNumber)get_store().add_attribute_user(MOBILEPHONE$12);\n }\n target.set(mobilePhone);\n }\n }", "title": "" }, { "docid": "0f91c82a477011c5a8a1c8e6d6a840e3", "score": "0.5016618", "text": "public void callStateChanged(CallChangeEvent evt)\n {\n }", "title": "" }, { "docid": "3ae072f6210b6b3a586c032e77cab942", "score": "0.50138044", "text": "public boolean hasPhone() {\n return contactMethodCase_ == 6;\n }", "title": "" }, { "docid": "ff8eb7354a2c83485a402957f7788c78", "score": "0.5013559", "text": "private void getCallerDetails() {\n //StackTraceElement stackTraceElement = Thread.currentThread().getStackTrace()[4];\n StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();\n String className = \"\";\n String methodName = \"\";\n int lineNumber = 0;\n for (int i=4; i < stackTraceElements.length; i++) {\n if (!stackTraceElements[i].getClassName().contains(\"Logger\")) {\n className = stackTraceElements[i].getClassName();\n methodName = stackTraceElements[i].getMethodName();\n lineNumber = stackTraceElements[i].getLineNumber();\n break;\n }\n }\n callerDetails.clear();\n callerDetails.className = className;\n callerDetails.methodName = methodName;\n callerDetails.lineNumber = String.valueOf(lineNumber);\n }", "title": "" }, { "docid": "f0aad5f96853627627be90bb0755e585", "score": "0.5011865", "text": "public void setPhone(String p){\n this.phone = p;\n }", "title": "" }, { "docid": "f23c2bf385f46edf80f92d1ba74f0a82", "score": "0.5005168", "text": "public void setContactTelephone(String contactTelephone) {\r\n this.contactTelephone = contactTelephone;\r\n }", "title": "" }, { "docid": "8d524b20c253c96af9159a59ac942501", "score": "0.49980628", "text": "public void setOfficePhone(java.lang.String param) {\r\n\r\n\t\t\tif (param != null) {\r\n\t\t\t\t// update the setting tracker\r\n\t\t\t\tlocalOfficePhoneTracker = true;\r\n\t\t\t} else {\r\n\t\t\t\tlocalOfficePhoneTracker = true;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tthis.localOfficePhone = param;\r\n\r\n\t\t}", "title": "" }, { "docid": "c07c423b1586e6e27ce35a56d96c1b44", "score": "0.49924535", "text": "private void callContact(String name, String phoneNum)\r\n {\r\n if (DEBUG)\r\n {\r\n String message = \"Calling \" + name;\r\n Toast toast = Toast.makeText(MainActivity.this, message, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n\r\n Uri uri = Uri.parse(\"tel:\" + phoneNum);\r\n Intent intent = new Intent(Intent.ACTION_CALL, uri);\r\n startActivity(intent);\r\n }", "title": "" }, { "docid": "43f65527d8bbe94b4e9a87c3582f24f5", "score": "0.49919713", "text": "public void setFaxNumber(PhoneNumber[] param) {\n validateFaxNumber(param);\n\n localFaxNumberTracker = param != null;\n\n this.localFaxNumber = param;\n }", "title": "" }, { "docid": "4f76676b72cc0422083113ed94a041a0", "score": "0.4986204", "text": "public String getOriginatorPhone() {\n return originatorPhone;\n }", "title": "" }, { "docid": "d1b4000b0a273230db72b9949cc5ffcc", "score": "0.49854302", "text": "void beforeCall();", "title": "" }, { "docid": "8bc1670a4426febbdf50d715de302fa6", "score": "0.49832597", "text": "public void setPhone(java.lang.String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "c9314bfa8ffa1fff1bb932a42f52de5b", "score": "0.497543", "text": "public void makeCall() {\n String phoneNumber = phoneNoTextField.getText();\n int duration = getDuration();\n int displayNumber = getDisplayNo();\n \n if(phoneNumber==\"\"){\n JOptionPane.showMessageDialog(frame, \"Phone number is required\");\n }else{\n if (displayNumber != -1 && displayNumber<gadgetList.size()) {\n Mobile ourMobile = (Mobile) gadgetList.get(displayNumber);\n ourMobile.MakeCall(phoneNumber, duration);\n JOptionPane.showMessageDialog(frame, \"Make call performed check console\");\n }else{\n JOptionPane.showMessageDialog(frame, \"Invalid Display no\");\n }\n }\n }", "title": "" } ]
f347b5285886489b0c8a2306bbcd78d9
/ bit 0 could be latch direction like in yiear
[ { "docid": "1ae1739188e11eafd28a0d527ab8dc3c", "score": "0.0", "text": "public void handler(int offset, int data) {\n VLM5030_ST((data >> 1) & 1);\n VLM5030_RST((data >> 2) & 1);\n }", "title": "" } ]
[ { "docid": "81e84a135aa84fb06fc9332914f9dc49", "score": "0.61082053", "text": "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "title": "" }, { "docid": "e89a6286e8e162b569fa031eaca52783", "score": "0.60381246", "text": "public void landFromLatch() {\n }", "title": "" }, { "docid": "40a7310443fcc2ec731723b966217635", "score": "0.5999312", "text": "public abstract void mo32006dL(boolean z);", "title": "" }, { "docid": "986c7ddb6bae74e2da3738a85cbd112b", "score": "0.5959935", "text": "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "title": "" }, { "docid": "5676a36f7e0370875008bf51ecfeb47f", "score": "0.57349354", "text": "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "title": "" }, { "docid": "e45d33905ec32e80ab2dc123a4744c28", "score": "0.5687915", "text": "public abstract void mo32007dM(boolean z);", "title": "" }, { "docid": "5afeba9b843cb1839883af005f0ad649", "score": "0.5575182", "text": "public boolean canFrameConnectOut(int dir)\r\n/* 40: */ {\r\n/* 41: 31 */ return (this.StickySides & 1 << dir) > 0;\r\n/* 42: */ }", "title": "" }, { "docid": "b334f6815d5914118390c9663c4b4a48", "score": "0.55722487", "text": "void mo21071b(boolean z);", "title": "" }, { "docid": "145c638b8b0b112382a79e65e902c8f6", "score": "0.54952365", "text": "void mo22049es(boolean z);", "title": "" }, { "docid": "31f575da275989a74fe962da840a572a", "score": "0.5485071", "text": "public void setZero() {\n\t\tset((byte) (get() | (1 << 7)));\n\t}", "title": "" }, { "docid": "b8104748015e45b83767a7e1530fdab5", "score": "0.54804206", "text": "private void nextState() {\n int x;\n int y;\n y = st3;\n x = (st0 & MASK) ^ st1 ^ st2;\n x ^= (x << SH0);\n y ^= (y >>> SH0) ^ x;\n st0 = st1;\n st1 = st2;\n st2 = x ^ (y << SH1);\n st3 = y;\n st1 ^= parameter.getMat1(y);\n st2 ^= parameter.getMat2(y);\n }", "title": "" }, { "docid": "000587de27afd85875b1d1e836571a5f", "score": "0.5480264", "text": "protected long setBit(long word, boolean flag, long position) {\n\t\tif (!flag) {\n\t\t\treturn word & (~(1L << position));\n\t\t}\n\t\treturn word | (1L << position);\n\t}", "title": "" }, { "docid": "58c706d49665fd8d914142107508b85c", "score": "0.5479748", "text": "public abstract void mo9254f(boolean z);", "title": "" }, { "docid": "103a939c8a876b381239f3e9756a2ceb", "score": "0.54770577", "text": "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "title": "" }, { "docid": "5a6e6a377709d8df81bf53ae1c77bdfb", "score": "0.5471681", "text": "protected final void operationLDY(final int data) {\r\n this.y = data;\r\n this.zeroFlag = this.y == 0;\r\n this.signFlag = this.y >= 0x80;\r\n }", "title": "" }, { "docid": "5383fdd975727057457fd32911824bfa", "score": "0.544808", "text": "boolean m19264c() {\n return (getState() & 12) != 0;\n }", "title": "" }, { "docid": "cde323f2c22d55d9048f8b4d5cd8c895", "score": "0.5426331", "text": "private boolean poleSwitchEngaged(){\n return true; //poleSwitch.get();\n }", "title": "" }, { "docid": "ba82fd5f68575dad7a7066e0a0fe21dc", "score": "0.54210514", "text": "public abstract boolean testRightmostBit();", "title": "" }, { "docid": "d8c690adc478e0df7a13ce3c402b58fe", "score": "0.54143184", "text": "static int toggleBit(int n, int pos){\n return n ^ (1<<pos);\n }", "title": "" }, { "docid": "051a905357c7ee6b964881a6158062c9", "score": "0.540885", "text": "int inputBit(){\n if (position == 0)\r\n try{\r\n buf = System.in.read();\r\n if (buf < 0){ return -1;\r\n }\r\n \r\n position = 0x80;\r\n }catch(IOException e){\r\n System.err.println(e);\r\n return -1;\r\n }\r\n int t = ((buf & position) == 0) ? 0 : 1;\r\n position >>= 1; \r\n return t;\r\n }", "title": "" }, { "docid": "87fc0458bdfc8328a3421ffcc5a713ee", "score": "0.54022247", "text": "protected abstract boolean shift();", "title": "" }, { "docid": "5c4792d3aa8796de5ef63cc287c9bbdb", "score": "0.53994286", "text": "public abstract void mo32005dK(boolean z);", "title": "" }, { "docid": "ee13786f26ecb00dea0f5e79fea2f75f", "score": "0.53985536", "text": "public void latch(boolean latched) {\n if (latched) {\n latchSolenoid.set(false); //false means latch is pressurized\n } else {\n latchSolenoid.set(true); //true means latch is NOT pressurized\n }\n\n }", "title": "" }, { "docid": "2d6a69d77234b213b4163cf10d8f2d05", "score": "0.53895307", "text": "final void set_syncword(int syncword0) {\n syncword = syncword0 & 0xFFFFFF3F;\n single_ch_mode = ((syncword0 & 0x000000C0) == 0x000000C0);\n }", "title": "" }, { "docid": "6c6c682c5684b58ab63d161c782d202a", "score": "0.5389384", "text": "static int toggleBit(int n){\n return n & (n-1);\n }", "title": "" }, { "docid": "42da0aab13d3c2d2e73e4f200ca10c69", "score": "0.53854746", "text": "void mo1492b(boolean z);", "title": "" }, { "docid": "129e5317c3cdbf9d57b4a584aed19be1", "score": "0.53836966", "text": "public void switchAtm(boolean flag);", "title": "" }, { "docid": "c2db7cac086d0e83c76367fec1a65011", "score": "0.5379433", "text": "private static int runStateOf(int c) { return c & ~CAPACITY; }", "title": "" }, { "docid": "ffcfdbfd2975b6eb7c47dc181ed36008", "score": "0.53734124", "text": "private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}", "title": "" }, { "docid": "e027d8c9d71274ef3e8927a2a27325a4", "score": "0.53651685", "text": "public void steady(){\n if(steady){\n if(!bellySwitch.get()) {\n leftMotor.set(-.3);\n rightMotor.set(-.3);\n }else {\n leftMotor.set(0);\n rightMotor.set(0);\n } \n }\n }", "title": "" }, { "docid": "73ffa5c8a389c7efdb7be346a5abb6d1", "score": "0.53607124", "text": "protected boolean getBit(long word, long position) {\n\t\treturn (word & (1L << position)) != 0;\n\t}", "title": "" }, { "docid": "7b26720c956f49f35bf41f426746edda", "score": "0.53589743", "text": "public void setCarry() {\n\t\tset((byte) (get() | (1 << 4)));\n\t}", "title": "" }, { "docid": "acfc432ef2f29bcc40f0b01835e992ff", "score": "0.535607", "text": "void mo26249mh(boolean z);", "title": "" }, { "docid": "7f34c08b76b2acea05a94f87e757f1bc", "score": "0.53552353", "text": "private void updateZeroFlagOnComp(int register, int address){\r\n\t\tif(sim40.memory[register] == sim40.memory[address]){\r\n\t\t\tswitchOnFlag(0);\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tswitchOffFlag(0);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7333397059486ea1d31d742d92db0c1b", "score": "0.5330883", "text": "private void setDirection() {\r\n\t\tif (destinationFloor > initialFloor){\r\n\t\t\tdirection = 1;\r\n\t\t} else {\r\n\t\t\tdirection = -1;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8d6c86745bc3be5992df2e37b82c25db", "score": "0.532634", "text": "protected final void operationBIT(final int data) {\r\n this.signFlag = data >= 0x80;\r\n this.overflowFlag = (data & 0x40) > 0;\r\n this.zeroFlag = (this.ac & data) == 0;\r\n }", "title": "" }, { "docid": "d20e0454d30c8f583c607c3340896f5c", "score": "0.532414", "text": "void setLeftToRight(boolean ltor);", "title": "" }, { "docid": "6ef5edfe8391e52ce9d233acca364f91", "score": "0.5320166", "text": "public void mo97905b(boolean z) {\n }", "title": "" }, { "docid": "45189665f74ed2b954bc5f4c64daac7a", "score": "0.5315803", "text": "public boolean isInverted() {\n/* 59 */ return ((getData() & 0x8) != 0);\n/* */ }", "title": "" }, { "docid": "468ea499dd6b64e9f67cd2e292da40a1", "score": "0.53133386", "text": "protected void func_70628_a(boolean flag, int i) {\n/* 395 */ if (this.field_70170_p.field_73012_v.nextBoolean())\n/* 396 */ func_70099_a(ConfigItems.FLUX_CRYSTAL.func_77946_l(), this.field_70131_O / 2.0F); \n/* */ }", "title": "" }, { "docid": "9dd042b311417fe068a56694ea36f1be", "score": "0.53052896", "text": "public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}", "title": "" }, { "docid": "bd12ab7a23d372360cf0e14a604ce82b", "score": "0.5299859", "text": "public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}", "title": "" }, { "docid": "62ada3a0735c46c13e61d16cce372c42", "score": "0.5289267", "text": "public int step() {\n int lastBit = bitAt(0) ^ bitAt(currentIndex);\n char[] ch = lfsr1.toCharArray();\n for (int i = 0; i < lfsr1.length() - 2; i++) {\n ch[i] = ch[i + 1];\n }\n\n ch[lfsr1.length() - 2] = (char) (lastBit + '0');\n int temporary = lfsr1.length();\n lfsr1 = \"\";\n for (int i = 0; i < temporary; i++) {\n lfsr1 = lfsr1 + ch[i];\n }\n\n return lastBit;\n }", "title": "" }, { "docid": "bbb65602214943ab8e980b41c43daae0", "score": "0.52653694", "text": "public void setDirection(){\n\n if (gameStatus != demoPlay)\n client_sb.i_Button = direct;\n\n TankMoveDelay++;\n StarGun_GSR loc=(StarGun_GSR)client_sb.getGameStateRecord();\n\n if (TankMoveDelay >= 1 &&\n loc.getPlayerX() < StarGun_SB.PLAYER_RIGHT_BORDER &&\n\t loc.getPlayerX() > 0) {\n TankMoveDelay = 0;\n switch (direct) {\n\tcase StarGun_SB.DIRECT_LEFT:\n\t if (TankPos==0)TankPos=iTankAmount-1;\n\t else TankPos--;\n\t\t\t\t break;\n case StarGun_SB.DIRECT_RIGHT:\n\t if (TankPos==iTankAmount-1)TankPos=0;\n\t else TankPos++;\n\t\t\t\t break;\n }\n }\n }", "title": "" }, { "docid": "43d720c28472b503b5bf2e6cb5d838d6", "score": "0.52537715", "text": "private boolean m0(int[] r6, int[] r7) {\n /*\n r5 = this;\n boolean r0 = super.onStateChange(r6)\n android.content.res.ColorStateList r1 = r5.f10944b\n r2 = 0\n if (r1 == 0) goto L_0x0010\n int r3 = r5.O\n int r1 = r1.getColorForState(r6, r3)\n goto L_0x0011\n L_0x0010:\n r1 = 0\n L_0x0011:\n int r3 = r5.O\n r4 = 1\n if (r3 == r1) goto L_0x0019\n r5.O = r1\n r0 = 1\n L_0x0019:\n android.content.res.ColorStateList r1 = r5.f10947e\n if (r1 == 0) goto L_0x0024\n int r3 = r5.P\n int r1 = r1.getColorForState(r6, r3)\n goto L_0x0025\n L_0x0024:\n r1 = 0\n L_0x0025:\n int r3 = r5.P\n if (r3 == r1) goto L_0x002c\n r5.P = r1\n r0 = 1\n L_0x002c:\n android.content.res.ColorStateList r1 = r5.b0\n if (r1 == 0) goto L_0x0037\n int r3 = r5.Q\n int r1 = r1.getColorForState(r6, r3)\n goto L_0x0038\n L_0x0037:\n r1 = 0\n L_0x0038:\n int r3 = r5.Q\n if (r3 == r1) goto L_0x0043\n r5.Q = r1\n boolean r1 = r5.a0\n if (r1 == 0) goto L_0x0043\n r0 = 1\n L_0x0043:\n b.c.a.d.q.b r1 = r5.j\n if (r1 == 0) goto L_0x0052\n android.content.res.ColorStateList r1 = r1.f2389b\n if (r1 == 0) goto L_0x0052\n int r3 = r5.R\n int r1 = r1.getColorForState(r6, r3)\n goto L_0x0053\n L_0x0052:\n r1 = 0\n L_0x0053:\n int r3 = r5.R\n if (r3 == r1) goto L_0x005a\n r5.R = r1\n r0 = 1\n L_0x005a:\n int[] r1 = r5.getState()\n r3 = 16842912(0x10100a0, float:2.3694006E-38)\n boolean r1 = b0(r1, r3)\n if (r1 == 0) goto L_0x006d\n boolean r1 = r5.u\n if (r1 == 0) goto L_0x006d\n r1 = 1\n goto L_0x006e\n L_0x006d:\n r1 = 0\n L_0x006e:\n boolean r3 = r5.S\n if (r3 == r1) goto L_0x0088\n android.graphics.drawable.Drawable r3 = r5.w\n if (r3 == 0) goto L_0x0088\n float r0 = r5.d()\n r5.S = r1\n float r1 = r5.d()\n int r0 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))\n if (r0 == 0) goto L_0x0087\n r0 = 1\n r1 = 1\n goto L_0x0089\n L_0x0087:\n r0 = 1\n L_0x0088:\n r1 = 0\n L_0x0089:\n android.content.res.ColorStateList r3 = r5.X\n if (r3 == 0) goto L_0x0093\n int r2 = r5.T\n int r2 = r3.getColorForState(r6, r2)\n L_0x0093:\n int r3 = r5.T\n if (r3 == r2) goto L_0x00a4\n r5.T = r2\n android.content.res.ColorStateList r0 = r5.X\n android.graphics.PorterDuff$Mode r2 = r5.Y\n android.graphics.PorterDuffColorFilter r0 = b.c.a.d.n.a.a(r5, r0, r2)\n r5.W = r0\n goto L_0x00a5\n L_0x00a4:\n r4 = r0\n L_0x00a5:\n android.graphics.drawable.Drawable r0 = r5.m\n boolean r0 = i0(r0)\n if (r0 == 0) goto L_0x00b4\n android.graphics.drawable.Drawable r0 = r5.m\n boolean r0 = r0.setState(r6)\n r4 = r4 | r0\n L_0x00b4:\n android.graphics.drawable.Drawable r0 = r5.w\n boolean r0 = i0(r0)\n if (r0 == 0) goto L_0x00c3\n android.graphics.drawable.Drawable r0 = r5.w\n boolean r6 = r0.setState(r6)\n r4 = r4 | r6\n L_0x00c3:\n android.graphics.drawable.Drawable r6 = r5.q\n boolean r6 = i0(r6)\n if (r6 == 0) goto L_0x00d2\n android.graphics.drawable.Drawable r6 = r5.q\n boolean r6 = r6.setState(r7)\n r4 = r4 | r6\n L_0x00d2:\n if (r4 == 0) goto L_0x00d7\n r5.invalidateSelf()\n L_0x00d7:\n if (r1 == 0) goto L_0x00dc\n r5.l0()\n L_0x00dc:\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.material.chip.a.m0(int[], int[]):boolean\");\n }", "title": "" }, { "docid": "acbb8fb92fd1eea11a874a11073cdf06", "score": "0.5249662", "text": "private int m10275g(int i) {\r\n return (i >>> 1) ^ (-(i & 1));\r\n }", "title": "" }, { "docid": "9de554d8350b3e0954df4126f1f48893", "score": "0.52446884", "text": "public abstract C0631bt mo9251e(boolean z);", "title": "" }, { "docid": "a9e403d213fa588dbe1fc25680b83e4f", "score": "0.52353406", "text": "static boolean boolFrBit(int input){\n return input!=0;\n }", "title": "" }, { "docid": "6fa30b8efe17c022383f3721282e6ee6", "score": "0.52345747", "text": "public boolean getBit(Point2D.Double p) {\n// System.out.println(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\");\n// System.out.println(\"Getting Point x=\"+p.x+ \", y=\"+p.y);\n// System.out.println(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\");\n return get((int) ((int)x * ((int)p.y - 1) + (int)p.y));\n \n }", "title": "" }, { "docid": "48e0100b07388fa271ecf181eeea46b6", "score": "0.52314544", "text": "public boolean isCarry() {\n\t\treturn ((get() >> 4) & 1) == 1;\n\t}", "title": "" }, { "docid": "e89c3905b2650be553c5b7d425aded18", "score": "0.52302825", "text": "public void mo97907c(boolean z) {\n }", "title": "" }, { "docid": "ffd4ee7fec015b37d5a07149be5dc0d8", "score": "0.5222599", "text": "private void SetZN8 ( int Work )\n\t{\n\t\t_Zero = Work != 0 ? 1 : 0;\n\t\t_Negative = Work;\n\t}", "title": "" }, { "docid": "310f4d39976752128388fff29daaa224", "score": "0.52215534", "text": "private static int getBit(int pack, int pos) {\n\t\treturn (pack & (1 << pos)) != 0 ? 1 : 0;\n\t}", "title": "" }, { "docid": "7af8cf038d800e0d6ef03ff98151718d", "score": "0.52198404", "text": "boolean isSetDirection();", "title": "" }, { "docid": "5cc9ee54252a9b9941386dd008876f1a", "score": "0.5209748", "text": "public boolean canFrameConnectIn(int dir)\r\n/* 35: */ {\r\n/* 36: 27 */ return (this.StickySides & 1 << dir) > 0;\r\n/* 37: */ }", "title": "" }, { "docid": "85cde99aedaa9b28f6aa32c2427e9297", "score": "0.5208654", "text": "private int readbit(ByteBuffer buffer) {\n if (numberLeftInBuffer == 0) {\n loadBuffer(buffer);\n numberLeftInBuffer = 8;\n }\n int top = ((byteBuffer >> 7) & 1);\n byteBuffer <<= 1;\n numberLeftInBuffer--;\n return top;\n }", "title": "" }, { "docid": "99e25d9d62b0d4aa4c65ce1b68c46d13", "score": "0.5203725", "text": "void mo6661a(boolean z);", "title": "" }, { "docid": "5c344d18f7bf6c5c6d006b233ba7fcc3", "score": "0.520206", "text": "void mo12636a(boolean z);", "title": "" }, { "docid": "8f5c64040cdfaffc1fa9c2b5bf6d5ba8", "score": "0.5195443", "text": "public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}", "title": "" }, { "docid": "b24b4ffa06c4faee55c07002e5ca9852", "score": "0.51952624", "text": "void mo28742b(boolean z, int i);", "title": "" }, { "docid": "8464580d580f30a49ae9f37a31a283d6", "score": "0.5193508", "text": "private void updateBit() {\r\n float frameTime = 10f;\r\n xVel += (xAccel * frameTime);\r\n yVel += (yAccel * frameTime);\r\n\r\n float xS = (xVel / 20) * frameTime; //PROVIDE THE ANGULE OF THE POSITION\r\n float yS = (yVel / 20) * frameTime; // WITH LESS DENOMINADOR THE BALL MOVE IS MORE DIFFICULT\r\n\r\n xPos -= xS;\r\n yPos -= yS;\r\n\r\n if (xPos > xMax) {\r\n xPos = xMax;\r\n } else if (xPos < 0) {\r\n xPos = 0;\r\n }\r\n\r\n if (yPos > yMax) {\r\n yPos = yMax;\r\n } else if (yPos < 0) {\r\n yPos = 0;\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "a248fdd92bda8faee96acdf414fafe94", "score": "0.5191295", "text": "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "title": "" }, { "docid": "7f727de8e0634695c3d15ee7b20010f0", "score": "0.5189889", "text": "public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }", "title": "" }, { "docid": "b094d00b8e511e36e287eb49cedae38a", "score": "0.51885414", "text": "private int m690g(int i) {\n return (-(i & 1)) ^ (i >>> 1);\n }", "title": "" }, { "docid": "da310daa01f0329e10a864745cbb9a1d", "score": "0.5188356", "text": "public Drivetrain(){\r\n LeftSlave.follow(LeftMaster);\r\n RightSlave.follow(RightMaster);\r\n\r\n RightMaster.setInverted(true);\r\n LeftMaster.setInverted(true);\r\n\r\n gyro.reset();\r\n}", "title": "" }, { "docid": "77b76d7e2b30f77235dd33ad03170673", "score": "0.51856387", "text": "public final boolean zzl() {\n return (this.zzy & 512) != 0;\n }", "title": "" }, { "docid": "95ff8213bbd98063d9a81c9fd3786c60", "score": "0.5185482", "text": "public void mo1511b(boolean z) {\n this.f1296g0 = z;\n }", "title": "" }, { "docid": "3e0ac7e4f80f3f18f7b9bc1315480b61", "score": "0.5176987", "text": "public boolean isSwitchAhead() {\r\n\t\treturn robotStartPos == Position.Middle || robotStartPos == switchPos;\r\n\t}", "title": "" }, { "docid": "9a1c36dd4e91f8d3f8075386fa7ffff3", "score": "0.5163422", "text": "private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}", "title": "" }, { "docid": "252f5b16f5409de4a002cc350d3cc181", "score": "0.5161825", "text": "private static void toggle(long num, int pos) {\n\t\tlong temp = 1l << pos;\n\t\tlong result = num ^ temp;\n\t\tSystem.out.println(result);\n\t}", "title": "" }, { "docid": "68fb2282ec9a59d5ef16fb6ca20c04ba", "score": "0.51617676", "text": "public void checkState() {\r\n\t\tout.println(state);\r\n\t\tif(getEnergy() < 80 && getOthers() > 5) {\r\n\t\t\tstate = 1;\r\n\t\t\tturnLeft(getHeading() % 90);\r\n\t\t\tahead(moveAmount);\r\n\t\t}\r\n\t\telse if(getEnergy() < 80 && getOthers() < 5) {\r\n\t\t\tstate = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tstate = 0;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5c7b7eb487d1b8ead763c93fc00cda62", "score": "0.51617324", "text": "@Override\n protected boolean isFinished() {\n //stop once the left side is high enough\n return Robot.myLifter.getLeftEncoder() < pos;\n }", "title": "" }, { "docid": "adf80c45e7a9b26784ebf55cf1d7df3f", "score": "0.51573986", "text": "void mo21069a(boolean z);", "title": "" }, { "docid": "f9eec820a57a719c585e9cdade5a578a", "score": "0.51501054", "text": "public void mo2154a(boolean z) {\n this.f644b = z;\n }", "title": "" }, { "docid": "95884ab5b0509882e656dc9e89f6081a", "score": "0.5146764", "text": "public int[] func_94128_d(int par1)\n/* */ {\n/* 105 */ return (this.field_145850_b.func_72805_g(this.field_145851_c, this.field_145848_d, this.field_145849_e) == 5) && (par1 == ForgeDirection.UP.ordinal()) ? new int[] { 0 } : new int[0];\n/* */ }", "title": "" }, { "docid": "e212cf8a06020407960c806bb42c8fba", "score": "0.51441675", "text": "public static void Turno(){\n\t\tif (pl1){\n\t\t\tpl1=false;\n\t\t\tpl2=true;\t\n\t\t\tvalore = 1;\n\t\t}\n\t\telse{\n\t\t\tpl1=true;\n\t\t\tpl2=false;\n\t\t\tvalore = 2;\n\t\t}\n\t}", "title": "" }, { "docid": "b1c9d3bfb2428cc161ff6f4f78e7f3ff", "score": "0.5142832", "text": "@Test\n public void testIsDirectional() {\n System.out.println(\"isDirectional\");\n BasicEncoder instance = new BinaryEncoder();\n boolean expResult = true;\n boolean result = instance.isDirectional();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "6a62299ec9c3f13676db2d9c929760ef", "score": "0.5140544", "text": "private void spin() {\n\t\t\tArrayList<Integer> sequence = getDna().getSequence();\n\t\t\tint randomDirection = sequence.get(new Random().nextInt(sequence.size()));\n\t\t\tsetDirection((this.direction + randomDirection) % 8);\t\n\t\t}", "title": "" }, { "docid": "a62a85118b3b23d799ba7a5f6eb97429", "score": "0.5133573", "text": "void mo64153a(boolean z);", "title": "" }, { "docid": "85faeb8f17836eab7c5e824b93960950", "score": "0.5132301", "text": "static int setBit(int n, int pos){\n return n | (1<<pos);\n }", "title": "" }, { "docid": "360f4d4e39fe4d98e4b4d23c929a0672", "score": "0.51284075", "text": "public void alg_RUNCONVEYER(){\nBlock.value=false;\nSystem.out.println(\"run\");\n\n}", "title": "" }, { "docid": "1220f2abdc846225827b6a6272f6b3b4", "score": "0.5124558", "text": "public void readJoy() {\n double forward = -this.getRawAxis(1); \n if (forward<deadband && forward>-deadband)forward=0;\n forward = Math.pow(forward,2)*Math.signum(forward);\n double turn =this.getRawAxis(4);\n if (turn<deadband && turn>-deadband)turn=0;\n turn = Math.pow(turn,2)*Math.signum(turn);\n\n leftinput=forward+turn;\n rightinput=forward-turn;\n\n // limit input to +/- 1 \n leftinput=limit(leftinput);\n rightinput=limit(rightinput);\n }", "title": "" }, { "docid": "6c0c265a759b26104cd41196c0f20e7f", "score": "0.51238304", "text": "public void oneTurn(){\n Integer[] previousTurn = Arrays.copyOf(this.board, this.board.length);\n\n // itero su previousTurn per costruire il board successivo\n for (int i=0;i<previousTurn.length;i++){\n\n // mi salvo la situazione della casella sx, se i==0 prendo l'ultima\n int left = previousTurn[previousTurn.length-1];\n if (i!=0)\n left = previousTurn[i-1];\n\n // mi salvo la situazione della casella dx, se i==ultima prendo zero\n int right = previousTurn[0];\n if (i!=previousTurn.length-1)\n right = previousTurn[i+1];\n \n // se a sx e dx c'è 0, metto 0\n // caso fine sottopopolazione (010->000)\n if (left == 0 && right == 0){\n this.board[i] = 0;\n \n // se a sx e dx c'è 1, metto 1 se c'era 0 e viceversa\n // caso nascita (101->111) e fine sovrappopolazione (111->101)\n } else if (left == 1 && right == 1)\n if (this.board[i] == 1)\n this.board[i] = 0;\n else\n this.board[i] = 1;\n \n // tutte le altre casistiche, lascio invariata la situazione\n \n }\n\n this.turn += 1;\n }", "title": "" }, { "docid": "311d1a95e388bf209d05f0bf9a9dbc84", "score": "0.5122502", "text": "BitSet selectLeafFlags();", "title": "" }, { "docid": "311d1a95e388bf209d05f0bf9a9dbc84", "score": "0.5122502", "text": "BitSet selectLeafFlags();", "title": "" }, { "docid": "94876e729708d0a1d3b7898df7e3fffc", "score": "0.5122497", "text": "boolean hasDirection();", "title": "" }, { "docid": "4abc33c89ed37d7762a56044bd4f0c45", "score": "0.51190495", "text": "protected void setStateFlag(int flag, boolean sts) {\n\t\tif ( sts == true && (m_flags & flag) == 0)\n\t\t\tm_flags += flag;\n\t\telse if ( sts == false && (m_flags & flag) != 0)\n\t\t\tm_flags -= flag;\n\t}", "title": "" }, { "docid": "61f2d0ed58b4af691a1f76eb22b1625c", "score": "0.51165223", "text": "private void updateStateOnce() {\n for(int i = 0; i < maskArray.length; i++) {\n for (int j = 0; j < maskArray[i].length; j++) {\n\n if (maskArray[i][j] == 1){\n stateArray[i][j] = stateGenerator.generateElementState();\n }\n\n }\n }\n }", "title": "" }, { "docid": "3f80d30c4beba1fb18a264d859edad35", "score": "0.5115929", "text": "protected final void operationLSRAccumulator() {\r\n this.carryFlag = (this.ac & 0x01) != 0;\r\n this.ac >>= 1;\r\n this.zeroFlag = (this.ac == 0);\r\n this.signFlag = false;\r\n }", "title": "" }, { "docid": "0c26ed3466c1e4f1b6e9ddcb67a75945", "score": "0.511449", "text": "boolean getKeyWheel();", "title": "" }, { "docid": "15ea5603b0569721600ef6e6f1fa01a8", "score": "0.5113828", "text": "void mo99838a(boolean z);", "title": "" }, { "docid": "23f7105d71c92416025964c39bf1745b", "score": "0.5109658", "text": "boolean[] bitwiseChangeList();", "title": "" }, { "docid": "79553f4a64f09fe45f61cff43d14a59d", "score": "0.5105899", "text": "public static int getBit(byte input,int position){\n return (input >> position) & 1;\n }", "title": "" }, { "docid": "924e44b26bddeadecc5b1dfa0acfb49c", "score": "0.51036745", "text": "void setZeroStart();", "title": "" }, { "docid": "c7d8cbb2df07cddfb55b4fcc89d9ee45", "score": "0.50997436", "text": "void mo9701a(boolean z);", "title": "" }, { "docid": "02d0c789531551afb75f671e08ad834d", "score": "0.5097743", "text": "protected final void operationLDX(final int data) {\r\n this.x = data;\r\n this.zeroFlag = this.x == 0;\r\n this.signFlag = this.x >= 0x80;\r\n }", "title": "" }, { "docid": "d7b21f17e4c490872ebbbd1b4dde0a1b", "score": "0.5097157", "text": "void mo3305a(boolean z);", "title": "" }, { "docid": "3a856e1cd3602bed2cea136840147258", "score": "0.50935227", "text": "boolean getWheel();", "title": "" }, { "docid": "0dcb682ff0f445c60aa691341bebb24d", "score": "0.5088282", "text": "void mo54420a(boolean z, boolean z2);", "title": "" }, { "docid": "b9188316b2304037152b2d2ba7d0a6e4", "score": "0.50832963", "text": "public int c(Block parambec)\r\n/* 199: */ {\r\n/* 200:232 */ int i = 0;\r\n/* 201: */ \r\n/* 202:234 */ i |= ((EnumDirection)parambec.getData(a)).a();\r\n/* 203:236 */ if (parambec.getData(b) == bdu.b) {\r\n/* 204:237 */ i |= 0x8;\r\n/* 205: */ }\r\n/* 206:240 */ return i;\r\n/* 207: */ }", "title": "" }, { "docid": "471fbc1fafe5cfc2c220c88b325bf5c7", "score": "0.5079196", "text": "public void wave() {\n leanRight = !leanRight;\n }", "title": "" } ]
b2cf7d5a85899d2fc9a67c100475fa58
Gets the value of the orgID property.
[ { "docid": "048983c6c9980639dcf3a0f7bf12a9a6", "score": "0.86175084", "text": "public long getOrgID() {\r\n return orgID;\r\n }", "title": "" } ]
[ { "docid": "1ce79deb30c7e16a37c5b5281e1ae15a", "score": "0.8563394", "text": "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "title": "" }, { "docid": "9126b9155c63386e39a07e5fcb47153d", "score": "0.8560612", "text": "public java.lang.String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "b3af1421183220187555f3817af7e28b", "score": "0.8552373", "text": "public Number getOrgId() {\r\n return (Number)getAttributeInternal(ORGID);\r\n }", "title": "" }, { "docid": "857f4ff6c5682f9f7b8a54fd64b3647f", "score": "0.85510325", "text": "public String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "e25b72f80bd8c41cc816d87741f6b84d", "score": "0.85047907", "text": "public java.lang.String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "622039d4fa3aa3bae6f141882ad8ad06", "score": "0.8499806", "text": "public Integer getOrgId() {\r\n return orgId;\r\n }", "title": "" }, { "docid": "268776c59d9d8a1a321c08675883c069", "score": "0.8489459", "text": "public Integer getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "2778ccc1f4aa6d4b25cb92b9eab3b66d", "score": "0.846536", "text": "public Long getorgId() {\n\t\treturn this.orgId;\r\n\t}", "title": "" }, { "docid": "98442335a7d9d5c680f9277cb1e764e5", "score": "0.83876455", "text": "public Long getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "6da0713950f664c73b17c952cceee0f8", "score": "0.8327189", "text": "public int getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "750215ba216da042be52f0eb2e761793", "score": "0.804624", "text": "public long getOrgOid();", "title": "" }, { "docid": "2916fc7cc01b0e4799e87683dc9f07e3", "score": "0.797801", "text": "public Integer getorg_id() {\n return (Integer)getNamedWhereClauseParam(\"org_id\");\n }", "title": "" }, { "docid": "1b3884cfce6f24fe22ed53844e6b9d89", "score": "0.7909001", "text": "@Override\n\tpublic java.lang.String getOrgId() {\n\t\treturn _vLegalOrg.getOrgId();\n\t}", "title": "" }, { "docid": "ba82f3e9ea1bb706897984ed38295e9e", "score": "0.7859104", "text": "@JsonProperty(JSON_PROPERTY_ORG_ID)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n public Integer getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "3df5e89baa22b3980e6c11c07a061038", "score": "0.78527397", "text": "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "title": "" }, { "docid": "7fabe472ff8e15bef7762d0ed4b52b59", "score": "0.7833494", "text": "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "title": "" }, { "docid": "9cde189d6c235530b6c98204a130b607", "score": "0.7674429", "text": "public java.lang.String getOrgNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGNUMBER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "595388cf88f8cda73d6b5610e14ea0ac", "score": "0.7609624", "text": "public String getOrganizationId() {\n\t\treturn organizationId;\n\t}", "title": "" }, { "docid": "02e3363288e9cf738abf5df8ffc20cbc", "score": "0.74858415", "text": "public Long getOrganizationId() {\n\t\treturn organizationId;\n\t}", "title": "" }, { "docid": "548f749f0528bc459a9bc1491ce36e3a", "score": "0.74284977", "text": "public void setOrgID(long value) {\r\n this.orgID = value;\r\n }", "title": "" }, { "docid": "dfb37f802c7fba688282d28688ed014f", "score": "0.73968244", "text": "public java.lang.String getId_Organization() {\n return id_Organization;\n }", "title": "" }, { "docid": "94ee0965d42365f57e903046dfbebd8f", "score": "0.7389774", "text": "public Long getOrganizationId() {\n return organizationId;\n }", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.7245385", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.7245385", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.7245385", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.7245385", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.7245385", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.7245385", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "f77b4227d893aa1bac0ecd48cbeda76c", "score": "0.716798", "text": "public String getOrgCode() {\n return orgCode;\n }", "title": "" }, { "docid": "4892fedb4cfb8a18630f762216e4ba51", "score": "0.71610904", "text": "public void setOrgId(java.lang.String value) {\n this.orgId = value;\n }", "title": "" }, { "docid": "ee0fc52eddf43094716470fe21a2c154", "score": "0.7146237", "text": "public String getOrgCode() {\r\n return orgCode;\r\n }", "title": "" }, { "docid": "ee0fc52eddf43094716470fe21a2c154", "score": "0.7146237", "text": "public String getOrgCode() {\r\n return orgCode;\r\n }", "title": "" }, { "docid": "93d0690e7e0a701a3cd8b388c5a127e3", "score": "0.7133882", "text": "public String getOrgName() {\n return orgName;\n }", "title": "" }, { "docid": "e2756e457bb1ff3977b440b3f1d68535", "score": "0.7125576", "text": "public org.apache.xmlbeans.XmlString xgetOrgNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ORGNUMBER$2, 0);\n return target;\n }\n }", "title": "" }, { "docid": "01c88fb3e3d8c65ae2ee48eec0d73ae8", "score": "0.7011991", "text": "public String getOrgName() {\n\t\treturn orgName;\n\t}", "title": "" }, { "docid": "b33fb24cc3cac983d046c558c5f3c517", "score": "0.67907566", "text": "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "title": "" }, { "docid": "af8fd732cae953610152b885bcc264ec", "score": "0.67767316", "text": "public void setOrgId(Number value) {\r\n setAttributeInternal(ORGID, value);\r\n }", "title": "" }, { "docid": "abdc382da86f313a4a1cdc6c56df6bfe", "score": "0.6757971", "text": "ImOrgMst getOrg(String orgId);", "title": "" }, { "docid": "99320a202647fe7e1e3dfc5d703c6363", "score": "0.67236704", "text": "public void setOrgId(Integer orgId) {\r\n this.orgId = orgId;\r\n }", "title": "" }, { "docid": "e0fe049de3a5ee36a0d05d2a67f311f5", "score": "0.6678188", "text": "public boolean hasOrgId() {\n return fieldSetFlags()[2];\n }", "title": "" }, { "docid": "632ca7e29835675d1218cb3c5edf14a9", "score": "0.6647882", "text": "public String getOrganizationNumber()\n {\n return organizationNumber_;\n }", "title": "" }, { "docid": "eddcc46a0df8e1d7fb272bd5ba2ce03e", "score": "0.6646461", "text": "public Long getOrgType() {\n return orgType;\n }", "title": "" }, { "docid": "929d9595adcb79beea3a38bedbc29f49", "score": "0.6640587", "text": "public void setOrgId(Integer orgId) {\n this.orgId = orgId;\n }", "title": "" }, { "docid": "2c323379ab6a8a6e0ff962f316a1a0b7", "score": "0.6623701", "text": "public void setOrgId(String tmp) {\n this.orgId = Integer.parseInt(tmp);\n }", "title": "" }, { "docid": "f8e6c8b03edff7608ef05d6452f6edad", "score": "0.65123725", "text": "@ApiModelProperty(value = \"Organisation ID assigned by Open Banking Directory\")\n\n@Size(min=18,max=18) \n public String getObOrgId() {\n return obOrgId;\n }", "title": "" }, { "docid": "2d99cabf90dffaf3fc9abf17fab83a1f", "score": "0.64612144", "text": "public void setOrgId(int tmp) {\n this.orgId = tmp;\n }", "title": "" }, { "docid": "754196e6b4ce8dcd927523133115cae2", "score": "0.64585906", "text": "public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }", "title": "" }, { "docid": "19a3a6ea64adbe017cbd771c59979dc7", "score": "0.643535", "text": "public com.fretron.Model.CheckPoint.Builder setOrgId(java.lang.String value) {\n validate(fields()[2], value);\n this.orgId = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "title": "" }, { "docid": "2a8d6d7d348d6fb8ac6250ed0af6ce2f", "score": "0.64239824", "text": "public String getOrganization() {\n\t\treturn organization;\n\t}", "title": "" }, { "docid": "4251092321d5102b3d76de42dbaa4637", "score": "0.6420277", "text": "public String getOrganization() {\r\n return organization;\r\n }", "title": "" }, { "docid": "4251092321d5102b3d76de42dbaa4637", "score": "0.6420277", "text": "public String getOrganization() {\r\n return organization;\r\n }", "title": "" }, { "docid": "39c82a8e4dad78602fa3becbd42e89d5", "score": "0.6416123", "text": "public List<Object[]> getOrgId(){\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\t\tList<Object[]> list=null;\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tlist=projectdao.getOrgId();\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\treturn list;\r\n\t}", "title": "" }, { "docid": "d24039d45296cdb52e1e421f22c1b71e", "score": "0.6410579", "text": "public String getOrganization() {\n return organization;\n }", "title": "" }, { "docid": "d24039d45296cdb52e1e421f22c1b71e", "score": "0.6410579", "text": "public String getOrganization() {\n return organization;\n }", "title": "" }, { "docid": "6743bd0450d8a85dd7a790335725dd6c", "score": "0.6400072", "text": "public void setorg_id(Integer value) {\n setNamedWhereClauseParam(\"org_id\", value);\n }", "title": "" }, { "docid": "449dcb771d36bc614c952efc81190045", "score": "0.63932586", "text": "public String getOrgLevel() {\n return orgLevel;\n }", "title": "" }, { "docid": "08bab7321044edc5707a47960f142056", "score": "0.6383844", "text": "public String getOrganization()\n {\n return organization;\n }", "title": "" }, { "docid": "c9ade98b9842fbf57a095c0cb17e44e3", "score": "0.636344", "text": "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "title": "" }, { "docid": "d393bac44ee1316ffbeab99a21f4b4b1", "score": "0.6344886", "text": "public String getOrganization() {\n return _organization;\n }", "title": "" }, { "docid": "9d824c95e1bea17e38965510174de44b", "score": "0.6328043", "text": "public void setOrgId(String orgId) {\n this.orgId = orgId == null ? null : orgId.trim();\n }", "title": "" }, { "docid": "0ae290e5bf6c16d1e873d48bc7bb5213", "score": "0.6300081", "text": "public Long getOrganizationTypeId() {\n\t\treturn organizationTypeId;\n\t}", "title": "" }, { "docid": "59fc134cf9b5da667e0bae3f7c3b1525", "score": "0.6294617", "text": "public OrgName getOrgName() {\n return super.getElement(OrgName.KEY);\n }", "title": "" }, { "docid": "95af00dd3ad3f7baca639eaccb86023a", "score": "0.62925464", "text": "public java.lang.String getCorporateidnum() {\r\n return corporateidnum;\r\n }", "title": "" }, { "docid": "c859fd66c55234d522b0ea16e4f72415", "score": "0.6250212", "text": "@Override\n\tpublic java.lang.String getPrimaryKey() {\n\t\treturn _vLegalOrg.getPrimaryKey();\n\t}", "title": "" }, { "docid": "8c27c4a23b818e66f89816e83ab34ae1", "score": "0.62213665", "text": "@Override\n\tpublic java.lang.String getParentId() {\n\t\treturn _vLegalOrg.getParentId();\n\t}", "title": "" }, { "docid": "296182683c347253d78a9062bee41b39", "score": "0.62089413", "text": "public Long getCreateOrgId() {\n return createOrgId;\n }", "title": "" }, { "docid": "3b362fce17ea4dc6ac8fc37d4e834e9f", "score": "0.6207864", "text": "public boolean isSetOrgId() {\r\n return this.orgId != null;\r\n }", "title": "" }, { "docid": "15073b2536f977f3f59f35aa532574f9", "score": "0.6191481", "text": "public int getCorporationID() {\r\n return corporationID;\r\n }", "title": "" }, { "docid": "f74fe6664adfadf1bb8ed369f5a10151", "score": "0.6186955", "text": "public String getOid() {\n if (OntologyConcept_Type.featOkTst && ((OntologyConcept_Type)jcasType).casFeat_oid == null)\n jcasType.jcas.throwFeatMissing(\"oid\", \"org.ohnlp.typesystem.type.refsem.OntologyConcept\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((OntologyConcept_Type)jcasType).casFeatCode_oid);}", "title": "" }, { "docid": "05005c6956fbbfd2d07a4c518793db7e", "score": "0.61588126", "text": "public String getOrganisation()\n {\n return organisation;\n }", "title": "" }, { "docid": "b823a275ee3a4115f1c16becfd170851", "score": "0.6143637", "text": "@Override\n\tpublic long getCompanyId() {\n\t\treturn _vLegalOrg.getCompanyId();\n\t}", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.61433333", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.61433333", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.61433333", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.61433333", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.61433333", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.61433333", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "70587347f32208fe9b7042f1caa43531", "score": "0.6047246", "text": "public String getOrganizationName() {\n\t\treturn organizationName;\n\t}", "title": "" }, { "docid": "5d2f9f79f62d5f622ad5830fe2ef10dd", "score": "0.6045375", "text": "@Override\n\tpublic long getUserId() {\n\t\treturn _vLegalOrg.getUserId();\n\t}", "title": "" }, { "docid": "3c251c0d3ac534afd9d3c1f6e18d61d5", "score": "0.6041137", "text": "public long getOid() {\r\n return oid;\r\n }", "title": "" }, { "docid": "3c59457a3b3a69658760885648d41c1e", "score": "0.6034539", "text": "ImOrgMst getOrgByOrgCode(String orgCode);", "title": "" }, { "docid": "9a285609392fe6a4475debfecf5f0493", "score": "0.60116327", "text": "public io.dstore.values.IntegerValue getPersonId() {\n return personId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : personId_;\n }", "title": "" }, { "docid": "46ab5a8feaa5eac0eeebefe40196086f", "score": "0.5994363", "text": "public String getOrganizationName() {\n\t\t\treturn organizationName;\n\t\t}", "title": "" }, { "docid": "c05b6277c4eeed01f83f581ef0bdaeca", "score": "0.5989261", "text": "java.lang.String getOpendId();", "title": "" }, { "docid": "62f83eb2106975580cca45b22ac26a6f", "score": "0.59866965", "text": "public String getOrganization();", "title": "" }, { "docid": "1c6de1d577bfe15f6ca27203cfdcec21", "score": "0.59742457", "text": "Organization getOrganization(Long organizationId);", "title": "" }, { "docid": "578e4a17938838fde7f15e1b2b8adaba", "score": "0.5962657", "text": "public String getOid() {\n return oid;\n }", "title": "" }, { "docid": "2f8ebeb00a77becb1e3e8e13c5e00511", "score": "0.5950251", "text": "@Override\n\tpublic long getGroupId() {\n\t\treturn _vLegalOrg.getGroupId();\n\t}", "title": "" }, { "docid": "e81b145b7b0b4c80653a7e02e29b118f", "score": "0.5948244", "text": "public com.mpe.financial.model.Organization getOrganization () {\r\n\t\treturn organization;\r\n\t}", "title": "" }, { "docid": "1f5bec11554cfb7f14789e8e32f58f31", "score": "0.59459376", "text": "public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }", "title": "" }, { "docid": "212a2a26b8116e160b876a13c2d2d9be", "score": "0.5927968", "text": "@Override\r\n\tpublic CaaeOrg selectByPrimaryKey(String orgId) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "c7991186d94bc04546ff9cf51a7b0b21", "score": "0.5907966", "text": "public OID getOid() {\n return oid;\n }", "title": "" }, { "docid": "5dabc8207976f5b168d1c1749cbd2cbf", "score": "0.5893221", "text": "public Number getOtlId() {\r\n return (Number)getAttributeInternal(OTLID);\r\n }", "title": "" }, { "docid": "209de4c7d3ba89c27fec069d589e75c5", "score": "0.58905923", "text": "public io.dstore.values.IntegerValue getPersonId() {\n if (personIdBuilder_ == null) {\n return personId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : personId_;\n } else {\n return personIdBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "c4790ba8003c5cc6c0577dac840df9ad", "score": "0.58850086", "text": "java.lang.String getOrganizationUuid();", "title": "" }, { "docid": "4c790fa6f63081ec0d422efa6accb28d", "score": "0.5862322", "text": "public Organization getOrganization()\n\t{\n\t\treturn organization;\n\t}", "title": "" }, { "docid": "0dfb2b502066e813d7cb018eb242b23c", "score": "0.5847943", "text": "public String getOrid() {\r\n return orid;\r\n }", "title": "" }, { "docid": "622a05ac2bb4e50723167b3294d19ce8", "score": "0.582546", "text": "public String getID() {\n\t\treturn getAttribute(GXL.ID);\n\t}", "title": "" }, { "docid": "f313f0a40e9baff9d9d89361cbc2e391", "score": "0.58085006", "text": "public String getCompanyId() {\n return (String) getAttributeInternal(COMPANYID);\n }", "title": "" }, { "docid": "560f569b04a20e9c3ca78fa38494e7bb", "score": "0.5804303", "text": "public String getID()\r\n\t{\r\n\t\treturn(assignmentXMLObject.getStringValue(\"ID\", null));\r\n\t}", "title": "" } ]
0e3bd751f62c86195c0954f0777fea8f
End of isLegalPosition. the pressing method is really long, because it's checking twice the neighbors of the square for mined or presses this method is when you press one of the squares in the board
[ { "docid": "1c88df52b226b008575f89c42462cd20", "score": "0.7385337", "text": "public void press(int x, int y){\n\t\tif(!win&&!lose){ // you can press only if the game is still going\n\t\t\tif(!board[x][y].fop()||(board[x][y].lastPressed!=1)){ // the pressed square is found\n\t\t\t\tboard[x][y].lastPressed=0; // not longer the last pressed\n\t\t\t\tif((pcounter==0)&&(board[x][y].isMined())){ // this is the first press\n\t\t\t\t\tnewMine(x,y); // remove the mine, the player can't lose with first move\n\t\t\t\t}\n\t\t\t\tpcounter++; // increase pressing counter\n\t\t\t\tif(board[x][y].isMined()){ // pressed on a mined square, end the game\n\t\t\t\t\tif(!(board[x][y].found())){\n\t\t\t\t\t\tboard[x][y].Press();\n\t\t\t\t\t\tEnd();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tif(!board[x][y].isFlagged()){ // when the square isn't flagged, so it's available\n\t\t\t\t\t\tfor (int i=0; i<=1; i++) { // this loop is checking all the neighbors\n\t\t\t\t\t\t\tif ((isLegalPosition(x+i-1,y-1)) && (board[x+i-1][y-1].isMined())){\n\t\t\t\t\t\t\t\tboard[x][y].counterMPlus();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ((!isLegalPosition(x+i-1,y-1))||(board[x+i-1][y-1].isPressed())){\n\t\t\t\t\t\t\t\tboard[x][y].counterPPlus();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ((isLegalPosition(x+1,y+i-1)) && (board[x+1][y+i-1].isMined())){\n\t\t\t\t\t\t\t\tboard[x][y].counterMPlus();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ((!isLegalPosition(x+1,y+i-1))||(board[x+1][y+i-1].isPressed())){\n\t\t\t\t\t\t\t\tboard[x][y].counterPPlus();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ((isLegalPosition(x+1-i,y+1)) && (board[x+1-i][y+1].isMined())){\n\t\t\t\t\t\t\t\tboard[x][y].counterMPlus();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ((!isLegalPosition(x+1-i,y+1))||(board[x+1-i][y+1].isPressed())){\n\t\t\t\t\t\t\t\tboard[x][y].counterPPlus();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ((isLegalPosition(x-1,y+1-i)) && (board[x-1][y+1-i].isMined())){\n\t\t\t\t\t\t\t\tboard[x][y].counterMPlus();\n\t\t\t\t\t\t\t} else if ((!isLegalPosition(x-1,y+1-i))||(board[x-1][y+1-i].isPressed())){\n\t\t\t\t\t\t\t\tboard[x][y].counterPPlus();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tboard[x][y].setImageNum(); // after checking all the mined neighbors, change the image of the square\n\t\t\t\t\t\t\n\t\t\t\t\t\t//now checks pressed neighbors\n\t\t\t\t\t\t\n\t\t\t\t\t\tif((board[x][y].getCounterM()==0)&&(board[x][y].getCounterP()<8)){\n\t\t\t\t\t\t\tfor (int i=0; i<=1; i++) {\n\t\t\t\t\t\t\t\tif ((isLegalPosition(x+i-1,y-1))&&(!board[x+i-1][y-1].recPressed())){\n\t\t\t\t\t\t\t\t\tif(!board[x+i-1][y-1].fop()){\n\t\t\t\t\t\t\t\t\t\tboard[x+i-1][y-1].makeRecPressed();\n\t\t\t\t\t\t\t\t\t\tpress(x+i-1,y-1);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ((isLegalPosition(x+1,y+i-1))&&(!board[x+1][y+i-1].recPressed())){\n\t\t\t\t\t\t\t\t\tif(!board[x+1][y+i-1].fop()){\n\t\t\t\t\t\t\t\t\t\tboard[x+1][y+i-1].makeRecPressed();\n\t\t\t\t\t\t\t\t\t\tpress(x+1,y+i-1);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ((isLegalPosition(x+1-i,y+1))&&(!board[x+1-i][y+1].recPressed())){\n\t\t\t\t\t\t\t\t\tif(!board[x+1-i][y+1].fop()){\n\t\t\t\t\t\t\t\t\t\tboard[x+1-i][y+1].makeRecPressed();\n\t\t\t\t\t\t\t\t\t\tpress(x+1-i,y+1);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ((isLegalPosition(x-1,y+1-i))&&(!board[x-1][y+1-i].recPressed())){\n\t\t\t\t\t\t\t\t\tif(!board[x-1][y+1-i].fop()){\n\t\t\t\t\t\t\t\t\t\tboard[x-1][y+1-i].makeRecPressed();\n\t\t\t\t\t\t\t\t\t\tpress(x-1,y+1-i);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(checkWin()){ // check if the player won\n\t\t\t\twin=true;\n\t\t\t\tEnd(); // end the game\n\t\t\t}\n\t\t\tboard[x][y].restartCounter(); // restart the counters to avoid recursive problems\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "89f7ad91ca61cc48079ab66c61399511", "score": "0.6811181", "text": "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tint xCor = e.getX();\n\t\tint yCor = e.getY();\n\t\tint xCount = 0;\n\t\t\n\t\t\n\t\tfor(int i = 0; i<2*(newBoard[0].length); i+=2){\n\t\t\t\n\t\t\tif(xCor > xRangeArray.get(i) && xCor < xRangeArray.get(i+1)){\n\t\t\t\trow = 0;\n\t\t\t\tif(yCor > yRangeArray.get(0) && yCor < yRangeArray.get(1)){\n\t\t\t\t\tcolumn = xCount;\n\t\t\t\t\tsetExtraTurn(inBoard.extraTurn(row, column, false));\n\t\t\t\t\tif(player1==true){//Player 1 clicked on the top row\n\t\t\t\t\t\tif(getExtraTurn()){\n\t\t\t\t\t\t\tallowed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tplayer1=false;\n\t\t\t\t\t\t\tallowed=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{//Player 1 clicked on the bottom row\n\t\t\t\t\t\tallowed=false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\telse if(yCor > yRangeArray.get(2) && yCor < yRangeArray.get(3)){\n\t\t\t\t\tcolumn = xCount;\n\t\t\t\t\trow = 1;\n\t\t\t\t\tsetExtraTurn(inBoard.extraTurn(row, column, false));\n\t\t\t\t\tif(player1==false){//Player 2 clicked bottom row\n\t\t\t\t\t\tif(getExtraTurn()){\n\t\t\t\t\t\t\tplayer1=false;\n\t\t\t\t\t\t\tallowed=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tplayer1 = true;\n\t\t\t\t\t\t\tallowed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{//Player 2 clicked on the top row\n\t\t\t\t\t\tallowed=false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{//illegal move\n\t\t\t\t\tallowed=false;\n\t\t\t\t}\n\t\t\t}\n\t\t\txCount++;\n\t\t}\n\t\tif(allowed==true){//if the move was legal, the click is acknowledged.\n\t\t\tdidClick = true;\t\n\t\t}\n\t}", "title": "" }, { "docid": "1e819b7adf7a7573583515d35260f988", "score": "0.67131037", "text": "public void mousePressed(MouseEvent e) {\n int mx = e.getX();\n int my = e.getY();\n int [] oldMouseCoords = {specificMouseCoords[0],specificMouseCoords[1]};\n specificMouseCoords[0] = ((int) Math.floor(((double) (mx) - 30) / 50.0)) * 50 + 30;\n specificMouseCoords[1] = ((int) Math.floor(((double) (my) - 30) / 50.0)) * 50 + 30;\n if (oldMouseCoords[0] == specificMouseCoords[0] && oldMouseCoords[1] == specificMouseCoords[1])\n mousePressedAgain = true;\n else\n mousePressedAgain = false;\n if ((turn == 0 || turn == 1) && !b1InCheckMate) {\n mouseCoords[0] = board1.getXSpace(mx);\n mouseCoords[1] = board1.getYSpace(my);\n } else if ((turn == 2 || turn == 3) || ((turn == 0 || turn == 1) && b1InCheckMate)) {\n mouseCoords[0] = board2.getXSpace(mx);\n mouseCoords[1] = board2.getYSpace(my);\n }\n if (specificMouseCoords[1] < 480) {\n \n if (turn == 0 && !b1InCheckMate) {\n pieceClickedOn(b1WhitePieces, 1, board1, b1BlackPieces, 2, b2WhitePieces);\n } else if (turn == 1 && !b1InCheckMate) {\n pieceClickedOn(b1BlackPieces, 2, board1, b1WhitePieces, 1, b2BlackPieces);\n } else if (turn == 2 || (turn == 0 && b1InCheckMate)) {\n pieceClickedOn(b2BlackPieces, 2, board2, b2WhitePieces, 1, b1BlackPieces);\n } else if (turn == 3 || (turn == 1 && b1InCheckMate)) {\n pieceClickedOn(b2WhitePieces, 1, board2, b2BlackPieces, 2, b1WhitePieces);\n }\n }\n\n else {\n if (turn ==0 && !b1InCheckMate)\n for (Piece p : b2WhitePieces) {\n\n if (specificMouseCoords[0] == p.getCoords()[0] && specificMouseCoords[1] == p.getCoords()[1] && p.getPieceType() != 6 && p.getIsWhite() && p.getCoords()[1] > 480) {\n // if piece is in graveyard and isn't a king\n for (Piece s : b2WhitePieces) {\n if (s.getClickedOn()) {\n s.toggleClickedOn();\n }\n }\n p.toggleClickedOn();\n replaceGraveyardPiece(b1WhitePieces, 1, board1, b2WhitePieces);\n break;\n }\n \n }\n if (turn == 1 && !b1InCheckMate)\n for (Piece p : b2BlackPieces) {\n\n if (specificMouseCoords[0] == p.getCoords()[0] && specificMouseCoords[1] == p.getCoords()[1] && p.getPieceType() != 6 && !p.getIsWhite() && p.getCoords()[1] > 480) {\n // if piece is in graveyard and isn't a king\n for (Piece s : b2BlackPieces) {\n if (s.getClickedOn()) {\n s.toggleClickedOn();\n }\n }\n p.toggleClickedOn();\n replaceGraveyardPiece(b1BlackPieces, 2, board1, b2BlackPieces);\n break;\n }\n }\n if (turn == 2 || (turn == 0 && b1InCheckMate))\n for (Piece p : b1BlackPieces) {\n\n if ( specificMouseCoords[0] == p.getCoords()[0] && specificMouseCoords[1] == p.getCoords()[1] && p.getPieceType() != 6 && !p.getIsWhite() && p.getCoords()[1] > 480) {\n // if piece is in graveyard and isn't a king\n for (Piece s : b1BlackPieces) {\n if (s.getClickedOn()) {\n s.toggleClickedOn();\n }\n }\n p.toggleClickedOn();\n replaceGraveyardPiece(b2BlackPieces, 2, board2, b1BlackPieces);\n break;\n \n }\n }\n if (turn == 3 || (turn == 1 && b1InCheckMate))\n for (Piece p : b1WhitePieces) {\n\n if ( specificMouseCoords[0] == p.getCoords()[0] && specificMouseCoords[1] == p.getCoords()[1] && p.getPieceType() != 6 && p.getIsWhite() && p.getCoords()[1] > 480) {\n for (Piece s : b1WhitePieces) {\n if (s.getClickedOn()) {\n s.toggleClickedOn();\n }\n }\n p.toggleClickedOn();\n replaceGraveyardPiece(b2WhitePieces, 1, board2, b1WhitePieces);\n break;\n }\n \n }\n \n }\n }", "title": "" }, { "docid": "743319f0a5bc459202acbee4ba444f57", "score": "0.6701797", "text": "public boolean clickSquare(Square square) {\n isLastMoveValid = true;\n\n if (!isProgressing || !square.isAccessible()) {\n isLastMoveValid = false;\n return false;\n }\n square.click();\n squareCount--;\n listenerList.forEach(listener -> listener.onSquareClicked(square));\n if (square.hasMine()) {\n if (!firstClicked) {\n isError = true;\n }\n mineLeft--;\n return false;\n }\n firstClicked = true;\n if (square.isClear()) {\n for (int i = -1; i <= 1; i++) {\n for (int j = -1; j <= 1; j++) {\n if (checkBorder(square.getX() + j, square.getY() + i)) {\n clickSquare(square.getX() + j, square.getY() + i);\n isLastMoveValid = true;\n }\n }\n }\n return true;\n }\n return true;\n }", "title": "" }, { "docid": "c9a07e42b153696b779a95c45fb89ef7", "score": "0.66933054", "text": "public void actionPerformed( ActionEvent e ) {\n\n\ttry{\n\t //if a square gets clicked\n\t if( e.getActionCommand().equals( \"1\" ) ||\n\t\te.getActionCommand().equals( \"3\" ) ||\n\t\te.getActionCommand().equals( \"5\" ) ||\n\t\te.getActionCommand().equals( \"7\" ) ||\n\t\te.getActionCommand().equals( \"8\" ) ||\n\t\te.getActionCommand().equals( \"10\" ) ||\n\t\te.getActionCommand().equals( \"12\" ) ||\n\t\te.getActionCommand().equals( \"14\" ) ||\n\t\te.getActionCommand().equals( \"17\" ) ||\n\t\te.getActionCommand().equals( \"19\" ) ||\n\t\te.getActionCommand().equals( \"21\" ) ||\n\t\te.getActionCommand().equals( \"23\" ) ||\n\t\te.getActionCommand().equals( \"24\" ) ||\n\t\te.getActionCommand().equals( \"26\" ) ||\n\t\te.getActionCommand().equals( \"28\" ) ||\n\t\te.getActionCommand().equals( \"30\" ) ||\n\t\te.getActionCommand().equals( \"33\" ) ||\n\t\te.getActionCommand().equals( \"35\" ) ||\n\t\te.getActionCommand().equals( \"37\" ) ||\n\t\te.getActionCommand().equals( \"39\" ) ||\n\t\te.getActionCommand().equals( \"40\" ) ||\n\t\te.getActionCommand().equals( \"42\" ) ||\n\t\te.getActionCommand().equals( \"44\" ) ||\n\t\te.getActionCommand().equals( \"46\" ) ||\n\t\te.getActionCommand().equals( \"49\" ) ||\n\t\te.getActionCommand().equals( \"51\" ) ||\n\t\te.getActionCommand().equals( \"53\" ) ||\n\t\te.getActionCommand().equals( \"55\" ) ||\n\t\te.getActionCommand().equals( \"56\" ) ||\n\t\te.getActionCommand().equals( \"58\" ) ||\n\t\te.getActionCommand().equals( \"60\" ) ||\n\t\te.getActionCommand().equals( \"62\" ) ) {\n\n\t\t//call selectSpace with the button pressed\n\t\tgameStart.getTurn().selectSpace(\n\t\t\t\t Integer.parseInt( e.getActionCommand() ) );\n\n\t\t//if draw is pressed\n\t }else if( e.getActionCommand().equals( \"draw\" ) ){\n\t\t//does sequence of events for a draw\n\t\tgameStart.getTheButtonHandler().pressDraw();\n\n\t\t//if resign is pressed\n\t }else if( e.getActionCommand().equals( \"resign\" ) ) {\n\t\t//does sequence of events for a resign\n\t\tgameStart.getTheButtonHandler().pressQuit();\n\n\t\t//if the source came from the facade\n\t }else if( e.getSource().equals(gameStart.getTurn()) ) {\n\n\t\t//if its a player switch event\n switch ((e.getActionCommand())) {\n case ButtonHandler.playerSwitch:\n //if it is an update event\n break;\n case Turn.update:\n //update the GUI\n update();\n break;\n default:\n throw new Exception(\"unknown message from facade\");\n }\n\t }\n\t //catch various Exceptions\n\t}catch( NumberFormatException excep ){\n\t System.err.println(\n\t\t \"GUI exception: Error converting a string to a number\" );\n\t}catch( NullPointerException exception ){\n\t System.err.println( \"GUI exception: Null pointerException \"\n\t\t\t\t+ exception.getMessage() );\n\t exception.printStackTrace();\n\t}catch( Exception except ){\n\t System.err.println( \"GUI exception: other: \"\n\t\t\t\t+ except.getMessage() );\n\t except.printStackTrace();\n\t}\n\n }", "title": "" }, { "docid": "b4fd3ba8d3c50574246c76fc40b09b0a", "score": "0.66207474", "text": "private boolean isLegalMove(int row, int col) {\n\treturn (row >= 0 && row <= 2 && col >= 0 && col <= 2) &&\n\t ! board[row][col].equals(\"X\") && ! board[row][col].equals(\"O\");\n }", "title": "" }, { "docid": "9f1997e911bfca71dc99221a4554bc4b", "score": "0.65550524", "text": "private boolean checkForValidStartToMove(int row, int col) {\n if(g.spaceOccupied(row, col) && g.getColorInSpace(row, col) == g.whoseMove()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "1682f32f9e0511cd280940c71d5cb959", "score": "0.6553917", "text": "public void moveLogic(int destX, int destY) {\n\n int originX = selectedPawn.getX();\n int originY = selectedPawn.getY();\n Pawn destinationPawn = pawnArray[destY][destX];\n\n this.moved = !canPawnHit(selectedPawn);\n\n boolean diagonalMovement = Math.abs(destX - originX) == Math.abs(destY - originY);\n boolean destinationCheck = destinationPawn.isType() == 2;\n boolean forwardMove = ((player == 0 && originY < destY) || (player == 1 && originY > destY) || selectedPawn.isKing()) && diagonalMovement && canPawnMove(selectedPawn);\n\n int pawnDistance = (Math.abs(originX - destX) + Math.abs(originY - destY));\n boolean hitMove = (pawnDistance == 4 || selectedPawn.isKing()) && canPawnHit(selectedPawn);\n boolean noHitMove = (pawnDistance == 2 || selectedPawn.isKing()) && forwardMove && !canPawnHit(selectedPawn);\n\n boolean goodMove = (selectedPawn.isKing() || forwardMove || hitMove) && destinationCheck;\n\n\n if (this.pawnArray[destY][destX].isType() != 2) {\n System.out.println(\"This spot is already occupied!\");\n\n } else if (goodMove && hitMove != noHitMove) {\n\n //This is for kings mainly\n if(hitMove){\n if(canPawnHitDestination(selectedPawn, destinationPawn)){\n gotAHit = true;\n hit(selectedPawn, destinationPawn);\n moved = !canPawnHit(selectedPawn);\n } else {\n System.out.println(\"You have to hit!\");\n }\n } else {\n hit(this.selectedPawn, destinationPawn);\n moved = true;\n }\n if(!moved){\n System.out.println(\"You can still move!\");\n } else {\n gotAHit = false;\n player = (player + 1) % 2;\n checkKing(selectedPawn);\n checkPawns();\n deselectPawn(destX, destY);\n if (player == 0) {\n labelTeam.setText(\"White team turn\");\n } else {\n labelTeam.setText(\"Black team turn\");\n }\n System.out.println(\"Pawn moved!\");\n }\n\n drawGrid();\n } else {\n System.out.println(\"You cant move here\");\n }\n }", "title": "" }, { "docid": "73717749f1fbb4383d527c890e6041c6", "score": "0.65435934", "text": "public abstract boolean isLegalMove(int x, int y, BoardModel bm, int side);", "title": "" }, { "docid": "75b2c84b9809431fb9e5e54835f4f8a9", "score": "0.65407497", "text": "public void checkMove(int startRow, int startColumn, int desRow, int desColumn, int pieceBeingDragged)\r\n {\r\n boolean legalMove = false;\r\n int enroque = 0;\r\n int piezaposeedora = cellMatrix.getPieceCell(desRow, desColumn);\r\n int manposeedor = cellMatrix.getPlayerCell(desRow, desColumn);\r\n updateRook();\r\n if (cellMatrix.getPlayerCell(desRow, desColumn) == currentPlayer)\r\n {\r\n }\r\n else\r\n {\r\n\r\n switch (pieceBeingDragged)\r\n {\r\n case 0:\r\n legalMove = pawnObject.legalMove(startRow, startColumn, desRow, desColumn, cellMatrix.getPlayerMatrix(), currentPlayer, salidapeon, elpeonsalede);\r\n pawnValidator(legalMove, desColumn, startRow, desRow, startColumn);\r\n break;\r\n case 1:\r\n legalMove = rockObject.legalMove(startRow, startColumn, desRow, desColumn, cellMatrix.getPlayerMatrix());\r\n\r\n break;\r\n case 2:\r\n legalMove = knightObject.legalMove(startRow, startColumn, desRow, desColumn, cellMatrix.getPlayerMatrix());\r\n\r\n //legalMove = legalMove && !checkCheck(-1,-1, currentPlayer);\r\n break;\r\n case 3:\r\n legalMove = bishopObject.legalMove(startRow, startColumn, desRow, desColumn, cellMatrix.getPlayerMatrix());\r\n break;\r\n case 4:\r\n legalMove = queenObject.legalMove(startRow, startColumn, desRow, desColumn, cellMatrix.getPlayerMatrix());\r\n break;\r\n case 5:\r\n // statusTorre = false si es légitimo el movimiento\r\n boolean statusTorre = !hasidomovida[torreMasProxima(desRow, desColumn)];\r\n // Agregue como parametro statusTorre\r\n legalMove = kingObject.legalMove(startRow,\r\n startColumn,\r\n desRow,\r\n desColumn,\r\n cellMatrix.getPlayerMatrix(),\r\n currentPlayer,\r\n statusTorre, reyHaSidoMovido[currentPlayer - 1]);\r\n\r\n\r\n enroque = kingObject.getEnroque();\r\n kingObject.setEnroque(0);\r\n break;\r\n\r\n }\r\n // legalMove = !checkCheck(desRow, desColumn, currentPlayer)||!checkCheck(-1, -1, currentPlayer);\r\n\r\n\r\n }\r\n\r\n // Ha sido una movida adecuada?\r\n int flagEnroque = 0;\r\n\r\n if (legalMove)\r\n {\r\n if (pieceBeingDragged == 5)\r\n {\r\n\r\n\r\n reyHaSidoMovido[currentPlayer - 1] = true;\r\n if (enroque != 0)\r\n {\r\n if (enroque == 1)\r\n {\r\n cellMatrix.setPieceCell(desRow, desColumn - 1, 1);\r\n cellMatrix.setPlayerCell(desRow, desColumn - 1, currentPlayer);\r\n cellMatrix.setPieceCell(desRow, desColumn + 1, 6);\r\n cellMatrix.setPlayerCell(desRow, desColumn + 1, 0);\r\n flagEnroque++;\r\n }\r\n else\r\n {\r\n if (enroque == -1)\r\n {\r\n cellMatrix.setPieceCell(desRow, desColumn + 1, 1);\r\n cellMatrix.setPlayerCell(desRow, desColumn + 1, currentPlayer);\r\n cellMatrix.setPieceCell(desRow, desColumn - 2, 6);\r\n cellMatrix.setPlayerCell(desRow, desColumn - 2, 0);\r\n flagEnroque--;\r\n }\r\n }\r\n }\r\n \r\n }\r\n\r\n admin.almacenarJugada(pieceBeingDragged, startRow, startColumn, desRow, desColumn, flagEnroque);\r\n admin.imprimirUltimaJugada(cellMatrix.getPlayerMatrix(), currentPlayer);\r\n cellMatrix.setPlayerCell(desRow, desColumn, currentPlayer);\r\n\r\n //Si el peon llega al final puede cambiar por cualquier pieza es asi por\r\n //el cual debe de poder eligir q pieza a cambir\r\n\r\n if (pieceBeingDragged == 0 && (desRow == 0 || desRow == 7))\r\n {\r\n promocion(desRow, desColumn);\r\n }\r\n else\r\n {\r\n\r\n cellMatrix.setPieceCell(desRow, desColumn, pieceBeingDragged);\r\n }\r\n adminJaque.setCellMatrix(cellMatrix);\r\n if (adminJaque.checkCheck(-1, -1, currentPlayer))\r\n {\r\n legalMove = false;\r\n cellMatrix.setPieceCell(desRow, desColumn, piezaposeedora);\r\n cellMatrix.setPlayerCell(desRow, desColumn, manposeedor);\r\n cellMatrix.setPieceCell(startRow, startColumn, pieceBeingDragged);\r\n cellMatrix.setPlayerCell(startRow, startColumn, currentPlayer);\r\n JOptionPane.showMessageDialog(this, \"La jugada es inválida, porfavor, corrijala\");\r\n }\r\n if (cellMatrix.checkWinner(currentPlayer))\r\n {\r\n hasWon = true;\r\n // para guardar el último tablero \r\n admin.guardarTablero(cellMatrix.getPieceMatrix(), cellMatrix.getPlayerMatrix());\r\n admin.obtenerTexto1().setText(\"\");\r\n admin.obtenerTexto2().setText(\"\");\r\n \r\n \r\n }\r\n else if (legalMove)\r\n {\r\n // Cambia de jugador si naide ha ganado.\r\n // 1 para Jugador Humano\r\n // 2 para Jugador AI\r\n if (currentPlayer == 1)\r\n {\r\n currentPlayer = 2;\r\n }\r\n else\r\n {\r\n currentPlayer = 1;\r\n }\r\n\r\n }\r\n\r\n }\r\n else\r\n {\r\n unsucessfullDrag(startRow, startColumn, pieceBeingDragged, currentPlayer);\r\n }\r\n // Verificar la existencia de un Jaque al finalizar la Jugada\r\n // ORGANIZAR!!\r\n adminJaque.setCellMatrix(cellMatrix);\r\n if (adminJaque.checkCheck(-1, -1, currentPlayer))\r\n {\r\n JOptionPane.showMessageDialog(null,\"Estas en Jaque\");\r\n System.out.println(\"Jaque\");\r\n recojerDatosJaque();\r\n verificarJaquemate.actualizar(cellMatrix, currentPlayer, atacantes, reyHaSidoMovido, statusTorre);\r\n if (verificarJaquemate.ismate(xKing, yKing, currentPlayer))\r\n {\r\n JOptionPane.showMessageDialog(this, \"JaqueMate\");\r\n System.out.println(\"Jaque mate\");\r\n }\r\n }\r\n\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "74c5ad55a47252c020d894837e26256a", "score": "0.65384936", "text": "public abstract boolean validMove(int row, int col);", "title": "" }, { "docid": "cd1c5b17cf728c9aed12e87d08660431", "score": "0.65311456", "text": "public static void checkKeys(){\r\n\r\n\t\t//check if mouse was pressed\r\n\t\tif(mousePressed){\r\n\t\t\t//Point temp = MouseEvent.getPoint();\r\n\t\t\tif(mousePressed && !GamePanel.inBattle){\r\n\t\t\t\tif(GamePanel.showMap==false){\r\n\t\t\t\t\tif (!GamePanel.paused){\n\t\t\t\t\t\tGamePanel.player.destination.x=(int)GamePanel.player.xpos+mousePosition.x-((ApplicationUI.windowWidth/2)-16);\r\n\t\t\t\t\t\tGamePanel.player.destination.y=(int)GamePanel.player.ypos+mousePosition.y-((ApplicationUI.windowHeight/2)-16);\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tint changeX = oldMousePosition.x-mousePosition.x;\r\n\t\t\t\t\tint changeY = oldMousePosition.y-mousePosition.y;\r\n\t\t\t\t\tGamePanel.levels.get(GamePanel.currentLevel).map.xpos-=changeX/GamePanel.levels.get(GamePanel.currentLevel).map.zoom;\r\n\t\t\t\t\tGamePanel.levels.get(GamePanel.currentLevel).map.ypos-=changeY/GamePanel.levels.get(GamePanel.currentLevel).map.zoom;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//System.out.println(\"destination: \"+GamePanel.player.destination.x+\",\"+GamePanel.player.destination.y);\r\n\t\t}\r\n\t\toldMousePosition.x = mousePosition.x;\r\n\t\toldMousePosition.y = mousePosition.y;\r\n\t}", "title": "" }, { "docid": "77fec6d90bef498261f28f1b94c3b595", "score": "0.6524047", "text": "public boolean onTouchEvent( MotionEvent event) {\n\n int x = (int) event.getX();\n int y = (int) event.getY();\n\n int discs_touchedX = x / (size / board.size);\n int discs_touchedY = y / (size / board.size);\n\n\n discs_touchedX = (discs_touchedX>=board.size ? board.size-1 : discs_touchedX);\n discs_touchedY = (discs_touchedY>=board.size ? board.size-1 : discs_touchedY);\n\n if(board.get(discs_touchedX,discs_touchedY).color <0) {\n ArrayList<Discs> possible_turn = board.full_check(curr_player, discs_touchedX, discs_touchedY);\n invalidate();\n if (possible_turn.size() > 0) {\n board.turn(curr_player, possible_turn);\n board.get(discs_touchedX,discs_touchedY).color = curr_player;\n curr_player = (curr_player + 1) % 2;\n }\n\n }\n return true;\n }", "title": "" }, { "docid": "a5c36e352e949e2910100c51a6ccee0d", "score": "0.6516307", "text": "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tif(game.getState() == GameState.GENERAL){\r\n\t\t\tint y = arg0.getX()/frame.getCanvasSquareWidth();\r\n\t\t\tint x = arg0.getY()/frame.getCanvasSquareWidth();\r\n\r\n\t\t\t// Stops potential out of bounds clicking\r\n\t\t\tif(x >= 25 || y >= 25){\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tSquare s = game.getBoard().squareAt(x, y);\t// gets the square related to this click\r\n\r\n\t\t\tif(frame.isHighlighted(s)){ // if it is a valid move\r\n\t\t\t\tgame.moveTo(s); // moves the player\r\n\r\n\t\t\t\t//update state\r\n\t\t\t\tif(s instanceof CorridorSquare){\r\n\t\t\t\t\tnextTurn();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if(s instanceof RoomSquare || s instanceof DoorSquare){\r\n\t\t\t\t\t//Re-gets the square in case a player clicked on a door square and was randomly allocated a place in the room\r\n\t\t\t\t\ts = game.getBoard().squareAt(game.getCurrentPlayer().getX(), game.getCurrentPlayer().getY());\r\n\t\t\t\t\t// In centre room so making an accusation\r\n\t\t\t\t\tif(((RoomSquare)s).getRoom().equals(Room.RoomType.SWIMMING_POOL)){\r\n\t\t\t\t\t\tframe.updateCanvas(GameState.ACCUSATION);\r\n\t\t\t\t\t\tgame.setState(GameState.ACCUSATION);\r\n\t\t\t\t\t\tframe.accusationBox(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// In an outer room so making a suggestion\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tframe.updateCanvas(GameState.SUGGESTION);\r\n\t\t\t\t\t\tgame.setState(GameState.SUGGESTION);\r\n\t\t\t\t\t\tframe.suggestionBox(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tframe.repaint();\r\n\t\t\t}\r\n\t\t\t// otherwise do nothing if the click is not on a valid square\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "09fb42dc62df7a1eaa2ba62ecb84dc21", "score": "0.6512367", "text": "public boolean isLegalMove(player p, int row, int col){\n\t\tString piece = \"\";\n\t\tif(p.getName() != \" O\"){\n\t\t piece = \" X\";\n\t\t} else {\n\t\t piece = \" O\";\n\t\t}\n\n\t\t// Return false if location is out of bounds\n\t\tif(row < 0 || row > 7 || col < 0 || col > 7){\n\t\t return false;\n\t\t}\n\n\t\t// Return false if location already has a piece there\n\t\tif(board.get(row).get(col) != \" /\"){\n\t\t return false;\n\t\t}\n\t\t\t\t\n\t\t// Checking in all 8 directions\n\t\tfor(int i = 0; i < 8; i++){\n\t\t int r = row;\n\t\t int c = col;\n\t\t // Referenced Aaron Bloomfield's wordPuzzle.cpp from CS2150 Lab 6\n\t\t // for searching in all 8 directions with a switch-case statement\n\t\t switch (i) { // clock-wise direction checking starting with N\n\t\t case 0:\n\t\t\tr--;\n\t\t\tbreak;\n\t\t case 1:\n\t\t\tr--;\n\t\t\tc++;\n\t\t\tbreak;\n\t\t case 2:\n\t\t\tc++;\n\t\t\tbreak;\n\t\t case 3:\n\t\t\tr++;\n\t\t\tc++;\n\t\t\tbreak;\n\t\t case 4:\n\t\t\tr++;\n\t\t\tbreak;\n\t\t case 5:\n\t\t\tr++;\n\t\t\tc--;\n\t\t\tbreak;\n\t\t case 6:\n\t\t\tc--;\n\t\t\tbreak;\n\t\t case 7:\n\t\t\tr--;\n\t\t\tc--;\n\t\t\tbreak;\n\t\t }\n\t\t if(r > -1 && r < 8 && c > -1 && c < 8 &&\n\t\t board.get(r).get(c) != piece && board.get(r).get(c) != \" /\"){\n\t\t\tboolean hasPiece = true;\n\t\t\twhile(hasPiece){\n\t\t\t switch (i) { // clock-wise direction checking starting with N\n\t\t\t case 0:\n\t\t\t\tr--;\n\t\t\t\tbreak;\n\t\t\t case 1:\n\t\t\t\tr--;\n\t\t\t\tc++;\n\t\t\t\tbreak;\n\t\t\t case 2:\n\t\t\t\tc++;\n\t\t\t\tbreak;\n\t\t\t case 3:\n\t\t\t\tr++;\n\t\t\t\tc++;\n\t\t\t\tbreak;\n\t\t\t case 4:\n\t\t\t\tr++;\n\t\t\t\tbreak;\n\t\t\t case 5:\n\t\t\t\tr++;\n\t\t\t\tc--;\n\t\t\t\tbreak;\n\t\t\t case 6:\n\t\t\t\tc--;\n\t\t\t\tbreak;\n\t\t\t case 7:\n\t\t\t\tr--;\n\t\t\t\tc--;\n\t\t\t\tbreak;\n\t\t\t }\n\t\t\t\t\t\n\t\t\t if(r < 0 || r > 7 || c < 0 || c > 7){\n\t\t\t\tbreak;\n\t\t\t }\n\n\t\t\t if(board.get(r).get(c) == \" /\"){\n\t\t\t\t//\tSystem.out.println(\"bad (\" + r + \",\"+ c + \"): \"+board.get(r).get(c));\n\t\t\t\thasPiece = false;\n\t\t\t }\n\t\t\t if(board.get(r).get(c) == piece){\n\t\t\t\t//\tSystem.out.println(\"good (\"+r + \",\"+ c + \"): \"+board.get(r).get(c));\n\t\t\t\treturn true;\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t}\t\t\n\t\treturn false;\n }", "title": "" }, { "docid": "3414bb657e5be7063c813d09f9e01228", "score": "0.6507245", "text": "private boolean isMoveValid(int x, int y, String side) {\n for(ShapeCell s:currentShape.sidePositions(side)) {\n // this is whats fucking it up\n // its the side positions thats fucking it up\n if(!this.isWithinBounds(s.getX() + x, s.getY() + y)\n || (board[s.getX() + x][s.getY() + y].hasShapeCell())) {\n return false;\n }\n } return true;\n}", "title": "" }, { "docid": "1a9d80d319c0bd3015cc42db991d9981", "score": "0.6495072", "text": "private boolean LegalMove(int CurrPos, int ArrPos)\n {\n /*defines and intialises variables to store is the move is legal or not\n only one checkstatus variable cannot be used as there is mutliple moves for one square and one move could set the bool to true and then the next one could set the bool to false which would return false overall even\n though the move is legal.\n */ \n boolean CheckStatus1,CheckStatus2,CheckStatus3,CheckStatus4,CheckStatus5,CheckStatus6,CheckStatus7,CheckStatus8;\n CheckStatus1 = CheckStatus2 = CheckStatus3= CheckStatus4 = CheckStatus5 = CheckStatus6 = CheckStatus7 = CheckStatus8 = false;\n boolean SavedCheckStatus;\n int CurrentPosition = CurrPos;\n int ArrangedPostion = ArrPos;\n //checks which square was selected and then passes in the correct values into frogpositionchecker for a move to be checked is legal\n if (((CurrentPosition == 0) || (CurrentPosition == 10)|| (CurrentPosition == 20)))\n {\n /*for the move of a frog from left to right across the board 2 and 4 are passed in as the frog to be jumped over will be on the current frogsposition+2 and 4 is passed in as the arranged position should be on\n the currentposition +4.\n */\n CheckStatus1 = FrogPostionsChecker(CurrentPosition, ArrangedPostion, 2,4);\n } \n else if (((CurrentPosition == 4) || (CurrentPosition == 14)|| (CurrentPosition == 24)))\n {\n CheckStatus2 = FrogPostionsChecker(CurrentPosition, ArrangedPostion, -2,-4);\n }\n if (((CurrentPosition == 0) || (CurrentPosition == 2)|| (CurrentPosition == 4)))\n {\n CheckStatus3 = FrogPostionsChecker(CurrentPosition, ArrangedPostion, 10,20);\n }\n else if (((CurrentPosition == 20) || (CurrentPosition == 22)|| (CurrentPosition == 24)))\n {\n CheckStatus4 = FrogPostionsChecker(CurrentPosition, ArrangedPostion, -10,-20);\n }\n if ((CurrentPosition > -1) && (CurrentPosition < 11 ))\n {\n CheckStatus5 = FrogPostionsChecker(CurrentPosition, ArrangedPostion, 6,12);\n }\n if ((CurrentPosition > 11 ) && (CurrentPosition < 25 ))\n {\n CheckStatus6 = FrogPostionsChecker(CurrentPosition, ArrangedPostion, -6,-12);\n }\n if ((CurrentPosition > 1 ) && (CurrentPosition < 5 ) || (CurrentPosition > 6 ) && (CurrentPosition < 9 ) || (CurrentPosition > 11 ) && (CurrentPosition < 15 ))\n {\n CheckStatus7 = FrogPostionsChecker(CurrentPosition, ArrangedPostion, 4,8);\n }\n if ((CurrentPosition > 9 ) && (CurrentPosition < 13 ) || (CurrentPosition > 14 ) && (CurrentPosition < 18 ) || (CurrentPosition > 19 ) && (CurrentPosition < 23 ))\n {\n CheckStatus8 = FrogPostionsChecker(CurrentPosition, ArrangedPostion, -4,-8);\n\n }\n if ((CheckStatus1 == true) || (CheckStatus2 == true) || (CheckStatus3 == true) || (CheckStatus4 == true) || (CheckStatus5 == true) || (CheckStatus6 == true) || (CheckStatus7 == true) || (CheckStatus8 == true)) \n {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "1dea604e2a6869cecf2b998e4c14637f", "score": "0.6472225", "text": "public void pieceClickedOn(Piece[] pieceArray, int colour, ChessBoard board, Piece[] enemySet, int enemyColour, Piece [] sameColourSet) {\n\n if (!movingGraveYardPiece(sameColourSet)){\n for (Piece p : pieceArray) {\n\n \n \n \n if (mouseCoords[0] == board.getXSpace(p.getCoords()[0])\n && mouseCoords[1] == board.getYSpace(p.getCoords()[1])) {\n for (Piece s : pieceArray) {\n if (s.getClickedOn()) {\n s.toggleClickedOn();\n }\n }\n p.toggleClickedOn();\n \n if (!p.getIsPawn() && p.getPieceType() != 6)\n compileSquares(p.getPossibleSpaces(board.getX()), colour, enemySet, enemyColour, p, board, pieceArray);\n \n //if p = king\n else if (p.getPieceType() == 6){\n //if king hasnt moved\n if (!p.getHasMoved()){\n boolean queenSideCastlePossible = false; //castle on left side\n boolean kingSideCastlePossible = false; //castle on right side\n boolean UNUSED = false;\n boolean UNUSED2 = false;\n \n int kingXCoord = p.getCoords()[0];\n int kingYSpace = board.getYSpace(p.getCoords()[1]);\n \n if (board.availability(board.getXSpace(kingXCoord - 50), kingYSpace) == 0 && board.availability(board.getXSpace(kingXCoord - 100), kingYSpace) == 0 \n && board.availability(board.getXSpace(kingXCoord - 150), kingYSpace) == 0 && board.availability(board.getXSpace(kingXCoord - 200), kingYSpace) == colour){\n \n \n for (Piece z : pieceArray){\n if (z.getPieceType() == 2 && z.getHasMoved() == false && (z.getCoords()[0] == kingXCoord - 200) && (board.getYSpace(z.getCoords()[1]) == kingYSpace)){\n queenSideCastlePossible = true;\n\n break;\n }\n }\n }\n if (board.availability(board.getXSpace(kingXCoord + 50), kingYSpace) == 0 && board.availability(board.getXSpace(kingXCoord + 100), kingYSpace) == 0 && board.availability(board.getXSpace(kingXCoord + 150), kingYSpace) == colour){\n for (Piece z : pieceArray){\n if (z.getPieceType()==2){\n \n \n \n }\n if (z.getPieceType()==2 && z.getHasMoved()==false && (z.getCoords()[0] == kingXCoord+150) && (board.getYSpace(z.getCoords()[1]) == kingYSpace)){\n\n kingSideCastlePossible = true;\n break;\n }\n }\n }\n compileSquares(p.getPossibleSpaces(board.getX(), queenSideCastlePossible, kingSideCastlePossible, UNUSED, UNUSED2), colour, enemySet, enemyColour, p, board, pieceArray);\n\n }\n else{\n compileSquares(p.getPossibleSpaces(board.getX()), colour, enemySet, enemyColour, p, board, pieceArray);\n }\n \n }\n \n else {\n boolean tempLeft = false;\n boolean tempRight = false;\n boolean tempMid = false;\n boolean tempTwoInfront = false;\n if (colour == 1) {\n if (p.getCoords()[1] > 30) {\n if (p.getCoords()[0] > board.getX())\n tempLeft = board.availability(board.getXSpace(p.getCoords()[0] - 50),\n board.getYSpace(p.getCoords()[1] - 50)) == 2;\n \n tempMid = board.availability(board.getXSpace(p.getCoords()[0]),\n board.getYSpace(p.getCoords()[1] - 50)) != 0;\n if (!p.getHasMoved())\n tempTwoInfront = board.availability(board.getXSpace(p.getCoords()[0]),\n board.getYSpace(p.getCoords()[1] - 100)) == 0;\n if (p.getCoords()[0] < board.getX() + 350)\n tempRight = board.availability(board.getXSpace(p.getCoords()[0] + 50),\n board.getYSpace(p.getCoords()[1] - 50)) == 2;\n \n }\n } else {\n if (p.getCoords()[1] < 380) {\n if (p.getCoords()[0] > board.getX())\n tempRight = board.availability(board.getXSpace(p.getCoords()[0] - 50),\n board.getYSpace(p.getCoords()[1] + 50)) == 1;\n tempMid = board.availability(board.getXSpace(p.getCoords()[0]),\n board.getYSpace(p.getCoords()[1] + 50)) != 0;\n if (!p.getHasMoved())\n tempTwoInfront = board.availability(board.getXSpace(p.getCoords()[0]),\n board.getYSpace(p.getCoords()[1] + 100)) == 0;\n if (p.getCoords()[0] < board.getX() + 350)\n tempLeft = board.availability(board.getXSpace(p.getCoords()[0] + 50),\n board.getYSpace(p.getCoords()[1] + 50)) == 1;\n }\n \n }\n \n compileSquares(p.getPossibleSpaces(board.getX(), tempLeft, tempMid, tempRight, tempTwoInfront),\n colour, enemySet, enemyColour, p, board, pieceArray);\n }\n highlighting = !highlighting;\n break;\n }\n \n }\n }\n }", "title": "" }, { "docid": "fcd4ce602fe0d6f763e1a9473640400a", "score": "0.64670545", "text": "public boolean validateMove(){\n\t\tboolean valid = false;\n\t\t\n\t\t//adds trouble location to hashtables\n\t\taddHashTable();\n\t\t\n\t\t//checks for specific movement for the first player\n\t\tif(Board.playerNumber==0){\n\t\t\tint distance = secondPosition-firstPosition;\n\t\t\t\n\t\t\t//checks the last position in the row and the highest for the row (i.e. 45/8 floor=6 ceil=5)\n\t\t\tint ceil= (int)Math.ceil((double)firstPosition/8);\n\t\t\tint floor= (int)Math.floor((double)firstPosition/8+1);\n\t\t\t\n\t\t\t//checks the horiz. movement to the left if the space between is less than 8 and in the same row\n\t\t\tif(distance<0&&distance>-8){\n\t\t\t\tint dist=(int)Math.ceil(secondPosition/8);\n\t\t\t\tif(dist==ceil)\n\t\t\t\t\t{ valid= false; }\n\t\t\t\telse\n\t\t\t\t\t{ valid = true; }\n\t\t\t}\n\t\t\t//checks the horiz. movement to the right if the space between is less than 8 and in the same row\n\t\t\telse if (distance>0&&distance<8){\n\t\t\t\tint dist=(int)Math.floor(secondPosition/8);\n\t\t\t\tif(dist==floor)\n\t\t\t\t\t{ valid= false; }\n\t\t\t\telse\n\t\t\t\t\t{ valid = true; }\n\t\t\t}\n\t\t\t\n\t\t\t//gives number of rows up to check\n\t\t\tint numberOfUpCounts =ceil;\n\t\t\t//gives the number of rows down to check\n\t\t\tint numberOfDownCounts =8-ceil;\n\t\t\t\n\t\t\t//checks vertical upwards possible movement\n\t\t\tfor(int i = 0; i <=numberOfUpCounts; i++){\n\t\t\t\tif(secondPosition == (firstPosition-(8*i))){\n\t\t\t\t\tvalid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//checks vertical downwards possible movement\n\t\t\tfor(int i = 0; i <= numberOfDownCounts; i++){\t\t\t\t\t\n\t\t\t\tif(secondPosition ==(firstPosition+((8*i))))\n\t\t\t\t\t{ valid=true; }\n\t\t\t}\n\t\t\t//checks the diagonal movement to the upper right\n\t\t\tfor(int counter=0;counter<col2.size();counter++){\n\t\t\t\tif(!(col2.containsValue(firstPosition))){//sees if the piece is not in the second col of values that are odd\n\t\t\t\t\tif((firstPosition-7*counter)>0){//then if the current place being checked is greater than 0\n\t\t\t\t\t\tif(secondPosition ==(firstPosition-(7*counter))){ //check if the curent position is the second posiion, if so exit with a valid\n\t\t\t\t\t\t\tvalid=true; \n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse//otherwise break\n\t\t\t\t\t\t{ break; }\n\t\t\t\t}\n\t\t\t\telse//otherwise break\n\t\t\t\t\t{ break; }\n\t\t\t}\n\t\t\t//checks diagonal to the upper left\n\t\t\t//checks to see if current item being checked is within the confines of the first hashtable of possible values that have different validation\n\t\t\tfor(int counter=0;counter<col1.size();counter++){\n\t\t\t\tif(!(col1.containsValue(firstPosition))){//if the value is not present in the first col1\n\t\t\t\t\tif((firstPosition-(9*counter))>0){//checks to see if the value being checked is larger than 0\n\t\t\t\t\t\tif(secondPosition ==(firstPosition-(9*counter))){ //then sees if the current location is the secondposition\n\t\t\t\t\t\t\tvalid=true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse//otherwise break\n\t\t\t\t\t\t{ break; }\n\t\t\t\t}\n\t\t\t\telse//otherwise break\n\t\t\t\t\t{ break; }\n\t\t\t}\n\t\t\t//checks diagonal to the left\n\t\t\t//checks to see if the current item being checked is within the confines of the first col1 hastable of possbile values that have different validation\n\t\t\tfor(int counter=0;counter<col1.size();counter++){\n\t\t\t\tif(!(col1.containsValue(firstPosition))){//if the value is not within the first col1\n\t\t\t\t\tif((firstPosition+(7*counter))<64){//see if the current place being checked is less than 0\n\t\t\t\t\t\tif((secondPosition == firstPosition+(7*counter))){//if the current location being checked is equal to the current place then a true is returned\n\t\t\t\t\t\t\tvalid = true; \n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse//otherwise break\n\t\t\t\t\t\t{ break; }\n\t\t\t\t}\n\t\t\t\telse//otherwise break\n\t\t\t\t\t{ break; }\n\t\t\t}\n\t\t\t//checks diagonal to the lower right\n\t\t\t//checks to see if the current item being checked is within the confines of the first col1 hashtable of possible values that have different validation\n\t\t\tfor(int counter=0;counter<col2.size();counter++){\n\t\t\t\tif(!(col1.containsValue(firstPosition))){\n\t\t\t\t\tif(firstPosition+(7*counter)<64){//checks to see if the current position being checked is less than 64\n\t\t\t\t\t\tif(secondPosition ==(firstPosition+((9*counter)))){ //then checks to see if that position is the current position\n\t\t\t\t\t\t\tvalid=true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse//otherwise break\n\t\t\t\t\t\t{ break; }\n\t\t\t\t}\n\t\t\t\telse//otherwise break\n\t\t\t\t\t{ break; }\n\t\t\t}\n\t\t}\n\t\t//checks the requirements if its the second player\n\t\telse if (Board.playerNumber==1){\n\t\t\tint distance = secondPosition-firstPosition;\n\t\t\t//gets the distance then gets the row the same as above\n\t\t\tint ceil= (int)Math.ceil((double)firstPosition/8);\n\t\t\tint floor= (int)Math.floor((double)firstPosition/8+1);\n\n\t\t\t//checks the left distance and row to keep the piece within the current row\n\t\t\tif(distance<0&&distance>-8){\n\t\t\t\tint dist=(int)Math.ceil(secondPosition/8);\n\t\t\t\tif(dist==ceil)//checks to make sure the movement spot is within the current row\n\t\t\t\t\t{ valid= false; }\n\t\t\t\telse\n\t\t\t\t\t{ valid = true; }\n\t\t\t}\n\t\t\telse if (distance>0&&distance<8){//checks the right distance and row to keep the piece within the current row\n\t\t\t\tint dist=(int)Math.floor(secondPosition/8);\n\t\t\t\tif(dist==floor)//checks to make sure the movement spot is within the current row\n\t\t\t\t\t{ valid= false; }\n\t\t\t\telse\n\t\t\t\t\t{ valid = true; }\n\t\t\t}\n\t\t\t\n\t\t\t//gets the vertical moves to check\n\t\t\tint numberOfUpCounts =ceil;\n\t\t\tint numberOfDownCounts =8-ceil;\n\t\t\t\n\t\t\t//checks to see if the current verical move is the second position\n\t\t\tfor(int i = 0; i <=numberOfUpCounts; i++){\n\t\t\t\tif(secondPosition == (firstPosition-(8*i))){\n\t\t\t\t\tvalid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//checks to see if the current verical move is the second position\n\t\t\tfor(int i = 0; i <= numberOfDownCounts; i++){\t\t\t\t\t\n\t\t\t\tif(secondPosition ==(firstPosition+((8*i))))\n\t\t\t\t\t{ valid=true; }\n\t\t\t}\n\t\t\t//checks diagonal to the right\n\t\t\t//checks to see if the position starting is in the first col otherwise it checks\n\t\t\tfor(int counter=0;counter<col2.size();counter++){\n\t\t\t\tif(!(col2.containsValue(firstPosition))){\n\t\t\t\t\tif((firstPosition-7*counter)>0){//checks to see if the current value is positive\n\t\t\t\t\t\tif(secondPosition ==(firstPosition-(7*counter))){ //checks to see if the current value is the second position\n\t\t\t\t\t\t\tvalid=true; \n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t{ break; }//otherwise break\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{ break; }//otherwise break\n\t\t\t}\n\t\t\t//checks diagonal to the left\n\t\t\t//checks to see if the position is not within the first col\n\t\t\tfor(int counter=0;counter<col1.size();counter++){\n\t\t\t\tif(!(col1.containsValue(firstPosition))){\n\t\t\t\t\tif((firstPosition-(9*counter))>0){//checks to see if the value being checked is above 0\n\t\t\t\t\t\tif(secondPosition ==(firstPosition-(9*counter))){ //checks to see if the second position is within the range\n\t\t\t\t\t\t\tvalid=true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse//otherwise break\n\t\t\t\t\t\t{ break; }\n\t\t\t\t}\n\t\t\t\telse//otherwise break\n\t\t\t\t\t{ break; }\n\t\t\t}\n\t\t\t//checks for lower diagnoal left movement\n\t\t\tfor(int counter=0;counter<col1.size();counter++){\n\t\t\t\tif(!(col1.containsValue(firstPosition))){//checks to see if the value is in the first col1\n\t\t\t\t\tif((firstPosition+(7*counter))<64){//checks to make sure the value is less than 64\n\t\t\t\t\t\tif((secondPosition == firstPosition+(7*counter))){//checks for lower right diagonal\n\t\t\t\t\t\t\tvalid = true; \n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse//otherwise break\n\t\t\t\t\t\t{ break; }\n\t\t\t\t}\n\t\t\t\telse//otherwise break\n\t\t\t\t\t{ break; }\n\t\t\t}\n\t\t\t//check for lower right diagnoal movement\n\t\t\tfor(int counter=0;counter<col2.size();counter++){\n\t\t\t\tif(!(col1.containsValue(firstPosition))){//checks to see if the first position is not in the left col\n\t\t\t\t\tif(firstPosition+(7*counter)<64){//checks to see if the piece is less than 64\n\t\t\t\t\t\tif(secondPosition ==(firstPosition+((9*counter)))){ //checks to see if the secondposition is within the diagonal\n\t\t\t\t\t\t\tvalid=true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse//otherwise break\n\t\t\t\t\t\t{ break; }\n\t\t\t\t}\n\t\t\t\telse//otherwise break\n\t\t\t\t\t{ break; }\n\t\t\t}\n\t\t}\n\t\treturn valid;\n\t}", "title": "" }, { "docid": "30893b0945e2e7d98951b57ed68bd72c", "score": "0.6456615", "text": "private boolean validKing(int startRow, int startCol, int endRow, int endCol) {\n\t\t\t\n\t\t\t\n\t\t\tChessPiece piece = board[startRow][startCol];\n\t\t\tChessPiece.Color color = piece.getColor();\n\t\t\tint castleDirection = (startCol - endCol);\n\n\t\t\t\n\t\t\t//Trying to castle\n\t\t\tif(startRow == endRow && Math.abs(startCol - endCol) == 2) {\n\t\t\t\t\n\t\t\t\tif(color == ChessPiece.Color.White) {\n\t\t\t\t\t//White Castling right\n\t\t\t\t\tif(castleDirection < 0) {\n\t\t\t\t\t\tif(board[0][7] == null) {return false;}\n\t\t\t\t\t\tChessPiece temp = board[7][7];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//if neither has moved and nothings in the way\n\t\t\t\t\t\tif(piece.moveHistory() == false && temp.moveHistory() == false && board[0][6] == null && board[0][5] == null) {\n\t\t\t\t\t\t\tif(!isSpotAttackable(piece.getColor(), 0,6) && !isSpotAttackable(piece.getColor(), 0, 5)) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t//White Castling left\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(board[0][0] == null) {return false;}\n\t\t\t\t\t\tChessPiece temp = board[7][0];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//if neither has moved and nothings in the way\n\t\t\t\t\t\tif(piece.moveHistory() == false && temp.moveHistory() == false && board[0][1] == null && board[0][2] == null && board[0][3] == null) {\n\t\t\t\t\t\t\tif(!isSpotAttackable(piece.getColor(), 0,1) && !isSpotAttackable(piece.getColor(), 0, 2) && !isSpotAttackable(piece.getColor(), 0, 3)) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//Black Castling right\n\t\t\t\t\tif(castleDirection < 0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(board[7][7] == null) {return false;}\n\t\t\t\t\t\tChessPiece temp = board[7][7];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//if neither has moved and nothings in the way\n\t\t\t\t\t\tif(piece.moveHistory() == false && temp.moveHistory() == false && board[7][6] == null && board[7][5] == null) {\n\t\t\t\t\t\t\tif(!isSpotAttackable(piece.getColor(), 7,6) && !isSpotAttackable(piece.getColor(), 7, 5)) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t//BLack Castling left\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(board[7][0] == null) {return false;}\n\t\t\t\t\t\tChessPiece temp = board[7][0];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//if neither has moved and nothings in the way\n\t\t\t\t\t\tif(piece.moveHistory() == false && temp.moveHistory() == false && board[7][1] == null && board[7][2] == null && board[7][3] == null) {\n\t\t\t\t\t\t\tif(!isSpotAttackable(piece.getColor(), 7,1) && !isSpotAttackable(piece.getColor(), 7, 2) && !isSpotAttackable(piece.getColor(), 7, 3)) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t//end trying to castle\n\t\t\n\t\t\t//Check if a friendly piece is in the end location\n\t\t\tif(board[endRow][endCol] != null) {\n\t\t\t\tChessPiece temp = board[endRow][endCol];\n\t\t\t\tif(temp.getColor() == piece.getColor()) {return false;}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//King can only move 1 square in any direction. Ensure its moving into an unattacked spot\n\t\t\t\n\t\t\t\n\t\t\tif(Math.abs(startRow - endRow) <= 1 && Math.abs(startCol - endCol) <= 1 && !(isSpotAttackable(piece.getColor(), endRow, endCol))) {\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "e796cb0bb7936f7479446b4be4a34dc1", "score": "0.6454239", "text": "public boolean legalMove (int mouseXInitial, int mouseYInitial, int mouseXFinal, int mouseYFinal)\r\n {\r\n\t//for more detailed comments, refer to the rook and the bishop class, as the queen is just a copy and paste combination of both\r\n\tif ((mouseXInitial - mouseXFinal) != (mouseYInitial - mouseYFinal) & (mouseXInitial - mouseXFinal) != (mouseYFinal - mouseYInitial)) //rook moves for queen\r\n\t{\r\n\t if (colorOfPiece == true)\r\n\t {\r\n\t\tif (mouseXInitial == mouseXFinal)\r\n\t\t{\r\n\t\t if (mouseYInitial > mouseYFinal)\r\n\t\t {\r\n\t\t\tfor (int a = mouseYInitial - 1 ; a > mouseYFinal ; a--)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial, a) != 0) //if there is a piece between the rook and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXFinal, mouseYFinal) != 1)\r\n\t\t\t{\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t if (mouseYInitial < mouseYFinal)\r\n\t\t {\r\n\t\t\tfor (int a = mouseYInitial + 1 ; a < mouseYFinal ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial, a) != 0) //if there is a piece between the rook and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXFinal, mouseYFinal) != 1)\r\n\t\t\t{\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\r\n\t\t}\r\n\t\tif (mouseYInitial == mouseYFinal)\r\n\t\t{\r\n\t\t if (mouseXInitial > mouseXFinal)\r\n\t\t {\r\n\t\t\tfor (int a = mouseXInitial - 1 ; a > mouseXFinal ; a--)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (a, mouseYInitial) != 0) //if there is a piece between the rook and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXFinal, mouseYFinal) != 1)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t if (mouseXInitial < mouseXFinal)\r\n\t\t {\r\n\t\t\tfor (int a = mouseXInitial + 1 ; a < mouseXFinal ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (a, mouseYInitial) != 0) //if there is a piece between the rook and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXFinal, mouseYFinal) != 1)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\r\n\t if (colorOfPiece == false)\r\n\t {\r\n\t\tif (mouseXInitial == mouseXFinal)\r\n\t\t{\r\n\t\t if (mouseYInitial > mouseYFinal)\r\n\t\t {\r\n\t\t\tfor (int a = mouseYInitial - 1 ; a > mouseYFinal ; a--)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial, a) != 0) //if there is a piece between the rook and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXFinal, mouseYFinal) != 2)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t if (mouseYInitial < mouseYFinal)\r\n\t\t {\r\n\t\t\tfor (int a = mouseYInitial + 1 ; a < mouseYFinal ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial, a) != 0) //if there is a piece between the rook and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXFinal, mouseYFinal) != 2)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\r\n\t\t}\r\n\t\tif (mouseYInitial == mouseYFinal)\r\n\t\t{\r\n\t\t if (mouseXInitial > mouseXFinal)\r\n\t\t {\r\n\t\t\tfor (int a = mouseXInitial - 1 ; a > mouseXFinal ; a--)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (a, mouseYInitial) != 0) //if there is a piece between the rook and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXFinal, mouseYFinal) != 2)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t if (mouseXInitial < mouseXFinal)\r\n\t\t {\r\n\t\t\tfor (int a = mouseXInitial + 1 ; a < mouseXFinal ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (a, mouseYInitial) != 0) //if there is a piece between the rook and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXFinal, mouseYFinal) != 2)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\r\n\t}\r\n\telse //bishop moves for queen\r\n\t{\r\n\t if (colorOfPiece == true)\r\n\t {\r\n\t\tif (mouseXInitial < mouseXFinal) //moving from left to right\r\n\t\t{\r\n\r\n\t\t if (mouseYInitial < mouseYFinal) //moving right down\r\n\t\t {\r\n\t\t\tsteps = mouseYFinal - mouseYInitial;\r\n\t\t\tfor (int a = 1 ; a < steps ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial + a, mouseYInitial + a) != 0) //if there is a piece between the bishop and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXInitial + steps, mouseYInitial + steps) != 1)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t if (mouseYInitial > mouseYFinal) //moving right up\r\n\t\t {\r\n\t\t\tsteps = mouseYInitial - mouseYFinal;\r\n\t\t\tfor (int a = 1 ; a < steps ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial + a, mouseYInitial - a) != 0) //if there is a piece between the bishop and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXInitial + steps, mouseYInitial - steps) != 1)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\r\n\t\t}\r\n\t\tif (mouseXInitial > mouseXFinal) //moving from left to right\r\n\t\t{\r\n\t\t if (mouseYInitial < mouseYFinal) //moving left down\r\n\t\t {\r\n\t\t\tsteps = mouseYFinal - mouseYInitial;\r\n\t\t\tfor (int a = 1 ; a < steps ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial - a, mouseYInitial + a) != 0) //if there is a piece between the bishop and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXInitial - steps, mouseYInitial + steps) != 1)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t if (mouseYInitial > mouseYFinal) //moving left up\r\n\t\t {\r\n\t\t\tsteps = mouseYInitial - mouseYFinal;\r\n\t\t\tfor (int a = 1 ; a < steps ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial - a, mouseYInitial - a) != 0) //if there is a piece between the bishop and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXInitial - steps, mouseYInitial - steps) != 1)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\r\n\t\t}\r\n\t }\r\n\r\n\t if (colorOfPiece == false)\r\n\t {\r\n\t\tif (mouseXInitial < mouseXFinal) //moving from left to right\r\n\t\t{\r\n\r\n\t\t if (mouseYInitial < mouseYFinal) //moving right down\r\n\t\t {\r\n\t\t\tsteps = mouseYFinal - mouseYInitial;\r\n\t\t\tfor (int a = 1 ; a < steps ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial + a, mouseYInitial + a) != 0) //if there is a piece between the bishop and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXInitial + steps, mouseYInitial + steps) != 2)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t if (mouseYInitial > mouseYFinal) //moving right up\r\n\t\t {\r\n\t\t\tsteps = mouseYInitial - mouseYFinal;\r\n\t\t\tfor (int a = 1 ; a < steps ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial + a, mouseYInitial - a) != 0) //if there is a piece between the bishop and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXInitial + steps, mouseYInitial - steps) != 2)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\r\n\t\t}\r\n\t\tif (mouseXInitial > mouseXFinal) //moving from left to right\r\n\t\t{\r\n\t\t if (mouseYInitial < mouseYFinal) //moving left down\r\n\t\t {\r\n\t\t\tsteps = mouseYFinal - mouseYInitial;\r\n\t\t\tfor (int a = 1 ; a < steps ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial - a, mouseYInitial + a) != 0) //if there is a piece between the bishop and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXInitial - steps, mouseYInitial + steps) != 2)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t if (mouseYInitial > mouseYFinal) //moving left up\r\n\t\t {\r\n\t\t\tsteps = mouseYInitial - mouseYFinal;\r\n\t\t\tfor (int a = 1 ; a < steps ; a++)\r\n\t\t\t{\r\n\t\t\t if (board.pieceFound (mouseXInitial - a, mouseYInitial - a) != 0) //if there is a piece between the bishop and the place it wants to move to\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (board.pieceFound (mouseXInitial - steps, mouseYInitial - steps) != 2)\r\n\t\t\t{\r\n\r\n\t\t\t return true;\r\n\t\t\t}\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t}\r\n\treturn false;\r\n }", "title": "" }, { "docid": "bed1952f6a759174ae4dcb9cc9afe9f2", "score": "0.644949", "text": "public boolean isAllowed() {\n\t\tif(firstMove == false) {\r\n\t\t\tif(col == 0) {\r\n\t\t\t\tif(lastX / 16 == x / 16 && lastY / 16 + 2 == y / 16) {\r\n\t\t\t\t\tint num = 0;\r\n\t\t\t\t\tfor(int i = 0; i < level.entities.size(); i++) {\r\n\t\t\t\t\t\tif(level.entities.get(i).x == this.x && level.entities.get(i).y / 16 + 1 == y / 16) {\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(this.y == level.entities.get(i).y && this.x == level.entities.get(i).x) {\r\n\t\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(num == 2) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfirstMove = true;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if(col == 1){\r\n\t\t\t\tif(lastX / 16 == x / 16 && lastY / 16 - 2 == y / 16) {\r\n\t\t\t\t\tint num = 0;\r\n\t\t\t\t\tfor(int i = 0; i < level.entities.size(); i++) {\r\n\t\t\t\t\t\tif(level.entities.get(i).x == this.x && level.entities.get(i).y / 16 - 1 == y / 16) {\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(this.y == level.entities.get(i).y && this.x == level.entities.get(i).x) {\r\n\t\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(num == 2) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfirstMove = true;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(col == 0) {\r\n\t\t\tif(lastX / 16 == x / 16 && lastY / 16 + 1 == y / 16) {\r\n\t\t\t\tint num = 0;\r\n\t\t\t\tfor(int i = 0; i < level.entities.size(); i++) {\r\n\t\t\t\t\tif(this.y == level.entities.get(i).y && this.x == level.entities.get(i).x) {\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(num == 2) return false;\r\n\t\t\t\tmoved = true;\r\n\t\t\t\tfirstMove = true;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tif(lastX / 16 - 1 == x / 16 && lastY / 16 + 1 == y / 16 || lastX / 16 + 1 == x / 16 && lastY / 16 + 1 == y / 16) {\r\n\t\t\t\tfor(int i = 0; i < level.entities.size(); i++) {\r\n\t\t\t\t\tif(y == level.entities.get(i).y && x == level.entities.get(i).x && level.entities.get(i).col != col) {\r\n\t\t\t\t\t\tmoved = true;\r\n\t\t\t\t\t\tfirstMove = true;\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else if(col == 1){\r\n\t\t\tif(lastX / 16 == x / 16 && lastY / 16 - 1 == y / 16) {\r\n\t\t\t\tint num = 0;\r\n\t\t\t\tfor(int i = 0; i < level.entities.size(); i++) {\r\n\t\t\t\t\tif(this.y == level.entities.get(i).y && this.x == level.entities.get(i).x) {\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(num == 2) return false;\r\n\t\t\t\tmoved = true;\r\n\t\t\t\tfirstMove = true;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(lastX / 16 - 1 == x / 16 && lastY / 16 - 1 == y / 16 || lastX / 16 + 1 == x / 16 && lastY / 16 - 1 == y / 16) {\r\n\t\t\t\tfor(int i = 0; i < level.entities.size(); i++) {\r\n\t\t\t\t\tif(y == level.entities.get(i).y && x == level.entities.get(i).x && level.entities.get(i).col != col) {\r\n\t\t\t\t\t\tmoved = true;\r\n\t\t\t\t\t\tfirstMove = true;\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f09b3db1dbb58d62cf1674605e4a6b0b", "score": "0.644478", "text": "public void ClickMouse(int MouseX, int MouseY){\r\n StringHolder theReason=new StringHolder();\r\n int x=MouseX/Piece.getWIDTH();\r\n int y=MouseY/Piece.getWIDTH();\r\n if(!IsRaised){\r\n if(GameMap[x][y]==null) return;\r\n if(GameMap[x][y].jColor!=Turn){\r\n// JOptionPane.showMessageDialog(null,\"It is \"+(Turn?\"White\":\"Black\")+\"'s turn\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n String Message=\"You can't move your opponent's piece!\\n\";\r\n Message+=\"It is \"+(Turn?\"White\":\"Black\")+\"'s turn\";\r\n setMessage(Message,ILLEGAL_MOVE);\r\n return;\r\n }\r\n int AvailableMoves=0;\r\n for(int i=0; i<8 ; i++){\r\n for(int j=0 ; j<8 ; j++){\r\n boolean BasicValid=GameMap[x][y].IsValidBasicMove(x,y,i,j,GameMap,theReason);\r\n boolean GeneralValid=GameMap[x][y].IsValidMove(x,y,i,j,Turn,GameMap,theReason);\r\n if(GeneralValid){\r\n GameMapBordered[i][j]=1;\r\n AvailableMoves++;\r\n }else if(BasicValid){ //in Check\r\n GameMapBordered[i][j]=2;\r\n AvailableMoves++;\r\n }\r\n }\r\n }\r\n if(AvailableMoves>0){\r\n SelectedX=x;\r\n SelectedY=y;\r\n IsRaised=true;\r\n }\r\n }else{\r\n IsRaised=false;\r\n for(int i=0 ; i<8 ; i++){\r\n for(int j=0 ; j<8 ; j++){\r\n if(GameMapBordered[i][j]!=0)\r\n GameMapBordered[i][j]=5;\r\n }\r\n }\r\n try {\r\n if(!(SelectedX==x&&SelectedY==y)){\r\n Move(SelectedX,SelectedY,x,y);\r\n }\r\n } catch (IllegalMoveException e1) {\r\n if(GameMap[x][y]!=null && GameMap[SelectedX][SelectedY].jColor == GameMap[x][y].jColor){\r\n //JOptionPane.showMessageDialog(null,\"Rep\");\r\n ClickMouse(x*Piece.getWIDTH(),y*Piece.getWIDTH());\r\n// pnlChess.UpdateBoard();\r\n// return;\r\n }else{\r\n theReason.value=\"SSSSSSSSSSSSSSSSS\";\r\n //GameMap[SelectedX][SelectedY].IsValidMove(SelectedX, SelectedY, x,y,Turn,GameMap,theReason);\r\n setMessage(\"This is not a valid move because:\\t\"+e1.getMessage(),ILLEGAL_MOVE);\r\n }\r\n }\r\n }\r\n pnlChess.UpdateBoard();\r\n }", "title": "" }, { "docid": "d088ed9ba42825e8523273d12fd2a5e1", "score": "0.64347667", "text": "private boolean canPlaced(int x, int y) {\n if (x < 0 || x > 5)\n return false;\n if (y < 0 || y > 6)\n return false;\n if (connect4.getBoard()[x][y] != null)\n return false;\n if (x == 5)\n return false;\n if (connect4.getBoard()[x + 1][y] == null)\n return false;\n return true;\n }", "title": "" }, { "docid": "1dc3691de483a1c2efebe1f997462378", "score": "0.64292645", "text": "protected boolean is_legal_move(int x, int y) {\n return !(x < 0 || x >= map.length || y < 0 || y >= map[0].length) && (map[x][y] != 'X');\n }", "title": "" }, { "docid": "6f0bbeb1fd40a33cc86a939a29f59295", "score": "0.642494", "text": "abstract boolean isValidMoveForChessBoard(MovementType movementType, int newX, int newY);", "title": "" }, { "docid": "23b80517259e2342727a4cf3da84f39f", "score": "0.642414", "text": "private boolean checkForValidEndToMove(int row, int col) {\n Iterator itr = availableMoves.iterator();\n while(itr.hasNext()) {\n Integer[] coords = (Integer[]) itr.next();\n if(coords[0] == row && coords[1] == col) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "51a98401e30e1f172441fa74bc8dce93", "score": "0.64196074", "text": "private boolean FrogPostionsChecker(int CurrPos, int ArrPos, int JumpedOverSquare, int JumpedToSquare)\n {\n int CurrentPosition = CurrPos;\n int ArrangedPostion = ArrPos;\n //obtains the middle squares type to see if it can be jumped over\n CurrentSquare = Squares.get(CurrentPosition+JumpedOverSquare);\n FrogType = CurrentSquare.GetType();\n //checks to see if the square attempting to be jumped over is a green frog and that the arranged position is correct \n if ((FrogType == \"GreenFrog\") && (ArrangedPostion == CurrentPosition + JumpedToSquare))\n {\n //System.out.println(JumpedOverSquare);\n JumpedOverSquare = CurrentPosition + JumpedOverSquare;\n buttons[JumpedOverSquare].setIcon(LilyPad);\n CurrentSquare = Squares.get(JumpedOverSquare);\n CurrentSquare.ChangeType(\"LilyPad\");\n //System.out.println(JumpedOverSquare);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "a3b92979b5ffae0b9e32f76403e010ca", "score": "0.6384413", "text": "protected boolean checkPosCoords(int i, int j) {\n return (i >= 0 && i < this.gameBoard.size() && j >= 0 && j < this.gameBoard.get(i).size());\n }", "title": "" }, { "docid": "cf2569ef20dc7fe3440d21b4ac8888dc", "score": "0.6378841", "text": "public abstract boolean isValidMove(int boardPosition);", "title": "" }, { "docid": "611405b4f98efb4430d13c32bef1974d", "score": "0.6358902", "text": "public boolean isMoveLegal(Board temp,int x,int y, boolean realmove){\n System.out.println(\"hey\");\n //they are not moving anywhere\n if ((getX() == x) && (getY() == y)) {\n System.out.println(\"this move is legal your not moving anywhere\");\n return false;\n }\n //checks to see if you are attacking your own piece\n else if(temp.getChessboard()[x][y].getPiece()!=null){\n if(getPieceColor() == temp.getChessboard()[x][y].getPiece().getPieceColor()) {\n System.out.println(\"you are attacking your own piece\");\n return false;\n }\n }\n //they arent on the same axis\n else if ((Math.abs(getX() - x)) != (Math.abs(getY() - y))) {\n System.out.println(\"this move is illegal\");\n return false;\n }\n //in the case were we can move it we now have to check if there is a piece in the way\n else {\n //if xis smaller then target and y is also smaller\n if ((getX() < x) && (getY() < y)) {\n for (int i = 1; i < x - getX(); i++) {\n if (temp.getChessboard()[getX() + i][getY() + i].isPieceOn()) {\n System.out.println(\"this move is illegal there is something in the way\");\n return false;\n }\n }\n evalMove(temp, x, y, realmove);\n }\n //x is bigger and y is bigger than target\n else if ((getX() > x) && (getY() > y)) {\n for (int i = 1; i < getX() - x; i++) {\n if (temp.getChessboard()[getX() - i][getY() - i].isPieceOn()) {\n System.out.println(\"this move is illegal\");\n return false;\n }\n }\n evalMove(temp, x, y, realmove);\n }\n //x is bigger and y is smaller\n else if ((getX() > x) && (getY() < y)) {\n for (int i = 1; i < getX() - x; i++) {\n if (temp.getChessboard()[getX() - i][getY() + i].isPieceOn()) {\n System.out.println(\"this move is illegal\");\n return false;\n }\n }\n evalMove(temp, x, y, realmove);\n\n } else if ((getX() > x) && (getY() < y))\n //out x is bigger then the location\n {\n for (int i = 1; i < getX() - x; i++) {\n if (temp.getChessboard()[getX() - i][getY() + i].isPieceOn()) {\n System.out.println(\"this move is illegal there is a piece in the way\");\n return false;\n }\n\n }\n evalMove(temp, x, y, realmove);\n }\n }\n return true;\n }", "title": "" }, { "docid": "1893c51fc2be141695ee654a7e1113ea", "score": "0.63562447", "text": "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tif(gameOver) {\n\t\t\t\tnewGame();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//get position of the click\n\t\t\t\tint ex = e.getX()- margin;\n\t\t\t\tint ey = e.getY()- margin;\n\t\t\t\t\n\t\t\t\t//click in the grid?\n\t\t\t\tif(ex <0 || ex> gridSize || ey<0 || ey>gridSize)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\t// get position in the grid\n\t\t\t\tint c1 = ex/ tileSize;\n\t\t\t\tint r1 = ey/ tileSize;\n\t\t\t\t\n\t\t\t\t// get position of the blank cell\n\t\t\t\tint c2 = blankPos % size;\n\t\t\t\tint r2 = blankPos / size;\n\t\t\t\t\n\t\t\t\t// we convert in the 1D co-ord\n\t\t\t\tint clickPos = r1 * size +c1;\n\t\t\t\t\n\t\t\t\tint dir = 0;\n\t\t\t\t\n\t\t\t\t// we search direction for multiple tiles moves at once\n\t\t\t\tif(c1 == c2 && Math.abs(r1 -r2 )>0)\n\t\t\t\t\tdir =(r1 -r2) > 0 ? size: -size;\n\t\t\t\telse if(r1== r2 && Math.abs(c1 - c2)>0)\n\t\t\t\t\tdir = (c1 - c2)>0 ?1 : -1;\n\t\t\t\t\n\t\t\t\tif(dir != 0) {\n\t\t\t\t\t// we move tile\n\t\t\t\t\tdo {\n\t\t\t\t\t\tint newBlankPos = blankPos +dir;\n\t\t\t\t\t\ttiles[blankPos] = tiles[newBlankPos];\n\t\t\t\t\t\tblankPos = newBlankPos;\n\t\t\t\t\t\n\t\t\t\t\t}while(blankPos != clickPos);\n\t\t\t\t\t\n\t\t\t\t\ttiles[blankPos] =0;\n\t\t\t\t}\t\n\t\t\t\t// we check if game is solved\n\t\t\t\tgameOver = isSolved();\n\t\t\t}\n\t\t\t// we repaint panel\n\t\t\trepaint();\n\t\t\t\n\t\t}", "title": "" }, { "docid": "39e64d94699e177f79a9fa64a6f8fb71", "score": "0.6346021", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n int gridRow = getGridRow(e.getActionCommand());\n int gridCol = getGridCol(e.getActionCommand());\n int buttonRow = getButtonRow(e.getActionCommand());\n int buttonCol = getButtonCol(e.getActionCommand());\n \n //Runs the main part of Tic Tac Toe if game isnt over\n if (!gameOver) run(gridRow, gridCol, buttonRow, buttonCol);\n \n }", "title": "" }, { "docid": "d295d5b7a4d114e2a31b3ff566949ce7", "score": "0.6329975", "text": "@FXML\n private void userClickedBoard(MouseEvent event){\n int rowClicked = 0, colClicked = 0;\n double row = event.getX();\n double col = event.getY();\n // get col clicked\n for(int i = 0; i <= boardSize; i++)\n if(row <= (i+1)*(540/boardSize)){\n colClicked = i;\n break;\n }\n // get row clicked\n for(int i = 0; i <= boardSize; i++)\n if(col <= (i+1)*(540/boardSize)){\n rowClicked = i;\n break;\n }\n // mark ilegal only if click after half a second again\n if ((System.currentTimeMillis() - timeMArk) > 500)\n ilegalMove(rowClicked, colClicked);\n // play move\n game.localPlayerPlayed(rowClicked, colClicked);\n }", "title": "" }, { "docid": "956079edc10d924b4df402fe4cf85e63", "score": "0.6325098", "text": "public void click() {\n\t\tif (gameOver == false) {\n\t\t\tif (released == true) {\n\t\t\t\tif (instrucciones == true && leer == false) {\n\t\t\t\t\tSystem.out.println(\"Click en Instrucciones: \" + instrucciones + \" -Question: \" + question);\n\t\t\t\t\treleased = false;\n\t\t\t\t\tinstrucciones = false;\n\t\t\t\t\tSystem.out.println(\"insturcciones False\");\t\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (leer == true) {\n\t\t\t\t\treleased = false;\n\t\t\t\t\tleer = false;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tif (question == 0) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\tinsNum++;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 1) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, (app.width / 3), (app.height / 4) * 3) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 2) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 3) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, (app.width / 3), (app.height / 4) * 3) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 4) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, (app.width / 3) * 2, (app.height / 4) * 3) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 5) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 6) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, (app.width / 3) * 2, (app.height / 4) * 3) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\tinsNum=2;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\tinstrucciones = true;\n\t\t\t\t\t\t\tleer= true;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 7) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, (app.width / 3) * 2, (app.height / 4) * 3) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.println(\"insturcciones True\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// BreakPoint\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 8) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\tinsNum++;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 9) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// BreakPoint\n\t\t\t\t\tif (question == 10) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, (app.width / 3), (app.height / 4) * 3) <= 100) {\n\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\tinstrucciones = true;\n\t\t\t\t\t\t\tSystem.out.println(\"insturcciones True\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 11) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\tinsNum=3;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 12) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, (app.width / 3) * 2, (app.height / 4) * 3) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 13) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (question == 14) {\n\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\treleased = false;\n\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (question == 15) {\n\t\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\n\t\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\t\tinstrucciones = true;\n\t\t\t\t\t\t\t\tinsNum=4;\n\t\t\t\t\t\t\t\tSystem.out.println(\"Que sucede aqui¿?\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// BreakPoint\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (question == 16) {\n\t\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, (app.width / 3) * 2, (app.height / 4) * 3) <= 100) {\n\t\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\t\tSystem.out.println(\"Porque no llega?\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (question == 17) {\n\t\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, (app.width / 3) * 2, (app.height / 4) * 3) <= 100) {\n\t\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (question == 18) {\n\t\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\t\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (question == 19) {\n\t\t\t\t\t\t\t\tif (app.dist(app.mouseX, app.mouseY, app.width / 3, (app.height / 4) * 2) <= 100) {\n\t\t\t\t\t\t\t\t\t// question++;\n\t\t\t\t\t\t\t\t\tcorrect++;\n\t\t\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\t\t\tinstrucciones = false;\n\t\t\t\t\t\t\t\t\tgameOver = true;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"LastOne\");\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.out.println(\"LastOne\");\n\t\t\t\t\t\t\tif(question >= 19) {\n\t\t\t\t\t\t\tgameOver = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(question>=19) {\n\t\t\t\t\t\t\tgameOver= true;\n\t\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(question == 6) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tinstrucciones = true;\n\t\t\t\t\t\t\tinsNum = 2;\n\t\t\t\t\t\t\tleer = true;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(question == 10) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tinstrucciones = true;\n\t\t\t\t\t\t\tinsNum = 3;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(question == 15) {\n\t\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\t\tinstrucciones = true;\n\t\t\t\t\t\t\tinsNum = 4;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tquestion++;\n\t\t\t\t\t\treleased = false;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t}\n\t\tif (gameOver == true) {\n\t\t\tui.click();\n\t\t}\n\t}", "title": "" }, { "docid": "5c62c6e25d6c5534f12295a59d730641", "score": "0.63115597", "text": "public boolean isLegal(Piece[][] board, boolean turn) {\r\n boolean legal = false;\r\n \r\n if(turn == board[ax][ay].color) {\r\n if(board[bx][by].type == 0 || board[bx][by].color != turn) {\r\n switch(board[ax][ay].type) {\r\n case 1: //Pawn\r\n if(ax == bx) {\r\n if((by - ay) == (board[ax][ay].color ? 1 : -1)) { //Single jump\r\n legal = (board[bx][by].type == 0); //Legal if target is empty\r\n }\r\n else if (ay == (board[ax][ay].color ? 1 : 6)) {\r\n if ((by - ay) == (board[ax][ay].color ? 2 : -2)) { //Double Jump\r\n if(board[ax][ay + (turn ? 1 : -1)].type == 0) { //Is path clear?\r\n legal = (board[bx][by].type == 0); //Legal if target is empty\r\n }\r\n }\r\n }\r\n }\r\n else if ((Math.abs(bx - ax) == 1) && ((by - ay) == (board[ax][ay].color ? 1 : -1))) { //Attack\r\n legal = (board[bx][by].type != 0); //Legal if target isn't empty\r\n }\r\n break;\r\n //Promotions are not tested here, that happens in the input method of the Chess class\r\n \r\n case 2: //Rook\r\n if(ax == bx) { //Vertical\r\n legal = true;\r\n boolean direction = ay < by;\r\n for(int i = ay + (direction ? 1 : -1); direction ? (i < by) : (i > by); i += direction ? 1 : -1) {\r\n if(board[ax][i].type != 0) {\r\n legal = false;\r\n break;\r\n }\r\n }\r\n }\r\n else if(ay == by) { //Horizantal\r\n legal = true;\r\n boolean direction = ax < bx;\r\n for(int i = ax + (direction ? 1 : -1); direction ? (i < bx) : (i > bx); i += direction ? 1 : -1) {\r\n if(board[i][ay].type != 0) {\r\n legal = false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 3: //Knight\r\n int xDist = Math.abs(bx-ax);\r\n int yDist = Math.abs(by-ay);\r\n \r\n legal = ((xDist == 2) && (yDist == 1)) || ((xDist == 1) && (yDist == 2));\r\n break;\r\n case 4: //Bishop\r\n if(Math.abs(ax - bx) == Math.abs(ay - by)) { //Diagonal\r\n legal = true;\r\n boolean xDir = ax < bx;\r\n boolean yDir = ay < by;\r\n \r\n int distance = Math.abs(ax - bx);\r\n \r\n for(int i = 1; i < distance; i++) {\r\n if(board[ax+(i*(xDir ? 1 : -1))][ay+(i*(yDir ? 1 : -1))].type != 0) {\r\n legal = false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 5: //Queen (Same code from Rook and Bishop)\r\n if(ax == bx) { //Vertical\r\n legal = true;\r\n boolean direction = ay < by;\r\n for(int i = ay + (direction ? 1 : -1); direction ? (i < by) : (i > by); i += direction ? 1 : -1) {\r\n if(board[ax][i].type != 0) {\r\n legal = false;\r\n break;\r\n }\r\n }\r\n }\r\n else if(ay == by) { //Horizantal\r\n legal = true;\r\n boolean direction = ax < bx;\r\n for(int i = ax + (direction ? 1 : -1); direction ? (i < bx) : (i > bx); i += direction ? 1 : -1) {\r\n if(board[i][ay].type != 0) {\r\n legal = false;\r\n break;\r\n }\r\n }\r\n }\r\n else if(Math.abs(ax - bx) == Math.abs(ay - by)) { //Diagonal\r\n legal = true;\r\n boolean xDir = ax < bx;\r\n boolean yDir = ay < by;\r\n \r\n int distance = Math.abs(ax - bx);\r\n \r\n for(int i = 1; i < distance; i++) {\r\n if(board[ax+(i*(xDir ? 1 : -1))][ay+(i*(yDir ? 1 : -1))].type != 0) {\r\n legal = false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 6: //King\r\n legal = (Math.abs(bx-ax) <= 1) && (Math.abs(by-ay) <= 1); //Is the move within one step on any axis?\r\n }\r\n }\r\n else if ((ax == bx) && (ay == by)) {\r\n System.out.println(\"Coordinates are the same position.\");\r\n }\r\n else {\r\n System.out.println(\"Cannot take your own pieces.\");\r\n }\r\n }\r\n else {\r\n System.out.println(\"Not \"+(!turn ? \"white's\" : \"black's\")+\" turn.\");\r\n }\r\n return legal;\r\n }", "title": "" }, { "docid": "fddbbec0d68c93c5b481bf537fcd27a1", "score": "0.63088363", "text": "private void endMove(int row, int col) {\n moveStarted = false;\n moveTo[0] = row;\n moveTo[1] = col;\n chessBoard.unmarkMoveFrom(moveFrom);\n chessBoard.clearAllHighlightedTiles();\n\n if(!sameCoords(moveFrom, moveTo)) {\n if(!checkForValidEndToMove(row, col)) {\n JOptionPane.showMessageDialog(chessBoard, \"That piece can't move there\");\n } else {\n try {\n carryOutMove();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(chessBoard, \"Your king would be in check\");\n }\n }\n }\n }", "title": "" }, { "docid": "ab874bf17e6a1c3182143c9a0324662e", "score": "0.630766", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t// only allow right click\n\t\tif (!SwingUtilities.isRightMouseButton(e)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// See if we should be handing this drag or not\n\t\tRectangle overallBoardRectangle = new Rectangle(this.levelView.getBoardPieceRectangle(0, 0).x,\n\t\t\t\tthis.levelView.getBoardPieceRectangle(0, 0).y, 12 * 53, 12 * 53);\n\t\tPoint mouseClickLocation = new Point(e.getX(), e.getY());\n\n\t\tif (!overallBoardRectangle.contains(mouseClickLocation))\n\t\t\treturn; // We shouldn't be handling this move\n\n\t\t// Go over each Piece and then their PieceSquares to determine where the\n\t\t// click happened\n\t\tIterator<Piece> boardPieces = this.level.getBoard().getPiecesIt();\n\t\tboolean exit = false; // To keep track if the iteration loop should be\n\t\t\t\t\t\t\t\t// quit or not\n\t\tfor (; boardPieces.hasNext() && !exit;) {\n\t\t\tPiece aPiece = new Piece(boardPieces.next()); // Get the next Piece\n\t\t\t// Go over each of the PieceSquares\n\t\t\tfor (PieceSquare aPieceSquare : aPiece.getPieceSquares()) {\n\t\t\t\t// See if the click landed on this PieceSquare\n\t\t\t\tRectangle pieceSquareRect = this.levelView.getBoardPieceRectangle(aPieceSquare.getRow(),\n\t\t\t\t\t\taPieceSquare.getCol());\n\t\t\t\tif (pieceSquareRect.contains(mouseClickLocation)) {\n\t\t\t\t\t// Spawn off the move\n\t\t\t\t\tToggleHintMove theMove = new ToggleHintMove(level, levelView);\n\t\t\t\t\ttheMove.setOriginalPiece(aPiece); // Set the piece whose\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// hint has to be\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// toggled\n\t\t\t\t\tif (theMove.isValid() && theMove.doMove()) {\n\t\t\t\t\t\t// Add it to the stack of moves\n\t\t\t\t\t\tMoveManager.pushMove(theMove);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Force the LevelView to repaint\n\t\t\t\t\tthis.levelView.repaint();\n\n\t\t\t\t\t// We've handled the mousePress, so exit the loop\n\t\t\t\t\texit = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a7b487446fbf85baab642dba35804815", "score": "0.6306314", "text": "public boolean isValidPos (int row,int col) {\n // the node is within the boundary and not marked\n return (row < dim) && (row >= 0) && (col < dim) && (col >= 0) && (!boardFlags[row][col]);\n }", "title": "" }, { "docid": "f63c9c7ba717fcd9e0c31f4fbfac4c51", "score": "0.62950665", "text": "public boolean checkNextMove(Cell[][] map) {\r\n\r\n if (x%16 != 0 || y%16 != 0) {\r\n state = true;\r\n return true;\r\n }\r\n\r\n int xTemp = this.x;\r\n int yTemp = this.y;\r\n\r\n switch(direction) {\r\n case \"up\":\r\n yTemp -= 16;\r\n break;\r\n case \"down\":\r\n yTemp += 16;\r\n break;\r\n case \"right\":\r\n xTemp += 16;\r\n break;\r\n case \"left\":\r\n xTemp -= 16;\r\n break;\r\n }\r\n if (map[yTemp/16][xTemp/16].passable()) {\r\n state = true;\r\n }\r\n else{\r\n state = false;\r\n }\r\n return state;\r\n }", "title": "" }, { "docid": "ca01fe40a2ceac264e8ee337998ebcee", "score": "0.6292449", "text": "public void verifyMove(int x, int y, tile[][] board)\n\t{\n\t\t// White pawns\n\t\t// Moves up one square\n\t\tif (this.color().equals(\"White\"))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x-1][y].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x-1][y].setText(\"\\u25E6\");\n\t\t\t\t\t\n\t\t\t\t\t// Moves up two squares\n\t\t\t\t\tif (moved == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (board[x-2][y].getText().equals(\"\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard[x-2][y].setText(\"\\u25E6\");\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\tcatch(Exception e) {}\n\t\t\t\n\t\t\t// Captures diagonally to the right\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (!board[x-1][y+1].getPiece().color().equals(this.color()))\n\t\t\t\t{\n\t\t\t\t\tboard[x-1][y+1].setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {}\n\t\t\t\n\t\t\t// Captures diagonally to the right\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (!board[x-1][y-1].getPiece().color().equals(this.color()))\n\t\t\t\t{\n\t\t\t\t\tboard[x-1][y-1].setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {}\n\t\t}\n\t\t\n\t\t// Black pawns\n\t\telse\n\t\t{\n\t\t\t// Moves up one square\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x+1][y].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x+1][y].setText(\"\\u25E6\");\n\t\t\t\t\t\n\t\t\t\t\t// Moves up two squares\n\t\t\t\t\tif (moved == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (board[x+2][y].getText().equals(\"\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard[x+2][y].setText(\"\\u25E6\");\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\tcatch(Exception e) {}\n\t\t\t\n\t\t\t// Captures diagonally to the right\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (!board[x+1][y+1].getPiece().color().equals(this.color()))\n\t\t\t\t{\n\t\t\t\t\tboard[x+1][y+1].setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {}\n\t\t\t\n\t\t\t// Captures diagonally to the left\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (!board[x+1][y-1].getPiece().color().equals(this.color()))\n\t\t\t\t{\n\t\t\t\t\tboard[x+1][y-1].setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {}\n\t\t}\n\t}", "title": "" }, { "docid": "aeb77609623e321df654ae9f07f826b7", "score": "0.62784684", "text": "public void keyPressed(KeyEvent k)\n{\nint key=k.getKeyCode();\nswitch(key)\n{\ncase KeyEvent.VK_UP:\nfor(int i=0;i<3;i++)\n{\nfor(int j=0;j<3;j++)\n{\nif(a[i][j]==0)\n{\nif((i!=3))\n{\na[i][j]=a[i+1][j];\na[i+1][j]=0;\nflag=1;\nmoves++;\nbreak;\n}\nelse\ntry\n{\nshowStatus(\"Move not possible\");\nThread.sleep(300);\nshowStatus(\" \");\n}\ncatch(Exception e){}\n} \n}\nif (flag==1)\nbreak;\n}\nbreak;\ncase KeyEvent.VK_DOWN:\nfor(int i=0;i<3;i++)\n{\nfor(int j=0;j<3;j++)\n{\nif(a[i][j]==0)\n{\nif(i!=3)\n{\na[i][j]=a[i-1][j];\na[i-1][j]=0;\nflag=1;\nmoves++;\nbreak;\n}\nelse\ntry\n{\nshowStatus(\"Move not possible\");\nThread.sleep(300);\nshowStatus(\" \");\n}\ncatch(Exception e){}\n}\n}\nif (flag==1)\nbreak;\n}\nbreak;\ncase KeyEvent.VK_RIGHT:\nfor(int i=0;i<3;i++)\n{\nfor(int j=0;j<3;j++)\n{\nif(a[i][j]==0)\n{\nif(j!=3)\n{\na[i][j]=a[i][j-1];\na[i][j-1]=0;\nflag=1;\nmoves++;\nbreak;\n}\nelse\ntry\n{\nshowStatus(\"Move not possible\");\nThread.sleep(300);\nshowStatus(\" \");\n}\ncatch(Exception e){}\n}\n}\nif (flag==1)\nbreak;\n}\nbreak;\ncase KeyEvent.VK_LEFT:\nfor(int i=0;i<3;i++)\n{\nfor(int j=0;j<3;j++)\n{\nif(a[i][j]==0)\n{\nif(j!=3)\n{\na[i][j]=a[i][j+1];\na[i][j+1]=0;\nflag=1;\nmoves++;\nbreak;\n}\nelse\ntry\n{\nshowStatus(\"Move not possible\");\nThread.sleep(300);\nshowStatus(\" \");\n}\ncatch(Exception e){}\n}\n}\nif (flag==1)\nbreak;\n}\nbreak;\n}\nflag=0;\nrepaint();\n}", "title": "" }, { "docid": "3ee45bf56dc953b18b8e1f3fd52f272d", "score": "0.6261984", "text": "private boolean hasValidMoves(int row, int col) {\n if (isOutOfBound(row, col)\n || board[row][col] == State.Invalid\n || board[row][col] == State.Empty) {\n return false;\n }\n\n for (int i = 0; i < 4; i++) {\n int oneRow = row + oneStep[i][0];\n int oneCol = col + oneStep[i][1];\n int twoRow = row + twoSteps[i][0];\n int twoCol = col + twoSteps[i][1];\n\n if (!isOutOfBound(oneRow, oneCol) && !isOutOfBound(twoRow, twoCol)) {\n if (board[oneRow][oneCol] == State.Marble && board[twoRow][twoCol] == State.Empty) {\n return true;\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "ddd43890ee81bd98838e2561b1bf9183", "score": "0.62553763", "text": "private boolean isMoveDownLegal() {\r\n boolean canPass = true;\r\n final int[][] blocks = ((AbstractPiece) myCurrentPiece).getBoardCoordinates();\r\n \r\n // perform bounds checking on each block\r\n for (int i = 0; i < blocks.length; i++) {\r\n // Is this block at the bottom, or is there a piece below it?\r\n if (blocks[i][1] == 0 || // block is at the bottom\r\n blockAt(blocks[i][0], blocks[i][1] - 1) != Block.EMPTY) {\r\n // block below is occupied\r\n canPass = false;\r\n break; // can't move, no need to keep checking\r\n }\r\n }\r\n \r\n return canPass;\r\n }", "title": "" }, { "docid": "e43e9a025fc32b540428c23c3d8cb99a", "score": "0.62382853", "text": "private boolean canMoveDown()\n { \n //Loops through the rows and the columns of the board\n for(int x = 0; x < GRID_SIZE-1; x++){\n for(int y = 0; y < GRID_SIZE; y++){\n \n //Checks if there is an empty space or an identical value to the\n //bottom of the tile and returns true if there is\n if(this.grid[x+1][y] == 0 || this.grid[x][y] == this.grid[x+1][y]){\n //Checks if the tile is an empty space and if the one under it\n //is also an empty space and returns false\n if(this.grid[x][y] == 0 && this.grid[x+1][y] == 0){\n return true;\n }\n }\n }\n }\n //Returns false if none of the conditions are met above\n return false;\n }", "title": "" }, { "docid": "7202b9e90479e754093bf603bc287f08", "score": "0.62375844", "text": "public void evaluateMove(TicTacToe game, StackPane clickedNode) {\n\t\tArrayList<int[]> legalMoves = game.getBoard().getLegalMoves();\n\t\tSquare[][] boardArray = game.getBoard().getBoardArray();\n\t\tint moveX = 0;\n\t\tint moveY = 0;\n\t\tboolean moveIsLegal = false;\n\t\t\n\t\t// Iterates through the board array to find the square that was clicked on.\n\t\tfor (int i = 0; i < Board.findBoardSize(_gameSetting); i++) {\n\t\t\tfor (int j = 0; j < Board.findBoardSize(_gameSetting); j++) {\n\t\t\t\tif (boardArray[i][j].getNode() == clickedNode) {\n\t\t\t\t\tmoveX = i;\n\t\t\t\t\tmoveY = j;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Searches for move inside legal moves array to check if it is legal.\n\t\tfor (int i = 0; i < legalMoves.size(); i++) {\n\t\t\tif (legalMoves.get(i)[0] == moveX && legalMoves.get(i)[1] == moveY) {\n\t\t\t\tmoveIsLegal = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Only make move if it is a legal move (not that surprising).\n\t\tif (moveIsLegal) {\n\t\t\tif (!game.getBoard().getIsFirstMove() && _gameSetting == GameSetting.ULTIMATE) {\n\t\t\t\t// This iterates through the legal moves to un-highlight the board in preparation for the next move.\n\t\t\t\tfor (int i = 0; i < legalMoves.size(); i++) {\n\t\t\t\t\tgame.getBoard().getBoardArray()[legalMoves.get(i)[0]][legalMoves.get(i)[1]].toggleHighlight();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Calls the superclass method to place a piece on the board.\n\t\t\tthis.move(game, Board.findBoardSize(_gameSetting), moveX, moveY);\n\t\t\tgame.switchPlayer();\n\t\t}\n\n\t}", "title": "" }, { "docid": "a22e324ad05af503376e17e3fa6bd711", "score": "0.62354887", "text": "public boolean validPlay(Piece p) {\n\t\tboolean touchingCorner = false;\n\t\tboolean startingAtRightSpot = false;\n\t\tColor c = p.getColor();\n\t\tList<Location> locList = new ArrayList<Location>();\n\t\t\n\t\tfor(Block block : p.getBlockList()){\n\t\t\tint x,y;\n\t\t\tx = block.getScreenLoc().getX() + Block.SIZE/2;\n\t\t\ty = block.getScreenLoc().getY() + Block.SIZE/2;\n\t\t\tlocList.add(new Location(x,y).convertToGrid());\n\t\t}\n\t\t\n\t\tfor(Location loc : locList){\n\t\t\t\n\t\t\tif(!onGrid(loc) || this.checkOccupied(loc) || this.checkAdjacent(loc,c))\n\t\t\t\treturn false;\n\t\t\t\n\t\t\tif(touchingCorner(loc,c))\n\t\t\t\ttouchingCorner = true;\n\t\t\t\n\t\t\tPlayer play = p.getPlayer();\n\t\t\tif(play.firstMove()){\n\t\t\t\tif(play.getStartingLocation().sameLoc(loc))\n\t\t\t\t\tstartingAtRightSpot = true;\n\t\t\t}\n\t\t}if(p.getPlayer().firstMove()){\n\t\t\tif(startingAtRightSpot){\n\t\t\t\t//System.out.println(\"Started at right spot\");\n\t\t\t\tp.getPlayer().firstMoveComplete();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn touchingCorner;\n\t}", "title": "" }, { "docid": "e742493990e00ee315565560bdb66bff", "score": "0.62348026", "text": "private boolean validMove(int xi, int yi, int xf, int yf){\n if(pieceAt(xi, yi).isKing())\n {\n //pieces are kings --> can move up or down \n if(Math.abs(yf - yi) == 1 && Math.abs(xf - xi) == 1)\n {\n if(move_occured) //for case where you capture something and try to keep moving illegally afterwards\n {\n return false;\n }\n return true;\n }\n }\n if(pieceAt(xi, yi).isFire() || pieceAt(xi, yi).isKing()) \n { \n //pieces are fire pieces--> can only move up 1\n if(yf - yi == 1 && Math.abs(xf - xi) == 1)\n { \n if(move_occured) //for case where you capture something and try to keep moving illegally afterwards\n {\n return false;\n } \n return true;\n }\n //UP CAPTURES\n else if(yf - yi == 2) //piece moved up\n { \n if(xf - xi == 2) //dest is right & up\n {\n if(pieceAt(xf - 1, yf - 1) != null && pieceAt(xf - 1, yf - 1).isFire() == false) // check that capture is correct piece type (opposite) right diag\n {\n return true;\n }\n else if(pieceAt(xf - 1, yf - 1) != null && pieceAt(xi, yi).isKing())\n {\n return true;\n }\n }\n else if(xf - xi == -2) //moved left and up\n {\n if(pieceAt(xf + 1, yf - 1) != null && pieceAt(xf + 1, yf - 1).isFire() == false) // // check that capture is correct piece type- left diag\n {\n return true;\n }\n else if(pieceAt(xf + 1, yf - 1) != null && pieceAt(xi, yi).isKing())\n {\n return true;\n }\n }\n }\n }\n\n if(!pieceAt(xi, yi).isFire() || pieceAt(xi, yi).isKing()) \n {\n //pieces are water pieces --> can only move down\n if(yf - yi == -1 && Math.abs(xf - xi) == 1)\n {\n if(move_occured) //for case where you capture something and try to keep moving illegally afterwards\n {\n return false;\n } \n return true;\n } \n //DOWN CAPTURE\n else if(yf - yi == -2) //piece moved down -- must be a king or water\n {\n if(xf - xi == 2) //moved right & down\n {\n if(pieceAt(xf - 1, yf + 1) != null && pieceAt(xf - 1, yf + 1).isFire() == true) //check correct type right diag capture\n {\n return true;\n }\n else if(pieceAt(xf - 1, yf + 1) != null && pieceAt(xi, yi).isKing())\n {\n return true;\n } \n }\n else if(xf - xi == -2) //moved left and down\n {\n if(pieceAt(xf + 1, yf + 1) != null && pieceAt(xf + 1, yf + 1).isFire() == true) //check correct piece type left diag\n {\n return true;\n }\n else if(pieceAt(xf + 1, yf + 1) != null && pieceAt(xi, yi).isKing())\n {\n return true;\n }\n }\n }\n }\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e5b682be1d1a678f5eddd55e74a19cc0", "score": "0.62327874", "text": "private boolean stuck(){\n\t\tif(!visted(xPos+1,yPos) && (!outOfBounds(xPos+1, yPos) || isInfinite)){\n\t\t\treturn false;\n\t\t}\n\t\tif(!visted(xPos-1,yPos) && (!outOfBounds(xPos-1, yPos) || isInfinite)){\n\t\t\treturn false;\n\t\t}\n\t\tif(!visted(xPos,yPos+1) && (!outOfBounds(xPos, yPos+1) || isInfinite)){\n\t\t\treturn false;\n\t\t}\n\t\tif(!visted(xPos,yPos-1) && (!outOfBounds(xPos, yPos-1) || isInfinite)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "703bceeeb850a72e573adf45e80fe954", "score": "0.6228078", "text": "@Override\n\tpublic boolean canMove(int x, int y){\n\t\tif(x<0 || x>7 || y<0 || y>7)\n\t\t\treturn false;\n\t\tboolean onPath = (Math.abs(this.x-x)==2 || Math.abs(this.y-y)==2) && (Math.abs(this.x-x)==1 || Math.abs(this.y-y)==1);\n\t\tPiece target = MainActivity.board[y][x];\n\t\tboolean notBlocked = target.isBlank() || target.color!=color;\n\t\treturn onPath && notBlocked;\n\t}", "title": "" }, { "docid": "9b3671960f727f08fa39659c6a2aabe3", "score": "0.6214209", "text": "private void checkEndTilePosition(){\n }", "title": "" }, { "docid": "15b66ab9696ed96d9737d74dcb8bfe87", "score": "0.62115204", "text": "public void checkWinCondition() {\n // get location of last move \n int col = board.lastHumanMove - 1; \n int row = 0; \n\n while(!board.boardArr[row][col].equals(opType) && row < 5) {\n row ++; \n }\n\n // call score methods on X for last move location - this will set globals if block needed \n scoreDiagonals(row, col, opType); \n scoreHorizontals(row, col, opType); \n scoreVerticals(row, col, opType); \n }", "title": "" }, { "docid": "ba3c945f73be7e277323739d2a72cc72", "score": "0.6209174", "text": "@Override\n /**\n * onTouch handles the placement of pieces, it converts x,y inputs to i,j array values,\n * then toggles the piece at i,j to be visible/invisible.\n */\n public boolean onTouch(View v, MotionEvent event) {\n if (event.getDownTime() == this.downTime){\n //if it's the same press, ignore the touch event\n return false;\n }\n this.downTime = event.getDownTime();\n\n float x = event.getX();\n float y = event.getY();\n\n float width = this.getWidth();\n float height = this.getHeight();\n\n height = height/8.0f;\n width = width/8.0f;\n\n x /= width;\n y /= height;\n\n int i = (int) x;\n int j = (int) y;\n\n //if there isn't a piece where clicked, make the piece visible.\n //if the is a piece, make it invisible\n pieces[i][j].setEmpty(!pieces[i][j].isEmpty());\n //set the color of the piece clicked to the current turn's color\n pieces[i][j].setColor(color);\n //remove previous piece placed : you can only place one piece per turn\n //check to make sure it's not the first move (lastX = -1) or that the piece you're removing\n //isn't the same piece that was just placed\n if(lastX != -1 && !(lastX == i && lastY == j)) {\n pieces[lastX][lastY].setEmpty(true);\n }\n //set last variable so we can remove the piece if another one is placed\n lastX = i;\n lastY = j;\n counter.setText(\"\" + i + \", \" + j);\n //Log.i(\"board\", \"\" + i + \" \" + j);\n\n //tell the board to redraw\n this.invalidate();\n\n\n return true;\n }", "title": "" }, { "docid": "e1775c1d5864f2348e7b8e4a7b791280", "score": "0.6208919", "text": "@Override\n boolean validMove(Tile tile, Piece[] list0, Piece[] list1) {\n if (tile.getOccupied() == colour) {\n return false;\n } else if ((tile.getxPos() == xPos + 2 || tile.getxPos() == xPos - 2)\n && (tile.getyPos() == yPos + 1 || tile.getyPos() == yPos - 1)) {\n return true;\n } else if ((tile.getxPos() == xPos + 1 || tile.getxPos() == xPos - 1)\n && (tile.getyPos() == yPos + 2 || tile.getyPos() == yPos - 2)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "ecbde1af62480a132f83800312d4dcef", "score": "0.62072414", "text": "private boolean isValidMove(int x, int y, boolean readOnly) {\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[i].length; j++) {\n if (board[i][j] != null && board[i][j].isSelected()) {\n // Found a selected piece\n // Is it a normal piece?\n if (!board[i][j].isQueen()) {\n // Check its avalible moves\n int orientation = -1;\n if (board[i][j].isWhite()) {\n orientation = 1;\n }\n\n if (checkValid(i - 1, j - 1 * orientation, x, y) || checkValid(i + 1, j - 1 * orientation, x, y)) {\n return true;\n }\n\n int side = 0;\n if (checkEnemy(i - 1, j - 1 * orientation, i, j)) {\n if (checkValid(i - 2, j - 2 * orientation, x, y)) {\n side = 1;\n }\n }\n if (checkEnemy(i + 1, j - 1 * orientation, i, j)) {\n if (checkValid(i + 2, j - 2 * orientation, x, y)) {\n side = -1;\n }\n }\n if (side != 0) {\n if (!readOnly) {\n board[i - 1 * side][j - 1 * orientation] = null;\n }\n return true;\n }\n } else {\n // Queen has different movement, but luckily it's the same for both colors\n // Quite an inefficient way to do it, but a guaranteed way to get all the moves\n // Loop 4 times for all the directions\n int l_r = -1;\n int t_b = -1;\n for (int k = 0; k < 4; k++) {\n int enemyX = -1;\n int enemyY = -1;\n // Loop board.length times to get all the possible moves from corner to corner\n for (int l = 1; l < board.length; l++) {\n try {\n int nx = i + (l_r * l);\n int ny = j + (t_b * l);\n Piece cur = board[nx][ny];\n\n // System.out.println(\"Is \" + x + \", \" + y + \" at \" + nx + \", \" + ny);\n if (isOccupiedTile(nx, ny)) {\n if (board[nx][ny].isWhite() != board[i][j].isWhite()) {\n // Pass an enemy\n if (enemyX != -1) {\n // Passing multiple enemies, can't do that\n break;\n } else {\n enemyX = nx;\n enemyY = ny;\n }\n } else {\n // Pass a friend\n break;\n }\n }\n if (nx == x && ny == y) {\n if (cur == null) {\n // The move was valid\n // If we passed an enemy, delete it\n if (!readOnly && enemyX != -1) {\n board[enemyX][enemyY] = null;\n }\n return true;\n } else {\n return false;\n }\n }\n } catch (IndexOutOfBoundsException e) {\n // We left the playable area, don't need to check further\n break;\n }\n }\n\n if (k % 2 == 1) {\n l_r = -1;\n } else {\n l_r = 1;\n }\n if (k >= 1) {\n t_b = 1;\n }\n }\n }\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "b0e10cb5f5864c468133f11bba9d5a9b", "score": "0.61990297", "text": "boolean checkSpace(BoardPosition pos);", "title": "" }, { "docid": "0b3ec3fbb569df1fd563941f345eab59", "score": "0.61959726", "text": "public boolean move(char c, int s){\n switch (c){\n case 'w':\n if(OutOfBounds(x-1,y,s)){\n System.out.println(\">> Move out of Bounds! Please Try again!\");\n return false;\n }\n x = x - 1;\n makeVisible();\n return true;\n case 'a':\n if(OutOfBounds(x,y-1,s)){\n System.out.println(\">> Move out of Bounds! Please Try again!\");\n return false;\n }\n y = y - 1;\n makeVisible();\n return true;\n case 's':\n if(OutOfBounds(x+1,y,s)){\n System.out.println(\">> Move out of Bounds! Please Try again!\");\n return false;\n }\n x = x + 1;\n makeVisible();\n return true;\n case 'd':\n if(OutOfBounds(x,y+1,s)){\n System.out.println(\">> Move out of Bounds! Please Try again!\");\n return false;\n }\n y = y + 1;\n makeVisible();\n return true;\n default:\n System.out.println(\">> Invalid Key, Please try again\");\n return false;\n }\n }", "title": "" }, { "docid": "0461cc44400958e808aca6934c25c984", "score": "0.6187419", "text": "private boolean canMoveDown() {\n //loop through each column and row\n for (int row = 0; row <GRID_SIZE-1; row++)\n {\n for (int column = 0; column < GRID_SIZE; column++)\n {\n int upperTile = grid[row][column];\n int lowerTile = grid[row+1][column];\n\n //1st case: if the lower tile is 0, and there are\n //any non zero tiles above it.\n if (lowerTile == 0 && upperTile >0)\n {\n return true;\n\n //2nd case: if a tile has a value of x, and the tile above\n //the tile also has a value of x.\n }else if (lowerTile > 0&& upperTile>0 & upperTile == lowerTile)\n {\n return true;\n }\n }\n }\n return false;\n}", "title": "" }, { "docid": "d36df184f68a0b8bd32c71876fb9b120", "score": "0.6186651", "text": "protected boolean safeToPlace(int row, int column, String num) {\r\n\t\t//Check up\r\n\t\tif (row != 0) {\r\n\t\t\tfor (int i = 1; i <= row; i++) {\r\n\t\t\t\tif (board[row-i][column].equals(num)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Check left\r\n\t\tif (column != 0) {\r\n\t\t\tfor (int i = 1; i <= column; i++) {\r\n\t\t\t\tif (board[row][column-i].equals(num)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Check left up diagonal\r\n\t\tif (column != 0 && column != 3 && column != 6) {\r\n\t\t\tif (row == 2 || row == 5 || row == 8) {\r\n\t\t\t\tif (column == 2 || column == 5 || column == 8) {\r\n\t\t\t\t\tfor (int i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\tfor(int j = 1; j <=2; j++) {\r\n\t\t\t\t\t\t\tif (board[row-i][column-j].equals(num)) {\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\tif (board[row-i][column-1].equals(num)) {\r\n\t\t\t\t\t\t\treturn false;\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\t\r\n\t\t\tif (row == 1 || row == 4 || row == 7) {\r\n\t\t\t\tif (column == 2 || column == 5 || column == 8) {\r\n\t\t\t\t\tfor (int i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\tif (board[row-1][column-i].equals(num)) {\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (board[row-1][column-1].equals(num)) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Check right up diagonal\r\n\t\tif (row != 0 && column != 2 && column != 5 && column != 8) {\r\n\t\t\tif (row == 2 || row == 5 || row == 8) {\r\n\t\t\t\tif (column == 0 || column == 3 || column == 6) {\r\n\t\t\t\t\tfor (int i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\tfor(int j = 1; j <=2; j++) {\r\n\t\t\t\t\t\t\tif (board[row-i][column+j].equals(num)) {\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\tif (board[row-i][column+1].equals(num)) {\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\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\tif (row == 1 || row == 4 || row == 7) {\r\n\t\t\t\tif (column == 0 || column == 3 || column == 6) {\r\n\t\t\t\t\tfor (int i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\tif (board[row-1][column+i].equals(num)) {\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (board[row-1][column+1].equals(num)) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "7e07ee0b5f3f471dd82ed1976516d99f", "score": "0.6185159", "text": "private boolean validMove(Move m, int color) {\n\t\tif( m.x1 < 0 || m.x1 > 7 || m.x2 < 0 || m.x2 > 7 || m.y1 < 0 || m.y1 > 7 || m.y2 < 0|| m.y2 >7 ) {\n\t\t\treturn false;\t\t\t\n\t\t}\n\t\t/*\n\t\t * new location should empty\n\t\t */\n\t\tif(gameboard[m.x1][m.y1].get_color() != EMPTY) {\n\t\t\treturn false;\t\t\t\n\t\t}\n\t\t/*\n\t\t * goal area for white\n\t\t */\n\t\tif(color == WHITE && (m.y1 == 0 || m.y1 == SIZE-1)) {\n\t\t\treturn false;\n\t\t}\n\t\t/*\n\t\t * goal area for black\n\t\t */\n\t\tif(color == BLACK && (m.x1 == 0 || m.x1 == SIZE-1)){\n\t\t\treturn false;\n\t\t}\n\t\t/*\n\t\t * check if Move m and neighbors contains \n\t\t * two or more chips in connected group \n\t\t */\n\t\tint connected = 0;\n\t\tint neighbor_x = 0;\n\t\tint neighbor_y = 0;\n\t\tfor (int i = m.x1 - 1; i <= m.x1 + 1; i++ ) {\n\t\t\tfor(int j= m.y1 - 1; j <= m.y1+1; j++) {\n\t\t\t\tif(i >= 0 && i <= 7 && j >= 0 && j <= 7 ) {\n\t\t\t\t\tif(gameboard[i][j].get_color() == color &&\n\t\t\t\t\t\t\t(m.moveKind != Move.STEP || m.x2!=i || m.y2 != j)) {\n\t\t\t\t\t\tconnected++;\n\t\t\t\t\t\tneighbor_x = i;\n\t\t\t\t\t\tneighbor_y = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(connected > 1) {\n\t\t\treturn false;\n\t\t}\n\t\tif(connected == 1) {\n\t\t\tfor(int i1 = neighbor_x-1; i1 <= neighbor_x + 1; i1++) {\n\t\t\t\tfor(int j1 = neighbor_y - 1; j1 <= neighbor_y + 1; j1++) {\n\t\t\t\t\tif(i1 >= 0 && i1 <= 7 && j1 >=0 && j1 <=7){\n\t\t\t\t\t\tif(gameboard[i1][j1].get_color() == color && \n\t\t\t\t\t\t\t\t(neighbor_x != i1 || neighbor_y != j1) && \n\t\t\t\t\t\t\t\t(m.moveKind != Move.STEP || m.x2 != i1 || m.y2 != j1) ) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "eb8dad04989063cffe596785abb060d7", "score": "0.6181007", "text": "public boolean isLegalPosition(int row, int col) {\n\t\treturn row >= 0 && row < this.boardSize && col >= 0\n\t\t\t\t&& col < this.boardSize && !this.isIllegalSpace(row, col);\n\t}", "title": "" }, { "docid": "b45d8b07791f48eb6c8e9a06ff7699e0", "score": "0.6174912", "text": "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n if (mouse.mouseHeld && !currentCellToggled)\r\n {\r\n //Find out which cell is being clicked\r\n int x = (int) (mouse.x_Pos * \r\n paintComponent.getScreenToGrid(Paint.GET_X));\r\n int y = (int) (mouse.y_Pos * \r\n paintComponent.getScreenToGrid(Paint.GET_Y));\r\n \r\n //If we are in debug mode\r\n if (debugMode)\r\n {\r\n //Set the cell to a specific value\r\n if (mouse.buttonNum == MouseEvent.BUTTON1)\r\n {\r\n grid[x][y].setValue(Cell.X);\r\n } else if (mouse.buttonNum == MouseEvent.BUTTON3)\r\n {\r\n grid[x][y].setValue(Cell.O);\r\n } else if (mouse.buttonNum == MouseEvent.BUTTON2)\r\n {\r\n grid[x][y].setValue(Cell.EMPTY);\r\n }\r\n checkForWin();\r\n updateTurnLabel();\r\n //If we are in a single player game\r\n } else if (isSinglePlayer && !isWinState)\r\n {\r\n //Make sure the selected cell is EMPTY\r\n if (grid[x][y].getValue()==Cell.EMPTY\r\n && mouse.buttonNum == MouseEvent.BUTTON1\r\n && isPlayer1Turn)\r\n {\r\n grid[x][y].setValue(Cell.X);\r\n checkForWin();\r\n updateTurnLabel();\r\n if (!isWinState) isPlayer1Turn = false;\r\n }\r\n \r\n //If we are in a multiplayer game\r\n } else if (!isSinglePlayer && !isWinState)\r\n {\r\n //Make sure the selected cell is EMPTY\r\n if (grid[x][y].getValue()==Cell.EMPTY\r\n &&mouse.buttonNum == MouseEvent.BUTTON1)\r\n {\r\n if (isPlayer1Turn)\r\n {\r\n grid[x][y].setValue(Cell.X);\r\n } else\r\n {\r\n grid[x][y].setValue(Cell.O);\r\n }\r\n \r\n checkForWin();\r\n updateTurnLabel();\r\n if (!isWinState) isPlayer1Turn = !isPlayer1Turn;\r\n }\r\n }\r\n \r\n currentCellToggled = true;\r\n \r\n //On the Release of the Mouse\r\n } else if (isSinglePlayer && !isPlayer1Turn && !isWinState)\r\n {\r\n \r\n if (difficultyLevel==EASY) \r\n {\r\n try{Thread.sleep(400);}\r\n catch(InterruptedException ex){}\r\n easyAI();\r\n }\r\n else if (difficultyLevel==NORMAL)\r\n {\r\n try{Thread.sleep(600);}\r\n catch(InterruptedException ex){}\r\n normalAI();\r\n }\r\n else\r\n {\r\n try{Thread.sleep(800);}\r\n catch(InterruptedException ex){}\r\n HardAI.takeTurn(grid, turns);\r\n }\r\n isPlayer1Turn = true;\r\n checkForWin();\r\n updateTurnLabel();\r\n } else if (!mouse.mouseHeld)\r\n {\r\n currentCellToggled = false;\r\n }\r\n repaint();\r\n }", "title": "" }, { "docid": "6ed441cc0560f6a835a81c19bb35b154", "score": "0.6169448", "text": "@Override\n public void generateLegalMoves() {\n // TODO Auto-generated method stub\n validMoves.clear();\n //System.out.println(\"Inside Bishop's generate moves. Current bishop coordinates are: \" + x + \", \" + y);\n int horizontal = y;\n int vertical = x;\n Integer[] coordinate;\n while (horizontal < 8 && vertical < 8) {\n \n if (horizontal == y && vertical == x) {\n horizontal++;\n vertical++;\n continue;\n }\n \n if (game.getPiece(vertical , horizontal) == null) {\n coordinate = new Integer[] {vertical, horizontal};\n validMoves.add(coordinate);\n }\n \n else if (game.getPieceColor(vertical, horizontal) != this.isWhite()){\n coordinate = new Integer[] {vertical, horizontal};\n validMoves.add(coordinate);\n break;\n }\n \n else {\n break;\n }\n \n horizontal++;\n vertical++;\n }\n \n horizontal = y;\n vertical = x;\n \n while (horizontal < 8 && vertical >= 0) {\n \n if (horizontal == y && vertical == x) {\n horizontal++;\n vertical--;\n continue;\n }\n \n if (game.getPiece(vertical , horizontal) == null) {\n coordinate = new Integer[] {vertical, horizontal};\n validMoves.add(coordinate);\n }\n \n else if (game.getPieceColor(vertical, horizontal) != this.isWhite()){\n coordinate = new Integer[] {vertical, horizontal};\n validMoves.add(coordinate);\n break;\n }\n \n else {\n break;\n }\n \n horizontal++;\n vertical--;\n }\n \n horizontal = y;\n vertical = x;\n \n while (horizontal >= 0 && vertical >= 0) {\n \n if (horizontal == y && vertical == x) {\n horizontal--;\n vertical--;\n continue;\n }\n \n if (game.getPiece(vertical , horizontal) == null) {\n coordinate = new Integer[] {vertical, horizontal};\n validMoves.add(coordinate);\n }\n \n else if (game.getPieceColor(vertical, horizontal) != this.isWhite()){\n coordinate = new Integer[] {vertical, horizontal};\n validMoves.add(coordinate);\n break;\n }\n \n else {\n break;\n }\n \n horizontal--;\n vertical--;\n }\n \n horizontal = y;\n vertical = x;\n \n \n while (horizontal >= 0 && vertical < 8) {\n \n if (horizontal == y && vertical == x) {\n horizontal--;\n vertical++;\n continue;\n }\n \n if (game.getPiece(vertical , horizontal) == null) {\n coordinate = new Integer[] {vertical, horizontal};\n validMoves.add(coordinate);\n }\n \n else if (game.getPieceColor(vertical, horizontal) != this.isWhite()){\n coordinate = new Integer[] {vertical, horizontal};\n validMoves.add(coordinate);\n break;\n }\n \n else {\n break;\n }\n \n horizontal--;\n vertical++;\n }\n \n //System.out.println(\"bishop's valid moves size is: \" + validMoves.size());\n for (int i = 0; i<validMoves.size(); i++) {\n // System.out.println(\"bishop's valid moves: \" + validMoves.get(Integer.valueOf(i)));\n }\n \n }", "title": "" }, { "docid": "392617b2f271d9f192e3118156faf87b", "score": "0.6169381", "text": "public boolean click(int x, int y) {\n\n\t\tint xVal = (int) Math.floor(x / side);\n\t\tint yVal = (int) Math.floor(y / side);\n\n\t\tif (gameBoard[xVal][yVal].getNumber().equals(\"0\") || !gameBoard[xVal][yVal].isNextToZero()) {\n\n\t\t\t// System.out.println(\"Invalid move\");\n\t\t\t// isValidMove = false;\n\t\t\treturn false;\n\n\t\t}\n\t\tif (gameBoard[xVal][yVal].isNextToZero()) {\n\n\t\t\tif (gameBoard[xVal][yVal].whereIsZero() == Direction.LEFT) {\n\t\t\t\tleft(xVal, yVal);\n\t\t\t\tmoves.push(new Motion(gameBoard[xVal - 1][yVal], Direction.LEFT));\n\t\t\t\t// System.out.println(\"Adding to the stack\");\n\n\t\t\t}\n\n\t\t\tif (gameBoard[xVal][yVal].whereIsZero() == Direction.RIGHT) {\n\n\t\t\t\tright(xVal, yVal);\n\t\t\t\tmoves.push(new Motion(gameBoard[xVal + 1][yVal], Direction.RIGHT));\n\t\t\t\t// System.out.println(\"Adding to the stack\");\n\t\t\t}\n\n\t\t\tif (gameBoard[xVal][yVal].whereIsZero() == Direction.UP) {\n\n\t\t\t\tup(xVal, yVal);\n\t\t\t\tmoves.push(new Motion(gameBoard[xVal][yVal - 1], Direction.UP));\n\t\t\t\t// System.out.println(\"Adding to the stack\");\n\t\t\t}\n\n\t\t\tif (gameBoard[xVal][yVal].whereIsZero() == Direction.DOWN) {\n\n\t\t\t\tdown(xVal, yVal);\n\t\t\t\tmoves.push(new Motion(gameBoard[xVal][yVal + 1], Direction.DOWN));\n\t\t\t\t// System.out.println(\"Adding to the stack\");\n\t\t\t}\n\n\t\t\tconnect();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "07c3aed1a3c4412e4d4835edfa1e5de4", "score": "0.6168807", "text": "public boolean isLegal(SodokuMove move)\n {\n int gridRow = (move.getRow()/ 3) * 3;\n int gridColumn = (move.getColumn()/3) * 3;\n for (int i = gridRow; i < (gridRow + 3); i++)\n {\n for (int j = gridColumn; j < (gridColumn + 3); j++)\n {\n if (nums[i][j] == move.getDigit())\n {\n return false;\n }\n }\n }\n\n for (int i = 0; i < NUMROWS; i++)\n {\n if (nums[i][move.getColumn()] == move.getDigit())\n {\n return false;\n }\n }\n\n for (int i = 0; i < NUMCOLUMNS; i++)\n {\n if (nums[move.getRow()][i] == move.getDigit())\n {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "d807d8e80701edbcf0bf6275df615f32", "score": "0.6165804", "text": "protected boolean movable(int i, int j) {\n if (!checkPosCoords(i, j)) {\n return false;\n }\n if (checkPosCoords(i + 1, j) && checkPosCoords(i + 2, j)) {\n if (getGamePieceAt(i, j).equals(GamePiece.Marble) &&\n getGamePieceAt(i + 1, j).equals(GamePiece.Marble)\n && getGamePieceAt(i + 2, j).equals(GamePiece.Empty)) {\n return true;\n }\n }\n if (checkPosCoords(i - 1, j) && checkPosCoords(i - 2, j)) {\n if (getGamePieceAt(i, j).equals(GamePiece.Marble) &&\n getGamePieceAt(i - 1, j).equals(GamePiece.Marble)\n && getGamePieceAt(i - 2, j).equals(GamePiece.Empty)) {\n return true;\n }\n }\n if (checkPosCoords(i, j + 1) && checkPosCoords(i, j + 2)) {\n if (getGamePieceAt(i, j).equals(GamePiece.Marble) &&\n getGamePieceAt(i, j + 1).equals(GamePiece.Marble)\n && getGamePieceAt(i, j + 2).equals(GamePiece.Empty)) {\n return true;\n }\n }\n if (checkPosCoords(i, j) && checkPosCoords(i, j - 1) && checkPosCoords(i, j - 2)) {\n if (getGamePieceAt(i, j).equals(GamePiece.Marble) &&\n getGamePieceAt(i, j - 1).equals(GamePiece.Marble)\n && getGamePieceAt(i, j - 2).equals(GamePiece.Empty)) {\n return true;\n }\n }\n\n return false;\n\n }", "title": "" }, { "docid": "cac35eb3229e8b55309f631a400ab416", "score": "0.6156857", "text": "private boolean isLegal(int x, int y){\n\t if (x < 0 || y < 0 || x >= numRows() || y >= numCols()||maze[x][y]==WALL){ //check if out of boundary\n\t\treturn false;\n\t }\n\t else if (visited[x][y] == true){ //check if this location has been marked \n\t\treturn false;\n\t }\n\t else {\n\t\treturn true; \n\t }\n\t}", "title": "" }, { "docid": "f02029d96c696ac6dd1e156bfcccb95d", "score": "0.61541075", "text": "private void checkKeys() {\n if(Greenfoot.isKeyDown(\"up\")){\n setLocation(getX(), getY() - 5);\n }else if(Greenfoot.isKeyDown(\"down\")){\n setLocation(getX(), getY() + 5);\n }\n }", "title": "" }, { "docid": "0714b4cf1b599d8c389fcbc805f5a37e", "score": "0.6152775", "text": "private boolean validateNextTile(){\n \n if (validateNextRowColIndex(tileBoard[row][col])) {\n \n switch(tiles.tileBoard[row][col]){\n\n case 1 : if (flow == Direction.LEFT) {\n\n if (tileBoard[row][col - 1] == 2 ||\n tileBoard[row][col - 1] == 5 ||\n tileBoard[row][col - 1] == 6 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n } else if (flow == Direction.RIGHT) {\n\n if (tileBoard[row][col + 1] == 2 ||\n tileBoard[row][col + 1] == 3 ||\n tileBoard[row][col + 1] == 4 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n }\n break;\n case 2 : if (flow == Direction.UP) {\n\n if (tileBoard[row - 1][col] == 1 ||\n tileBoard[row - 1][col] == 3 ||\n tileBoard[row - 1][col] == 6 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n\n } else if (flow == Direction.DOWN) {\n\n if (tileBoard[row + 1][col] == 1 ||\n tileBoard[row + 1][col] == 4 ||\n tileBoard[row + 1][col] == 5 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n\n } \n break;\n case 3 : if (flow == Direction.DOWN) {\n\n if (tileBoard[row][col + 1] == 2 ||\n tileBoard[row][col + 1] == 3 ||\n tileBoard[row][col + 1] == 4 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n\n } else if (flow == Direction.LEFT) {\n\n if (tileBoard[row - 1][col] == 1 ||\n tileBoard[row - 1][col] == 3 ||\n tileBoard[row - 1][col] == 6 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n\n }\n break;\n case 4 : if (flow == Direction.UP) {\n\n if (tileBoard[row][col + 1] == 2 ||\n tileBoard[row][col + 1] == 3 ||\n tileBoard[row][col + 1] == 4 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n\n } else if (flow == Direction.LEFT) {\n\n if (tileBoard[row + 1][col] == 1 ||\n tileBoard[row + 1][col] == 4 ||\n tileBoard[row + 1][col] == 5 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n\n }\n break;\n case 5 : if (flow == Direction.RIGHT) {\n\n if (tileBoard[row + 1][col] == 1 ||\n tileBoard[row + 1][col] == 4 ||\n tileBoard[row + 1][col] == 5 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n\n\n } else if(flow == Direction.UP) {\n\n if (tileBoard[row][col - 1] == 2 ||\n tileBoard[row][col - 1] == 5 ||\n tileBoard[row][col - 1] == 6 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n\n }\n break;\n case 6 : if (flow == Direction.RIGHT) {\n\n if (tileBoard[row - 1][col] == 1 ||\n tileBoard[row - 1][col] == 3 ||\n tileBoard[row - 1][col] == 6 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n\n } else if(flow == Direction.DOWN) {\n\n if (tileBoard[row][col - 1] == 2 ||\n tileBoard[row][col - 1] == 5 ||\n tileBoard[row][col - 1] == 6 ) {\n System.out.println(\"you lose\");\n System.exit(0);\n }\n }\n break; \n }\n return true;\n } else { //TODO: check end tile position\n return false;\n }\n }", "title": "" }, { "docid": "0b0c3be0b5e28f7349dcb237ed4b6570", "score": "0.6149788", "text": "public static void userMove(TicTacToe board){\n \n System.out.print(\"Enter your move: \");\n int row = in.nextInt();\n int col = in.nextInt();\n \n \n while(outOfBounds(row,col) || !board.isEmpty(row, col)){\n if(outOfBounds(row,col))\n System.out.println(\"This is an illegal move!\");\n else\n System.out.println(\"This cell is occupied!\");\n \n System.out.print(\"Enter your move: \");\n row = in.nextInt();\n col = in.nextInt();\n }\n \n board.makeMove(Cell.X, row, col);\n }", "title": "" }, { "docid": "92f91c865ce8a051bab11d3a0ae429b5", "score": "0.6144996", "text": "public boolean isValidMove(Move move, IChessPiece[][] board) {\r\n boolean valid = false;\r\n\r\n if (super.isValidMove(move, board)) {\r\n\r\n // MOVING FORWARD //\r\n if (move.toColumn == move.fromColumn) {\r\n if (player() == Player.WHITE) {\r\n if (firstMove) { // move 2 spaces if want to\r\n if (((move.toRow == move.fromRow - 1) ||\r\n (move.toRow == move.fromRow - 2)) &&\r\n board[move.toRow][move.toColumn] ==\r\n null) {\r\n valid = true;\r\n if ((move.toRow == move.fromRow - 2))\r\n board[move.fromRow][move.fromColumn]\r\n .setHasMoved(true);\r\n firstMove = false;\r\n // disables the flag\r\n }\r\n\r\n } else { // move once each time\r\n if (move.toRow == move.fromRow - 1) {\r\n if (board[move.toRow][move.toColumn] ==\r\n null) {\r\n valid = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (player() == Player.BLACK)\r\n if (firstMove) {\r\n if ((move.toRow == move.fromRow + 1) ||\r\n (move.toRow == move.fromRow + 2)\r\n && board[move.toRow][move.toColumn] ==\r\n null) {\r\n valid = true;\r\n if ((move.toRow == move.fromRow + 2))\r\n board[move.fromRow][move.fromColumn]\r\n .setHasMoved(true);\r\n firstMove = false;\r\n }\r\n\r\n } else {\r\n if (move.toRow == move.fromRow + 1) {\r\n if (board[move.toRow][move.toColumn] ==\r\n null) {\r\n valid = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Determines whether en passant is valid.\r\n if (player().equals(Player.WHITE)) {\r\n if (move.fromRow == 3 && board[move.fromRow]\r\n [move.fromColumn] != null) {\r\n if (move.toRow == 2 && move.fromColumn + 1 < 8 &&\r\n move.toColumn == move.fromColumn + 1) {\r\n if (board[3][move.toColumn] != null &&\r\n board[3][move.toColumn].hasMoved())\r\n valid = true;\r\n }\r\n if (move.toRow == 2 && move.fromColumn - 1 >= 0 &&\r\n move.toColumn == move.fromColumn - 1) {\r\n if (board[3][move.toColumn] != null &&\r\n board[3][move.toColumn].hasMoved())\r\n valid = true;\r\n }\r\n }\r\n }\r\n if (player().equals(Player.BLACK)) {\r\n if (move.fromRow == 4 && board[move.fromRow]\r\n [move.fromColumn] != null) {\r\n if (move.toRow == 5 && move.fromColumn + 1 < 8 &&\r\n move.toColumn == move.fromColumn + 1) {\r\n if (board[4][move.toColumn] != null &&\r\n board[4][move.toColumn].hasMoved())\r\n valid = true;\r\n }\r\n if (move.toRow == 5 && move.fromColumn - 1 >= 0\r\n && move.toColumn == move.fromColumn - 1) {\r\n if (board[4][move.toColumn] != null &&\r\n board[4][move.toColumn].hasMoved())\r\n valid = true;\r\n }\r\n }\r\n }\r\n\r\n // MOVING TO CAPTURE //\r\n if (ifCapture(move, board))\r\n valid = true;\r\n\r\n }\r\n\r\n return valid;\r\n }", "title": "" }, { "docid": "e3ae9950d802a7eebeb19f59bc4fb709", "score": "0.61430395", "text": "public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }", "title": "" }, { "docid": "87a34c78141d2f4e3d2bb00bc2018bed", "score": "0.6142963", "text": "public boolean isLegalNonCaptureMove(int row, int column){\n if(getSide() == Side.NORTH){\n //checks if king is within palace//\n if(column < 3 || column > 5 || row >2){\n return false;\n }\n else{\n //checks if King moves more than one square//\n if(rowDiff(row) > 1 || columnDiff(column) > 1){\n return false;\n }\n //checks if king moves diagonal//\n else if(rowDiff(row) == 1 && columnDiff(column) == 1){\n return false;\n }\n else{\n return true;\n }\n }\n }\n\n else{\n if(column < 3 || column > 5 || row < 7){\n return false;\n }\n else{\n if(rowDiff(row) > 1 || columnDiff(column) > 1){\n return false;\n }\n else if(rowDiff(row) == 1 && columnDiff(column) == 1){\n return false;\n }\n else{\n return true;\n }\n }\n }\n }", "title": "" }, { "docid": "46c40cdf71d281eaae5548924e3d6c93", "score": "0.61416173", "text": "boolean pressed()\n {\n if(over)\n {\n BoggleMain.locked = true;\n return true;\n }\n\n else\n {\n BoggleMain.locked = false;\n return false;\n }\n }", "title": "" }, { "docid": "482f27913d0e7d577d89310b5da1ce54", "score": "0.61400235", "text": "public boolean isValidMove(int startRow, int startCol, int endRow, int endCol, ChessPiece.Color color) {\n\t\tif ((endRow>=8)||(endCol>=8) || (startRow>=8) || (startCol>=8)) {\n\t\t\treturn false;\n\t\t}\n\t\tif ((endRow<0)||(endCol<0) || (startRow<0) || (startCol<0)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (startRow == endRow && startCol == endCol) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//If start location is empty, cant move anything\n\t\tif(board[startRow][startCol] == null) {return false;}\n\t\t\n\t\tChessPiece movedPiece = board[startRow][startCol];\n\n\t\t//This checks that the player is moving their own piece\n\t\tif(movedPiece.getColor() != color) {return false;}\n\t\t\n\t\t\n\t\t\n\t\t//Kings require many additional checks when moving, call a function with better access to board functions here\n\t\tif(movedPiece instanceof King) {\n\t\t\t\n\t\t\tif(validKing(startRow, startCol, endRow, endCol)) {\n\t\t\t\t\n\t\t\t\t//if in check, see if the move would take king out of check, if not, its not a valid move\n\t\t\t\tif(inCheck) {\n\t\t\t\t\tChessPiece temp = board[endRow][endCol];\n\t\t\t\t\tChessPiece defender = board[startRow][startCol];\n\t\t\t\t\tboard[endRow][endCol] = defender;\n\t\t\t\t\tboard[startRow][startCol] = null;\n\t\t\t\t\t\n\t\t\t\t\t//If king is still in check, move is invalid, return pieces to start position\n\t\t\t\t\tif(isCheck(defender.getColor())) {\n\t\t\t\t\t\tboard[startRow][startCol] = defender;\n\t\t\t\t\t\tboard[endRow][endCol] = temp;\n\t\t\t\t\t\treturn false;\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tboard[startRow][startCol] = defender;\n\t\t\t\t\t\tboard[endRow][endCol] = temp;\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {return false;}\n\t\t}\n\t\t//end if king\n\t\t\n\t\t\n\t\t//if its not a king, call its personal isValid func\n\t\tif(!movedPiece.isValidMove(startRow, startCol, endRow, endCol, board)) {\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t\t//Check if currently in check, if so, see if move will remove check\n\t\t\n\t\t//Test the move by swapp the pieces\n\t\tChessPiece temp = board[endRow][endCol];\n\t\tChessPiece defender = board[startRow][startCol];\n\t\tboard[endRow][endCol] = defender;\n\t\tboard[startRow][startCol] = null;\n\t\t//If already in check, see if the move removed check\n\t\tif(inCheck) {\n\t\t\t//If king is still in check, move is invalid, return pieces to start position\n\t\t\tif(isCheck(defender.getColor())) {\n\t\t\t\tboard[startRow][startCol] = defender;\n\t\t\t\tboard[endRow][endCol] = temp;\n\t\t\t\treturn false;\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tboard[startRow][startCol] = defender;\n\t\t\t\tboard[endRow][endCol] = temp;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//If not already in check, see if the move will open up your king to attack\n\t\tif (isCheck(color)) {\n\t\t\tboard[startRow][startCol] = defender;\n\t\t\tboard[endRow][endCol] = temp;\n\t\t\treturn false;\n\t\t}\n\t\t//Otherwise, put pieces back, return true\n\t\tboard[startRow][startCol] = defender;\n\t\tboard[endRow][endCol] = temp;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f62411d33b580c89d31bc8b09798b474", "score": "0.6139679", "text": "public boolean middleClick(int x, int y) {\n isLastMoveValid = true;\n Square square = getSquare(x, y);\n if (!isProgressing || !square.isClicked() || square.isFlagged()) {\n isLastMoveValid = false;\n return false;\n }\n int count = 0;\n boolean fdb = false;\n for (int i = -1; i <= 1; i++) {\n for (int j = -1; j <= 1; j++) {\n if (!(i == 0 && j == 0) && checkBorder(x + i, y + j)) {\n Square temp = getSquare(x + i, y + j);\n if (temp.isFlagged() || (temp.hasMine() && temp.isClicked())) {\n count++;\n }\n }\n }\n }\n if (count == square.getStatus()) {\n for (int i = -1; i <= 1; i++) {\n for (int j = -1; j <= 1; j++) {\n if (checkBorder(x + i, y + j)) {\n clickSquare(x + i, y + j);\n if (isLastMoveValid)\n fdb = true;\n }\n }\n }\n }\n return fdb;\n }", "title": "" }, { "docid": "7aab50284c6939b7d19c85714a91b93a", "score": "0.61310685", "text": "public boolean userMove(int numberOfEvals) { \r\n boolean legalMove;\r\n int s;\r\n System.out.print(\"\\nEnter a square number: \");\r\n do {\r\n\t s = in.nextInt();\r\n legalMove = squares[s] == freeChar;\r\n if (!legalMove) System.out.println(\"Try again: \");\r\n } while (!legalMove);\r\n Move m = new Move(s,evaluateMove(s,numberOfEvals));\r\n moveToSquare(s);\r\n System.out.println(\"Human move: \" + m);\r\n this.draw();\r\n if (this.boardValue() == xWinFlag || this.boardValue() == oWinFlag) return true; // a winning move\r\n return false;\r\n}", "title": "" }, { "docid": "15e1d50101065cba5355cf643c94bd55", "score": "0.6129324", "text": "@Override\n\tprotected void handleMouseClick(int row, int col, int numButton) \n\t{\n\t\tif((this.pieceCount(this.getBoard(), this.getTurn()) >= 3))\n\t\t{\n\t\t\tif(canMove)\n\t\t\t{\n\t\t\t\tif(!changeMoveMode)\n\t\t\t\t{\n\t\t\t\t\tif(this.getBoard().getPosition(row, col) != null && this.getTurn().equals(this.getBoard().getPosition(row, col)) && numButton != 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tplayer.setSourceMove(row, col, this.getTurn());\n\t\t\t\t\t\tthis.addMsg(\"Clicked on \" + row + \", \" + col + \".\\n\");\n\t\t\t\t\t\tthis.changeMoveMode = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(this.getBoard().getPosition(row, col) == null)\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this, \"That position is empty!\");\n\t\t\t\t\telse if(!(this.getTurn().equals(this.getBoard().getPosition(row, col))))\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this, \"This piece is not yours!\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(numButton == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(this.getBoard().getPosition(row, col) == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tplayer.completeMove(row, col,this.getTurn());\n\t\t\t\t\t\t\tplayer.setMove(this.getTurn());\n\t\t\t\t\t\t\tdecideMakeManualMove(player);\n\t\t\t\t\t\t\tthis.addMsg(\"Piece moved to \" + row + \", \" + col + \".\\n\");\n\t\t\t\t\t\t\tthis.changeMoveMode = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(this, \"That position is not empty! Move cancelled.\");\n\t\t\t\t\t\t\tthis.changeMoveMode = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(numButton == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.addMsg(\"Move cancelled.\\n\");\n\t\t\t\t\t\tthis.addMsg(this.createMoveMsg());\n\t\t\t\t\t\tthis.changeMoveMode = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(canMove)\n\t\t\t{\n\t\t\t\tif(numButton != 1)\n\t\t\t\t{\n\t\t\t\t\tif(this.getBoard().getPosition(row, col) == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tplayer.setSimpleMove(row, col, this.getTurn());\n\t\t\t\t\t\tplayer.setMove(this.getTurn());\n\t\t\t\t\t\tdecideMakeManualMove(player);\n\t\t\t\t\t\tthis.addMsg(\"Piece placed in: \" + row + \", \" + col + \".\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this, \"That position is not empty!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a266c4a6a05c85b4e5ae2e1ddbc9b1c9", "score": "0.61287326", "text": "@Override\r\n\tpublic boolean canCapturePiece(Board board, int column, int row){\r\n\t\tif(super.canCapture(board, column, row) == false) //out of bounds or piece at [col][row] doesn't exist\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tboard.getSquare(column, row).setPiecePresence(false); //temporarily vacate that target spot to see if knight can move there\r\n\t\tif(this.canMove(board, column, row)){\r\n\t\t\tboard.getSquare(column, row).setPiecePresence(true); //set it back\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tboard.getSquare(column, row).setPiecePresence(true); //set it back\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "56f4c27d1948438396a58a261960b031", "score": "0.6128658", "text": "public boolean validMove() {\r\n\t\tint[] headerCoords = snake.getHeader().getCoords();\r\n\t\tif (headerCoords[0] > (board.length - 1) || headerCoords[0] < 0) \r\n\t\t\treturn false;\r\n\t\telse if (headerCoords[1] > (board.length - 1) || headerCoords[1] < 0) \r\n\t\t\treturn false;\r\n\t\telse if (board[headerCoords[0]][headerCoords[1]] != null && board[headerCoords[0]][headerCoords[1]] == Color.LIMEGREEN)\r\n\t\t\treturn false;\r\n\t\telse \r\n\t\t\treturn true; \r\n\t}", "title": "" }, { "docid": "e60ea8590fc10a4ad91831a92d59be01", "score": "0.61259776", "text": "public boolean SpacePressed()\r\n\t{\r\n\t\t//System.out.println(\"Space pressed\");\r\n\t\tint blocX = POOPY.NextCaseX(POOPY.orientation);\r\n\t\tint blocY = POOPY.NextCaseY(POOPY.orientation);\r\n\r\n\t\tif (OutOfBound(blocX, blocY))\r\n\t\t\treturn false;\r\n\r\n\t\tswitch (ObjectType.typeOfInt(map[blocX][blocY]))\r\n\t\t{\r\n\t\tcase MOVINGBLOC:\r\n\t\t\tMovingBloc bloc = (MovingBloc) mapObjets[blocX][blocY];\r\n\t\t\tif (MoveObject(bloc, POOPY.orientation))\r\n\t\t\t{\r\n\t\t\t\tAddObjet(bloc);\r\n\t\t\t\tAddObjet(new Vide(blocX, blocY));\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase BREAKABLEBLOC:\r\n\t\t\tBreakableBloc breakableBloc = (BreakableBloc) mapObjets[blocX][blocY];\r\n\t\t\tif (breakableBloc.stopAnimation)\r\n\t\t\t\tbreakableBloc.Break();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c8f2d382137b95b98cd91516254ecb69", "score": "0.6120216", "text": "private void checkResult() {\n // There's no need if less than 5 moves were made. No one can win with 2 moves\n if (availableSpaces.size()>4) return;\n\n // Check all possibilities\n // Horizontals\n if (positions[0] == positions[1] && positions[1] == positions[2]) {\n if (positions[0] == 'X') {\n result = GameUtils.Result.USER_WON;\n gameFinished = true;\n } else if (positions[0] == 'O') {\n result = GameUtils.Result.COMPUTER_WON;\n gameFinished = true;\n }\n }\n if (positions[3] == positions[4] && positions[4] == positions[5]) {\n if (positions[3] == 'X') {\n result = GameUtils.Result.USER_WON;\n gameFinished = true;\n } else if (positions[3] == 'O') {\n result = GameUtils.Result.COMPUTER_WON;\n gameFinished = true;\n }\n }\n if (positions[6] == positions[7] && positions[7] == positions[8]) {\n if (positions[6] == 'X') {\n result = GameUtils.Result.USER_WON;\n gameFinished = true;\n } else if (positions[6] == 'O') {\n result = GameUtils.Result.COMPUTER_WON;\n gameFinished = true;\n }\n }\n\n // Verticals\n if (positions[0] == positions[3] && positions[3] == positions[6]) {\n if (positions[0] == 'X') {\n result = GameUtils.Result.USER_WON;\n gameFinished = true;\n } else if (positions[0] == 'O') {\n result = GameUtils.Result.COMPUTER_WON;\n gameFinished = true;\n }\n }\n if (positions[1] == positions[4] && positions[4] == positions[7]) {\n if (positions[1] == 'X') {\n result = GameUtils.Result.USER_WON;\n gameFinished = true;\n } else if (positions[1] == 'O') {\n result = GameUtils.Result.COMPUTER_WON;\n gameFinished = true;\n }\n }\n if (positions[2] == positions[5] && positions[5] == positions[8]) {\n if (positions[2] == 'X') {\n result = GameUtils.Result.USER_WON;\n gameFinished = true;\n } else if (positions[2] == 'O') {\n result = GameUtils.Result.COMPUTER_WON;\n gameFinished = true;\n }\n }\n\n // Diagonals\n if (positions[0] == positions[4] && positions[4] == positions[8]) {\n if (positions[0] == 'X') {\n result = GameUtils.Result.USER_WON;\n gameFinished = true;\n } else if (positions[0] == 'O') {\n result = GameUtils.Result.COMPUTER_WON;\n gameFinished = true;\n }\n }\n if (positions[2] == positions[4] && positions[4] == positions[6]) {\n if (positions[2] == 'X') {\n result = GameUtils.Result.USER_WON;\n gameFinished = true;\n } else if (positions[0] == 'O') {\n result = GameUtils.Result.COMPUTER_WON;\n gameFinished = true;\n }\n }\n\n // In case no winner and no more spaces to play, call it a Tie\n if (!gameFinished && availableSpaces.size() == 0) {\n result = GameUtils.Result.TIE;\n gameFinished = true;\n }\n\n if (gameFinished) {\n handler.removeCallbacks(timerRunnable);\n\n Intent resultIntent = new Intent(this, ResultsActivity.class);\n resultIntent.putExtra(getString(R.string.winner_key), result);\n resultIntent.putExtra(getString(R.string.total_time_key), userTotalTime);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n startActivity(resultIntent,\n ActivityOptions.makeSceneTransitionAnimation(this).toBundle());\n } else {\n startActivity(resultIntent);\n }\n finish();\n }\n }", "title": "" }, { "docid": "b2c28cca9c541206e21577e6a3030bf7", "score": "0.6118429", "text": "private boolean canMoveUp()\n { \n //Loops through the rows and the columns of the board\n for(int x = 1; x < GRID_SIZE; x++){\n for(int y = 0; y < GRID_SIZE; y++){\n \n //Checks if there is an empty space or an identical value to the\n //top of the tile and returns true if there is\n if(this.grid[x-1][y] == 0 || this.grid[x][y] == this.grid[x-1][y]){\n //Checks if the current tile is not empty and if the tile next\n //to it is not empty\n if(this.grid[x][y] != 0 && this.grid[x-1][y] != 0){\n return true;\n }\n }\n }\n }\n //Returns false if none of the conditions are met above\n return false;\n }", "title": "" }, { "docid": "37c0856551370b1341e3ae17753295dc", "score": "0.61176986", "text": "private boolean canMakeMove(int i, int j){\n\t\tif (i < internalBoard.length) {\n\t\t\tif (j < internalBoard[i].length) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6c6808bf5c26f1be2fdc09a6f94072b1", "score": "0.61168236", "text": "private boolean canMoveDown() {\r\n //check whether we can move\r\n for (int j=0; j<GRID_SIZE; j++){\r\n for (int i=GRID_SIZE-1; i>0; i--){\r\n if((grid[i][j]==0 && grid[i-1][j]!=0) || (grid[i][j]!=0 && grid[i][j]==grid[i-1][j]))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "29356d2c1cf398e179cd5bbc15222dd8", "score": "0.6116799", "text": "@Override\r\n\tpublic boolean locationClicked(Location loc){\n\t\tGrid g=getGrid();\r\n\t\tObject there=g.get(loc);\r\n\t\t\r\n\t\tif(there!=null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(turn%2==0){\r\n//\t\t\tSystem.out.println(loc + \" was clicked!\");\r\n//\t\t\tthis.setMessage(loc + \" was clicked!\");\r\n\t\t\tadd(loc,\"O\");\r\n\t\t}\r\n\t\telse{\r\n//\t\t\tSystem.out.println(loc + \" was clicked!\");\r\n//\t\t\tthis.setMessage(loc + \" was clicked!\");\r\n\t\t\tadd(loc,\"X\");\r\n\t\t}\r\n\t\tturn++;\r\n\t\tSystem.out.println(\"Turn #: \"+turn);\r\n\t\tgameOver(loc);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "6cc0ae65ed337127d60cc384f85a2b8d", "score": "0.61133796", "text": "protected boolean _pointerPressed(int x, int y)\n {\n \tpointerPressed(x, y);\n \treturn true;\n }", "title": "" }, { "docid": "e47e98b324f2d7c960c977a741265114", "score": "0.6111208", "text": "private static boolean isEnd(int x, int y){\n int cnt=1;\n int col=x,row=y;\n // left\n while(--col >= 0 && chessBoard[row][col]==chessBoard[y][x]) ++cnt;\n col=x;row=y;\n // right\n while(++col < size && chessBoard[row][col]==chessBoard[y][x]) ++cnt;\n if(cnt>=k){\n return true;\n }\n col=x;row=y;\n cnt=1;\n // up\n while(--row >= 0 && chessBoard[row][col]==chessBoard[y][x]) ++cnt;\n col=x;row=y;\n // down\n while(++row < size && chessBoard[row][col]==chessBoard[y][x]) ++cnt;\n if(cnt>=k){\n return true;\n }\n col=x;row=y;\n cnt=1;\n // upleft\n while(--col >= 0 && --row >= 0 && chessBoard[row][col]==chessBoard[y][x]) ++cnt;\n col=x;row=y;\n // downright\n while(++col < size && ++row < size && chessBoard[row][col]==chessBoard[y][x]) ++cnt;\n if(cnt>=k){\n return true;\n }\n col=x;row=y;\n cnt=1;\n // downleft\n while(++row < size && --col >= 0 && chessBoard[row][col]==chessBoard[y][x]) ++cnt;\n col=x;row=y;\n // upright\n while(--row >= 0 && ++col < size && chessBoard[row][col]==chessBoard[y][x]) ++cnt;\n if(cnt>=k){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "5c6326ff1c5ffacc124aa7d8bcf99606", "score": "0.6107747", "text": "public boolean checkAllSimpleMoves(Position pos, Piece piece) {\n\n Position upL = null, upR = null, downL = null, downR = null;\n if (pos.getRow() != 0 && pos.getCell() != 0) {\n upL = new Position(pos.getRow() - 1, pos.getCell() - 1);\n }\n if (pos.getRow() != 0 && pos.getCell() != 7) {\n upR = new Position(pos.getRow() - 1, pos.getCell() + 1);\n }\n if (pos.getRow() != 7 && pos.getCell() != 0) {\n downL = new Position(pos.getRow() + 1, pos.getCell() - 1);\n }\n if (pos.getRow() != 7 && pos.getCell() != 7) {\n downR = new Position(pos.getRow() + 1, pos.getCell() + 1);\n }\n if (piece.getColor() == Piece.Color.RED) {\n if (!piece.isKing()) {\n if (upL != null) {\n if (!board.getSpace(upL).hasPiece()) {\n return false;\n }\n }\n if (upR != null) {\n if (!board.getSpace(upR).hasPiece()) {\n return false;\n }\n }\n }\n } else {\n if (!piece.isKing()) {\n if (downL != null) {\n if (!board.getSpace(downL).hasPiece()) {\n return false;\n }\n }\n if (downR != null) {\n\n if (!board.getSpace(downR).hasPiece()) {\n return false;\n }\n }\n }\n }\n if(!piece.isKing()) {\n return true;\n }\n if (downL != null) {\n if (!board.getSpace(downL).hasPiece()) {\n return false;\n }\n }\n if (downR != null) {\n if (!board.getSpace(downR).hasPiece()) {\n return false;\n }\n }\n if (upL != null) {\n if (!board.getSpace(upL).hasPiece()) {\n return false;\n }\n }\n if (upR != null) {\n if (!board.getSpace(upR).hasPiece()) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "acec9498ef6e91a17b785658d85e17bc", "score": "0.6107635", "text": "public boolean checkTurn() {\n\t\t\tboolean turnOK=true;\r\n\t\t\tfor(int i=0;i<4;i++){\r\n\t\t\t\tif((blockX[i]>=0)&&(blockX[i]<12)&&(blockY[i]>=0)&&(blockY[i]<21)){\r\n\t\t\t\t\tif(map[blockX[i]][blockY[i]])turnOK=false;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tturnOK=false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn turnOK;\r\n\t\t}", "title": "" }, { "docid": "eb2cf120768d3b47e68f2ac104f8653f", "score": "0.61061126", "text": "public void run(int gridRow, int gridCol, int buttonRow, int buttonCol){\n \n //Checks if the game not played any grid\n if (playGridRow != any && playGridCol != any){\n \n //Makes sure the grid location matches with the playable grid\n if (playGridRow == gridRow && playGridCol == gridCol){\n \n //Makes sure the grid isnt won\n if (gridBoard[gridRow][gridCol] == empty) {\n \n //Makes sure the location is empty\n if (board[gridRow][gridCol][buttonRow][buttonCol] == empty){\n\n //Prints the location of the button pressed\n log(\"Grid: (\"+gridRow+\",\"+gridCol+\") Button: \"+\"(\"+buttonRow+\",\"+buttonCol+\")\");\n\n //Plugs in the player X to the board\n board[gridRow][gridCol][buttonRow][buttonCol] = playerX;\n\n //Calls the method to see if there are any winnings\n checkForWin();\n \n //Checks if the entire game is won\n gridWin();\n \n //Checks if player X has won a grid\n if (gridBoard[buttonRow][buttonCol] != empty){\n \n playGridRow = any;\n playGridCol = any;\n \n //Prints the next playable grid\n log(\"Next Grid: (ANY,ANY)\");\n }\n \n else if (gridBoard[buttonRow][buttonCol] == empty){\n \n //Sets the next playing grid\n playGridRow = buttonRow;\n playGridCol = buttonCol;\n \n //Prints the next playable grid\n log(\"Next Grid: (\"+playGridRow+\",\"+playGridCol+\")\");\n }\n\n //Calls the method to place X on the frame\n setX(gridRow,gridCol,buttonRow,buttonCol);\n\n //Runs the AI\n runAi();\n } \n\n //If the location is already taken\n else log(\"Location already taken! Grid: (\"+playGridRow+\",\"+playGridCol+\")\");\n }\n \n }\n \n //If the location clicked is invalid\n else log(\"Invalid Movement! Grid: (\"+playGridRow+\",\"+playGridCol+\")\");\n \n }\n \n //Checks if the game can be played on any grid\n else if (playGridRow == any && playGridCol == any){\n \n //Makes sure the grid isnt won\n if (gridBoard[gridRow][gridCol] == empty){\n \n //Makes sure the location is empty\n if (board[gridRow][gridCol][buttonRow][buttonCol] == empty){\n\n //Prints the location of the button pressed\n log(\"Grid: (\"+gridRow+\",\"+gridCol+\") Button: \"+\"(\"+buttonRow+\",\"+buttonCol+\")\");\n\n //Plugs in the player X to the board\n board[gridRow][gridCol][buttonRow][buttonCol] = playerX;\n\n //Calls the method to see if there are any winnings\n checkForWin();\n \n //Checks if the entire game is won\n gridWin();\n\n //Checks if player X has won a grid\n if (gridBoard[buttonRow][buttonCol] != empty){\n\n playGridRow = any;\n playGridCol = any;\n\n //Prints the next playable grid\n log(\"Next Grid: (ANY,ANY)\");\n }\n\n else if (gridBoard[buttonRow][buttonCol] == empty){\n\n //Sets the next playing grid\n playGridRow = buttonRow;\n playGridCol = buttonCol;\n\n //Prints the next playable grid\n log(\"Next Grid: (\"+playGridRow+\",\"+playGridCol+\")\");\n }\n\n //Calls the method to place X on the frame\n setX(gridRow,gridCol,buttonRow,buttonCol);\n \n //Runs the Ai\n runAi();\n\n }\n }\n }\n \n //If the location is already taken\n else log(\"Location already taken! Grid: (\"+playGridRow+\",\"+playGridCol+\")\");\n \n \n \n }", "title": "" }, { "docid": "079eed8897ee7f8852e435e9671135b4", "score": "0.610203", "text": "private boolean canMoveUp() {\n //loop through each column and row\n for (int row = 0; row <GRID_SIZE-1; row++)\n {\n for (int column = 0; column < GRID_SIZE; column++)\n {\n int upperTile = grid[row][column];\n int lowerTile = grid[row+1][column];\n\n //1st case: if the upper tile is 0, and there are\n //any non zero tiles below it.\n if (upperTile ==0 && lowerTile > 0)\n {\n return true;\n\n //2nd case: if a tile has a value of x, and the tile below\n //the tile also has a value of x.\n }else if (upperTile > 0&& lowerTile >0 && upperTile == lowerTile )\n {\n return true;\n }\n }\n }\n return false;\n}", "title": "" }, { "docid": "ac519172e965025ae1856f5238bbd8f3", "score": "0.61004937", "text": "private boolean cellDown(int x, int y) {\n return gameboard.getCell(x, y + 1) == null &&\n (y + 1) < gameboard.getHeight();\n }", "title": "" }, { "docid": "a36f8ba6597938b41b87355d167ebd50", "score": "0.6099532", "text": "private boolean is_valid_move(int[][] piece, int x, int y){\n boolean bool = true;\n\n //invalid move\n if (piece[0].length + y > 10) {\n bool = false;\n }\n return bool;\n }", "title": "" }, { "docid": "c2044ac168703cee42d82441172b4b45", "score": "0.60987335", "text": "public boolean checked(chessboard c) {\n\t\t// up\n\t\tint n = -1;\n\t\twhile (x_loc+n >= 0) {\t\n\t\t\tif (c.boardSpaces[x_loc+n][y_loc].has_piece) {\n\t\t\t\tif (c.boardSpaces[x_loc+n][y_loc].p.color != color && (c.boardSpaces[x_loc+n][y_loc].piece_type == 2 || c.boardSpaces[x_loc+n][y_loc].piece_type == 6))\n\t\t\t\t\treturn true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\t// left\n\t\tn = -1;\n\t\twhile (y_loc+n >= 0) {\t\n\t\t\tif (c.boardSpaces[x_loc][y_loc+n].has_piece) {\n\t\t\t\tif (c.boardSpaces[x_loc][y_loc+n].p.color != color && (c.boardSpaces[x_loc][y_loc+n].piece_type == 2 || c.boardSpaces[x_loc][y_loc+n].piece_type == 6))\n\t\t\t\t\treturn true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\t// down\n\t\tn = 1; \n\t\twhile (x_loc+n <= 7) {\t\n\t\t\tif (c.boardSpaces[x_loc+n][y_loc].has_piece) {\n\t\t\t\tif (c.boardSpaces[x_loc+n][y_loc].p.color != color && (c.boardSpaces[x_loc+n][y_loc].piece_type == 2 || c.boardSpaces[x_loc+n][y_loc].piece_type == 6))\n\t\t\t\t\treturn true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tn++;\n\t\t}\n\t\t// right\n\t\tn = 1;\n\t\twhile (y_loc+n <= 7) {\t \n\t\t\tif (c.boardSpaces[x_loc][y_loc+n].has_piece) {\n\t\t\t\tif (c.boardSpaces[x_loc][y_loc+n].p.color != color && (c.boardSpaces[x_loc][y_loc+n].piece_type == 2 || c.boardSpaces[x_loc][y_loc+n].piece_type == 6))\n\t\t\t\t\treturn true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tn++;\n\t\t}\n\t\t// up-left\n\t\tn = -1; \n\t\twhile (x_loc+n >=0 && y_loc+n >= 0) {\t\n\t\t\tif (c.boardSpaces[x_loc+n][y_loc+n].has_piece) {\n\t\t\t\tif (c.boardSpaces[x_loc+n][y_loc+n].p.color != color && (c.boardSpaces[x_loc+n][y_loc+n].piece_type == 4 || c.boardSpaces[x_loc+n][y_loc+n].piece_type == 6))\n\t\t\t\t\treturn true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\t// up-right\n\t\tn = -1; \n\t\tint m = 1;\n\t\twhile (x_loc+n >=0 && y_loc+m <= 7) {\n\t\t\tif (c.boardSpaces[x_loc+n][y_loc+m].has_piece) {\n\t\t\t\tif (c.boardSpaces[x_loc+n][y_loc+m].p.color != color && (c.boardSpaces[x_loc+n][y_loc+m].piece_type == 4 || c.boardSpaces[x_loc+n][y_loc+m].piece_type == 6))\n\t\t\t\t\treturn true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tn--;\n\t\t\tm++;\n\t\t}\n\t\t// down-left\n\t\tn = 1; \n\t\tm = -1;\n\t\twhile (x_loc+n <= 7 && y_loc+m >= 0) {\n\t\t\tif (c.boardSpaces[x_loc+n][y_loc+m].has_piece) {\n\t\t\t\tif (c.boardSpaces[x_loc+n][y_loc+m].p.color != color && (c.boardSpaces[x_loc+n][y_loc+m].piece_type == 4 || c.boardSpaces[x_loc+n][y_loc+m].piece_type == 6))\n\t\t\t\t\treturn true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tn++;\n\t\t\tm--;\n\t\t}\n\t\t// down-right\n\t\tn = 1; \n\t\twhile (x_loc+n <= 7 && y_loc+n <= 7) {\t\n\t\t\tif (c.boardSpaces[x_loc+n][y_loc+n].has_piece) {\n\t\t\t\tif (c.boardSpaces[x_loc+n][y_loc+n].p.color != color && (c.boardSpaces[x_loc+n][y_loc+n].piece_type == 4 || c.boardSpaces[x_loc+n][y_loc+n].piece_type == 6))\n\t\t\t\t\treturn true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tn++;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "eba0e5bc25ae75357534ace02317afef", "score": "0.6095098", "text": "private boolean checkAfterStartTile(){\n \n switch(tiles.startTile){\n case 7 : if (tileBoard[startRow][startCol] == 2 ||\n tileBoard[startRow][startCol] == 5 ||\n tileBoard[startRow][startCol] == 6 ){\n System.out.println(\"you lose\");\n System.exit(0);\n }\n break;\n case 8 : if (tileBoard[startRow][startCol] == 1 ||\n tileBoard[startRow][startCol] == 4 ||\n tileBoard[startRow][startCol] == 5 ){\n System.out.println(\"you lose\");\n System.exit(0);\n }\n break;\n case 9 : if(tileBoard[startRow][startCol] == 1 ||\n tileBoard[startRow][startCol] == 3 ||\n tileBoard[startRow][startCol] == 6 ){\n System.out.println(\"you lose\");\n System.exit(0);\n } \n break;\n case 10 : if (tileBoard[startRow][startCol] == 2 ||\n tileBoard[startRow][startCol] == 3 ||\n tileBoard[startRow][startCol] == 4 ){\n System.out.println(\"you lose\");\n System.exit(0);\n }\n break; \n }\n \n return true;\n }", "title": "" }, { "docid": "c703b98fde640f7a32df5045746bbc92", "score": "0.6093938", "text": "public boolean interact(int x,int y){\n SingleWire selected=null; //if this is still null at the end of the process, that means user clicked empty space\n for(SingleWire wire:wires){ //first, we have to determine if user clicked a wire or empty space\n if(wire.contains(x,y)){\n selected=wire;\n }\n }\n if(selected!=null) {\n if (selected.getCode() == correctOrder[startIndex] && !selected.alreadyCut()) { //check if the correct wire was cut by comparing the correct wire's code to the clicked wire's code\n startIndex++; //the correct wire has been clicked, which means the next wire must be compared to the next element in correctOrder[]\n selected.setCut();\n return true;\n }\n }\n if(selected==null || selected.alreadyCut()){ //player isn't penalized for clicking empty space or a wire that was already cut\n return true;\n }\n return false; //this means user clicked the incorrect wire\n }", "title": "" }, { "docid": "698ee7b477c91f4a32f0fd1a1b301d80", "score": "0.60902154", "text": "private void checkDown(boolean[][] moves, Piece[][] board, int size){\r\n\t\tfor (int i = 1; this.y - i >= 0; i++) {\r\n\t\t\tPiece piecexy = board[this.y-i][this.x];\r\n\t\t\tif (!checkLocation(moves, piecexy, this.x, this.y-i))\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2a9ca843b81af63a1c01bd2ae21aa430", "score": "0.6088095", "text": "protected void checkPositionChange(){\n\t\t//Get old coordinate positions from pixel positions\n\t\tint oldI = i;\n\t\tint oldJ = j;\n\t\t\n\t\t//Update pixel positions\n\t\tupdatePixelPosition(); //x,y\n\t\tupdateMatrixCoordinates(); //i,j\n\t\t\n\t\t//Se mudou de coords, significa que abandonou o bloco antigo\n\t\tif(oldJ != j || oldI != i ){\n\t\t\tgc.writeOverlayPosition(oldI, oldJ, '-'); //antigo bloco agora eh chao\n\t\t\t//se a nova posicao eh 1 explosao, morre\n\t\t\tif(gc.readLogicPosition(i, j) == 'E'){\n\t\t\t\tgc.writeOverlayPosition(i, j, '-');\n\t\t\t\tdie();\n\t\t\t}\n\t\t\t//cc, o novo bloco agora contem o proprio\n\t\t\telse{ \n\t\t\t\tif(myself != 'R')\t\t\t// Para o robot nao reescrever a pos dos players na overlay matrix.\n\t\t\t\t\tgc.writeOverlayPosition(i, j, myself); \n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "fa74ba14fbdc289866ebc19c684924af", "score": "0.6087413", "text": "public void verifyMove(int x, int y, tile[][] board)\n\t{\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x-i][y-i].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x-i][y-i].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x-i][y-i].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x-i][y-i].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e) {}\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x-i][y+i].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x-i][y+i].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x-i][y+i].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x-i][y+i].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e) {}\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x+i][y-i].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x+i][y-i].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x+i][y-i].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x+i][y-i].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e) {}\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x+i][y+i].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x+i][y+i].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x+i][y+i].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x+i][y+i].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e) {}\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x][y-i].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x][y-i].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x][y-i].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x][y-i].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e) {}\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x][y+i].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x][y+i].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x][y+i].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x][y+i].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x+i][y].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x+i][y].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x+i][y].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x+i][y].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e) {}\n\t\t}\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x-i][y].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x-i][y].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x-i][y].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x-i][y].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e) {}\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "f2dd477b4fe8d69d2641ed5eea6e5cc3", "score": "0.6087413", "text": "public void verifyMove(int x, int y, tile[][] board)\n\t{\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x-i][y-i].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x-i][y-i].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x-i][y-i].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x-i][y-i].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e) {}\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x-i][y+i].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x-i][y+i].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x-i][y+i].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x-i][y+i].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e) {}\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x+i][y-i].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x+i][y-i].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x+i][y-i].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x+i][y-i].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e) {}\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < 8; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (board[x+i][y+i].getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tboard[x+i][y+i].setText(\"\\u25E6\");\n\t\t\t\t}\n\t\t\t\telse if (!board[x+i][y+i].getPiece().color().equals(this.color()) && board[x][y].getBackground() != Color.RED)\n\t\t\t\t{\n\t\t\t\t\tboard[x+i][y+i].setBackground(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e) {}\n\t\t}\t\t\n\t}", "title": "" } ]
97f9d546a001e0997c81255ae7f780e1
This method was generated for supporting the association named Sitedoc2Hops2hop. It will be deleted/edited when the association is deleted/edited. / WARNING: THIS METHOD WILL BE REGENERATED.
[ { "docid": "da9e9d67686d7cd85279f3920a90e614", "score": "0.69720995", "text": "public void secondaryAddSitedoc2Hops(com.hps.july.trailcom.beans.Sitedoc2Hops aSitedoc2Hops) throws java.rmi.RemoteException;", "title": "" } ]
[ { "docid": "ae0065d8240164f75dae75cd319b6e9e", "score": "0.6636779", "text": "public interface Hop extends com.ibm.ivj.ejb.runtime.CopyHelper, javax.ejb.EJBObject {\n/**\n * This method was generated for supporting the association named HopLabel2Hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid addHopLabels(com.hps.july.trailcom.beans.HopLabel aHopLabels) throws java.rmi.RemoteException;\n/**\n * Getter method for abis_number\n * @return java.lang.String\n * @exception java.rmi.RemoteException The exception description.\n */\njava.lang.String getAbis_number() throws java.rmi.RemoteException;\n/**\n * \n * @return java.lang.String\n * @exception String The exception description.\n */\njava.lang.String getBeenetid() throws java.rmi.RemoteException;\n/**\n * \n * @return java.sql.Timestamp\n * @exception String The exception description.\n */\njava.sql.Timestamp getCreated() throws java.rmi.RemoteException;\n/**\n * \n * @return java.lang.Integer\n * @exception String The exception description.\n */\njava.lang.Integer getCreatedby() throws java.rmi.RemoteException;\n/**\n * Getter method for equipmentid_enda\n * @return int\n * @exception java.rmi.RemoteException The exception description.\n */\nint getEquipmentid_enda() throws java.rmi.RemoteException;\n/**\n * Getter method for equipmentid_endb\n * @return int\n * @exception java.rmi.RemoteException The exception description.\n */\nint getEquipmentid_endb() throws java.rmi.RemoteException;\n/**\n * \n * @return java.sql.Date\n * @exception String The exception description.\n */\njava.sql.Date getExpindate() throws java.rmi.RemoteException;\n/**\n * \n * @return java.sql.Date\n * @exception String The exception description.\n */\njava.sql.Date getExpoutdate() throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named HopLabel2Hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\njava.util.Enumeration getHopLabels() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * \n * @return int\n * @exception String The exception description.\n */\nint getHopsid() throws java.rmi.RemoteException;\n/**\n * \n * @return java.lang.String\n * @exception String The exception description.\n */\njava.lang.String getHopstate() throws java.rmi.RemoteException;\n/**\n * Getter method for hopstype\n * @return java.lang.String\n * @exception java.rmi.RemoteException The exception description.\n */\njava.lang.String getHopstype() throws java.rmi.RemoteException;\n/**\n * Getter method for lease_info\n * @return java.lang.String\n * @exception java.rmi.RemoteException The exception description.\n */\njava.lang.String getLease_info() throws java.rmi.RemoteException;\n/**\n * \n * @return java.sql.Timestamp\n * @exception String The exception description.\n */\njava.sql.Timestamp getModified() throws java.rmi.RemoteException;\n/**\n * \n * @return java.lang.Integer\n * @exception String The exception description.\n */\njava.lang.Integer getModifiedby() throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named OpticalHop2Hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic com.hps.july.trailcom.beans.OpticalHop getOpticalHop() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * \n * @return java.lang.String\n * @exception String The exception description.\n */\njava.lang.String getPermstatus() throws java.rmi.RemoteException;\n/**\n * Getter method for rezerv\n * @return java.lang.String\n * @exception java.rmi.RemoteException The exception description.\n */\njava.lang.String getRezerv() throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named RRLHops2Hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic com.hps.july.trailcom.beans.RRLHops2 getRrlHops2() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * This method was generated for supporting the association named Sitedoc2Hops2hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic java.util.Enumeration getSitedoc2Hops() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * Getter method for siteid_enda\n * @return java.lang.Integer\n * @exception java.rmi.RemoteException The exception description.\n */\njava.lang.Integer getSiteid_enda() throws java.rmi.RemoteException;\n/**\n * Getter method for siteid_endb\n * @return java.lang.Integer\n * @exception java.rmi.RemoteException The exception description.\n */\njava.lang.Integer getSiteid_endb() throws java.rmi.RemoteException;\n/**\n * Getter method for speed\n * @return java.lang.String\n * @exception java.rmi.RemoteException The exception description.\n */\njava.lang.String getSpeed() throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named HopLabel2Hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid removeHopLabels(com.hps.july.trailcom.beans.HopLabel aHopLabels) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named HopLabel2Hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid secondaryAddHopLabels(com.hps.july.trailcom.beans.HopLabel aHopLabels) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named Sitedoc2Hops2hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondaryAddSitedoc2Hops(com.hps.july.trailcom.beans.Sitedoc2Hops aSitedoc2Hops) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named HopLabel2Hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid secondaryRemoveHopLabels(com.hps.july.trailcom.beans.HopLabel aHopLabels) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named Sitedoc2Hops2hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondaryRemoveSitedoc2Hops(com.hps.july.trailcom.beans.Sitedoc2Hops aSitedoc2Hops) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named OpticalHop2Hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondarySetOpticalHop(com.hps.july.trailcom.beans.OpticalHop anOpticalHop) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named RRLHops2Hop. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondarySetRrlHops2(com.hps.july.trailcom.beans.RRLHops2 aRrlHops2) throws java.rmi.RemoteException;\n/**\n * Setter method for abis_number\n * @param newValue java.lang.String\n * @exception java.rmi.RemoteException The exception description.\n */\nvoid setAbis_number(java.lang.String newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.String\n * @exception String The exception description.\n */\nvoid setBeenetid(java.lang.String newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.sql.Timestamp\n * @exception String The exception description.\n */\nvoid setCreated(java.sql.Timestamp newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.Integer\n * @exception String The exception description.\n */\nvoid setCreatedby(java.lang.Integer newValue) throws java.rmi.RemoteException;\n/**\n * Setter method for equipmentid_enda\n * @param newValue int\n * @exception java.rmi.RemoteException The exception description.\n */\nvoid setEquipmentid_enda(int newValue) throws java.rmi.RemoteException;\n/**\n * Setter method for equipmentid_endb\n * @param newValue int\n * @exception java.rmi.RemoteException The exception description.\n */\nvoid setEquipmentid_endb(int newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.sql.Date\n * @exception String The exception description.\n */\nvoid setExpindate(java.sql.Date newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.sql.Date\n * @exception String The exception description.\n */\nvoid setExpoutdate(java.sql.Date newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.String\n * @exception String The exception description.\n */\nvoid setHopstate(java.lang.String newValue) throws java.rmi.RemoteException;\n/**\n * Setter method for hopstype\n * @param newValue java.lang.String\n * @exception java.rmi.RemoteException The exception description.\n */\nvoid setHopstype(java.lang.String newValue) throws java.rmi.RemoteException;\n/**\n * Setter method for lease_info\n * @param newValue java.lang.String\n * @exception java.rmi.RemoteException The exception description.\n */\nvoid setLease_info(java.lang.String newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.sql.Timestamp\n * @exception String The exception description.\n */\nvoid setModified(java.sql.Timestamp newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.Integer\n * @exception String The exception description.\n */\nvoid setModifiedby(java.lang.Integer newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.String\n * @exception String The exception description.\n */\nvoid setPermstatus(java.lang.String newValue) throws java.rmi.RemoteException;\n/**\n * Setter method for rezerv\n * @param newValue java.lang.String\n * @exception java.rmi.RemoteException The exception description.\n */\nvoid setRezerv(java.lang.String newValue) throws java.rmi.RemoteException;\n/**\n * Setter method for siteid_enda\n * @param newValue java.lang.Integer\n * @exception java.rmi.RemoteException The exception description.\n */\nvoid setSiteid_enda(java.lang.Integer newValue) throws java.rmi.RemoteException;\n/**\n * Setter method for siteid_endb\n * @param newValue java.lang.Integer\n * @exception java.rmi.RemoteException The exception description.\n */\nvoid setSiteid_endb(java.lang.Integer newValue) throws java.rmi.RemoteException;\n/**\n * Setter method for speed\n * @param newValue java.lang.String\n * @exception java.rmi.RemoteException The exception description.\n */\nvoid setSpeed(java.lang.String newValue) throws java.rmi.RemoteException;\n}", "title": "" }, { "docid": "ae2cb0afa135e24681f15fc1e8f9c887", "score": "0.5835455", "text": "public void secondaryRemoveSitedoc2Hops(com.hps.july.trailcom.beans.Sitedoc2Hops aSitedoc2Hops) throws java.rmi.RemoteException;", "title": "" }, { "docid": "6a4dad4892ad2a4298317bdc82266bc6", "score": "0.57925636", "text": "public void secondarySetOpticalHop(com.hps.july.trailcom.beans.OpticalHop anOpticalHop) throws java.rmi.RemoteException;", "title": "" }, { "docid": "1d41da4243885d0504fda8736b083e4b", "score": "0.55362326", "text": "public java.util.Enumeration getSitedoc2Hops() throws java.rmi.RemoteException, javax.ejb.FinderException;", "title": "" }, { "docid": "c9a5e4b5d208009a797589f50f288cee", "score": "0.5220973", "text": "public interface Ardaisorderstatus extends javax.ejb.EJBObject, com.ibm.ivj.ejb.runtime.CopyHelper {\n\n\n\n\n\n\n/**\n * This method was generated for supporting the association named Ardaisorderstatus-Ardaisorder. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic com.ardais.bigr.es.beans.Ardaisorder getArdaisorder() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * This method was generated for supporting the association named Ardaisorderstatus-Ardaisorder. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic com.ardais.bigr.es.beans.ArdaisorderKey getArdaisorderKey() throws java.rmi.RemoteException;\n/**\n * Getter method for order_status_comment\n * @return java.lang.String\n */\njava.lang.String getOrder_status_comment() throws java.rmi.RemoteException;\n/**\n * Setter method for order_status_comment\n * @param newValue java.lang.String\n */\nvoid setOrder_status_comment(java.lang.String newValue) throws java.rmi.RemoteException;\n}", "title": "" }, { "docid": "3c20778c94f56de00f0791303e482ac0", "score": "0.5206755", "text": "public void secondarySetRrlHops2(com.hps.july.trailcom.beans.RRLHops2 aRrlHops2) throws java.rmi.RemoteException;", "title": "" }, { "docid": "be2a3316cd75a8457b8971f4732f23e9", "score": "0.50459445", "text": "public com.hps.july.trailcom.beans.OpticalHop getOpticalHop() throws java.rmi.RemoteException, javax.ejb.FinderException;", "title": "" }, { "docid": "c1d42703e58f0ed75272a5d676be8de8", "score": "0.5032486", "text": "@Override\n\tpublic String InterfaceName() {\n\t\treturn \"b2c.search.associate\";\n\t}", "title": "" }, { "docid": "fff3faabaa0ac2d65c6f4fdc0b76fb47", "score": "0.4939849", "text": "public com.hps.july.trailcom.beans.RRLHops2 getRrlHops2() throws java.rmi.RemoteException, javax.ejb.FinderException;", "title": "" }, { "docid": "10a59e66b332b975fb4cfc49ee2a455d", "score": "0.48400164", "text": "void secondaryAddHopLabels(com.hps.july.trailcom.beans.HopLabel aHopLabels) throws java.rmi.RemoteException;", "title": "" }, { "docid": "20883e6568e289679b6137a4a976897a", "score": "0.48259336", "text": "public String get_hopName() {\n return _hopName;\n }", "title": "" }, { "docid": "2685d9ac3626eac9a78c044e315cbaf4", "score": "0.47806102", "text": "public String commandLink2_action() {\n this.populateInstitution();\n lpAddInstitution.setRendered(true);\n return null;\n }", "title": "" }, { "docid": "0ebbe2c7a9db30d2602d084c59d624bd", "score": "0.47541645", "text": "public Dimension2FK() {\n //this.setMandatory(false);\n this.setRelatedField(\"dimensionId\");\n this.setRelatedTable(InventoryDimension2.class.getName());\n \tthis.setColumnWidth(59);\n this.setDeleteAction(enumDeleteUpdateOptions.RESTRICT);\n }", "title": "" }, { "docid": "e14c44c08a19a2155f5fe2911d68add5", "score": "0.46952152", "text": "public interface SmartStoreServiceConfigurationSB extends EJBObject {\n\t/**\n\t * Get the available variants for the requested feature.\n\t * \n\t * @param feature\n\t * @return available variants, {@link Collection}<{@link Variant}>\n\t * @throws RemoteException\n\t * @throws SQLException\n\t */\n\tpublic Collection<Variant> getVariants(EnumSiteFeature feature) throws RemoteException,\n\t\t\tSQLException;\n\n\t/**\n\t * Get the available site features stored in database\n\t * \n\t * @return available site features , {@link DynamicSiteFeature}<\n\t * {@link DynamicSiteFeature}>\n\t * @throws RemoteException\n\t * @throws SQLException\n\t */\n\tpublic Collection<DynamicSiteFeature> getSiteFeatures(final String eStoreId) throws RemoteException, SQLException;\n}", "title": "" }, { "docid": "88d692c3f5dd8aeea088e849f93c485c", "score": "0.46889856", "text": "private static CoreInstance otherPropertyInAssociation(CoreInstance association, CoreInstance thisProperty, ProcessorSupport processorSupport)\n {\n ListIterable<? extends CoreInstance> associationProperties = Instance.getValueForMetaPropertyToManyResolved(association, M3Properties.properties, processorSupport);\n return associationProperties.get(thisProperty.equals(associationProperties.get(0)) ? 1 : 0);\n }", "title": "" }, { "docid": "32295981a54c995e4982e6079fbca4d6", "score": "0.46506748", "text": "public interface Many2Dao extends BaseDao<Many2, java.lang.String> {\n\n\n\t/**\n\t * If entity has many-to-one or many-to-many relation\n\t * then Code Generator will make this interface for modifying.\n\t * You can modify it for your need Method.\n\t * The main function is in read page fetch all \n\t * relational date to avoid update page occur error.\n\t * @return List<Many2>\n\t */\n\tList<Many2> findAllFetchRelation();\n\n}", "title": "" }, { "docid": "f3b101c352f3a2cc1cac9dacd26e8efb", "score": "0.46502998", "text": "interface WithAssociatedSubscriptions {\n /**\n * Specifies the associatedSubscriptions property: subscription scope of global rulestack.\n *\n * @param associatedSubscriptions subscription scope of global rulestack.\n * @return the next definition stage.\n */\n WithCreate withAssociatedSubscriptions(List<String> associatedSubscriptions);\n }", "title": "" }, { "docid": "638bb515a130bfc74338c9ba75844c93", "score": "0.46422464", "text": "pomelo.item.ItemOuterClass.ItemDetail getS2CData();", "title": "" }, { "docid": "9e86e9c5bf514991164256c1dcdffdfc", "score": "0.4632361", "text": "@Override\n\tpublic String getDescription() {\n\t\treturn \"SHIP\";\n\t}", "title": "" }, { "docid": "5573e6e9c7706f72a20ea1978418de73", "score": "0.46279258", "text": "public void setScoops(int Scoops)\n{\n\tthis.Scoops=Scoops;\n}", "title": "" }, { "docid": "2b60d54ad78f0dfe739cd87ec7a82b54", "score": "0.46126452", "text": "Association createAssociation();", "title": "" }, { "docid": "1f54682e2bed187619b0038bfd0945a8", "score": "0.46045202", "text": "private void putAssociations() {\n\t\tAssociation association;\n\t\tIOntoAssociation ontoAssociation;\n\t\t\n\t\tfor (PackageableElement element : pack.getPackagedElements()) {\n\t\t\tif( element instanceof Association ) {\n\t\t\t\tassociation = (Association) element;\n\t\t\t\t\n\t\t\t\tontoAssociation = new OntoAssociation(\n\t\t\t\t\t\t//association.getName()\n\t\t\t\t\t\tgetName(association)\n\t\t\t\t\t\t, graph.getNode(association.getMemberEnds().get(0).getName())\t\t\t//sourceNode\n\t\t\t\t\t\t, Cardinality.getCardinality(\t\t\t\t\t\t\t\t\t\t//sourceCardinality\n\t\t\t\t\t\t\t\tassociation.getMemberEnds().get(0).getLower(), \n\t\t\t\t\t\t\t\tassociation.getMemberEnds().get(0).getUpper()) \n\t\t\t\t\t\t, graph.getNode(association.getMemberEnds().get(1).getName())\t\t//targetNode\n\t\t\t\t\t\t, Cardinality.getCardinality(\t\t\t\t\t\t\t\t\t\t//targetCardinality\n\t\t\t\t\t\t\t\tassociation.getMemberEnds().get(1).getLower(), \n\t\t\t\t\t\t\t\tassociation.getMemberEnds().get(1).getUpper()) \n\t\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\tgraph.addAssociation(ontoAssociation);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4496327171a17c62d1a2f16eb44fc5eb", "score": "0.45889485", "text": "@Override\n\tpublic void colided(Entity sponsor) {\n\n\t}", "title": "" }, { "docid": "a3234acfb32b903bd2bfb365fc72ffa3", "score": "0.4576377", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ServiceAssociationWithShopRepository extends JpaRepository<ServiceAssociationWithShop, Long> {\n List<ServiceAssociationWithShop> findByShopId(Long id);\n}", "title": "" }, { "docid": "3895427f26800f8095c47473af703fab", "score": "0.45720825", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic String gotoRelatedEntity() {\n\t\tString v$navigation = super.gotoRelatedEntity();\r\n\t\t/*\r\n\t\t * Recuperation du controleur \r\n\t\t * NB: \r\n\t\t * \t1-Cette méthode suppose que le controleur est bel et bien dans le Scope Session\r\n\t\t * \t2-Par ailleurs il devrait normalement déja existé du fait du passage de paramètres dans la page web\r\n\t\t */\r\n\t\tSysGehoCtrl<BaseEntity, BaseEntity> v$controleur = (SysGehoCtrl<BaseEntity, BaseEntity>) FacesUtil.getSessionMapValue(SysGehoToolBox.getManagedBeanName(v$navigation));\r\n\r\n\t\treturn v$navigation;\r\n\t}", "title": "" }, { "docid": "d709236f8c076e5e803b08f7a92d66da", "score": "0.45649266", "text": "@Override\n\tpublic IPhase createPhase2() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "41007171a0783e0fd1e665d08eb61915", "score": "0.45625278", "text": "public void setSco_Id_Leg_Ent(java.lang.String sco_Id_Leg_Ent) {\n this.sco_Id_Leg_Ent = sco_Id_Leg_Ent;\n }", "title": "" }, { "docid": "544a79ab034aad4ebf5cabb5b0dacb02", "score": "0.45596135", "text": "DataAssociation createDataAssociation();", "title": "" }, { "docid": "f15f17a9cac7e35836dd0267cf42f9b8", "score": "0.45577356", "text": "short association_options_used();", "title": "" }, { "docid": "4de1d77d48784e4491e1256e7de6995b", "score": "0.45389503", "text": "public String getOrigSkuProp2() {\n return origSkuProp2;\n }", "title": "" }, { "docid": "9d97b48fc088bbe855f56846bf40ff13", "score": "0.45386463", "text": "public void setGestion(GestionAssociation association) {\r\n\t\t\r\n\t\tthis.gestionAssociation=association;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4ee8854706cc631f9404e3cedd0d9ae7", "score": "0.45308653", "text": "public ShopDetailsTransferObject addNewShop(ShopDetailsTransferObject transferObject);", "title": "" }, { "docid": "8fa37b7b0b2bc160f428d3e157587157", "score": "0.45222318", "text": "public interface AcDomesticActualRouteLegPkIF\n extends ScWebKeyIF, Serializable\n{\n //##################################################\n //# fields\n //##################################################//\n\n Integer getDomesticActualRouteId();\n Integer getSequence();\n\n}", "title": "" }, { "docid": "e25cff6c02e6e91c0ffdb2aaa52fce20", "score": "0.45094445", "text": "public interface DMLopMonHoc_SinhVienService {\n List<Integer> getSinhVienIdsOfLopMonHoc(int lopMonHocId);\n}", "title": "" }, { "docid": "4a85cefda9fb7d9660a751070590378e", "score": "0.4507728", "text": "ProcedureIndicationsSection2 createProcedureIndicationsSection2();", "title": "" }, { "docid": "bcf03aab5357d58a2ab9270d45fd00a2", "score": "0.45033082", "text": "Junction createJunction();", "title": "" }, { "docid": "bcbc870b23d2dba2f31f5083091f586a", "score": "0.44911128", "text": "protected Client2Hsp getHsp()\n {\n return (this.hsp);\n }", "title": "" }, { "docid": "62d674b8bdf011a995fe2da2c72f8425", "score": "0.44901988", "text": "public String getShopId() {\n\t\t\treturn this.mShopId;\r\n\t\t}", "title": "" }, { "docid": "bcfecd4c37df3519dd5067c55afb9000", "score": "0.44895574", "text": "@Override\n\tpublic void orthoServices() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "fae27761c5180de6856821d57bb63e8f", "score": "0.44815367", "text": "com.techiekernel.ws.jaxws.document.GetServerDetailDocument.GetServerDetail addNewGetServerDetail();", "title": "" }, { "docid": "427b1d5d1188b06b4d0c704b76857961", "score": "0.44787812", "text": "public void triggerShipProduct(final Event e) {\n\n selectedOrdersObservable = magentoCustomerTable.getSelectionModel().getSelectedItems();\n if(!selectedOrdersObservable.isEmpty()) {\n\n\n selectedOrdersObservable.forEach(item -> {\n io.swagger.client.model.SalesDataOrderInterface magentoOrder = item.getValue().getResponseOrder();\n io.swagger.client.model.SalesDataOrderAddressInterface address = magentoOrder.getExtensionAttributes().getShippingAssignments().get(0).getShipping().getAddress();\n\n io.swagger.client.model.SalesShipOrderV1ExecutePostBody shipBody = new SalesShipOrderV1ExecutePostBody();\n shipBody.setNotify(Boolean.TRUE);\n\n\n if(item.getValue().getTrackId() != null) {\n if(StringUtils.isNotBlank(item.getValue().getTrackId().getValue()) && item.getValue().isTrackingPossible().getValue().equals(\"Yes\")) {\n io.swagger.client.model.SalesDataShipmentTrackCreationInterface trackItem = new io.swagger.client.model.SalesDataShipmentTrackCreationInterface();\n\n trackItem.setCarrierCode(\"deutschepost\");\n trackItem.setTitle(\"Deutsche Post\");\n trackItem.setTrackNumber(item.getValue().getTrackId().getValue());\n\n shipBody.addTracksItem(trackItem);\n }\n }\n\n try {\n\n salesShip.salesShipOrderV1ExecutePost(\n magentoOrder.getEntityId(),\n shipBody\n );\n } catch (ApiException e1) {\n e1.printStackTrace();\n }\n\n try {\n // @see https://github.com/pavelleonidov/magento2-webapi-orderinvoice\n Integer invoiceId = invoiceApi.pavelLeonidovWebApiOrderInvoiceOrderInvoiceV1ExecuteGet(magentoOrder.getEntityId()).getEntityId();\n\n if(invoiceId != null) {\n String invoiceResponse = null;\n try {\n // @see https://github.com/pavelleonidov/magento2-webapi-pdfinvoice\n invoiceResponse = invoicePdfApi.pavelLeonidovWebApiRestPdfPdfInvoiceRepositoryV1GetInvoiceForExportInPdfFormatGet(invoiceId);\n try {\n // Decode stream and save to PDF\n if (!invoiceResponse.isEmpty()) {\n\n String invoicePath = SettingsController.getSettings().getInvoiceDestination();\n\n if(invoicePath.isEmpty()) {\n invoicePath = Main.getHomeDirectory() + \"Invoices\";\n }\n\n File invoiceDirectory = new File(invoicePath);\n if (!invoiceDirectory.exists()) {\n try {\n invoiceDirectory.mkdirs();\n } catch (Exception e3) {\n e3.printStackTrace();\n }\n\n }\n String fileName = \"Invoice-\" + magentoOrder.getIncrementId() + \"-\" + address.getFirstname().trim().replaceAll(\"[^a-zA-Z]\", \"\") + '-' + address.getLastname().trim().replaceAll(\"[^a-zA-Z]\", \"\") + \".pdf\";\n\n File invoiceFile = new File(invoiceDirectory.getPath() + '/' + fileName);\n byte[] stream = Base64.getDecoder().decode(invoiceResponse);\n FileOutputStream fos = new FileOutputStream(invoiceFile);\n fos.write(stream);\n fos.close();\n }\n\n\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n } catch (ApiException e1) {\n e1.printStackTrace();\n }\n\n\n\n }\n\n } catch (ApiException e1) {\n e1.printStackTrace();\n System.out.println(e1.getResponseBody());\n }\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e1) {\n e1.printStackTrace();\n }\n });\n\n\n fullRefreshOrders(null);\n\n\n }\n\n }", "title": "" }, { "docid": "51441ce1abf63c29f04dc9dfdcd451d6", "score": "0.44763973", "text": "public api.eyeblaster.com.message.Campaign.GetInteractionRelatedAdsResponse GetInteractionRelatedAds(\r\n\r\n api.eyeblaster.com.message.Campaign.GetInteractionRelatedAdsRequest getInteractionRelatedAdsRequest482,api.eyeblaster.com.message.Campaign.UserSecurityToken userSecurityToken483)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[26].getName());\r\n _operationClient.getOptions().setAction(\"http://api.eyeblaster.com/ICampaignService/GetInteractionRelatedAds\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getInteractionRelatedAdsRequest482,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://api.eyeblaster.com/\",\r\n \"GetInteractionRelatedAds\")));\r\n \r\n env.build();\r\n \r\n // add the children only if the parameter is not null\r\n if (userSecurityToken483!=null){\r\n \r\n org.apache.axiom.om.OMElement omElementuserSecurityToken483 = toOM(userSecurityToken483, optimizeContent(new javax.xml.namespace.QName(\"http://api.eyeblaster.com/\", \"GetInteractionRelatedAds\")));\r\n addHeader(omElementuserSecurityToken483,env);\r\n \r\n }\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n api.eyeblaster.com.message.Campaign.GetInteractionRelatedAdsResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (api.eyeblaster.com.message.Campaign.GetInteractionRelatedAdsResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex=\r\n (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }", "title": "" }, { "docid": "4e814cc53ab900e199139ddd485f8398", "score": "0.44750667", "text": "public void transferAssociationTo(JetspeedPrincipal from, JetspeedPrincipal to, JetspeedPrincipal target, String associationName) throws SecurityException\n {\n \n }", "title": "" }, { "docid": "fdfd8c48693e12d41764db29762a5821", "score": "0.44706035", "text": "void addShop(MonopolyShopCell shop) {\n ownedShops.add(shop);\n }", "title": "" }, { "docid": "b36aee812298f19f5c9777c253c9e563", "score": "0.44697112", "text": "SystemRelationsOutDTO getSystemRelations();", "title": "" }, { "docid": "5a443a3aab088df6ede6d885ac34f9e1", "score": "0.44683558", "text": "@Test\n\tpublic void testGetAssociationById() {\n\t\tfinal Set<ProductAssociation> associations = new HashSet<ProductAssociation>();\n\n\t\tfinal ProductAssociation productAssociationUpSell = new ProductAssociationImpl();\n\t\tproductAssociationUpSell.setAssociationType(ProductAssociation.UP_SELL);\n\t\tproductAssociationUpSell.setTargetProduct(getProduct());\n\t\tproductAssociationUpSell.setUidPk(ASSOCIATION_UID_1);\n\t\tassociations.add(productAssociationUpSell);\n\n\t\tfinal ProductAssociation productAssociationCrossSell = new ProductAssociationImpl();\n\t\tproductAssociationCrossSell.setAssociationType(ProductAssociation.CROSS_SELL);\n\t\tproductAssociationCrossSell.setTargetProduct(getProduct());\n\t\tproductAssociationCrossSell.setUidPk(ASSOCIATION_UID_2);\n\t\tassociations.add(productAssociationCrossSell);\n\n\t\tstoreProduct.setProductAssociations(associations);\n\t\tassertSame(productAssociationCrossSell, storeProduct.getAssociationById(ASSOCIATION_UID_2));\n\t\tassertSame(productAssociationUpSell, storeProduct.getAssociationById(ASSOCIATION_UID_1));\n\t}", "title": "" }, { "docid": "0d947fe211838e1d4084ea8104f15dc7", "score": "0.44576508", "text": "@Override\r\n\tpublic void saveTravelScenicShare(Travelscenicshare travelscenicshare) {\n\t\t\r\n\t}", "title": "" }, { "docid": "11726b6c3b171feaff2d7e569ef7dfca", "score": "0.44394773", "text": "public long getShopId() {\r\n return shopId;\r\n }", "title": "" }, { "docid": "c04a917a81b3a6a105a3c7010ac3b935", "score": "0.44387943", "text": "public org.w3.x1999.xhtml.H2Document.H2 addNewH2()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x1999.xhtml.H2Document.H2 target = null;\n target = (org.w3.x1999.xhtml.H2Document.H2)get_store().add_element_user(H2$4);\n return target;\n }\n }", "title": "" }, { "docid": "53b428b75f928797cbabfc0e77e89e8c", "score": "0.44333696", "text": "@Override\n\tprotected void doMergeRelationships() {\n\t\t\n\t}", "title": "" }, { "docid": "fbb26f9f15cfd1fd02f96c54a8f07e46", "score": "0.44311392", "text": "PropertyAssociation(String tag) {\n super(tag);\n assertTag(\"ASSO\");\n }", "title": "" }, { "docid": "6f8dfdfbcbd0c365e0c640c5c3096169", "score": "0.44298705", "text": "public interface TechnologyVisitorRelationConfiguration {\n\n}", "title": "" }, { "docid": "88a98c89a734f8b56bebefeada0af5b8", "score": "0.4421205", "text": "public int getShopId() {\r\n return localShopId;\r\n }", "title": "" }, { "docid": "b65143963f4bb749464b3266723887bf", "score": "0.44198558", "text": "@Override\n \tpublic boolean isAssociationType() {\n \t\treturn true;\n \t}", "title": "" }, { "docid": "36df57593f8d0dd5858e2768253ea988", "score": "0.4413259", "text": "LinkedServiceInner innerModel();", "title": "" }, { "docid": "a2d2e2167439c5e07ea02556d60620b7", "score": "0.44043136", "text": "@Override\r\n\tpublic void operationB2() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce79706fdda3542f9b093f9483215d6e", "score": "0.43995455", "text": "public java.lang.String getSco_Id_Leg_Ent() {\n return sco_Id_Leg_Ent;\n }", "title": "" }, { "docid": "96decc2b888b2447ad9ed5042fa3f732", "score": "0.4393439", "text": "@Override\n public void addScooter(Scooter scooter){\n Session session = null;\n Transaction tx = null;\n\n try{\n session = this.sessionFactory.openSession();\n tx = session.beginTransaction();\n session.save(scooter);\n tx.commit();\n }catch(HibernateException e){\n if(tx !=null) tx.rollback();\n }finally{\n session.close();\n }\n }", "title": "" }, { "docid": "41d15d00c1971705353c66cfbcd755bc", "score": "0.43926468", "text": "public interface GarmentShop {\n\n}", "title": "" }, { "docid": "f7146dd5c94fff358887aadcd09933d2", "score": "0.4390792", "text": "protected void inc2(HashMap h2, String t1, String t2)\n {\n\t//Have to use Vector because arrays aren't hashable\n\tVector key = new Vector(2);\n\tkey.setSize(2);\n\tkey.set(0, t1);\n\tkey.set(1, t2);\n\t\n\tif(h2.containsKey(key)) {\n\t\tint[] ip = (int[])h2.get(key); //Used as int *\n\t\tip[0]++;\n\t} else {\n\t\tint[] ip = new int[1];\n\t\tip[0] = 1;\n\t\th2.put(key, ip);\n\t }\n }", "title": "" }, { "docid": "9acd65fedc2860ab37f69bf1cb06b449", "score": "0.4387408", "text": "public interface ReqMakeSite extends ReqMakeSiteModel, PersistedModel {\n /*\n * NOTE FOR DEVELOPERS:\n *\n * Never modify this interface directly. Add methods to {@link com.sdr.metadata.model.impl.ReqMakeSiteImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.\n */\n}", "title": "" }, { "docid": "d8e888eb90cb7e1aaa4af35dbb9429e5", "score": "0.43866745", "text": "@Override\r\n public CollectionMapping newOneToManyMapping() {\r\n return new EISOneToManyMapping();\r\n }", "title": "" }, { "docid": "75b37849993e90abeb0973f5a58ab376", "score": "0.4382823", "text": "private VietGrammaticalRelations() {\n\t}", "title": "" }, { "docid": "15ebcbf655ebf8936f6fb91294c9d3d7", "score": "0.4378987", "text": "public Integer getShopId() {\n return shopId;\n }", "title": "" }, { "docid": "77e97a1736088533f533a331204c06be", "score": "0.4372729", "text": "public interface ConsultationNote2 extends USRealmHeader2 {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::PlanOfTreatmentSection2)) and self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AssessmentSection))) xor self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AssessmentAndPlanSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2HasAnAssementAndPlanSection2OrBothAssementSectionAndPlanOfTreatmentSection2(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::PlanOfTreatmentSection2)) or self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AssessmentSection))) xor self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AssessmentAndPlanSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2DoesNotHaveAssementAndPlanSection2WhenAssementOrPlanOfTreatment2ArePresent(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ChiefComplaintSection)) or self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ReasonForVisitSection))) xor self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ChiefComplaintAndReasonForVisitSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2DoesNotHaveChiefComplaintWithChiefComplaintOrReasonForVisitSection(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::PlanOfTreatmentSection2)) and self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AssessmentSection))) xor self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AssessmentAndPlanSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2HasAnAssementAndPlanSectionOrIndividualAssementAndPlanSections(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2CodeP(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined() and self.code.oclIsKindOf(datatypes::CE) and \\nlet value : datatypes::CE = self.code.oclAsType(datatypes::CE) in \\nvalue.codeSystem = \\'2.16.840.1.113883.6.1\\' and (value.code = \\'11488-4\\' or value.code = \\'34100-8\\' or value.code = \\'34104-0\\' or value.code = \\'51845-6\\' or value.code = \\'51853-0\\' or value.code = \\'51846-4\\' or value.code = \\'34101-6\\' or value.code = \\'34749-2\\' or value.code = \\'34102-4\\' or value.code = \\'34099-2\\' or value.code = \\'34756-7\\' or value.code = \\'34758-3\\' or value.code = \\'34760-9\\' or value.code = \\'34879-7\\' or value.code = \\'34761-7\\' or value.code = \\'34764-1\\' or value.code = \\'34771-6\\' or value.code = \\'34776-5\\' or value.code = \\'34777-3\\' or value.code = \\'34779-9\\' or value.code = \\'34781-5\\' or value.code = \\'34783-1\\' or value.code = \\'34785-6\\' or value.code = \\'34795-5\\' or value.code = \\'34797-1\\' or value.code = \\'34798-9\\' or value.code = \\'34800-3\\' or value.code = \\'34803-7\\' or value.code = \\'34855-7\\' or value.code = \\'34805-2\\' or value.code = \\'34807-8\\' or value.code = \\'34810-2\\' or value.code = \\'34812-8\\' or value.code = \\'34814-4\\' or value.code = \\'34816-9\\' or value.code = \\'34820-1\\' or value.code = \\'34822-7\\' or value.code = \\'34824-3\\' or value.code = \\'34826-8\\' or value.code = \\'34828-4\\' or value.code = \\'34788-0\\' or value.code = \\'34791-4\\' or value.code = \\'34103-2\\' or value.code = \\'34831-8\\' or value.code = \\'34833-4\\' or value.code = \\'34835-9\\' or value.code = \\'34837-5\\' or value.code = \\'34839-1\\' or value.code = \\'34841-7\\' or value.code = \\'34845-8\\' or value.code = \\'34847-4\\' or value.code = \\'34849-0\\' or value.code = \\'34851-6\\' or value.code = \\'34853-2\\'))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2Code(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant-&gt;select(participant : cda::Participant1 | not participant.oclIsUndefined() and participant.oclIsKindOf(cda::Participant1))-&gt;select(typeCode = vocab::ParticipationType::CALLBCK)-&gt;notEmpty()'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2Participant(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.inFulfillmentOf-&gt;exists(inFulfillmentOf : cda::InFulfillmentOf | not inFulfillmentOf.oclIsUndefined() and inFulfillmentOf.oclIsKindOf(cda::InFulfillmentOf))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2InFulfillmentOf(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;one(componentOf : cda::Component1 | not componentOf.oclIsUndefined() and componentOf.oclIsKindOf(cda::Component1))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOf(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AssessmentSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2AssessmentSection(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AssessmentAndPlanSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2AssessmentAndPlanSection2(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::PlanOfTreatmentSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2PlanOfTreatmentSection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ReasonForVisitSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ReasonForVisitSection(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::HistoryOfPresentIllnessSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2HistoryOfPresentIllnessSection(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::PhysicalExamSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2PhysicalExamSection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AllergiesSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2AllergiesSection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ChiefComplaintSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ChiefComplaintSection(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ChiefComplaintAndReasonForVisitSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ChiefComplaintAndReasonForVisitSection(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::GeneralStatusSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2GeneralStatusSection(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::HistoryOfPastIllnessSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2HistoryOfPastIllnessSection2(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ImmunizationsSectionEntriesOptional2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ImmunizationsSectionEntriesOptional2(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::MedicationsSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2MedicationsSection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ProblemSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ProblemSection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ProceduresSectionEntriesOptional2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ProceduresSectionEntriesOptional2(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ResultsSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ResultsSection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::SocialHistorySection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2SocialHistorySection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::VitalSignsSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2VitalSignsSection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AdvanceDirectivesSectionEntriesOptional2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2AdvanceDirectivesSectionEntriesOptional2(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::FunctionalStatusSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2FunctionalStatusSection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ReviewOfSystemsSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ReviewOfSystemsSection(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::MedicalEquipmentSection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2MedicalEquipmentSection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::MentalStatusSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2MentalStatusSection(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::NutritionSection))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2NutritionSection(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::FamilyHistorySection2))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2FamilyHistorySection2(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant-&gt;excluding(null)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK).associatedEntity-&gt;excluding(null).associatedPerson-&gt;excluding(null)-&gt;reject((name-&gt;isEmpty() or name-&gt;exists(element | element.isNullFlavorUndefined())) implies (( not name-&gt;isEmpty()) ))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ParticipantAssociatedEntityAssociatedPersonName(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant-&gt;excluding(null)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK).associatedEntity-&gt;excluding(null)-&gt;reject(classCode=vocab::RoleClassAssociative::ASSIGNED)'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ParticipantAssociatedEntityClassCode(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant-&gt;excluding(null)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK).associatedEntity-&gt;excluding(null)-&gt;reject((id-&gt;isEmpty() or id-&gt;exists(element | element.isNullFlavorUndefined())) implies (( not id-&gt;isEmpty()) ))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ParticipantAssociatedEntityId(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant-&gt;excluding(null)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK).associatedEntity-&gt;excluding(null)-&gt;reject((addr-&gt;isEmpty() or addr-&gt;exists(element | element.isNullFlavorUndefined())) implies (not addr-&gt;isEmpty()))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ParticipantAssociatedEntityAddr(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant-&gt;excluding(null)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK).associatedEntity-&gt;excluding(null)-&gt;reject((telecom-&gt;isEmpty() or telecom-&gt;exists(element | element.isNullFlavorUndefined())) implies (( not telecom-&gt;isEmpty()) ))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ParticipantAssociatedEntityTelecom(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant-&gt;excluding(null)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK).associatedEntity-&gt;excluding(null)-&gt;reject(associatedPerson-&gt;one(associatedPerson : cda::Person | not associatedPerson.oclIsUndefined() and associatedPerson.oclIsKindOf(cda::Person)))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ParticipantAssociatedEntityAssociatedPerson(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant-&gt;excluding(null)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK).associatedEntity-&gt;excluding(null)-&gt;reject(scopingOrganization-&gt;one(scopingOrganization : cda::Organization | not scopingOrganization.oclIsUndefined() and scopingOrganization.oclIsKindOf(rim::Entity)))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ParticipantAssociatedEntityScopingOrganization(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant-&gt;excluding(null)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK)-&gt;reject(typeCode=vocab::ParticipationType::CALLBCK)'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ParticipantTypeCode(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant-&gt;excluding(null)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK)-&gt;select(typeCode = vocab::ParticipationType::CALLBCK)-&gt;reject(associatedEntity-&gt;one(associatedEntity : cda::AssociatedEntity | not associatedEntity.oclIsUndefined() and associatedEntity.oclIsKindOf(cda::AssociatedEntity)))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ParticipantAssociatedEntity(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.inFulfillmentOf-&gt;excluding(null).order-&gt;excluding(null)-&gt;reject((id-&gt;isEmpty() or id-&gt;exists(element | element.isNullFlavorUndefined())) implies (not id-&gt;isEmpty()))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2InFulfillmentOfOrderId(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.inFulfillmentOf-&gt;excluding(null)-&gt;reject(order-&gt;one(order : cda::Order | not order.oclIsUndefined() and order.oclIsKindOf(cda::Order)))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2InFulfillmentOfOrder(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null).effectiveTime-&gt;excluding(null)-&gt;select(isNullFlavorUndefined())-&gt;reject(isNullFlavorUndefined() implies ((not value.oclIsUndefined() implies value.size() &gt;= 8) and ((not low.value.oclIsUndefined() and low.isNullFlavorUndefined() implies low.value.size() &gt;= 8) and (not high.value.oclIsUndefined() and high.isNullFlavorUndefined() implies high.value.size() &gt;= 8))))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterGeneralHeaderConstraintsUSRealmDateAndTimeDTPreciseToTheDayIVLTS(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null).effectiveTime-&gt;excluding(null)-&gt;select(isNullFlavorUndefined())-&gt;reject(isNullFlavorUndefined() implies ((not value.oclIsUndefined() implies value.size() &gt;= 12) and ((not low.value.oclIsUndefined() and low.isNullFlavorUndefined() implies low.value.size() &gt;= 12) and (not high.value.oclIsUndefined() and high.isNullFlavorUndefined() implies high.value.size() &gt;= 12))))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterGeneralHeaderConstraintsUSRealmDateAndTimeDTPreciseToTheMinuteIVLTS(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null).effectiveTime-&gt;excluding(null)-&gt;select(isNullFlavorUndefined())-&gt;reject(isNullFlavorUndefined() implies ((not value.oclIsUndefined() implies value.size() &gt;= 14) and ((not low.value.oclIsUndefined() and low.isNullFlavorUndefined() implies low.value.size() &gt;= 14) and (not high.value.oclIsUndefined() and high.isNullFlavorUndefined() implies high.value.size() &gt;= 14))))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterGeneralHeaderConstraintsUSRealmDateAndTimeDTPreciseToTheSecondIVLTS(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null).effectiveTime-&gt;excluding(null)-&gt;select(isNullFlavorUndefined())-&gt;reject((not value.oclIsUndefined() and value.size() &gt; 8 implies value.size() &gt;= 15) and ((not low.value.oclIsUndefined() and low.value.size() &gt; 8 implies low.value.size() &gt;= 15) and (not high.value.oclIsUndefined() and high.value.size() &gt; 8 implies high.value.size() &gt;= 15)))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterGeneralHeaderConstraintsUSRealmDateAndTimeDTIfMorePreciseThanDayIncludeTimeZoneOffsetIVLTS(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null).responsibleParty-&gt;excluding(null)-&gt;reject(not assignedEntity.assignedPerson.oclIsUndefined() or not assignedEntity.representedOrganization-&gt;isEmpty())'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterResponsiblePartyAssignedEntityHasPersonOrganizationOrBoth(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null).responsibleParty-&gt;excluding(null)-&gt;reject(assignedEntity-&gt;one(assignedEntity : cda::AssignedEntity | not assignedEntity.oclIsUndefined() and assignedEntity.oclIsKindOf(rim::Role)))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterResponsiblePartyAssignedEntity(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null).encounterParticipant-&gt;excluding(null)-&gt;reject(not assignedEntity.assignedPerson.oclIsUndefined() or not assignedEntity.representedOrganization-&gt;isEmpty())'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterEncounterParticipantAssignedEntityHasPersonOrganizationOrBoth(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null).encounterParticipant-&gt;excluding(null)-&gt;reject(assignedEntity-&gt;one(assignedEntity : cda::AssignedEntity | not assignedEntity.oclIsUndefined() and assignedEntity.oclIsKindOf(rim::Role)))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterEncounterParticipantAssignedEntity(\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null)-&gt;reject((id-&gt;isEmpty() or id-&gt;exists(element | element.isNullFlavorUndefined())) implies (( not id-&gt;isEmpty()) ))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterId(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null)-&gt;reject((effectiveTime.oclIsUndefined() or effectiveTime.isNullFlavorUndefined()) implies (not effectiveTime.oclIsUndefined()))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterEffectiveTime(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null)-&gt;reject(responsibleParty-&gt;one(responsibleParty : cda::ResponsibleParty | not responsibleParty.oclIsUndefined() and responsibleParty.oclIsKindOf(cda::ResponsibleParty)))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterResponsibleParty(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null).encompassingEncounter-&gt;excluding(null)-&gt;reject(encounterParticipant-&gt;exists(encounterParticipant : cda::EncounterParticipant | not encounterParticipant.oclIsUndefined() and encounterParticipant.oclIsKindOf(cda::EncounterParticipant)))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounterEncounterParticipant(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.componentOf-&gt;excluding(null)-&gt;reject(encompassingEncounter-&gt;one(encompassingEncounter : cda::EncompassingEncounter | not encompassingEncounter.oclIsUndefined() and encompassingEncounter.oclIsKindOf(cda::EncompassingEncounter)))'\"\n\t * @generated\n\t */\n\tboolean validateConsultationNote2ComponentOfEncompassingEncounter(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AssessmentSection))-&gt;asSequence()-&gt;any(true).oclAsType(consol::AssessmentSection)'\"\n\t * @generated\n\t */\n\tAssessmentSection getAssessmentSection();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AssessmentAndPlanSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::AssessmentAndPlanSection2)'\"\n\t * @generated\n\t */\n\tAssessmentAndPlanSection2 getAssessmentAndPlanSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::PlanOfTreatmentSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::PlanOfTreatmentSection2)'\"\n\t * @generated\n\t */\n\tPlanOfTreatmentSection2 getPlanOfTreatmentSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ReasonForVisitSection))-&gt;asSequence()-&gt;any(true).oclAsType(consol::ReasonForVisitSection)'\"\n\t * @generated\n\t */\n\tReasonForVisitSection getReasonForVisitSection();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::HistoryOfPresentIllnessSection))-&gt;asSequence()-&gt;any(true).oclAsType(consol::HistoryOfPresentIllnessSection)'\"\n\t * @generated\n\t */\n\tHistoryOfPresentIllnessSection getHistoryOfPresentIllnessSection();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::PhysicalExamSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::PhysicalExamSection2)'\"\n\t * @generated\n\t */\n\tPhysicalExamSection2 getPhysicalExamSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AllergiesSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::AllergiesSection2)'\"\n\t * @generated\n\t */\n\tAllergiesSection2 getAllergiesSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ChiefComplaintSection))-&gt;asSequence()-&gt;any(true).oclAsType(consol::ChiefComplaintSection)'\"\n\t * @generated\n\t */\n\tChiefComplaintSection getChiefComplaintSection();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ChiefComplaintAndReasonForVisitSection))-&gt;asSequence()-&gt;any(true).oclAsType(consol::ChiefComplaintAndReasonForVisitSection)'\"\n\t * @generated\n\t */\n\tChiefComplaintAndReasonForVisitSection getChiefComplaintAndReasonForVisitSection();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::GeneralStatusSection))-&gt;asSequence()-&gt;any(true).oclAsType(consol::GeneralStatusSection)'\"\n\t * @generated\n\t */\n\tGeneralStatusSection getGeneralStatusSection();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::HistoryOfPastIllnessSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::HistoryOfPastIllnessSection2)'\"\n\t * @generated\n\t */\n\tHistoryOfPastIllnessSection2 getHistoryOfPastIllnessSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ImmunizationsSectionEntriesOptional2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::ImmunizationsSectionEntriesOptional2)'\"\n\t * @generated\n\t */\n\tImmunizationsSectionEntriesOptional2 getImmunizationsSectionEntriesOptional2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::MedicationsSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::MedicationsSection2)'\"\n\t * @generated\n\t */\n\tMedicationsSection2 getMedicationsSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ProblemSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::ProblemSection2)'\"\n\t * @generated\n\t */\n\tProblemSection2 getProblemSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ProceduresSectionEntriesOptional2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::ProceduresSectionEntriesOptional2)'\"\n\t * @generated\n\t */\n\tProceduresSectionEntriesOptional2 getProceduresSectionEntriesOptional2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ResultsSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::ResultsSection2)'\"\n\t * @generated\n\t */\n\tResultsSection2 getResultsSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::SocialHistorySection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::SocialHistorySection2)'\"\n\t * @generated\n\t */\n\tSocialHistorySection2 getSocialHistorySection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::VitalSignsSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::VitalSignsSection2)'\"\n\t * @generated\n\t */\n\tVitalSignsSection2 getVitalSignsSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::AdvanceDirectivesSectionEntriesOptional2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::AdvanceDirectivesSectionEntriesOptional2)'\"\n\t * @generated\n\t */\n\tAdvanceDirectivesSectionEntriesOptional2 getAdvanceDirectivesSectionEntriesOptional2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::FunctionalStatusSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::FunctionalStatusSection2)'\"\n\t * @generated\n\t */\n\tFunctionalStatusSection2 getFunctionalStatusSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::ReviewOfSystemsSection))-&gt;asSequence()-&gt;any(true).oclAsType(consol::ReviewOfSystemsSection)'\"\n\t * @generated\n\t */\n\tReviewOfSystemsSection getReviewOfSystemsSection();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::MedicalEquipmentSection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::MedicalEquipmentSection2)'\"\n\t * @generated\n\t */\n\tMedicalEquipmentSection2 getMedicalEquipmentSection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::MentalStatusSection))-&gt;asSequence()-&gt;any(true).oclAsType(consol::MentalStatusSection)'\"\n\t * @generated\n\t */\n\tMentalStatusSection getMentalStatusSection();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::NutritionSection))-&gt;asSequence()-&gt;any(true).oclAsType(consol::NutritionSection)'\"\n\t * @generated\n\t */\n\tNutritionSection getNutritionSection();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getAllSections()-&gt;select(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::FamilyHistorySection2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::FamilyHistorySection2)'\"\n\t * @generated\n\t */\n\tFamilyHistorySection2 getFamilyHistorySection2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tpublic ConsultationNote2 init();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tpublic ConsultationNote2 init(Iterable<? extends Initializer<? extends EObject>> initializers);\n}", "title": "" }, { "docid": "e8e30b0374154f3d1df66b66e74b55bf", "score": "0.43667874", "text": "public api.eyeblaster.com.message.Campaign.GetCreativeShopsResponse GetCreativeShops(\r\n\r\n api.eyeblaster.com.message.Campaign.GetCreativeShopsRequest getCreativeShopsRequest431,api.eyeblaster.com.message.Campaign.UserSecurityToken userSecurityToken432)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\r\n _operationClient.getOptions().setAction(\"http://api.eyeblaster.com/ICampaignService/GetCreativeShops\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getCreativeShopsRequest431,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://api.eyeblaster.com/\",\r\n \"GetCreativeShops\")));\r\n \r\n env.build();\r\n \r\n // add the children only if the parameter is not null\r\n if (userSecurityToken432!=null){\r\n \r\n org.apache.axiom.om.OMElement omElementuserSecurityToken432 = toOM(userSecurityToken432, optimizeContent(new javax.xml.namespace.QName(\"http://api.eyeblaster.com/\", \"GetCreativeShops\")));\r\n addHeader(omElementuserSecurityToken432,env);\r\n \r\n }\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n api.eyeblaster.com.message.Campaign.GetCreativeShopsResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (api.eyeblaster.com.message.Campaign.GetCreativeShopsResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex=\r\n (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }", "title": "" }, { "docid": "d69afc272da7017b0fc434b75c9333bb", "score": "0.43659568", "text": "protected void sequence_BinaryOperation_Expression_Logical2Operation(EObject context, BinaryOperation semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "title": "" }, { "docid": "3fe4c0653f8399892d6a5b00f7b2f58f", "score": "0.4365145", "text": "public api.eyeblaster.com.message.Campaign.GetSitesResponse GetSites(\r\n\r\n api.eyeblaster.com.message.Campaign.GetSitesRequest getSitesRequest494,api.eyeblaster.com.message.Campaign.UserSecurityToken userSecurityToken495)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[30].getName());\r\n _operationClient.getOptions().setAction(\"http://api.eyeblaster.com/ICampaignService/GetSites\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getSitesRequest494,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://api.eyeblaster.com/\",\r\n \"GetSites\")));\r\n \r\n env.build();\r\n \r\n // add the children only if the parameter is not null\r\n if (userSecurityToken495!=null){\r\n \r\n org.apache.axiom.om.OMElement omElementuserSecurityToken495 = toOM(userSecurityToken495, optimizeContent(new javax.xml.namespace.QName(\"http://api.eyeblaster.com/\", \"GetSites\")));\r\n addHeader(omElementuserSecurityToken495,env);\r\n \r\n }\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n api.eyeblaster.com.message.Campaign.GetSitesResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (api.eyeblaster.com.message.Campaign.GetSitesResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex=\r\n (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }", "title": "" }, { "docid": "be1587edd3a6fece1cd8ec408646e409", "score": "0.43638045", "text": "public interface ShopService {\n\n /**\n * 根据shopCondition分页返回数据\n * @param shopCondition\n * @param pageIndex\n * @param pageSize\n *\n * @return\n */\n ShopExecution getShopList(Shop shopCondition, int pageIndex, int pageSize);\n\n /**\n * 通过店铺id获取店铺信息\n * @param shopId\n *\n * @return\n */\n Shop getByShopId(long shopId);\n\n /**\n * 更新店铺信息,包括对图片的处理\n * @param shop\n * @param thumbnail\n *\n * @return\n */\n ShopExecution modifyShop(Shop shop, ImageHolder thumbnail) throws ShopOperationException;\n\n /**\n * 注册店铺信息,包括对图片处理\n * @param shop\n * @param thumbnail\n * @return\n */\n ShopExecution addShop(Shop shop, ImageHolder thumbnail) throws ShopOperationException;\n}", "title": "" }, { "docid": "bbc4ea7d65806c41b14f49af76c0a9a4", "score": "0.43582416", "text": "Collection<? extends ProductHolon> getSTHAnswerPH();", "title": "" }, { "docid": "2f9259225e0c356538256a64a43c9fe9", "score": "0.43579742", "text": "public String getShopInfoId() {\n return shopInfoId;\n }", "title": "" }, { "docid": "ead4810e872c77cc753de5d54fb37c8f", "score": "0.43572888", "text": "public api.eyeblaster.com.message.Campaign.GetCreativeShopResponse GetCreativeShopContacts(\r\n\r\n api.eyeblaster.com.message.Campaign.GetCreativeShopRequest getCreativeShopRequest458,api.eyeblaster.com.message.Campaign.UserSecurityToken userSecurityToken459)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[18].getName());\r\n _operationClient.getOptions().setAction(\"http://api.eyeblaster.com/ICampaignService/GetCreativeShopContacts\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getCreativeShopRequest458,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://api.eyeblaster.com/\",\r\n \"GetCreativeShopContacts\")));\r\n \r\n env.build();\r\n \r\n // add the children only if the parameter is not null\r\n if (userSecurityToken459!=null){\r\n \r\n org.apache.axiom.om.OMElement omElementuserSecurityToken459 = toOM(userSecurityToken459, optimizeContent(new javax.xml.namespace.QName(\"http://api.eyeblaster.com/\", \"GetCreativeShopContacts\")));\r\n addHeader(omElementuserSecurityToken459,env);\r\n \r\n }\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n api.eyeblaster.com.message.Campaign.GetCreativeShopResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (api.eyeblaster.com.message.Campaign.GetCreativeShopResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex=\r\n (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }", "title": "" }, { "docid": "b56e3a4332afb4fa8ba19bb79d7b6b10", "score": "0.43554577", "text": "pomelo.area.EquipHandler.EquipStrengthenData getS2CStrengthenData();", "title": "" }, { "docid": "b56e3a4332afb4fa8ba19bb79d7b6b10", "score": "0.43554577", "text": "pomelo.area.EquipHandler.EquipStrengthenData getS2CStrengthenData();", "title": "" }, { "docid": "5875d20dc09a06cf1147f34684490863", "score": "0.43548486", "text": "@DirtiesDatabase\n\t@Test\n\tpublic void testLoadPopulatesTargetProductDefaultSku() {\n\t\tint associationType = 1;\n\t\tProductAssociation pa = catalogTestPersister.persistProductAssociation(sourceProduct.getMasterCatalog(), sourceProduct, targetProduct,\n\t\t\t\tassociationType);\n\t\tSet<ProductAssociation> returnedAssociations = service.getAssociationsByType(sourceProduct.getCode(), associationType, sourceProduct\n\t\t\t\t.getMasterCatalog().getCode(), false);\n\t\tassertNotNull(\"Returned associations should not be null\", returnedAssociations);\n\t\tassertEquals(\"One product association should be returned\", 1, returnedAssociations.size());\n\t\tProductAssociation savedAssociation = returnedAssociations.iterator().next();\n\t\tassertTrue(\"The TargetProduct's default sku should not be null\", savedAssociation.getTargetProduct().getDefaultSku() != null);\n\t\tassertEquals(\"The returned association should have the same UidPk as the one we saved\", pa.getUidPk(), savedAssociation.getUidPk());\n\t}", "title": "" }, { "docid": "357084e4da1763f3ae92bcb0a097c830", "score": "0.43544847", "text": "public String getSS_SURL2() {\n return SS_SURL2;\n }", "title": "" }, { "docid": "e9d339eff0eb7bc5597395918b750634", "score": "0.43520603", "text": "Associations createAssociations();", "title": "" }, { "docid": "9566f1a8c87e6b621f92b303a279a6f1", "score": "0.4351823", "text": "java.lang.String getHopstype() throws java.rmi.RemoteException;", "title": "" }, { "docid": "d60f6aaed45994d34af7aa6de4e77592", "score": "0.43495956", "text": "public SeismicSurvey2d getSeismicSurvey2d() {\r\n //return _referenceSurvey2d;\r\n return _model.getReferenceSurvey2d();\r\n }", "title": "" }, { "docid": "ddbb0c455618aac4e0dca6874f54d322", "score": "0.4349541", "text": "default boolean isH2() {\n\t\treturn getType().equalsIgnoreCase(DbPlatforms.H2);\n\t}", "title": "" }, { "docid": "baab909a1684abb80d73f87648a98222", "score": "0.43475342", "text": "@Override\r\n\tpublic void add(Shop object) {\n\t\tmysqlhibernateTemplete.save(object);\r\n\t}", "title": "" }, { "docid": "3d4b6d96330621fbebbdf984f54f4c84", "score": "0.4346751", "text": "public pomelo.area.EquipHandler.SuitAttrSort.Builder addS2CDataBuilder() {\n return getS2CDataFieldBuilder().addBuilder(\n pomelo.area.EquipHandler.SuitAttrSort.getDefaultInstance());\n }", "title": "" }, { "docid": "eadaf71bde43dc3b7716e01d93d85c21", "score": "0.43462843", "text": "Relationship associationWith(Path path) throws RelationNotFoundException;", "title": "" }, { "docid": "234ab071104c611568229231945b3061", "score": "0.43443605", "text": "@Override\r\n public CollectionMapping newManyToManyMapping() {\r\n return new EISOneToManyMapping();\r\n }", "title": "" }, { "docid": "a9ff21c1f9fc23faadba69dccdddf5c9", "score": "0.43433362", "text": "private H2SSos(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "3fbfe9f61a9759d2ae6f11bb29f3596a", "score": "0.43433332", "text": "public interface ServiceHandlerInterface extends EObject {\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @model IDDataType=\"org.eclipse.uml2.types.Integer\" IDRequired=\"true\" IDOrdered=\"false\" newTypeDataType=\"org.eclipse.uml2.types.String\" newTypeRequired=\"true\" newTypeOrdered=\"false\"\r\n\t * @generated\r\n\t */\r\n\tvoid changeServiceType(int ID, String newType);\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @model IDDataType=\"org.eclipse.uml2.types.Integer\" IDRequired=\"true\" IDOrdered=\"false\"\r\n\t * @generated\r\n\t */\r\n\tvoid removeService(int ID);\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @model IDDataType=\"org.eclipse.uml2.types.Integer\" IDRequired=\"true\" IDOrdered=\"false\" newPriceDataType=\"org.eclipse.uml2.types.Integer\" newPriceRequired=\"true\" newPriceOrdered=\"false\"\r\n\t * @generated\r\n\t */\r\n\tvoid changeServicePrice(int ID, int newPrice);\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @model IDDataType=\"org.eclipse.uml2.types.Integer\" IDRequired=\"true\" IDOrdered=\"false\" typeDataType=\"org.eclipse.uml2.types.String\" typeRequired=\"true\" typeOrdered=\"false\" priceDataType=\"org.eclipse.uml2.types.Integer\" priceRequired=\"true\" priceOrdered=\"false\"\r\n\t * @generated\r\n\t */\r\n\tvoid addService(int ID, String type, int price);\r\n\r\n}", "title": "" }, { "docid": "ca2648155f193a6cb9e05d715123ff25", "score": "0.43398815", "text": "public interface RelationToIdentityContext extends RelationIdentityContext {\n /**\n * The to record key SID.\n */\n StorageId SID_TO_KEYS = new StorageId(\"TO_KEYS\");\n\n /**\n * Gets to record keys from context storage.\n * @return keys or null if not set\n */\n default RecordKeys toKeys() {\n return getFromStorage(SID_TO_KEYS);\n }\n /**\n * Sets the to keys.\n * @return keys the keys\n */\n default void toKeys(RecordKeys keys) {\n putToStorage(SID_TO_KEYS, keys);\n }\n /**\n * {@inheritDoc}\n */\n @Override\n default RelativeDirection getDirection() {\n return RelativeDirection.TO;\n }\n /**\n * {@inheritDoc}\n */\n @Override\n default String toBoxKey() {\n\n String boxKey = RelationIdentityContext.super.toBoxKey();\n if (Objects.isNull(boxKey)) {\n\n RecordKeys from = keys();\n RecordKeys to = toKeys();\n String externalIdFrom = from != null ? from.getOriginKey().getExternalId() : null;\n String externalIdTo = to != null ? to.getOriginKey().getExternalId() : getExternalId();\n String sourceSystem = from != null ? from.getOriginKey().getSourceSystem() : null;\n\n if (Objects.nonNull(externalIdFrom) && Objects.nonNull(externalIdTo) && Objects.nonNull(sourceSystem)) {\n return RelationModificationBoxKey.toRelationBoxKey(externalIdFrom, externalIdTo, sourceSystem);\n }\n }\n\n return boxKey;\n }\n}", "title": "" }, { "docid": "38ffb9180c240030431b911fb90348c7", "score": "0.4335699", "text": "public org.omg.uml.foundation.core.UmlAssociation getAssociation();", "title": "" }, { "docid": "72b3d8c8f0c8e4a087419b7c3ac3d171", "score": "0.43334964", "text": "T2 getSecondEntity();", "title": "" }, { "docid": "bcf01243a42004e0710083b2b1397f9a", "score": "0.43328196", "text": "List<Many2> findAllFetchRelation();", "title": "" }, { "docid": "c57b1cd2c370ee5da2ff9ae4ae506532", "score": "0.43304887", "text": "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof Shop)) {\n\t\t\treturn false;\n\t\t}\n\t\tShop other = (Shop) object;\n\t\tif ((this.idshop == null && other.idshop != null)\n\t\t\t\t|| (this.idshop != null && !this.idshop.equals(other.idshop))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "82af989cc17127fec6a02bf10f70f0f1", "score": "0.43295386", "text": "@Override\n public Map<String, Map<String, String>> ssoBuildLogonInterface() {\n Map<String, Map<String, String>> ssoInterface = new LinkedHashMap();\n for (String ssoId : sso.keySet()) {\n SSOInterface provider = sso.get(ssoId);\n Map<String, String> map = new HashMap();\n map.put(\"label\", provider.getLabel());\n map.put(\"interface\", provider.getInterface(\n ssoLoginUrl + \"?ssoId=\" + ssoId));\n ssoInterface.put(ssoId, map);\n }\n return ssoInterface;\n }", "title": "" }, { "docid": "82560c1b413bd58bdd4048e9581a6667", "score": "0.43281075", "text": "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"WebService1\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[5];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://tempuri.org/\", \"selectHuoKuanOutState\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://tempuri.org/\", \"selectOrderTraceInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://tempuri.org/\", \"selectHuoKuanArrivedInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://tempuri.org/\", \"huoKuanApp\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://tempuri.org/\", \"add_WEB_ORDERENTER\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n }", "title": "" }, { "docid": "b3571d89919ab8e86e48131ab4d582ae", "score": "0.43277776", "text": "@Override\r\n void methoid2() {\n }", "title": "" }, { "docid": "6a64c91ee1f6a20308f5117ae98843db", "score": "0.4327677", "text": "@Test\n\tpublic void testGetAssociations() {\n\t\tfinal Set<ProductAssociation> associations = new HashSet<ProductAssociation>();\n\n\t\tfinal ProductAssociation productAssociationUpSell = getProductAssociation();\n\t\tproductAssociationUpSell.setAssociationType(ProductAssociation.UP_SELL);\n\t\tproductAssociationUpSell.setTargetProduct(getProduct());\n\t\tassociations.add(productAssociationUpSell);\n\n\t\tfinal ProductAssociation productAssociationCrossSell = getProductAssociation();\n\t\tproductAssociationCrossSell.setAssociationType(ProductAssociation.CROSS_SELL);\n\t\tproductAssociationCrossSell.setTargetProduct(getProduct());\n\t\tassociations.add(productAssociationCrossSell);\n\n\t\tstoreProduct.setProductAssociations(associations);\n\t\tfinal Set<ProductAssociation> returnedAssociations = storeProduct.getAssociationsByType(ProductAssociation.UP_SELL);\n\t\tassertEquals(1, returnedAssociations.size());\n\n\t\tfinal ProductAssociation returnedAssociation = returnedAssociations.iterator().next();\n\t\tassertSame(productAssociationUpSell, returnedAssociation);\n\n\t\tassertEquals(0, storeProduct.getAssociationsByType(ProductAssociation.ACCESSORY).size());\n\t\tassertEquals(1, storeProduct.getAssociationsByType(ProductAssociation.CROSS_SELL).size());\n\n\t\tstoreProduct.setProductAssociations(Collections.<ProductAssociation>emptySet());\n\t\tassertEquals(0, storeProduct.getAssociationsByType(ProductAssociation.UP_SELL).size());\n\t}", "title": "" }, { "docid": "928af3237e659dfac9558629ba822582", "score": "0.43276387", "text": "public interface SimpleTaskHolon extends WrappedIndividual {\n\n /* ***************************************************\n * Property http://www.semanticweb.org/dmrgo/ontologies/2016/9/finalOntology#AnswerCTH\n */\n \n /**\n * Gets all property values for the AnswerCTH property.<p>\n * \n * @returns a collection of values for the AnswerCTH property.\n */\n Collection<? extends ComplexTaskHolon> getAnswerCTH();\n\n /**\n * Checks if the class has a AnswerCTH property value.<p>\n * \n * @return true if there is a AnswerCTH property value.\n */\n boolean hasAnswerCTH();\n\n /**\n * Adds a AnswerCTH property value.<p>\n * \n * @param newAnswerCTH the AnswerCTH property value to be added\n */\n void addAnswerCTH(ComplexTaskHolon newAnswerCTH);\n\n /**\n * Removes a AnswerCTH property value.<p>\n * \n * @param oldAnswerCTH the AnswerCTH property value to be removed.\n */\n void removeAnswerCTH(ComplexTaskHolon oldAnswerCTH);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/dmrgo/ontologies/2016/9/finalOntology#Asks\n */\n \n /**\n * Gets all property values for the Asks property.<p>\n * \n * @returns a collection of values for the Asks property.\n */\n Collection<? extends SupervisorHolon> getAsks();\n\n /**\n * Checks if the class has a Asks property value.<p>\n * \n * @return true if there is a Asks property value.\n */\n boolean hasAsks();\n\n /**\n * Adds a Asks property value.<p>\n * \n * @param newAsks the Asks property value to be added\n */\n void addAsks(SupervisorHolon newAsks);\n\n /**\n * Removes a Asks property value.<p>\n * \n * @param oldAsks the Asks property value to be removed.\n */\n void removeAsks(SupervisorHolon oldAsks);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/dmrgo/ontologies/2016/9/finalOntology#STHAnswerPH\n */\n \n /**\n * Gets all property values for the STHAnswerPH property.<p>\n * \n * @returns a collection of values for the STHAnswerPH property.\n */\n Collection<? extends ProductHolon> getSTHAnswerPH();\n\n /**\n * Checks if the class has a STHAnswerPH property value.<p>\n * \n * @return true if there is a STHAnswerPH property value.\n */\n boolean hasSTHAnswerPH();\n\n /**\n * Adds a STHAnswerPH property value.<p>\n * \n * @param newSTHAnswerPH the STHAnswerPH property value to be added\n */\n void addSTHAnswerPH(ProductHolon newSTHAnswerPH);\n\n /**\n * Removes a STHAnswerPH property value.<p>\n * \n * @param oldSTHAnswerPH the STHAnswerPH property value to be removed.\n */\n void removeSTHAnswerPH(ProductHolon oldSTHAnswerPH);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/dmrgo/ontologies/2016/9/finalOntology#HardwareNeeded\n */\n \n /**\n * Gets all property values for the HardwareNeeded property.<p>\n * \n * @returns a collection of values for the HardwareNeeded property.\n */\n Collection<? extends String> getHardwareNeeded();\n\n /**\n * Checks if the class has a HardwareNeeded property value.<p>\n * \n * @return true if there is a HardwareNeeded property value.\n */\n boolean hasHardwareNeeded();\n\n /**\n * Adds a HardwareNeeded property value.<p>\n * \n * @param newHardwareNeeded the HardwareNeeded property value to be added\n */\n void addHardwareNeeded(String newHardwareNeeded);\n\n /**\n * Removes a HardwareNeeded property value.<p>\n * \n * @param oldHardwareNeeded the HardwareNeeded property value to be removed.\n */\n void removeHardwareNeeded(String oldHardwareNeeded);\n\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/dmrgo/ontologies/2016/9/finalOntology#ID\n */\n \n /**\n * Gets all property values for the ID property.<p>\n * \n * @returns a collection of values for the ID property.\n */\n Collection<? extends String> getID();\n\n /**\n * Checks if the class has a ID property value.<p>\n * \n * @return true if there is a ID property value.\n */\n boolean hasID();\n\n /**\n * Adds a ID property value.<p>\n * \n * @param newID the ID property value to be added\n */\n void addID(String newID);\n\n /**\n * Removes a ID property value.<p>\n * \n * @param oldID the ID property value to be removed.\n */\n void removeID(String oldID);\n\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/dmrgo/ontologies/2016/9/finalOntology#Name\n */\n \n /**\n * Gets all property values for the Name property.<p>\n * \n * @returns a collection of values for the Name property.\n */\n Collection<? extends String> getName();\n\n /**\n * Checks if the class has a Name property value.<p>\n * \n * @return true if there is a Name property value.\n */\n boolean hasName();\n\n /**\n * Adds a Name property value.<p>\n * \n * @param newName the Name property value to be added\n */\n void addName(String newName);\n\n /**\n * Removes a Name property value.<p>\n * \n * @param oldName the Name property value to be removed.\n */\n void removeName(String oldName);\n\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/dmrgo/ontologies/2016/9/finalOntology#Supervisors\n */\n \n /**\n * Gets all property values for the Supervisors property.<p>\n * \n * @returns a collection of values for the Supervisors property.\n */\n Collection<? extends String> getSupervisors();\n\n /**\n * Checks if the class has a Supervisors property value.<p>\n * \n * @return true if there is a Supervisors property value.\n */\n boolean hasSupervisors();\n\n /**\n * Adds a Supervisors property value.<p>\n * \n * @param newSupervisors the Supervisors property value to be added\n */\n void addSupervisors(String newSupervisors);\n\n /**\n * Removes a Supervisors property value.<p>\n * \n * @param oldSupervisors the Supervisors property value to be removed.\n */\n void removeSupervisors(String oldSupervisors);\n\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}", "title": "" }, { "docid": "e8d115c3d54619508e2ccb8bde9b1039", "score": "0.43252438", "text": "public void sethPhoto2(String hPhoto2) {\n this.hPhoto2 = hPhoto2 == null ? null : hPhoto2.trim();\n }", "title": "" }, { "docid": "d1371c1703ff8edf115eae62e3e93fa6", "score": "0.43249863", "text": "OneToManyRelationProperty createOneToManyRelationProperty();", "title": "" }, { "docid": "d0dab8ef9854f4104a67b414ff136563", "score": "0.4323339", "text": "protected void setHsp( ClientToHsp hsp ) throws java.rmi.RemoteException\n {\n HspAgent hspAgent = new HspAgent( hsp );\n this.hsp = hspAgent.getClient2Hsp();\n }", "title": "" }, { "docid": "2e8a6a1b104ca3b1806e1d177db5c11f", "score": "0.43137679", "text": "public void setSpc2(String spc2) {\r\n this.spc2 = spc2;\r\n }", "title": "" } ]
d4ca47dc0a7ec1aab8d034a5bb376ae6
Creates a new instance for the given bill.
[ { "docid": "77b823773aa42c749a0c96562334dba7", "score": "0.0", "text": "public BillTextFormatter(Bill bill, boolean isValidated) {\n if (!isValidated) {\n ValidationResult result = Validator.validate(bill);\n this.bill = result.getCleanedBill();\n } else {\n this.bill = bill;\n }\n }", "title": "" } ]
[ { "docid": "bfd139376a8e1496fc9fc98f4848bc37", "score": "0.70228326", "text": "public Bill() {\n super();\n }", "title": "" }, { "docid": "9fd1deededa9fb5edf9352c23311ef71", "score": "0.6873205", "text": "protected Bill() {}", "title": "" }, { "docid": "0cfe61f36a5f58e91d6e844a59b2b5a8", "score": "0.6706376", "text": "@Test\n\tpublic void testCreateBill() {\n\n\t\tboolean isPaid = false;\n\t\tint billId = 9999;\n\t\tBill bill = new Bill();\n\n\t\ttry {\n\t\t\tbill = service.createBill(isPaid, billId);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\t// Check that no error occurred\n\t\t\tfail();\n\t\t}\n\n\t\tassertEquals(billId, bill.getBillId());\n\n\t}", "title": "" }, { "docid": "a779673a6243547d4eb93d65a3d735ce", "score": "0.6469883", "text": "public Bill(String name, String surname, String type, Date dueDate, BigDecimal payment, BigDecimal balance) {\n this.cname = name;\n this.surname = surname;\n this.type = type;\n this.dueDate = dueDate;\n this.amountPaid = payment;\n this.balance = balance;\n }", "title": "" }, { "docid": "72c734900ca00fa2f346e3ad9debba18", "score": "0.6422815", "text": "public Bill(String name, String surname, BigDecimal payment) {\n this.cname = name;\n this.surname = surname;\n this.amountPaid = payment;\n }", "title": "" }, { "docid": "6a4983ae4b19bfeb8ca9e70ff2ce73c3", "score": "0.6387532", "text": "private Bill initBill(int table_num)\n {\n if(this.isLog) {\n Bill bill1 = new Bill(3, 20.0);\n return bill1;\n }\n else {\n return null;\n }\n }", "title": "" }, { "docid": "2e4852c3c3c6f40b5fb5f028558e9e4a", "score": "0.62679213", "text": "public TCustomerBill() {\n this(DSL.name(\"t_customer_bill\"), null);\n }", "title": "" }, { "docid": "488d7af438e701b3cd8bf5f0245287f2", "score": "0.62345964", "text": "public Bill(int cid, String name, String surname, String type, Date dueDate, BigDecimal payment, BigDecimal balance) {\n this.cid = cid;\n this.cname = name;\n this.surname = surname;\n this.type = type;\n this.dueDate = dueDate;\n this.amountPaid = payment;\n this.balance = balance;\n }", "title": "" }, { "docid": "bf2365b886ac0d16a395c9667bce2066", "score": "0.6226036", "text": "public Bill(Account toAccount, int amount) {\n this.toAccount = toAccount;\n this.amount = amount;\n }", "title": "" }, { "docid": "438a4f1d396e9e183e2fee616112e9a4", "score": "0.6210793", "text": "public Billing() {\n }", "title": "" }, { "docid": "6a97c78ddcaed9a1ed308ebaa733693f", "score": "0.6179593", "text": "public Billing() {\n\t\t\n\t}", "title": "" }, { "docid": "ec9941c56c903f7c732cbb226ba145e9", "score": "0.61648434", "text": "public BillRun() {\n }", "title": "" }, { "docid": "c0223b644a7f00d3011f026235868e14", "score": "0.6153472", "text": "public Bill(int cid, String name, String surname, BigDecimal payment) {\n this.cid = cid;\n this.cname = name;\n this.surname = surname;\n this.amountPaid = payment;\n }", "title": "" }, { "docid": "2a3fc59fbe9f616e1e06f8833bd361f3", "score": "0.60929585", "text": "public Bill(Long id, Long orderId, Long contractId, Long customerId, String unit, String number, String remark, Double ammount, Boolean balance, Integer type, String account, Date endDate, Date actualEndDate) {\n this.id = id;\n this.orderId = orderId;\n this.contractId = contractId;\n this.customerId = customerId;\n this.unit = unit;\n this.number = number;\n this.remark = remark;\n this.ammount = ammount;\n this.balance = balance;\n this.type = type;\n this.account = account;\n this.endDate = endDate;\n this.actualEndDate = actualEndDate;\n }", "title": "" }, { "docid": "56130688c83d62cc5a87cc9ee9013829", "score": "0.60681814", "text": "public void setBillNo(String billNo) {\n this.billNo = billNo;\n }", "title": "" }, { "docid": "75cf1abc1cc42311c78b15ee4b821195", "score": "0.59441406", "text": "public TCustomerBill(Name alias) {\n this(alias, T_CUSTOMER_BILL);\n }", "title": "" }, { "docid": "0af0bfc989b87e7795e62dc2b21810cb", "score": "0.5866123", "text": "public void setBillId(String billId) {\r\n this.billId = billId;\r\n }", "title": "" }, { "docid": "592b4b9937df68e82413f61594c8bc1e", "score": "0.5824505", "text": "public Bill(int bid, String type, BigDecimal amountPaid, BigDecimal amountOwes, Date dueDate, int isPaid, int cid) {\n this.bid = bid;\n this.type = type;\n this.amountPaid = amountPaid;\n this.amountOwes = amountOwes;\n this.dueDate = dueDate;\n this.isPaid = isPaid;\n this.cid = cid;\n }", "title": "" }, { "docid": "522afa60267a1b95d7743e94a1c6426c", "score": "0.58125883", "text": "@PostMapping(path = \"/pay\", consumes = MediaType.APPLICATION_JSON_VALUE)\n\tpublic void payBill(@RequestBody Bill bill) {\n\t\tthis.patientService.payBill(bill);\n\t}", "title": "" }, { "docid": "098209e58181737e132bfb459fa7e6d7", "score": "0.571221", "text": "public Customer(int customerID, String fName, String lName, int status, int noOfKWH, int billMonth,\r\n\t\t\tdouble billAmount) {\r\n\t\t\r\n\t\tthis.customerID = customerID;\r\n\t\tthis.fName = fName;\r\n\t\tthis.lName = lName;\r\n\t\tthis.status = status;\r\n\t\tthis.NoOfKWH = noOfKWH;\r\n\t\tthis.billMonth = billMonth;\r\n\t\tthis.billAmount = billAmount;\r\n\t\tnumberOfCustomers++;\r\n\t}", "title": "" }, { "docid": "49c5791d08f4cf6f5d15834791dd9ac4", "score": "0.57029295", "text": "public TCustomerBill(String alias) {\n this(DSL.name(alias), T_CUSTOMER_BILL);\n }", "title": "" }, { "docid": "7855ec89397440ae463eaad9c85f26ff", "score": "0.5652189", "text": "public PayBillAction(DAOFactory factory, long bID){\n\t\tthis.billingDAO = factory.getBillingDAO();\n\t\tthis.patientRetriever = factory.getPatientDAO();\n\t\ttry {\n\t\t\tthis.myBill = billingDAO.getBillId(bID);\n\t\t} catch (DBException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "cbda2e12261810e327498217640002e1", "score": "0.5651452", "text": "public Bank(Bank.BankPK anBik, String anBill_corr, String anBank_name, String anCity, String anDelivery) {\n bik = anBik;\n initBill_corr(anBill_corr);\n initBank_name(anBank_name);\n initCity(anCity);\n initDelivery(anDelivery);\n}", "title": "" }, { "docid": "8f8b6683d776b46b85bb1adb6283b4f2", "score": "0.56115663", "text": "Purchase create(Purchase purchase);", "title": "" }, { "docid": "c34ccb44417a67f454a50c2295b2bf16", "score": "0.5566081", "text": "public TicketBuilder() {\r\n ticket = new Ticket();\r\n }", "title": "" }, { "docid": "a7399c897e7a625908486f4825e1da2f", "score": "0.5546098", "text": "Payment createPayment();", "title": "" }, { "docid": "e56e0ed24240e7cc685337d2d8a7902d", "score": "0.55256915", "text": "public static Bill forService(BigDecimal cashAmount) {\n return new Bill.Builder()\n .setCashAmount(cashAmount)\n .setDescription(BillDescriptionEnum.SERVICE)\n .setCreationDateTime(LocalDateTime.now())\n .setPaid(false)\n .setConfirmed(false)\n .build();\n }", "title": "" }, { "docid": "2f543da51f33ed8ea4598aeb37a92270", "score": "0.54642576", "text": "WithholdingTax createWithholdingTax();", "title": "" }, { "docid": "a4a9f93b4c4e5d5edf4f7656ba547a09", "score": "0.546184", "text": "public TransactionResult bill() throws ErrorCodeException {\n final var request = forge(\"bill\", null);\n request.endObject();\n final var transaction = document.__transact(request.toString());\n logger.ingest(transaction);\n return transaction.transactionResult;\n }", "title": "" }, { "docid": "431fe47369218f4b1293b8fc8a788f36", "score": "0.54564637", "text": "public void createBillOfMaterial(BillOfMaterial billOfMaterial) throws Exception {\n em.getTransaction().begin();\n if(!em.contains(billOfMaterial)) {\n em.persist(billOfMaterial);\n em.flush();\n }\n\n em.getTransaction().commit();\n }", "title": "" }, { "docid": "6b64229453c9357c682c09b24d91f66a", "score": "0.5436143", "text": "public Account(double initBal, String owner, long number){\nbalance = initBal;\nname = owner;\nacctNum = number;\n}", "title": "" }, { "docid": "169a9f98573806c15a45d5037e76878a", "score": "0.54245573", "text": "public MockInvoice(UUID accountId, DateTime invoiceDate, DateTime targetDate, Currency currency) {\n this(UUID.randomUUID(), accountId, null, invoiceDate, targetDate, currency, false);\n }", "title": "" }, { "docid": "fa5a7dbacbb67ba72e2c0d11e89bc11d", "score": "0.5423488", "text": "public static BankAccount createEntity() {\n var bankAccount = new BankAccount();\n bankAccount.name = DEFAULT_NAME;\n bankAccount.balance = DEFAULT_BALANCE;\n return bankAccount;\n }", "title": "" }, { "docid": "2d296f45e28b917d2a630260664898e8", "score": "0.5421308", "text": "@Test\r\n\tpublic void constructorTest() {\r\n\t\tBill bill = new Bill();\r\n\t\tassertThat(0.0, is(bill.getCurrentBill()));\r\n\t}", "title": "" }, { "docid": "af422a1707bf6f86e76aedc2ab442bc9", "score": "0.54107326", "text": "private void createAccounting() {\n\t\tm_rbtAccounting = Accounting.getInstance(m_sdrWorkingDir, m_sdrSize,\n\t\t\t\tm_sdrInterval, m_sdrRotation, m_sdrBillingOn);\n\t\tif (m_rbtAccounting == null)\n\t\t\tlogger.info(\"RBT::Accounting class can not be created\");\n\t\tm_rbtHsbAccounting = Accounting.getInstance(m_sdrWorkingDir\n\t\t\t\t+ File.separator + \"hsb\", m_sdrSize, m_sdrInterval,\n\t\t\t\tm_sdrRotation, m_sdrBillingOn);\n\t}", "title": "" }, { "docid": "52d14037c85be42407c4f78a415f0d75", "score": "0.54060805", "text": "public Bill updateBill(Bill bill) {\n final StringBuilder receipt = new StringBuilder();\n receipt.append(\"Table \").append(getSelectedTable().getTableNumber()).append(\"\\n\");\n float totalBill = 0;\n for (OrderItem orderItem : getFilteredOrderItemList()) {\n MenuItem menuItem = getRestOrRant().getMenu().getItemFromCode(orderItem.getMenuItemCode()).get();\n receipt.append(menuItem.getCode().itemCode)\n .append(\" \")\n .append(menuItem.getName().itemName)\n .append(\"\\n $\")\n .append(menuItem.getPrice().itemPrice)\n .append(\" x \")\n .append(orderItem.getQuantityOrdered())\n .append(\"\\n\")\n .append(\"Total Bill: $ \")\n .append(bill.getTotalBill())\n .append(\"\\n\");\n totalBill += Float.parseFloat(menuItem.getPrice().toString()) * orderItem.getQuantityOrdered();\n\n }\n\n return new Bill(bill.getDay(), bill.getMonth(), bill.getYear(), bill.getTableNumber(),\n totalBill, bill.getReceipt());\n }", "title": "" }, { "docid": "bb416eab2223205826818545612680d7", "score": "0.539027", "text": "public Appointment(long appointmentId, long carUnitId, String job, double bill) {\n\t\tthis.appointmentId = appointmentId;\n\t\tthis.carUnitId = carUnitId;\n\t\tthis.job = job;\n\t\tthis.bill = bill;\n\t\n\t\t\n\t}", "title": "" }, { "docid": "25ffac3e0afcb5f608906c0a9b126f3e", "score": "0.5367089", "text": "public BillingAccount createBillingAccount(UUID accountId) {\n BillingAccount account = new BillingAccount(accountId);\n accounts.put(accountId.toString(), account);\n return account;\n }", "title": "" }, { "docid": "da5727675ab4c6c55ef04afc56ddd75d", "score": "0.5365881", "text": "public void makeBill()\r\n {\r\n double interest, payment;\r\n\r\n interest = addInterest();\r\n System.out.println( \"Your interest for this month is: $\" + interest );\r\n System.out.println( \"Your balance now is: $\" + balance );\r\n\r\n payment = .05 * balance;\r\n System.out.println( \"Your payment (due on the 20th) is: $\" + payment );\r\n }", "title": "" }, { "docid": "f169a6627115f7881bf8fb85d04371a2", "score": "0.5351089", "text": "public static BillSetting createEntity(EntityManager em) {\n BillSetting billSetting = new BillSetting()\n .typeBill(DEFAULT_TYPE_BILL)\n .pricePerKW(DEFAULT_PRICE_PER_KW)\n .discount(DEFAULT_DISCOUNT)\n .tax(DEFAULT_TAX)\n .processing(DEFAULT_PROCESSING)\n .enabled(DEFAULT_ENABLED)\n .dateCreated(DEFAULT_DATE_CREATED)\n .dateModified(DEFAULT_DATE_MODIFIED);\n return billSetting;\n }", "title": "" }, { "docid": "7174ddd2a1ea0311c1c05842f9f98698", "score": "0.5344842", "text": "public PriceCalculator (Invoice invoice)\n {\n this.invoice = invoice;\n }", "title": "" }, { "docid": "2a36b1b8c7a250f757adf0c835da743f", "score": "0.53390247", "text": "public static Receipt forSuccessfulCharge(Receipt amount) {\nreturn new Receipt();}", "title": "" }, { "docid": "7aed84cf3b2f72904beba70b06b662a9", "score": "0.53137994", "text": "public static Payment createEntity() {\n Payment payment = new Payment()\n .date(DEFAULT_DATE)\n .avance(DEFAULT_AVANCE)\n .month(DEFAULT_MONTH)\n .year(DEFAULT_YEAR);\n return payment;\n }", "title": "" }, { "docid": "8410e56001f583a94b7b0ffea4cb98bf", "score": "0.53103715", "text": "@Override // android.os.Parcelable.Creator\n public final /* synthetic */ bq createFromParcel(@NonNull Parcel parcel) {\n return new bq(parcel);\n }", "title": "" }, { "docid": "ca10dca6b6b31055e61b249996ef8a77", "score": "0.529804", "text": "public Bill(User user, BigDecimal net, CategoryType category) {\n super();\n \n if(net == null) {\n throw new IllegalArgumentException(\"net is required\");\n }\n \n if(user == null) {\n throw new IllegalArgumentException(\"user is require\");\n }\n \n this.user = user;\n this.net = net;\n this.category = category;\n }", "title": "" }, { "docid": "d704c60a74092b862c40f22d7a81e6a7", "score": "0.5286659", "text": "public PhoneBill(String customer) {\n this.customer = customer;\n this.phoneCalls = new ArrayList<PhoneCall>();\n }", "title": "" }, { "docid": "d42e18436e2a4d3bdb349789eaad178b", "score": "0.5283924", "text": "public synchronized BallotItem createNewBallotItem()\r\n {\r\n BallotItem ballotItem = new BallotItem();\r\n ballotItem.setNumber(getNextBallotItemNumber());\r\n ballotItem.setVersion(1);\r\n ballotItem.save();\r\n\r\n return ballotItem;\r\n }", "title": "" }, { "docid": "fa2eedc4b262bcdb3a7c44461e0ef81c", "score": "0.5278363", "text": "public BillingBean getBill(){\n\t\treturn this.myBill;\n\t}", "title": "" }, { "docid": "2ec1068527c68403420ff4d71c5424c9", "score": "0.52740514", "text": "public BillPO makeImportBill(Message message) {\n System.out.println(\"Import Bill is made!\");\n\t\treturn null;\n\t}", "title": "" }, { "docid": "04a0c437c9bcad582fac4588dd824206", "score": "0.5261242", "text": "public ComuneEntity createNewInstance() {\n\t\tComuneEntity entity = new ComuneEntity();\n\t\t// Init Data fields\n\t\tentity.setNome( mockValues.nextString(80) ) ; // java.lang.String \n\t\tentity.setCodicecatastale( mockValues.nextString(4) ) ; // java.lang.String \n\t\tentity.setAbitanti( mockValues.nextInteger() ) ; // java.lang.Integer \n\t\tentity.setCapoluogo( mockValues.nextBoolean() ) ; // java.lang.Boolean \n\t\t// Init Link fields (if any)\n\t\t// setProvincia( TODO ) ; // Provincia \n\t\treturn entity ;\n\t}", "title": "" }, { "docid": "05a1be0ce067c21a6f3de648ab40d1f6", "score": "0.5257635", "text": "public com.startarget.portlet.model.BudgetItem create(long budgetItemId);", "title": "" }, { "docid": "b045fef3d1f6c26542e5aace000e949d", "score": "0.52460694", "text": "public void setCustomerBill(double givenBill) {\n\t}", "title": "" }, { "docid": "95e307bbee611702b53f1f1cea562351", "score": "0.52420294", "text": "@Override\n public Bill save(final Bill bill) throws SQLException {\n if (psSave == null) {\n psSave = prepareStatement(SAVE_BILL_SQL,\n Statement.RETURN_GENERATED_KEYS);\n }\n psSave.setDate(1, bill.getDate());\n psSave.setLong(2, bill.getOrderId());\n psSave.setLong(3, bill.getUserId());\n psSave.setLong(4, bill.getRoomId());\n psSave.setDate(5, bill.getArrivalDate());\n psSave.setDate(6, bill.getEventsDate());\n psSave.setLong(7, bill.getTotal());\n psSave.setString(8, String.valueOf(bill.getStatus()));\n psSave.executeUpdate();\n\n try (ResultSet rs = psSave.getGeneratedKeys()) {\n if (rs.next()) {\n bill.setId(rs.getLong(1));\n }\n } catch (SQLException e) {\n throw new SQLException(CAN_NOT_EXECUTE_SQL + psSave\n + e.getMessage());\n }\n return bill;\n }", "title": "" }, { "docid": "c6981f419219ef40fcc0c7144a9c1bf3", "score": "0.523021", "text": "public BillPO makePaymentBill(Message message) {\n\t\tSystem.out.println(\"Payment Bill is made!\");\n\t\treturn null;\n\t}", "title": "" }, { "docid": "98ba93cc3d9cd85b3e1a37794ef90159", "score": "0.5216331", "text": "public Bank() {\n\t\taccountList.put(12345, new CheckingsAccount(new AccountInfo(12345, \n\t\t\t\t1111, \"Checkings\", \"John Smith\", \"johnsmith@gmail.com\", 1250.0)));\n\t\taccountList.put(24680, new SavingsAccount(new AccountInfo(24680, \n\t\t\t\t1337, \"Savings\", \"Mark Williams\", \"mwilliams6@hotmail.com\", 750.0)));\n\t\taccountList.put(12321, new CheckingsAccount(new AccountInfo(12321, \n\t\t\t\t1420, \"Checkings\", \"Jessica Johnson\", \"jjohn1234@gmail.com\", 1750.0)));\n\t\taccountList.put(30001, new SavingsAccount(new AccountInfo(30001, \n\t\t\t\t2468, \"Savings\", \"Emma Brown\", \"brownily0612@hotmail.com\", 100.0)));\n\t}", "title": "" }, { "docid": "43f8673e954d31d8ec5fa2f517d1189f", "score": "0.52044886", "text": "public final static BillPane getInstance() {\n \tif (myBillPane == null) {\n \t\tmyBillPane = new BillPane();\n \t}\n \treturn myBillPane;\n }", "title": "" }, { "docid": "ceb1c120a198de7c872f52d3ebdff50e", "score": "0.52020335", "text": "public AccountRecord(int acct, String first, String last, double bal) {\n\t\tsetAccount(acct);\n\t\tsetFirstName(first);\n\t\tsetLastName(last);\n\t\tsetBalance(bal);\n\t}", "title": "" }, { "docid": "8f75add965c2582ce062adce24cca3f8", "score": "0.51968074", "text": "public Invoice createInvoice(Booking b)\r\n\t{\r\n\t\tInvoice i = new Invoice(b.getId(), totalPriceCalculation(b), paymentDate(), false);\r\n\t\tiDb.addInvoiceToDB(i);\r\n\t\treturn i;\r\n\t}", "title": "" }, { "docid": "0827f9d6b65fc71769416ba2089734b9", "score": "0.5194617", "text": "public void addBill() {\n // Gets the name of the bill.\n EditText billEditField = (EditText) findViewById(R.id.billName);\n final String billName = billEditField.getText().toString();\n // Gets the description of the bill.\n EditText descriptionEditField = (EditText) findViewById(R.id.descriptionOfBill);\n final String billDescription = descriptionEditField.getText().toString();\n // Gets the cost of the bill.\n EditText costEditField = (EditText) findViewById(R.id.costOfBill);\n final String costDescription = costEditField.getText().toString();\n BigDecimal parsed = new BigDecimal(costDescription).setScale(2,BigDecimal.ROUND_FLOOR);\n final double cost = parsed.doubleValue();\n\n // Submits information to database.\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n\n long num = realm.where(Bill.class).count();\n Bill bill = realm.createObject(Bill.class);\n bill.setName(billName);\n bill.setDescription(billDescription);\n bill.setAmount(cost);\n bill.setId(Long.toString(num));\n bill.setSendUser(user);\n\n group.addBill(bill);\n\n }\n });\n\n Intent newActivity = new Intent(this, ViewGroup.class);\n newActivity.putExtra(getString(R.string.group_id_field), group.getId());\n startActivity(newActivity);\n }", "title": "" }, { "docid": "016c9c80f66c0150bd77cab078fc4e86", "score": "0.5183308", "text": "public String getBillId() {\r\n return billId;\r\n }", "title": "" }, { "docid": "b8697eca698a8612f750f98cf3cc3fbe", "score": "0.51617837", "text": "public BankAccount() {\n\n }", "title": "" }, { "docid": "4fbfd692d635d250451c0971f0d0d6ae", "score": "0.51593876", "text": "public BillSplitter() {\n\n }", "title": "" }, { "docid": "6842e4237d2db6c24d1b06d30a269c4d", "score": "0.5157458", "text": "Borrower createBorrower(String name, String address, String phone) throws TransactionException;", "title": "" }, { "docid": "5e1458c09de37697f26d3ec228c1067b", "score": "0.51555", "text": "public void newBid(String amount, Account buyer, Auction auction){ auction.newBid(amount, buyer); }", "title": "" }, { "docid": "2bf3688d008f37d38c621769e47343a5", "score": "0.5136121", "text": "public static Bill forDamage(BigDecimal cashAmount) {\n return new Bill.Builder()\n .setCashAmount(cashAmount)\n .setDescription(BillDescriptionEnum.DAMAGE)\n .setCreationDateTime(LocalDateTime.now())\n .setPaid(false)\n .setConfirmed(false)\n .build();\n }", "title": "" }, { "docid": "9995c6a22455633a0c990c7f5141d235", "score": "0.5121661", "text": "public TransactionViewModelFactory(String bookID) {this.bookID = bookID;}", "title": "" }, { "docid": "5fb150b5424b398c3ea47ec96091d041", "score": "0.51163375", "text": "@Override\n public AccountPojo create(AccountPojo obj) {\n\n Connection connexion = null;\n PreparedStatement pstmt_add = null;\n\n try\n {\n /* we get one database connection*/\n connexion = ConnectionBdSgBank.getInstance();\n\n pstmt_add = connexion.prepareStatement(addAccount);\n\n pstmt_add.setObject(1, obj.getFk_user_login());\n pstmt_add.setObject(2, obj.getBalance());\n pstmt_add.setObject(3, obj.getAuthorizedOverdraft());\n\n pstmt_add.executeUpdate();\n }\n catch ( SQLException e )\n {\n throw new DAOException( e );\n }\n catch (ClassNotFoundException e)\n {\n e.printStackTrace();\n }\n\n return obj;\n }", "title": "" }, { "docid": "9d50c05a749487eabb2a30f735dfdce8", "score": "0.5114668", "text": "private void initBill() {\n BillHtml billHtml = new BillHtml(invoiceArrayList);\n String html = billHtml.bill();\n billWebView.loadDataWithBaseURL(null, html, \"text/html\", \"utf-8\", null);\n }", "title": "" }, { "docid": "758db8a43bb09a960928c04f77f89141", "score": "0.51093215", "text": "Settlement createSettlement();", "title": "" }, { "docid": "28ca79605ae71f4d9f8c2d607c4d0555", "score": "0.51049554", "text": "public Building createBuilding(String _address) throws de.fu.bakery.orm.java.DatabaseException {\n\t\tBuilding entity = newBuilding(_address);\n\t\tentity.create();\n\t\treturn entity;\n\t}", "title": "" }, { "docid": "c018239fcacb46bde5e235b3e5bec05a", "score": "0.510177", "text": "public ComuneEntity createInstance() {\n\t\t// Primary Key values\n\n\t\treturn createInstance( mockValues.nextInteger() );\n\t}", "title": "" }, { "docid": "6dbcf609d9d212c331211afc19f63729", "score": "0.5079207", "text": "Tax createTax();", "title": "" }, { "docid": "427cd4730d4ad4323fc09b9b817a7b01", "score": "0.5076711", "text": "public NewAccountBean(){}", "title": "" }, { "docid": "f39a638b1f60638056d1a329c1eb0349", "score": "0.5073938", "text": "public String getBillName() { return billName; }", "title": "" }, { "docid": "d0329c21b8357cfc242ac3a13057d3b6", "score": "0.50705147", "text": "public OrderBill makeOrderBill(Message message) {\n\t\tBillPO bill=billsFactory.makeOrderBill(message);\n\t\tSystem.out.println(\"Order Bill is made!\");\n\t\treturn (OrderBill) bill;\n\t}", "title": "" }, { "docid": "cc462b5f66c81095812769cd2b1edb01", "score": "0.5065653", "text": "RentalContract createRentalContract();", "title": "" }, { "docid": "0f839a8378e29ddedadf50ebad0f7ed9", "score": "0.50656134", "text": "protected abstract B createInstance(final M metaObject, final ObjectName name);", "title": "" }, { "docid": "9a2929fc1fc65bb64f823feecc9db3bd", "score": "0.5058071", "text": "@POST\n public void createBillboardOccupation(InputStream in)\n {\n BillboardOccupation billboardOccupation = JAXB.unmarshal(in, BillboardOccupation.class);\n billboardOccupationBean.create(billboardOccupation);\n }", "title": "" }, { "docid": "97a5230502cdbcb1050c9b27fdd23772", "score": "0.5056896", "text": "public BillPO makeChargeBill(Message message) {\n\t\tSystem.out.println(\"Charge Bill is made!\");\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7c9448d2e0ca24d1e57d664fd93366a1", "score": "0.5055069", "text": "public Ticket() { }", "title": "" }, { "docid": "22bf0f4a1872344b2440cd15b7aef4e4", "score": "0.5053529", "text": "public AccountHolder(int pin, String name, String dob, String address) {\n\t\tthis.pin = pin;\n\t\tthis.name = name;\n\t\tthis.dob = dob;\n\t\tthis.address = address;\n\t}", "title": "" }, { "docid": "4bc72af2fa41a1cf30ae8b1f72af2831", "score": "0.50502485", "text": "public static com.services.model.BusReservation create(long brId) {\n\t\treturn getPersistence().create(brId);\n\t}", "title": "" }, { "docid": "2aabc0f873724b77f02c8685b5961a6a", "score": "0.5048196", "text": "public BiliVote createFromParcel(Parcel parcel) {\n return new BiliVote(parcel);\n }", "title": "" }, { "docid": "47df8cf7d752cbe2c32384b041676482", "score": "0.50414944", "text": "public BankCustomer() {\n }", "title": "" }, { "docid": "7ebdb43fd77c62b5f535e299349747a1", "score": "0.50382787", "text": "public PhoneBill(String customer) {\n\t\tthis.Customer = customer;\n\t\tphoneCalls = new ArrayList<PhoneCall>();\n\t}", "title": "" }, { "docid": "8850e8c3c35af04cc5974e451bf48997", "score": "0.5029853", "text": "public ReservationEntity createInstance() {\n\t\t// Primary Key values\n\n\t\treturn createInstance( mockValues.nextInteger() );\n\t}", "title": "" }, { "docid": "a2c7b02d05290e6d140d085643983625", "score": "0.50199914", "text": "public void setBillController(BillController billController) {\n\t\tthis.billController = billController;\n\t}", "title": "" }, { "docid": "ecc6c60807cacf6a0b5e1e908cdead9a", "score": "0.5018988", "text": "WorkpoolInstance create(WorkpoolModel workpool);", "title": "" }, { "docid": "8f508da6b18469638ac3d66bc434b678", "score": "0.50188833", "text": "private Flight createFlight(String flightNumber, String src, String depart, String dest, String arrive){\n Flight flight = new Flight(Integer.parseInt(flightNumber), src, depart, dest, arrive);\n return flight;\n }", "title": "" }, { "docid": "2d36db082d940b3fc7a8f3f30d60648e", "score": "0.50074625", "text": "public AssetAccount(int accountNumber, int customerNumber, BigDecimal amount, LocalDateTime createdOn) {\n super(accountNumber, customerNumber, amount, createdOn);\n }", "title": "" }, { "docid": "6d8c6ac7610d1d011fb0771a6e3f67c6", "score": "0.5006675", "text": "@Test\r\n\tpublic void constructorTest4() {\r\n\t\tBill bill = new Bill(4,6);\r\n\t\tassertThat(4.0, is(bill.getCurrentBill()));\r\n\t}", "title": "" }, { "docid": "d87144c57917969ee03c6752d1b2d26b", "score": "0.50001115", "text": "public Booking(Date inDate, Date outDate, int roomId, Long price, String userName,\n\t\t\tString email, String phone, boolean paid, String msg, Integer idx) {\n\t\tthis.inDate = inDate;\n\t\tthis.outDate = outDate;\n\t\tthis.roomId = roomId;\n\t\tthis.price = price;\n\t\tthis.member = false;\n\t\tthis.userName = userName;\n\t\tthis.email = email;\n\t\tthis.phone = phone;\n\t\tthis.paid = paid;\n\t\tthis.msg = msg;\n\t\tthis.idx = idx;\n\t}", "title": "" }, { "docid": "909734bd852bfffd9d8ae96228e3edf1", "score": "0.50000596", "text": "public void generateBillComponent(Bill b) {\n UserStockContainer usc = userStockController.saveUserStockContainer(getUserStockContainer(), getSessionController().getLoggedUser());\n setPatientEncounter(b.getPatientEncounter());\n billItems = new ArrayList<>();\n for (PharmaceuticalBillItem i : getPharmaceuticalBillItemFacade().getPharmaceuticalBillItems(b)) {\n System.out.println(\"i.getQtyInUnit() = \" + i.getItemBatch().getItem().getName());\n System.out.println(\"i.getQtyInUnit() = \" + i.getQtyInUnit());\n double billedIssue = getPharmacyCalculation().getBilledInwardPharmacyRequest(i.getBillItem(), BillType.PharmacyBhtPre);\n System.out.println(\"billedIssue = \" + billedIssue);\n double cancelledIssue = getPharmacyCalculation().getCancelledInwardPharmacyRequest(i.getBillItem(), BillType.PharmacyBhtPre);\n System.out.println(\"cancelledIssue = \" + cancelledIssue);\n double refundedIssue = getPharmacyCalculation().getRefundedInwardPharmacyRequest(i.getBillItem(), BillType.PharmacyBhtPre);\n System.out.println(\"refundedIssue = \" + refundedIssue);\n\n double issuableQty = Math.abs(i.getQtyInUnit()) - (Math.abs(billedIssue) - (Math.abs(cancelledIssue) + Math.abs(refundedIssue)));\n\n List<StockQty> stockQtys = pharmacyBean.getStockByQty(i.getBillItem().getItem(), issuableQty, getSessionController().getDepartment());\n\n for (StockQty sq : stockQtys) {\n if (sq.getQty() == 0) {\n continue;\n }\n\n //Checking User Stock Entity\n if (!userStockController.isStockAvailable(sq.getStock(), sq.getQty(), getSessionController().getLoggedUser())) {\n UtilityController.addErrorMessage(\"Sorry Already Other User Try to Billing This Stock You Cant Add\");\n continue;\n }\n billItem = new BillItem();\n billItem.setPharmaceuticalBillItem(new PharmaceuticalBillItem());\n billItem.getPharmaceuticalBillItem().setQtyInUnit((double) (sq.getQty()));\n// billItem.getPharmaceuticalBillItem().setQtyInUnit((double) (0 - sq.getQty()));\n billItem.getPharmaceuticalBillItem().setStock(sq.getStock());\n billItem.getPharmaceuticalBillItem().setItemBatch(sq.getStock().getItemBatch());\n\n billItem.setItem(sq.getStock().getItemBatch().getItem());\n billItem.setQty(sq.getQty());\n billItem.setDescreption(i.getBillItem().getDescreption());\n\n billItem.getPharmaceuticalBillItem().setDoe(sq.getStock().getItemBatch().getDateOfExpire());\n billItem.getPharmaceuticalBillItem().setFreeQty(0.0f);\n billItem.getPharmaceuticalBillItem().setItemBatch(sq.getStock().getItemBatch());\n billItem.getPharmaceuticalBillItem().setQtyInUnit((double) (sq.getQty()));\n// billItem.getPharmaceuticalBillItem().setQtyInUnit((double) (0 - sq.getQty()));\n\n billItem.setGrossValue(sq.getStock().getItemBatch().getRetailsaleRate() * sq.getQty());\n billItem.setNetValue(sq.getQty() * sq.getStock().getItemBatch().getRetailsaleRate());\n\n billItem.setInwardChargeType(InwardChargeType.Medicine);\n\n billItem.setItem(sq.getStock().getItemBatch().getItem());\n billItem.setReferanceBillItem(i.getBillItem());\n\n billItem.setSearialNo(getBillItems().size() + 1);\n getBillItems().add(billItem);\n\n }\n\n }\n\n getPreBill().setBillItems(getBillItems());\n\n// boolean flag = false;\n// for (BillItem bi : getBillItems()) {\n// if (Objects.equals(bi.getPharmaceuticalBillItem().getStock().getId(), stock.getId())) {\n// flag = true;\n// break;\n// }\n// stock = bi.getPharmaceuticalBillItem().getStock();\n// }\n//\n// if (flag) {\n// billItems = null;\n// UtilityController.addErrorMessage(\"There is Some Item in request that are added Multiple Time in Transfer request!!! please check request you can't issue errornus transfer request\");\n// }\n }", "title": "" }, { "docid": "b767fafb9578756b60060b3f53f9858f", "score": "0.49984697", "text": "public <T extends InkObjectState> T newInstance();", "title": "" }, { "docid": "4daab0b8c84088966664699dd4365b69", "score": "0.4994501", "text": "@Override\n\t\tpublic OneRecordBean createFromParcel(Parcel source) {\n\t\t\tOneRecordBean one = new OneRecordBean();\n\t\t\tone.id = source.readInt();\n\t\t\tone.get_ticket_time = source.readString();\n\t\t\tone.bus_time = source.readString();\n\t\t\tone.route_name = source.readString();\n\t\t\tone.line = source.readString();\n\t\t\tone.username = source.readString();\n\n\t\t\treturn one;\n\t\t}", "title": "" }, { "docid": "7fe25a950b515e26503db80671a6b16b", "score": "0.49879867", "text": "public void addRecord(userBill userbill){\n ContentValues values=new ContentValues();\n //put all the values of the userBill into the ContentValues\n values.put(\"username\",userbill.getUsername());\n values.put(\"billType\",userbill.getType());\n values.put(\"name\",userbill.getName());\n values.put(\"money\",userbill.getMoney());\n values.put(\"billDetails\",userbill.getBillDetails());\n values.put(\"billDate\",getDateString(true));\n SQLiteDatabase db=dbHelper.getReadableDatabase();\n //store the userBill record into the database\n db.insert(\"userBill\",null,values);\n db.close();\n }", "title": "" }, { "docid": "3fed442a90cae5c8acdacf6a78a72272", "score": "0.4985085", "text": "@Test\r\n\tpublic void constructorTest2() {\r\n\t\tBill bill = new Bill();\r\n\t\tassertThat(0.0, is(bill.getProjectedBill()));\r\n\t}", "title": "" }, { "docid": "9dbd14fe9615d423eb7c824358518dac", "score": "0.49645963", "text": "private Sale createSale(){\n Sale sale = new Sale(new Date(), codesHandler.popSerialNumber(), logged, toSell, getClientIPAddress());\n resources.printTicket();\n return sale;\n }", "title": "" }, { "docid": "a019db7da484bb6bc12ef49582277641", "score": "0.49609384", "text": "public ChequingAccount() {}", "title": "" }, { "docid": "2f2d70a2426b188bfdf361b686232c41", "score": "0.49583066", "text": "BusInstance createBusInstance();", "title": "" }, { "docid": "dc1dce7eecabf3d96c2b5273becf9361", "score": "0.4955207", "text": "public BargainRecord(Integer id, String bargainName, String goodsId, Timestamp startTime, Timestamp endTime, Integer expectationNumber, BigDecimal expectationPrice, Double bargainMin, Double bargainMax, Integer stock, Integer saleNum, String mrkingVoucherId, Byte status, Byte delFlag, Timestamp createTime, Timestamp updateTime, Timestamp delTime, String rewardCouponId, String shareConfig, Byte bargainType, BigDecimal floorPrice, Byte bargainMoneyType, BigDecimal bargainFixedMoney, BigDecimal bargainMinMoney, BigDecimal bargainMaxMoney, Byte freeFreight, Byte needBindMobile, Integer initialSales, Integer first, String activityCopywriting, Byte launchTag, String launchTagId, Byte attendTag, String attendTagId) {\n super(Bargain.BARGAIN);\n\n set(0, id);\n set(1, bargainName);\n set(2, goodsId);\n set(3, startTime);\n set(4, endTime);\n set(5, expectationNumber);\n set(6, expectationPrice);\n set(7, bargainMin);\n set(8, bargainMax);\n set(9, stock);\n set(10, saleNum);\n set(11, mrkingVoucherId);\n set(12, status);\n set(13, delFlag);\n set(14, createTime);\n set(15, updateTime);\n set(16, delTime);\n set(17, rewardCouponId);\n set(18, shareConfig);\n set(19, bargainType);\n set(20, floorPrice);\n set(21, bargainMoneyType);\n set(22, bargainFixedMoney);\n set(23, bargainMinMoney);\n set(24, bargainMaxMoney);\n set(25, freeFreight);\n set(26, needBindMobile);\n set(27, initialSales);\n set(28, first);\n set(29, activityCopywriting);\n set(30, launchTag);\n set(31, launchTagId);\n set(32, attendTag);\n set(33, attendTagId);\n }", "title": "" } ]
22091d02ed655c748ef8e31a17fbdbe4
Updates inventory information for a [Product][google.cloud.retail.v2beta.Product] while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the [Product][google.cloud.retail.v2beta.Product] queried by [GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. When inventory is updated with [CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] and [UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct], the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update time for the specified inventory fields will be overwritten to the time of the [CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] or [UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] request. If no inventory fields are set in [CreateProductRequest.product][google.cloud.retail.v2beta.CreateProductRequest.product], then any preexisting inventory information for this product will be used. If no inventory fields are set in [UpdateProductRequest.set_mask][], then any existing inventory information will be preserved. Preexisting inventory information can only be updated with [SetInventory][google.cloud.retail.v2beta.ProductService.SetInventory], [AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces], and [RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. This feature is only available for users who have Retail Search enabled. Please submit a form [here]( to contact cloud sales if you are interested in using Retail Search.
[ { "docid": "bda25613ee84647277f2558376d6e633", "score": "0.563468", "text": "public void setInventory(com.google.cloud.retail.v2beta.SetInventoryRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getSetInventoryMethod(), getCallOptions()), request, responseObserver);\n }", "title": "" } ]
[ { "docid": "f468ee315ed6b02fc82e7e7cac903ba8", "score": "0.63524026", "text": "@RequestMapping(method = RequestMethod.PUT, value = \"/{id}\",\n produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<?> updateInventoryByProductId(@PathVariable(\"id\") Integer id,\n @Valid @RequestBody InventoryUpdateRequest inventoryUpdateRequest){\n Inventory inventory = inventoryService.getInventoryItemByProductId(id);\n inventory.setAmount(inventoryUpdateRequest.getAmount());\n inventoryService.updateInventoryItem(inventory);\n\n return ResponseEntity.noContent().build();\n }", "title": "" }, { "docid": "b09f124e41b7af6e0a7c56155933a0b6", "score": "0.63312745", "text": "public com.google.longrunning.Operation setInventory(com.google.cloud.retail.v2beta.SetInventoryRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getSetInventoryMethod(), getCallOptions(), request);\n }", "title": "" }, { "docid": "ae77b4d9d7306179d0c904ac6cc8294f", "score": "0.62934524", "text": "public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> setInventory(\n com.google.cloud.retail.v2beta.SetInventoryRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getSetInventoryMethod(), getCallOptions()), request);\n }", "title": "" }, { "docid": "4708d7bd76ab276f0afbfea7e5770231", "score": "0.575035", "text": "void update(Product product) throws IllegalArgumentException;", "title": "" }, { "docid": "1a5bed7089334fe65ecb37498df6f156", "score": "0.5733322", "text": "@Override\n\tpublic boolean updateProductSaleTimeStamp(RetailerInventoryDTO queryArguments) throws RetailerException, ConnectException {\n\t\tboolean saleTimestampUpdated = false;\n\t\t/*\n\t\t * required arguments in `queryArguments`\n\t\t * productUIN, productSaleTime\n\t\t * \n\t\t * un-required\n\t\t * productDispatchTime, productReceiveTime, productCategory, retailerUserId\n\t\t */\n\t\tRetailerInventoryEntity newItem = new RetailerInventoryEntity();\n\t\tnewItem.setProductUniqueId(queryArguments.getProductUIN());\n\t\tnewItem.setProductSaleTimestamp(queryArguments.getProductShelfTimeOut());\n\t\t\n\t\tTransaction transaction = null;\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n transaction = session.beginTransaction();\n List<RetailerInventoryEntity> itemList = session.createQuery(\"from RetailerInventoryEntity\", RetailerInventoryEntity.class).list();\n boolean productNotFound = true;\n for (RetailerInventoryEntity item : itemList) {\n \tif (item.getProductUniqueId().equals(newItem.getProductUniqueId())) {\n \t\tnewItem.setRetailerId(item.getRetailerId());\n \t\tnewItem.setProductCategory(item.getProductCategory());\n \t\tnewItem.setProductDispatchTimestamp(item.getProductDispatchTimestamp());\n \t\tnewItem.setProductReceiveTimestamp(item.getProductReceiveTimestamp());\n \t\tproductNotFound = false;\n \t\tbreak;\n \t}\n }\n if (productNotFound) {\n \tGoLog.logger.error(\"Product is not a part of the Inventory\");\n \tthrow new RetailerException (\"Product is not a part of the Inventory\");\n } else {\n \tsession.merge(newItem);\n }\n transaction.commit();\n } catch (IllegalStateException error) {\n \tGoLog.logger.error(error.getMessage());\n \tthrow new RetailerException (\"Method has been invoked at an illegal or inappropriate time\");\n } catch (RollbackException error) {\n \tGoLog.logger.error(error.getMessage());\n \tthrow new RetailerException (\"Could not Commit changes to Retailer Inventory\");\n } catch (PersistenceException error) {\n \tGoLog.logger.error(error.getMessage());\n \tthrow new RetailerException (\"The item is already present in the inventory\");\n } finally {\n \tsession.close();\n }\n saleTimestampUpdated = true;\t\t\n\t\treturn saleTimestampUpdated;\n\t}", "title": "" }, { "docid": "78e79e4164a79f3ed9d1cc043bd48f22", "score": "0.5674146", "text": "public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}", "title": "" }, { "docid": "f0152c860cb8e037a4d782333356baff", "score": "0.56467146", "text": "protected abstract Product modifyProduct(ProductApi api,\n Product modifyReq) throws RestApiException;", "title": "" }, { "docid": "3cdb42e378621e24b87fead2aa2673f3", "score": "0.562823", "text": "@Override\n\tpublic boolean updateProductReceiveTimeStamp(RetailerInventoryDTO queryArguments) throws RetailerException, ConnectException {\n\t\tboolean receiveTimestampUpdated = false;\n\t\t/*\n\t\t * required arguments in `queryArguments`\n\t\t * productUIN, productRecieveTime\n\t\t * \n\t\t * un-required\n\t\t * productDispatchTime, productShelfTimeOut, productCategory, retailerUserId\n\t\t */\n\t\tRetailerInventoryEntity newItem = new RetailerInventoryEntity();\n\t\tnewItem.setProductUniqueId(queryArguments.getProductUIN());\n\t\tnewItem.setProductReceiveTimestamp(queryArguments.getProductRecieveTime());\n\t\t\n\t\tTransaction transaction = null;\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n transaction = session.beginTransaction();\n List<RetailerInventoryEntity> itemList = session.createQuery(\"from RetailerInventoryEntity\", RetailerInventoryEntity.class).list();\n boolean productNotFound = true;\n for (RetailerInventoryEntity item : itemList) {\n \tif (item.getProductUniqueId().equals(newItem.getProductUniqueId())) {\n \t\tnewItem.setRetailerId(item.getRetailerId());\n \t\tnewItem.setProductCategory(item.getProductCategory());\n \t\tnewItem.setProductDispatchTimestamp(item.getProductDispatchTimestamp());\n \t\tproductNotFound = false;\n \t\tbreak;\n \t}\n }\n if (productNotFound) {\n \tGoLog.logger.error(\"Product is not a part of the Inventory\");\n \tthrow new RetailerException (\"Product is not a part of the Inventory\");\n } else {\n \tsession.merge(newItem);\n }\n transaction.commit();\n } catch (IllegalStateException error) {\n \tGoLog.logger.error(error.getMessage());\n \tthrow new RetailerException (\"Method has been invoked at an illegal or inappropriate time\");\n } catch (RollbackException error) {\n \tGoLog.logger.error(error.getMessage());\n \tthrow new RetailerException (\"Could not Commit changes to Retailer Inventory\");\n } catch (PersistenceException error) {\n \tGoLog.logger.error(error.getMessage());\n \tthrow new RetailerException (\"The item is already present in the inventory\");\n } finally {\n \tsession.close();\n }\n receiveTimestampUpdated = true;\n\t\treturn receiveTimestampUpdated;\n\t}", "title": "" }, { "docid": "c83dc41de15b1ed9e0d11d9b4665c951", "score": "0.56212395", "text": "void updateInventory(String busNumber, String tripDate, int inventory) throws NotFoundException;", "title": "" }, { "docid": "346377d562faefeba137f904856b58dd", "score": "0.5589517", "text": "public void setInventory(com.google.cloud.retail.v2beta.SetInventoryRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetInventoryMethod(), responseObserver);\n }", "title": "" }, { "docid": "22d99445d5262d0c0dc5cd1b5fa387c1", "score": "0.5583383", "text": "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithSku,\n UpdateStages.WithOsType,\n UpdateStages.WithDiskSizeGB,\n UpdateStages.WithEncryptionSettingsCollection,\n UpdateStages.WithEncryption {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Snapshot apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Snapshot apply(Context context);\n }", "title": "" }, { "docid": "896ce018a561d8d265b590181e1c1ffd", "score": "0.55666363", "text": "public ServiceResponse<ProductInner> putNonRetry400() throws CloudException, IOException, InterruptedException {\n final ProductInner product = null;\n Response<ResponseBody> result = service.putNonRetry400(product, this.client.acceptLanguage(), this.client.userAgent()).execute();\n return client.getAzureClient().getPutOrPatchResult(result, new TypeToken<ProductInner>() { }.getType());\n }", "title": "" }, { "docid": "933ab3363c1b734961347d5b9ae5c714", "score": "0.54877496", "text": "@Override\n\tpublic void update(Inventory inventory) throws Exception {\n\t\tInventory oldInventory = inventoryDao.get(inventory.getUuid());\n\t\toldInventory.setStoreuuid(inventory.getStoreuuid());\n\t\toldInventory.setGoodsuuid(inventory.getGoodsuuid());\n\t\toldInventory.setNum(inventory.getNum());\n\t\toldInventory.setType(inventory.getType());\n\t\toldInventory.setRemark(inventory.getRemark());\n\t}", "title": "" }, { "docid": "f36583602e53861d72a8d307acf7e88f", "score": "0.54846966", "text": "public void updateProductByRest(long id, HttpServletRequest request) {\n // set URL\n String url = String.format(\"%s://%s:%d/products/\" + id, request.getScheme(), request.getServerName(), request.getServerPort());\n // execute rest api update product request using RestTemplate.put method\n HttpEntity<Product> entity = getHttpEntity(request);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.put(url, entity, id);\n }", "title": "" }, { "docid": "3f4dcb4a8d22b4281aa4e685c1c13ea7", "score": "0.547271", "text": "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithCancelRequested,\n UpdateStages.WithState,\n UpdateStages.WithReturnAddress,\n UpdateStages.WithReturnShipping,\n UpdateStages.WithDeliveryPackage,\n UpdateStages.WithLogLevel,\n UpdateStages.WithBackupDriveManifest,\n UpdateStages.WithDriveList {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n JobResponse apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n JobResponse apply(Context context);\n }", "title": "" }, { "docid": "4194a48f8e138755adf8ee50b247268d", "score": "0.54558253", "text": "public de.epages.ws.product.model.TUpdate_Return[] update(de.epages.ws.product.model.TUpdate_Input[] products) throws java.rmi.RemoteException;", "title": "" }, { "docid": "62bb49565c38d6b5acd4a655e70a6f1f", "score": "0.54381806", "text": "public Inventory inventoryUpdate (TheGroceryStore g, LinkedList<Inventory> updater) throws ItemNotFoundException;", "title": "" }, { "docid": "429161e43dc375ab069b315e75bb8c29", "score": "0.5433608", "text": "@Test\r\n public void testUpdateSugarInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"0\", \"5\", \"0\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 15\\nSugar: 20\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "title": "" }, { "docid": "2621b08f0f8035de7990b203f25cba9c", "score": "0.54317594", "text": "@Test\n\tpublic void testProcessInventoryUpdateOrderPlaced() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tallowing(beanFactory).getBean(INVENTORY_JOURNAL);\n\t\t\t\twill(returnValue(inventoryJournal));\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\n\t\t// WE SHALL CHECK THE RESULT FROM processInventoryUpdate()\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(inventoryDto.getQuantityOnHand(), QUANTITY_ONHAND);\n\t\tassertEquals(inventoryDto.getAvailableQuantityInStock(), QUANTITY_ONHAND - QUANTITY_10);\n\t\tassertEquals(inventoryDto.getAllocatedQuantity(), QUANTITY_10);\n\t}", "title": "" }, { "docid": "a2bee73bb5e4a9278738a63cf7a6c9e5", "score": "0.54254615", "text": "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithKind,\n UpdateStages.WithSku,\n UpdateStages.WithIdentity,\n UpdateStages.WithProperties {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Account apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Account apply(Context context);\n }", "title": "" }, { "docid": "e52214420ec8d2b2968d78947a27a434", "score": "0.5363531", "text": "@Test\n\tpublic void testProcessInventoryUpdateOrderAdjustmentChangeQty() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tfinal long warehouseUid = WAREHOUSE_UID;\n\t\tinventory.setWarehouseUid(warehouseUid);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tfinal String skuCode = SKU_CODE;\n\t\tproductSku.setSkuCode(skuCode);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproduct.setGuid(PRODUCT);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\t\torder.setStoreCode(store.getCode());\n\t\tfinal PhysicalOrderShipmentImpl shipment = getMockPhysicalOrderShipment();\n\t\tfinal OrderSku orderSku = new OrderSkuImpl();\n\t\torderSku.setProductSku(productSku);\n\t\tshipment.addShipmentOrderSku(orderSku);\n\t\torder.addShipment(shipment);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(ALLOCATION_RESULT); will(returnValue(new AllocationResultImpl()));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(skuCode, warehouseUid); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t}\n\t\t});\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(inventoryDao2).getInventory(skuCode, warehouseUid); will(returnValue(inventory2));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(\n\t\t\t\torderSku, AllocationEventType.ORDER_ADJUSTMENT_CHANGEQTY, EVENT_ORIGINATOR_TESTER, QUANTITY_10, null);\n\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10 - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10 + QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\t}", "title": "" }, { "docid": "e65e388adb810dbb33c7d7cc9419066d", "score": "0.535721", "text": "@PutMapping(\"/update\")\r\n\tpublic ProductDetails updateProduct(@RequestBody @Valid UpdateProduct request) {\r\n\t\r\n\t\tProduct product = productService.searchProduct(request.getProduct_Id());\r\n\t\tproduct.setProduct_Name(request.getProduct_Name());\r\n\t\tproduct.setProduct_Price(request.getProduct_Price());\r\n\t\tproduct.setProduct_Quantity(request.getProduct_Quantity());\r\n\t\tproduct.setProduct_Availability(request.isProduct_Availability());\r\n\t\treturn productUtil.toProductDetails(productService.updateProduct(product));\r\n\t}", "title": "" }, { "docid": "2936cf093bb681370b6c07025c556419", "score": "0.53050536", "text": "public void update(Product product) {\n\n\t}", "title": "" }, { "docid": "968372d2a9379f12ae556fcb242b099d", "score": "0.5299973", "text": "@Override\r\n public void updatedSaleInventory(ItemAndQuantity lastItem) {\r\n }", "title": "" }, { "docid": "32a4c08c1669f3cc1a5351e13236e384", "score": "0.52504027", "text": "public static void updateProduct(Product productUpdate){\r\n for(int i: productInvMap.keySet()){\r\n Product p = productInvMap.get(i);\r\n if(p.getProductID() == productUpdate.getProductID()){\r\n productInvMap.put(i,productUpdate);\r\n }\r\n }\r\n \r\n }", "title": "" }, { "docid": "0f09e540b76fe0bcf8cdc590414452dd", "score": "0.52491564", "text": "public void updateCardInventory() {\n try {\n if (cardInventoryDataBean != null) {\n String response = cardInventoryTransformerBean.updateCardInventory(cardInventoryDataBean);\n if (SystemConstantUtil.SUCCESS.equals(response)) {\n messageDataBean.setMessage(\"CardInventory updated successfully.\");\n messageDataBean.setIsSuccess(Boolean.TRUE);\n retrieveCardInventoryList();\n cardInventoryDataBean.setNull();\n } else {\n System.out.println(\"CardInventory not created\");\n messageDataBean.setMessage(response);\n messageDataBean.setIsSuccess(Boolean.FALSE);\n }\n }\n } catch (Exception e) {\n System.out.println(e);\n messageDataBean.setMessage(\"Error =>\" + e.toString());\n messageDataBean.setIsSuccess(Boolean.FALSE);\n }\n }", "title": "" }, { "docid": "fdc1aa16722f17857c67a0b34e686b10", "score": "0.52366", "text": "public boolean update(Product product);", "title": "" }, { "docid": "88b5cc6740e860c46bcbe2c4d1eb2323", "score": "0.52338684", "text": "@Test\n\tpublic void testUpdate() throws ApiException {\n\n\t\tOrderItemPojo new_order_item = getOrderItemPojo(products.get(0), 7);\n\t\torder_service.update(orderitems.get(0).getId(), new_order_item);\n\t\tassertEquals(orderitems.get(0).getProduct(), new_order_item.getProduct());\n\t\tassertEquals(orderitems.get(0).getQuantity(), new_order_item.getQuantity());\n\t\tassertEquals(orderitems.get(0).getSellingPrice(), new_order_item.getSellingPrice(), 0.001);\n\t}", "title": "" }, { "docid": "ad7a169662fa37a477b548ab100288bf", "score": "0.52172345", "text": "@Override\r\n\tpublic Product updateProduct(Product s) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "af89e3befe3840b12c32be55c4e5bc63", "score": "0.52140254", "text": "@Override\r\n\tpublic int updateProduct(Product product) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "31bf16dcb33f14e7898461dd79475c1e", "score": "0.52134097", "text": "private void updateApiProductArtifact(APIProduct apiProduct, boolean updateMetadata, boolean updatePermissions)\n throws APIManagementException {\n\n //Validate Transports and Security\n validateAndSetTransports(apiProduct);\n validateAndSetAPISecurity(apiProduct);\n\n PublisherAPIProduct publisherAPIProduct = APIProductMapper.INSTANCE.toPublisherApiProduct(apiProduct);\n PublisherAPIProduct addedAPIProduct;\n try {\n publisherAPIProduct.setApiProductName(apiProduct.getId().getName());\n publisherAPIProduct.setProviderName(apiProduct.getId().getProviderName());\n publisherAPIProduct.setVersion(apiProduct.getId().getVersion());\n addedAPIProduct = apiPersistenceInstance.updateAPIProduct(\n new Organization(CarbonContext.getThreadLocalCarbonContext().getTenantDomain()),\n publisherAPIProduct);\n } catch (APIPersistenceException e) {\n throw new APIManagementException(\"Error while creating API product \");\n }\n }", "title": "" }, { "docid": "8d67c6ada91f0f5a0fcba7b0e83e2533", "score": "0.52088255", "text": "public void updateProduct(Product catalog) throws BackendException;", "title": "" }, { "docid": "4175673e779e8835638d0d1600577b35", "score": "0.5194802", "text": "@PutMapping(\"replace\")\n @PreAuthorize(\"hasRole('admin')\")\n @ApiOperation(value = \"Replace existing product by name (Admin only)\")\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"Product replaced.\"),\n @ApiResponse(code = 400, message = \"Request body malformed.\"),\n @ApiResponse(code = 401, message = \"The user does not have valid authentication credentials for the target resource.\"),\n @ApiResponse(code = 403, message = \"User does not have permission (Authorized but not enough privileges)\"),\n @ApiResponse(code = 404, message = \"The requested resource could not be found.\"),\n @ApiResponse(code = 500, message = \"Server Internal Error at executing request.\")\n })\n @ApiImplicitParam(name = \"body\", dataTypeClass = ProductReplaceRequestBody.class)\n public ResponseEntity<String> replaceProduct(@RequestBody LinkedHashMap body) {\n SecurityContextHolder.getContext().setAuthentication(null);\n\n if(body.get(\"product\") == null) {\n Exception missingProductName = new Exception(\"Product name is missing.\");\n throw new ResponseStatusException(HttpStatus.BAD_REQUEST, missingProductName.getMessage(), missingProductName);\n }\n String name = body.get(\"product\").toString();\n // Query database using Data Access Object classes.\n DbResult dbResult = new Select().findProduct(name.toUpperCase());\n if(dbResult.isEmpty()) return new ResponseEntity(\"Product not found.\", HttpStatus.NOT_FOUND);\n Product product = dbResult.getResult(Product.class);\n // Each database successful response will be wrapped in a ResponseEntity object.\n // In case of exception, the response will be wrapped in a ResponseStatusException object.\n try{\n dbResult = new Update().replaceProduct(product, body);\n if(dbResult.isEmpty()) return new ResponseEntity(\"Product could not be updated.\", HttpStatus.CONFLICT);\n Set<ArrayList<HashMap>> results = dbResult.getResult(HashSet.class);\n return new ResponseEntity(results.toString(), HttpStatus.OK);\n }\n catch (Exception exc) {\n throw new ResponseStatusException(HttpStatus.BAD_REQUEST, exc.getMessage(), exc);\n }\n }", "title": "" }, { "docid": "2a19d12d8858c64af8a5446d00b9cd8b", "score": "0.51910996", "text": "@Allow(Permission.UpdateCatalog)\n public Product updateProduct(UpdateProductInput input, DataFetchingEnvironment dfe) {\n RequestContext ctx = RequestContext.fromDataFetchingEnvironment(dfe);\n ProductEntity productEntity = this.productService.update(ctx, input);\n return BeanMapper.map(productEntity, Product.class);\n }", "title": "" }, { "docid": "87aba063968b5080b6643080234206e0", "score": "0.51806426", "text": "public ServiceResponse<ProductInner> putNonRetry201Creating400() throws CloudException, IOException, InterruptedException {\n final ProductInner product = null;\n Response<ResponseBody> result = service.putNonRetry201Creating400(product, this.client.acceptLanguage(), this.client.userAgent()).execute();\n return client.getAzureClient().getPutOrPatchResult(result, new TypeToken<ProductInner>() { }.getType());\n }", "title": "" }, { "docid": "3df57cb8df0af381eb19433371bdea87", "score": "0.51615876", "text": "UpdateProvisionedProductResult updateProvisionedProduct(UpdateProvisionedProductRequest updateProvisionedProductRequest);", "title": "" }, { "docid": "06ea35d23db5fcd32f01085da053fc22", "score": "0.515807", "text": "@Override\n\tpublic Product update(Product entity) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2c00be9e1cc59dc9a462c6dac98e6cf7", "score": "0.5156045", "text": "private void updateProductHandler(RoutingContext routingContext) {\n\n HttpServerResponse httpServerResponse = routingContext.response();\n\n try {\n Long productId = Long.parseLong(routingContext.request().getParam(\"productId\"));\n Instant start = Instant.now();\n\n logger.info(\"Received the update request for the productid \" + productId + \" at \" + start);\n\n JsonObject productJson = routingContext.getBodyAsJson();\n Product inputProduct = new Product(productJson);\n inputProduct.setId(productId);\n\n logger.info(\"The input product \" + inputProduct.toString());\n\n // Create future for DB call\n Future<Product> productDBPromise =\n Future.future(promise -> callDBService(promise, inputProduct, DBAction.UPDATE));\n\n productDBPromise.setHandler(\n dbResponse -> {\n if (dbResponse.succeeded()) {\n\n Product updatedProduct = dbResponse.result();\n logger.info(\"The updated product is \" + updatedProduct.toString());\n Gson gson = new GsonBuilder().create();\n String json = gson.toJson(updatedProduct);\n\n Long duration = Duration.between(start, Instant.now()).toMillis();\n logger.info(\"Total time taken to process the request \" + duration + \" milli-seconds\");\n\n httpServerResponse.setStatusCode(SUCCESS_CODE);\n httpServerResponse.end(new JsonObject(json).encodePrettily());\n } else {\n logger.error(dbResponse.cause());\n httpServerResponse.setStatusCode(INTERNAL_SERVER_ERROR);\n httpServerResponse.end(\n \"Error due to \"\n + dbResponse.cause().getMessage()\n + \". Please try again after sometime.\");\n }\n });\n\n } catch (Exception e) {\n\n logger.error(e);\n httpServerResponse.setStatusCode(INTERNAL_SERVER_ERROR);\n httpServerResponse.end(\n \"Error due to \" + e.getMessage() + \". Please try again after sometime.\");\n }\n }", "title": "" }, { "docid": "efd1244b1a69c3ef8a53316b328d964e", "score": "0.512129", "text": "@Test\r\n\tpublic void updateProductDetails() {\r\n\r\n\t\tRestAssured.baseURI = \"http://localhost:9000/products\";\r\n\t\tRequestSpecification request = RestAssured.given();\r\n\t\tJSONObject requestParams = new JSONObject();\r\n\t\trequestParams.put(\"name\", \"Banana\");\r\n\t\trequest.header(\"Content-Type\", \"application/json\");\r\n\t\trequest.body(requestParams.toString());\r\n\t\tResponse response = request.put(\"/5\");\r\n\t\tSystem.out.println(\"Update Responce Body ----->\" + response.asString());\r\n\t\tint statusCode = response.getStatusCode();\r\n\t\tAssert.assertEquals(statusCode, 200);\r\n\r\n\t}", "title": "" }, { "docid": "20cd1b512f0e696179c6196e7a9dcc16", "score": "0.51176107", "text": "@Override\r\n\tpublic Long update(Producto entity) throws Exception {\n\t\treturn productRepository.update(entity);\r\n\t}", "title": "" }, { "docid": "f337c7c00f13f45e6e7a0a65d050c2fe", "score": "0.51158065", "text": "public UpdateProduct() {\n\t\tsuper();\t\t\n\t}", "title": "" }, { "docid": "110adee67032f2c55d0e960cdc6860ed", "score": "0.5111861", "text": "Product updateProductInStore(Product product);", "title": "" }, { "docid": "e4861eb967e01c255022d3a9910c7a1b", "score": "0.50997925", "text": "public interface IInventory {\n\n\t/**\n\t * Reads the inventory from a comma separated <code>InputStream</code>, each\n\t * line in the <code>InputStream</code> represents a different\n\t * <code>Product</code>. An example input stream looks like this (the header\n\t * will be part of the input stream as well):\n\t * \n\t * <pre>\n\tupc,name,wholesalePrice,retailPrice,quantity\n\tA123,Apple,0.50,1.00,100\n\tB234,Peach,0.35,0.75,200\n\tC123,Milk,2.15,4.50,40\n\t * </pre>\n\t * \n\t * @param inputStream the stream from where to read the inventory\n\t */\n\tpublic void replenish(InputStream inputStream);\n\n\t/**\n\t * @return returns an unmodifiable <code>List</code> of <code>Product</code>\n\t * representing products inside the inventory.\n\t */\n\tpublic List<Product> list();\n\n\t/**\n\t * @param upc the UPC\n\t * @return an Optional contain the found product else an empty optional\n\t */\n\tOptional<Product> find(String upc);\n\n\t/**\n\t * Adjusts the {@link Product#getQuantity() quantity} of the {@link Product}\n\t * specified by the given UPC in this inventory by the given delta amount. If\n\t * the Product was found in this inventory, then the return value is an\n\t * {@link Optional} containing the Product with the adjusted quantity, else an\n\t * empty Optional is returned\n\t * \n\t * @param upc the UPC for the product\n\t * @param delta the delta amount to use to adjust quantity\n\t * @return an optional product with the adjustedQuantity or empty Optional if no\n\t * product found in inventory for given UPC\n\t */\n\tOptional<Product> adjustQuantity(final String upc, final Integer delta);\n}", "title": "" }, { "docid": "bf2b126c378020096bc0ae41b92c5b20", "score": "0.50994086", "text": "void updateOfProductById(long id);", "title": "" }, { "docid": "529d4541aeba5d9bdee4c9e4b3f8422b", "score": "0.5095608", "text": "public ServiceResponse<ProductInner> putNonRetry400(ProductInner product) throws CloudException, IOException, InterruptedException {\n Validator.validate(product);\n Response<ResponseBody> result = service.putNonRetry400(product, this.client.acceptLanguage(), this.client.userAgent()).execute();\n return client.getAzureClient().getPutOrPatchResult(result, new TypeToken<ProductInner>() { }.getType());\n }", "title": "" }, { "docid": "8684c04a0661db8abe28ce04bed2438d", "score": "0.5092946", "text": "@Override\r\n\tpublic void updatePurchase(Purchase Purchase) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "2c038d341e0999f1c3345ccbe0592657", "score": "0.50877774", "text": "@Test\r\n public void testUpdateCoffeeInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"5\", \"0\", \"0\", \"0\");\r\n String updatedInventory = \"Coffee: 20\\nMilk: 15\\nSugar: 15\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "title": "" }, { "docid": "68ceea8b0daba9113edb66e1c3b0ea55", "score": "0.50768286", "text": "@Test\n\tpublic void testProcessInventoryUpdateOrderShipmentReleaseForAlwaysAvailable() {\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.ALWAYS_AVAILABLE);\n\t\tproductSku.setProduct(product);\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tallowing(productSkuService).findBySkuCode(SKU_CODE); will(returnValue(productSku));\n\t\t\t}\n\t\t});\n\n\t\tInventoryDto inventoryDto = new InventoryDtoImpl();\n\t\tinventoryDto.setSkuCode(productSku.getSkuCode());\n\t\tinventoryDto.setWarehouseUid(WAREHOUSE_UID);\n\n\t\t// No DAO operations expected.\n\t\tproductInventoryManagementService.processInventoryUpdate(inventoryDto, buildInventoryAudit(InventoryEventType.STOCK_ALLOCATE, 1));\n\t\t// No DAO operations expected.\n\t\tproductInventoryManagementService.processInventoryUpdate(inventoryDto, buildInventoryAudit(InventoryEventType.STOCK_RELEASE, 1));\n\n\t}", "title": "" }, { "docid": "20f5f328d4de37265059a9989e353407", "score": "0.50701666", "text": "@Test\n\tpublic void testProcessInventoryUpdateOrderShipmentRelease() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tfinal String skuCode = SKU_CODE;\n\t\tproductSku.setSkuCode(skuCode);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tatLeast(1).of(inventoryDao).getInventory(skuCode, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tatLeast(1).of(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t}\n\t\t});\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_NEG_10);\n\t\tijRollup2.setQuantityOnHandDelta(QUANTITY_NEG_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tatLeast(1).of(inventoryDao2).getInventory(skuCode, WAREHOUSE_UID); will(returnValue(inventory2));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_RELEASE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_0, inventoryDto.getAllocatedQuantity());\n\t}", "title": "" }, { "docid": "96b1f2daec2bddc0225030656ede686b", "score": "0.50664365", "text": "@Test\n\tpublic void testProcessInventoryUpdateUpdateProductIndex() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal IndexNotificationService indexNotificationService = context.mock(IndexNotificationService.class);\n\t\tproductInventoryManagementService.setIndexNotificationService(indexNotificationService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(new InventoryJournalRollupImpl()));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\n\t\t\t\texactly(2).of(indexNotificationService).addNotificationForEntityIndexUpdate(IndexType.PRODUCT, product.getUidPk());\n\t\t\t}\n\t\t});\n\n\t\t//Allocate\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1, InventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_ONHAND, order, null);\n\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_ONHAND);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(0, inventoryDto.getAvailableQuantityInStock());\n\n\t\t//Deallocate\n\t\tfinal Inventory inventory3 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao3 = context.mock(InventoryDao.class, \"inventoryDao3\");\n\t\tfinal InventoryJournalDao inventoryJournalDao3 = context.mock(InventoryJournalDao.class, \"inventoryJournalDao3\");\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao3);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao3);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tfinal InventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(inventoryDao3).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory3));\n\t\t\t\tatLeast(1).of(inventoryJournalDao3).saveOrUpdate(inventoryJournal); will(returnValue(inventoryJournal));\n\t\t\t\tatLeast(1).of(inventoryJournalDao3).getRollup(inventoryKey); will(returnValue(new InventoryJournalRollupImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_DEALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_ONHAND, order, null);\n\n\t\tfinal InventoryJournalDao inventoryJournalDao4 = context.mock(InventoryJournalDao.class, \"inventoryJournalDao4\");\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao4);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup4 = new InventoryJournalRollupImpl();\n\t\tijRollup4.setAllocatedQuantityDelta(-QUANTITY_ONHAND);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tatLeast(1).of(inventoryJournalDao4).getRollup(inventoryKey); will(returnValue(ijRollup4));\n\t\t\t}\n\t\t});\n\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getAvailableQuantityInStock());\n\t}", "title": "" }, { "docid": "d95ef646ba8e5ca2c094196a84313750", "score": "0.50636756", "text": "@PUT\n @Path(\"/{requirementId}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method updates a specific requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the updated requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response updateRequirement(@PathParam(\"requirementId\") int requirementId,\n @ApiParam(value = \"Requirement entity\", required = true) Requirement requirementToUpdate) {\n DALFacade dalFacade = null;\n try {\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n Gson gson = new Gson();\n Vtor vtor = service.bazaarService.getValidators();\n vtor.validate(requirementToUpdate);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Modify_REQUIREMENT, dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.modify\"));\n }\n if (requirementToUpdate.getId() != 0 && requirementId != requirementToUpdate.getId()) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"Id does not match\");\n }\n dalFacade.followRequirement(internalUserId, requirementToUpdate.getId());\n RequirementEx updatedRequirement = dalFacade.modifyRequirement(requirementToUpdate, internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, updatedRequirement.getLastupdated_time(), Activity.ActivityAction.UPDATE, updatedRequirement.getId(),\n Activity.DataType.REQUIREMENT, updatedRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(updatedRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }", "title": "" }, { "docid": "9a59629ca2fe9a3bad55bc348cf4883b", "score": "0.5057796", "text": "public void testUpdateProduct() {\n\t\tProduct product=productDao.selectProducts(33);\n\t\tproduct.setPrice(100.0);\n\t\tproduct.setQuantity(1);\n\t\tproductDao.updateProduct(product);//product has updated price and update quantity\n\t\tassertTrue(product.getPrice()==100.0);\n\t\tassertTrue(product.getQuantity()==1);\n\t}", "title": "" }, { "docid": "c5aa594b7584f4a942dd9eeb32568a68", "score": "0.50537294", "text": "@PUT\r\n\t@Path(\"product\")\r\n\t@Produces(MediaType.APPLICATION_XML)\r\n\tpublic Response putProduct(@Context HttpServletRequest request, ProductType p) {\r\n\t\tString username = request.getHeader(\"X-user\");\r\n\t\t\r\n\t\tif( p == null) {\r\n\t\t\treturn Response.status(queryImpossible).build();\r\n\t\t}\r\n\t\tif(\t!services.updateProduct(username, p) ) {\r\n\t\t\treturn Response.status(queryImpossible).build();\r\n\t\t}\r\n\t\t\r\n\t\treturn Response.ok().build();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c73519b05c15431bf3a2afcd86ac6cc9", "score": "0.50377744", "text": "Product updateProductById(Long id);", "title": "" }, { "docid": "5f5059abd0991494bc91327e6267a96b", "score": "0.5030152", "text": "public boolean AddUpdateProduct(Product product)\r\n {\r\n boolean isSuccess = false;\r\n // if the product already exists, update it\r\n for (int i = 0; i < productArrayList.size(); i++)\r\n {\r\n if (product.getId() == productArrayList.get(i).getId())\r\n {\r\n // update the value of the product\r\n productArrayList.set(i, product);\r\n isSuccess = true;\r\n System.out.println(\"Product updated\");\r\n }\r\n }\r\n\r\n // if product does not exist, add it to the list\r\n if (!isSuccess)\r\n {\r\n productArrayList.add(product);\r\n isSuccess = true;\r\n System.out.println(\"Product added to inventory\");\r\n }\r\n\r\n // print arrayList to the file\r\n File inventoryFile = new File(\"Inventory.txt\");\r\n try (PrintWriter fileWriter = new PrintWriter(inventoryFile))\r\n {\r\n for (Product product1: productArrayList) {\r\n fileWriter.print(product1.getId() + \", \" + product1.getName() + \", \" +\r\n product1.getCost() + \", \" + product1.getQuantity() + \", \" + product1.getMargin() + \"\\n\");\r\n }\r\n } catch (FileNotFoundException ex)\r\n {\r\n System.out.println(\"File not found\");\r\n }\r\n // if method was not able to add the product, isSuccess stays false\r\n return isSuccess;\r\n }", "title": "" }, { "docid": "9a763a05bdd0aa2e8c945a9a2a63615e", "score": "0.50269157", "text": "@Test\r\n public void testUpdateMilkInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"5\", \"0\", \"0\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 20\\nSugar: 15\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "title": "" }, { "docid": "fe9503c353fea4c655fb29ae8ee33195", "score": "0.5023958", "text": "@Test\n\tpublic void updateProductTest2() throws Exception {\n Attribute attr1 = ProductAttributeGenerator.generate(Generator.randomString(6, Generator.AlphaChars), \"Date\", \"AdminEntered\", \"Datetime\", false, false, true);\n Attribute createdAttr = AttributeFactory.addAttribute(apiContext, attr1, HttpStatus.SC_CREATED);\n \n\t\t\n\t //update product type\n ProductType myPT = ProductTypeGenerator.generate(createdAttr, Generator.randomString(5, Generator.AlphaChars));\n ProductType createdPT = ProductTypeFactory.addProductType(apiContext, DataViewMode.Live, myPT, HttpStatus.SC_CREATED);\n \n Product myProduct = ProductGenerator.generate(createdPT);\n List<ProductPropertyValue> salePriceDateValue = new ArrayList<ProductPropertyValue>();\n ProductPropertyValue salePriceValue = new ProductPropertyValue();\n DateTime date = DateTime.now();\n salePriceValue.setValue(date);\n salePriceDateValue.add(salePriceValue);\n myProduct.getProperties().get(myProduct.getProperties().size()-1).setValues(salePriceDateValue);\n Product createdProduct = ProductFactory.addProduct(apiContext, DataViewMode.Live, myProduct, HttpStatus.SC_CREATED);\n\t}", "title": "" }, { "docid": "62f3923919b9f59ca7069fe66da51672", "score": "0.5007184", "text": "public ServiceResponse<ProductInner> put200InvalidJson() throws CloudException, IOException, InterruptedException {\n final ProductInner product = null;\n Response<ResponseBody> result = service.put200InvalidJson(product, this.client.acceptLanguage(), this.client.userAgent()).execute();\n return client.getAzureClient().getPutOrPatchResult(result, new TypeToken<ProductInner>() { }.getType());\n }", "title": "" }, { "docid": "1ee341446a61df035ff708f5670df382", "score": "0.5004067", "text": "Product update(Product product, long id);", "title": "" }, { "docid": "0cb1192686405d79343f01fa2a5490eb", "score": "0.50002205", "text": "@Override\n\tpublic boolean updateProduct(Product p) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4503cd2007192847c0d9cbdf3724ed22", "score": "0.49893448", "text": "@Test\r\n public void testUpdateChocolateInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"0\", \"0\", \"5\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 15\\nSugar: 15\\nChocolate: 20\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "title": "" }, { "docid": "bf26dbfa23096ed8ba6d22cd74ffa6aa", "score": "0.49808326", "text": "@Override\n public boolean updatePriceByProductId(ProductRequest productRequest) {\n\n boolean isUpdateSuccess = false;\n try {\n Product product = fetchProductById(productRequest.getProductId());\n\n if (product != null) {\n product.setPrice(productRequest.getPrice());\n productRepository.save(product);\n isUpdateSuccess = true;\n }\n } catch (MongoException ex) {\n LOGGER.debug(\"MongoException DB - \" + ex.getMessage());\n }\n return isUpdateSuccess;\n }", "title": "" }, { "docid": "690a6511a78402e4154ea0f419ae7d3f", "score": "0.49777907", "text": "public void update(Product prod) {\n\t\tentities.put(prod.getName(), prod);\n\t\tif (prod.quantity==0) {\n\t\t\tavailableProducts.remove(prod.getName());\n\t\t}\n\t}", "title": "" }, { "docid": "d2c8ba3e81cbba219e9c0b32d8941ee9", "score": "0.49677527", "text": "@Test\n\tpublic void testProcessInventoryUpdateOrderAdjustmentRemoveSku() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER,\tQUANTITY_10, order, null);\n\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\n\t\tassertEquals(inventoryDto.getQuantityOnHand(), QUANTITY_ONHAND);\n\t\tassertEquals(inventoryDto.getAvailableQuantityInStock(), QUANTITY_ONHAND - QUANTITY_10);\n\t\tassertEquals(inventoryDto.getAllocatedQuantity(), QUANTITY_10);\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_NEG_10);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tallowing(inventoryDao2).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory2));\n\t\t\t\tallowing(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t\toneOf(inventoryJournalDao2).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_DEALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory2.getSkuCode(), inventory2.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_0, inventoryDto.getAllocatedQuantity());\n\t}", "title": "" }, { "docid": "975de33703e6dd997e460e2d2783b87c", "score": "0.4963154", "text": "public String update(Inventory inv, int id) {\n inventory.setId(id);\r\n inventory.setAlbum(inv.getAlbum());\r\n inventory.setArtist(inv.getArtist());\r\n inventory.setYear(inv.getYear());\r\n inventory.setState(inv.getState());\r\n inventory.setState_detailed(inv.getState_detailed());\r\n inventory.setUpc(inv.getUpc());\r\n inventory.setNotes(inv.getNotes());\r\n arc.setOk(\"\");\r\n urc.setOk(\"\");\r\n this.inform = \"\";\r\n return \"updateRecord\";\r\n }", "title": "" }, { "docid": "382d9ed76e0e1ff423542eab9746a0e3", "score": "0.49580264", "text": "public void processProduct() {\n Product product = self.getCurrentProduct();\n ServiceManager sm = self.getServiceManager();\n boolean failure = false;\n\n if (product != null) {\n //update the product's location\n product.setLocation(self.getLocation());\n env.updateProduct(product);\n\n //process product if the current service equals the needed service and is available,\n //otherwise, just forward the product to the output-buffer without further action.\n if (sm.checkProcessingAllowed(product.getCurrentStepId())) {\n int processingSteps = sm.getCapability().getProcessingTime() * env.getStepTimeScaler();\n for (int i = 1; i <= processingSteps; i++) {\n if (i % env.getStepTimeScaler() == 0) {\n self.increaseWorkload();\n syncUpdateWithCheck(false);\n } else {\n waitStepWithCheck();\n }\n }\n failure = sm.checkFailure(getRandom());\n }\n\n //block until enough space on output-buffer\n while (!self.getOutputBuffer().tryPutProduct(product) && !getResetFlag()) {\n waitStepWithCheck();\n }\n // update product, no sync – does not change pf\n product.finishCurrentStep();\n product.setLocation(self.getOutputLocation());\n env.updateProduct(product);\n // move product to output-buffer + break a service (optional)\n self.setCurrentProduct(null);\n self.increaseFinishCount();\n syncUpdateWithCheck(failure);\n }\n }", "title": "" }, { "docid": "07fa1c707c7d87f6fbd44ae2f445a014", "score": "0.49502122", "text": "ProductView updateProduct(int productId, EditProductBinding productToEdit) throws ProductException;", "title": "" }, { "docid": "5d64dfd2fcebb267eefbb4cde9109ec4", "score": "0.49496233", "text": "public ServiceResponse<ProductInner> putNonRetry201Creating400InvalidJson() throws CloudException, IOException, InterruptedException {\n final ProductInner product = null;\n Response<ResponseBody> result = service.putNonRetry201Creating400InvalidJson(product, this.client.acceptLanguage(), this.client.userAgent()).execute();\n return client.getAzureClient().getPutOrPatchResult(result, new TypeToken<ProductInner>() { }.getType());\n }", "title": "" }, { "docid": "050c947ecbce0339d99a31a8f6ce2bf2", "score": "0.4926376", "text": "@Test\n public void testUpdateProductShouldSuccessWhenProductNotUpdateName() throws Exception {\n product.setName(productRequest.getName());\n when(productRepository.findOne(product.getId())).thenReturn(product);\n when(productRepository.save(product)).thenReturn(product);\n\n Map<String, Object> jsonMap = new HashMap<>();\n jsonMap.put(\"$.url\", productRequest.getUrl());\n testResponseData(RequestInfo.builder()\n .request(put(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(adminToken)\n .body(productRequest)\n .httpStatus(HttpStatus.OK)\n .jsonMap(jsonMap)\n .build());\n }", "title": "" }, { "docid": "cca0dbedb2451beef7a5f1477b75e73e", "score": "0.49206498", "text": "private void updateProduct(Product productUpdated, int productId) {\n try {\n ConDB conn = new ConDB();\n String query = \"UPDATE products SET productName = ?,\"\n + \"total = ?, remaining = ?, warehouse_id = ? WHERE id = \" + productId;\n \n \n PreparedStatement pst = conn.getConnection().prepareStatement(query);\n pst.setString(1, productUpdated.getProductName());\n pst.setInt(2, productUpdated.getTotal());\n pst.setInt(3, productUpdated.getRemaining());\n pst.setInt(4, productUpdated.getWarehouse_id());\n \n pst.executeUpdate();\n JOptionPane.showMessageDialog(null, \"Product updated\");\n closeUpdateProduct();\n } catch (SQLException ex) {\n System.out.println(ex.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "aee179654bd7ce619229bd4499ea9e8f", "score": "0.49121127", "text": "@PutMapping(path =\"/products\")\n public ResponseEntity<Product> updateProduct(@RequestBody Product product) throws URISyntaxException {\n if (product.getId() == null) {\n return createProduct(product);\n }\n log.debug(\"REST request to update Product : {}\", product);\n Product result = productService.save(product);\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityUpdateAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "title": "" }, { "docid": "495f7d098a010902f76f0fc470102e0a", "score": "0.49072623", "text": "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithAutoShutdownProfile,\n UpdateStages.WithConnectionProfile,\n UpdateStages.WithVirtualMachineProfile,\n UpdateStages.WithSecurityProfile,\n UpdateStages.WithRosterProfile,\n UpdateStages.WithLabPlanId,\n UpdateStages.WithTitle,\n UpdateStages.WithDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Lab apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Lab apply(Context context);\n }", "title": "" }, { "docid": "c698b83d7d747e546835d75e731b0b54", "score": "0.48800758", "text": "public com.google.cloud.aiplatform.v1.Execution updateExecution(\n com.google.cloud.aiplatform.v1.UpdateExecutionRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getUpdateExecutionMethod(), getCallOptions(), request);\n }", "title": "" }, { "docid": "1f5bb10375a3f2665fb16a991ae52e62", "score": "0.48597556", "text": "public static boolean updateInventoryStock(ObservableList<Product> products, TransactionType transactionType) {\r\n\t\tdbConnect();\r\n\t\tPreparedStatement stmt = null;\r\n\t\tboolean saveStatus = true;\r\n\t\tfor (Product product : products) {\r\n\t\t\tString operation = (transactionType == TransactionType.PURCHASE ? \"+ \" : \"- \");\r\n\t\t\tfinal String UPDATE_STOCK = \"UPDATE product SET product_quantity = product_quantity \" + operation\r\n\t\t\t\t\t+ product.getSubQuantity() + \" WHERE product_code = \" + product.getProductCode();\r\n\t\t\ttry {\r\n\t\t\t\tstmt = conn.prepareStatement(UPDATE_STOCK);\r\n\t\t\t\tstmt.executeUpdate();\r\n\t\t\t\tstmt.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tsaveStatus = false;\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn saveStatus;\r\n\t}", "title": "" }, { "docid": "80e02ac28e3892a60ca18f7248d60475", "score": "0.48551267", "text": "ResponseEntity<Price> updatePrice(String cartId);", "title": "" }, { "docid": "7de3fed6f93f415f2806febdc6f93b04", "score": "0.48539555", "text": "private void updateInventory(ReturnTransaction returnRecord) {\n for (ReturnLineItem returnsLineItem: returnRecord.getReturnLineItems()) {\n Item item = InventoryRepo.getItem(returnsLineItem.getItemId());\n int newOH = (item.getOnhands() + returnsLineItem.getQuantity());\n Item updatedItem = new Item(item.getItemId(),item.getName(), newOH, item.getPrice(), item.getTax(),\n item.getThreshold(), item.getSupplierId(),item.getReorderQty(), item.getPending());\n InventoryRepo.updateItem(updatedItem);\n }\n }", "title": "" }, { "docid": "a4bdcc5c05bf2cb8f321411c5d3eb5a5", "score": "0.48450306", "text": "public ServiceResponse<ProductInner> putNonRetry201Creating400(ProductInner product) throws CloudException, IOException, InterruptedException {\n Validator.validate(product);\n Response<ResponseBody> result = service.putNonRetry201Creating400(product, this.client.acceptLanguage(), this.client.userAgent()).execute();\n return client.getAzureClient().getPutOrPatchResult(result, new TypeToken<ProductInner>() { }.getType());\n }", "title": "" }, { "docid": "a5c9acaabac789680f60c9bd4de146e3", "score": "0.48446313", "text": "void updateRecipe(Recipe recipe) throws ServiceFailureException;", "title": "" }, { "docid": "10ff66f3338f712e943afafa8d7e5096", "score": "0.4834461", "text": "interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }", "title": "" }, { "docid": "3ffab642e5a06ee25452eb39819ed028", "score": "0.48322952", "text": "@Override\n\tpublic int update(ProductDTO dto) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9a3ea577f763023e108c10f5011c3e15", "score": "0.48206022", "text": "@Override\n\tpublic void update(ExportProduct exportProduct) {\n\t\t\n\t}", "title": "" }, { "docid": "01002faf791b5ede8c35fdc62dbc1a74", "score": "0.48030236", "text": "@Override\r\n\tpublic void update(Product product) {\n\t\tproductMapper.updateByPrimaryKeySelective(product);\r\n\t}", "title": "" }, { "docid": "252c7418f17f03dd290e310d596b2d21", "score": "0.4789491", "text": "public boolean updateProductReceived(String retailerId, String productUIN)throws ConnectException;", "title": "" }, { "docid": "9ee60ecbaf5e3735474fd3306f370cc5", "score": "0.478447", "text": "private void editProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id -\");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id -\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Enter new Quantity of Product\");\n\t\t\tint quantity = getValidInteger(\"Enter new Quantity of Product\");\n\t\t\tCartController.getInstance().editProductFromCart(productId,\n\t\t\t\t\tquantity);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}", "title": "" }, { "docid": "991ed61b5de94693f96f100c3f6d74f4", "score": "0.47823983", "text": "@Test\n\tpublic void testProcessInventoryUpdateOrderCancellation() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t}\n\t\t});\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_NEG_10);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tatLeast(1).of(inventoryDao2).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory2));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_DEALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_0, inventoryDto.getAllocatedQuantity());\n\t}", "title": "" }, { "docid": "7c3cb5c452f8f99997f3c06e2db51fd0", "score": "0.47794574", "text": "@Override\n public int updateProduct(Product product) throws Exception\n {\n if(product == null)\n return 0;\n\n if(getProductById(product.getId(), true) == null)\n return 0;\n\n PreparedStatement query = _da.getCon().prepareStatement(\"UPDATE Products SET contactsKey = ?, categoryKey = ?, name = ?, purchasePrice = ?, salesPrice = ?, rentPrice = ?, countryOfOrigin = ?, minimumStock = ? \" +\n \"WHERE productId = ?\");\n\n query.setLong(1, product.getSupplier().getPhoneNo());\n query.setLong(2, product.getCategory().getCategoryId());\n query.setString(3, product.getName());\n query.setDouble(4, product.getPurchasePrice().doubleValue());\n query.setDouble(5, product.getSalesPrice().doubleValue());\n query.setDouble(6, product.getRentPrice().doubleValue());\n query.setString(7, product.getCountryOfOrigin());\n query.setLong(8, product.getMinimumStock());\n query.setLong(9, product.getId());\n _da.setSqlCommandText(query);\n int rowsAffected = _da.callCommand();\n\n DBProductData dbProductData = new DBProductData();\n dbProductData.deleteProductData(product.getId());\n for(ProductData data : product.getProductData())\n rowsAffected += dbProductData.insertProductData(product.getId(), data);\n\n return rowsAffected;\n }", "title": "" }, { "docid": "6918f5671f5ecf3841a8af0e384ece9e", "score": "0.47762477", "text": "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.aiplatform.v1.Execution>\n updateExecution(com.google.cloud.aiplatform.v1.UpdateExecutionRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getUpdateExecutionMethod(), getCallOptions()), request);\n }", "title": "" }, { "docid": "ce44c31b3222e2f09ce560f1b9cebf7b", "score": "0.47727624", "text": "public void updateProductResourceMappings(API api, String organization, List<APIProductResource> productResources)\n throws APIManagementException {\n Map<String, URITemplate> apiResources = apiMgtDAO.getURITemplatesForAPI(api);\n\n for (APIProductResource productResource : productResources) {\n URITemplate uriTemplate = productResource.getUriTemplate();\n String productResourceKey = uriTemplate.getHTTPVerb() + \":\" + uriTemplate.getUriTemplate();\n\n //set new uri template ID to the product resource\n int updatedURITemplateId = apiResources.get(productResourceKey).getId();\n uriTemplate.setId(updatedURITemplateId);\n }\n\n apiMgtDAO.addAPIProductResourceMappings(productResources, organization, null);\n }", "title": "" }, { "docid": "fecc59333f66fc9089be2167d646d151", "score": "0.47688654", "text": "@Override\r\n\tpublic int update(Product product) throws Exception {\n\t\treturn this.dao.update(product);\r\n\t}", "title": "" }, { "docid": "676fed6243db3ead255165ccb9652a66", "score": "0.47652784", "text": "@Override\n\tpublic String updateProduct() throws AdminException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "69ff064de2c058c568fd14691ddc6cf9", "score": "0.47567576", "text": "public ServiceResponse<ProductInner> putError201NoProvisioningStatePayload() throws CloudException, IOException, InterruptedException {\n final ProductInner product = null;\n Response<ResponseBody> result = service.putError201NoProvisioningStatePayload(product, this.client.acceptLanguage(), this.client.userAgent()).execute();\n return client.getAzureClient().getPutOrPatchResult(result, new TypeToken<ProductInner>() { }.getType());\n }", "title": "" }, { "docid": "5b6dcee72992ac3a342f1cb3f06219e6", "score": "0.47508898", "text": "public void update() {\n\t\tthis.quantity = item.getRequiredQuantity();\n\t}", "title": "" }, { "docid": "bca7af819d0b415861906de03fd83e3f", "score": "0.47357452", "text": "ProductInventory(Product pProduct)\n\t{\n\n\t\t// Initialize the Product Inventory Array List\n\t\tmyProductInventory = new ArrayList<Product>();\n\n\t\t// Add a user-defined Product to the inventory array\n\t\t// This Product object is placed in the first position\n\t\t// of the Product Inventory Array List\n\t\tthis.addProduct(pProduct);\n\n\t}", "title": "" }, { "docid": "7cdcb0cc51e1cf5d1c7852ce32454efd", "score": "0.4732375", "text": "@Override\n\tpublic void updateProduct(ProductVO vo) {\n\n\t}", "title": "" }, { "docid": "d3442838c9854876df1aa7cffcb59639", "score": "0.47318742", "text": "@Test\n\tpublic void testProcessInventoryUpdateOrderAdjustmentAddSku() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tproductSku.setGuid(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproduct.setGuid(PRODUCT);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\t\torder.setStoreCode(store.getCode());\n\t\tfinal PhysicalOrderShipmentImpl shipment = getMockPhysicalOrderShipment();\n\t\tfinal OrderSku orderSku = new OrderSkuImpl();\n\t\torderSku.setProductSku(productSku);\n\t\tshipment.addShipmentOrderSku(orderSku);\n\t\torder.addShipment(shipment);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(ALLOCATION_RESULT); will(returnValue(new AllocationResultImpl()));\n\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tallowing(beanFactory).getBean(INVENTORY_JOURNAL);\n\t\t\t\twill(returnValue(inventoryJournal));\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(orderSku, AllocationEventType.ORDER_ADJUSTMENT_ADDSKU,\tEVENT_ORIGINATOR_TESTER, QUANTITY_10, null);\n\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(inventoryDto.getQuantityOnHand(), QUANTITY_ONHAND);\n\t\tassertEquals(inventoryDto.getAvailableQuantityInStock(), QUANTITY_ONHAND - QUANTITY_10);\n\t\tassertEquals(inventoryDto.getAllocatedQuantity(), QUANTITY_10);\n\t}", "title": "" }, { "docid": "e916216819e5fad68934412742d20ffe", "score": "0.46980307", "text": "@Test\n\tpublic void test_update_product_return_200() throws Exception {\n\t\tPrincipal mockPrincipal = Mockito.mock(Principal.class);\n\t\tMockito.when(mockPrincipal.getName()).thenReturn(\"1\");\n\t\tProductDTO expected = DummyData.getProductDto1();\n\t\tMockHttpServletRequestBuilder mockRequest = MockMvcRequestBuilders.request(HttpMethod.PUT, \"/\")\n\t\t\t\t.principal(mockPrincipal)\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON)\n\t\t\t\t.content(ObjectMapperHelper.asJsonString(expected));\n\n\t\t// Setup when\n\t\twhen(productService.update(ArgumentMatchers.any())).thenReturn(expected);\n\t\t\n\t\t// Execute the POST request\n\t\tmockMvc.perform(mockRequest)\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t// Validate the response code and content type\n\t\t\t\t.andExpect(MockMvcResultMatchers.content().contentType(MediaType.APPLICATION_JSON))\n\t\t\t\t// Validate the returned fields\n\t\t\t\t.andExpect(jsonPath(\"$.brand\", Is.is(expected.getBrand())))\n\t\t\t\t.andExpect(jsonPath(\"$.color\", Is.is(expected.getColor())))\n\t\t\t\t.andExpect(jsonPath(\"$.name\", Is.is(expected.getName()))).andReturn();\n\n\t\t// verify\n\t\tverify(productService).update(ArgumentMatchers.any());\n\t}", "title": "" }, { "docid": "8d8a5310c28889a224992e2d3d302dbf", "score": "0.46906945", "text": "@Test(expected = InsufficientInventoryException.class)\n\tpublic void testTypeInStockWhenOutOfStock() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_OF_10);\n\t\tinventory.setReservedQuantity(QUANTITY_OF_5);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproduct.setGuid(PRODUCT);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\t\torder.setStoreCode(store.getCode());\n\t\tfinal PhysicalOrderShipmentImpl shipment = getMockPhysicalOrderShipment();\n\t\tfinal OrderSku orderSku = new OrderSkuImpl();\n\t\torderSku.setProductSku(productSku);\n\t\torderSku.setQuantity(QUANTITY_OF_5);\n\t\tshipment.addShipmentOrderSku(orderSku);\n\t\torder.addShipment(shipment);\n\n\t\tfinal IndexNotificationService indexNotificationService = context.mock(IndexNotificationService.class);\n\t\tproductInventoryManagementService.setIndexNotificationService(indexNotificationService);\n\n\t\tfinal InventoryKey inventoryKey = new InventoryKey();\n\t\tinventoryKey.setSkuCode(SKU_CODE);\n\t\tinventoryKey.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tatLeast(1).of(beanFactory).getBean(ALLOCATION_RESULT); will(returnValue(new AllocationResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(new InventoryJournalRollupImpl()));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\n\t\t\t\toneOf(indexNotificationService).addNotificationForEntityIndexUpdate(IndexType.PRODUCT, product.getUidPk());\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(orderSku, AllocationEventType.ORDER_PLACED, \"\", QUANTITY_OF_5, \"\");\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_5);\n\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_OF_10, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(0, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_OF_5, inventoryDto.getAllocatedQuantity());\n\n\t\tfinal Inventory inventory3 = assembler.assembleDomainFromDto(inventoryDto);\n\t\tfinal InventoryDao inventoryDao3 = context.mock(InventoryDao.class, \"inventoryDao3\");\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao3);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tatLeast(1).of(inventoryDao3).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory3));\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(orderSku, AllocationEventType.ORDER_PLACED, \"\", QUANTITY_OF_5, \"\");\n\t}", "title": "" }, { "docid": "24f3019d7e6b1ae71b896dc95ce983ea", "score": "0.4685417", "text": "@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}", "title": "" }, { "docid": "df4f741b2e97d783f3ae29e8b1d147ed", "score": "0.46836635", "text": "@RequestMapping(method = RequestMethod.POST, produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<?> createInventory(@Valid @RequestBody InventoryRequest inventoryRequest){\n Product product = productService.getProductById(inventoryRequest.getProductId());\n\n //Criando produto no estoque\n Inventory inventory = inventoryService.createInventoryItem(new Inventory(inventoryRequest.getAmount()));\n product.setInventory(inventory);\n inventory.setProduct(product);\n\n //Atualizando associações entre estoque e produto\n inventoryService.updateInventoryItem(inventory);\n\n return ResponseEntity.status(HttpStatus.CREATED).build();\n }", "title": "" }, { "docid": "55c6a8d8cba8462c58875d7921ed6b83", "score": "0.468101", "text": "@Override\n\tpublic int updateInventory(int tranNo, int amount) throws Exception {\n\t\treturn 0;\n\t}", "title": "" } ]
1566188d4a7ebc05a1e05672fb35d75c
$ANTLR end T11 $ANTLR start T12
[ { "docid": "e1cc0f15cbbc16f0ede5f424ef255d44", "score": "0.0", "text": "public final void mT12() throws RecognitionException {\n try {\n int _type = T12;\n // Structo.g:10:5: ( 'read' )\n // Structo.g:10:7: 'read'\n {\n match(\"read\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "title": "" } ]
[ { "docid": "fd94c982a2c392889fd285e09fdd366d", "score": "0.5963644", "text": "@Override\n\tpublic void visit(MetaCharLit n) {\n\n\t}", "title": "" }, { "docid": "2a0b61b25b20ef3e13d4c8fd5a69981c", "score": "0.5953093", "text": "@Override\n\tpublic void visit(MetaLitPEG n) {\n\t}", "title": "" }, { "docid": "d8580877ee375552939f89cecc98ea90", "score": "0.5908546", "text": "@Override\n\tpublic void visit(TyGrammar n) {\n\t}", "title": "" }, { "docid": "e4a0132aadccf5e500e0a76b9079f869", "score": "0.5809205", "text": "@Override\n\tpublic void visit(MetaTyGrammar n) {\n\t}", "title": "" }, { "docid": "c6425565683778ede981e914c59b19dd", "score": "0.56743467", "text": "@Override\n\tpublic void visit(MetaNonterminalPEG n) {\n\t}", "title": "" }, { "docid": "edf8b2bb51fbf19432b9ebde92e7a76a", "score": "0.5615791", "text": "public interface Tokens {\r\n /* terminals */\r\n public static final int AT = 68;\r\n public static final int IDENTIFIER = 71;\r\n public static final int GT = 40;\r\n public static final int SELFEQ = 54;\r\n public static final int NOTEQ = 44;\r\n public static final int RBRACK = 66;\r\n public static final int CATCH = 15;\r\n public static final int COMMA = 58;\r\n public static final int RBRACE = 61;\r\n public static final int THROW = 13;\r\n public static final int RPAREN = 64;\r\n public static final int LBRACK = 65;\r\n public static final int LT = 39;\r\n public static final int ANDAND = 49;\r\n public static final int OROR = 50;\r\n public static final int LBRACE = 60;\r\n public static final int LPAREN = 63;\r\n public static final int NOT = 51;\r\n public static final int EQGT = 67;\r\n public static final int VAR = 2;\r\n public static final int QUESTION_COLON = 53;\r\n public static final int COMP = 48;\r\n public static final int EQ = 70;\r\n public static final int MOD = 35;\r\n public static final int INCLUDE = 24;\r\n public static final int SUPER = 7;\r\n public static final int NATIVE = 22;\r\n public static final int PLUS = 31;\r\n public static final int QUESTION = 52;\r\n public static final int WHILE = 12;\r\n public static final int SWITCH = 8;\r\n public static final int DO = 11;\r\n public static final int FOR = 5;\r\n public static final int DIV = 34;\r\n public static final int RETURN = 28;\r\n public static final int MULT = 33;\r\n public static final int ELSE = 4;\r\n public static final int TRY = 14;\r\n public static final int DOTDOT = 69;\r\n public static final int BREAK = 26;\r\n public static final int GTEQ = 42;\r\n public static final int DOT = 56;\r\n public static final int ECHO = 20;\r\n public static final int EQEQ = 43;\r\n public static final int EOF = 0;\r\n public static final int SEMICOLON = 59;\r\n public static final int THIS = 6;\r\n public static final int DEFAULT = 10;\r\n public static final int FUNCTION = 19;\r\n public static final int IMPORT = 23;\r\n public static final int MINUS = 32;\r\n public static final int LTEQ = 41;\r\n public static final int TEXT_STATMENT = 72;\r\n public static final int OR = 47;\r\n public static final int error = 1;\r\n public static final int URSHIFT = 38;\r\n public static final int PLACE_HOLDER_END = 62;\r\n public static final int FINALLY = 16;\r\n public static final int CONTINUE = 27;\r\n public static final int IF = 3;\r\n public static final int INSTANCEOF = 18;\r\n public static final int MINUSMINUS = 30;\r\n public static final int COLON = 57;\r\n public static final int NATIVE_IMPORT = 25;\r\n public static final int DIRECT_VALUE = 73;\r\n public static final int CASE = 9;\r\n public static final int PLUSPLUS = 29;\r\n public static final int NEW = 17;\r\n public static final int RSHIFT = 37;\r\n public static final int AND = 45;\r\n public static final int STATIC = 21;\r\n public static final int UMINUS = 55;\r\n public static final int LSHIFT = 36;\r\n public static final int XOR = 46;\r\n}", "title": "" }, { "docid": "1319fc13234bce41a0b63ea182e89c26", "score": "0.5610694", "text": "private int yyr40() {\n {\n yyrv = new GroupNode((ParseNode) yysv[yysp-2]);\n}\n yysv[yysp-=3] = yyrv;\n return yypexp();\n }", "title": "" }, { "docid": "205c8ec5d249c6cfd372edfabd55117e", "score": "0.5597233", "text": "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int INTLIT = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int IDENT = 22;\n /** RegularExpression Id. */\n int BEGIN = 23;\n /** RegularExpression Id. */\n int LETTER = 24;\n /** RegularExpression Id. */\n int OPEN = 25;\n /** RegularExpression Id. */\n int CLOSE = 26;\n /** RegularExpression Id. */\n int LT = 27;\n /** RegularExpression Id. */\n int LTEQ = 28;\n /** RegularExpression Id. */\n int GT = 29;\n /** RegularExpression Id. */\n int GTEQ = 30;\n /** RegularExpression Id. */\n int NEQ = 31;\n /** RegularExpression Id. */\n int EQEQ = 32;\n /** RegularExpression Id. */\n int LAND = 33;\n /** RegularExpression Id. */\n int LOR = 34;\n /** RegularExpression Id. */\n int ADD = 35;\n /** RegularExpression Id. */\n int SUB = 36;\n /** RegularExpression Id. */\n int MUL = 37;\n /** RegularExpression Id. */\n int DIV = 38;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\",\\\"\",\n \"\\\";\\\"\",\n \"\\\"void\\\"\",\n \"\\\"print\\\"\",\n \"\\\"return\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"=\\\"\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 18>\",\n \"<token of kind 19>\",\n \"<INTLIT>\",\n \"<DIGIT>\",\n \"<IDENT>\",\n \"<BEGIN>\",\n \"<LETTER>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"||\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n };\n\n}", "title": "" }, { "docid": "73419bb512cc396cc01eefd8b4f7ccef", "score": "0.5521737", "text": "public: std::unique_ptr<antlr4::Token> nextToken() override {\n\t if (_input->LA(1) == EOF && !this->indents.empty()) {\n\t // Remove any trailing EOF tokens from our buffer.\n\t for(auto i=tokens.rbegin();i!=tokens.rend();){\n\t auto tmp=i;\n\t i++;\n\t if((*tmp)->getType()==EOF){\n\t tokens.erase(tmp.base());\n\t }\n\t }\n\n\n\t // First emit an extra line break that serves as the end of the statement.\n\t std::unique_ptr<antlr4::Token> tmp=commonToken(Python3Parser::NEWLINE, \"\\n\");\n\t this->emit(std::move(tmp));\n\n\t // Now emit as much DEDENT tokens as needed.\n\t while (!indents.empty()) {\n\t auto tmp=createDedent();\n\t this->emit(std::move(tmp));\n\t indents.pop();\n\t }\n\n\t // Put the EOF back on the token stream.\n\t this->emit(commonToken(Python3Parser::EOF, \"<EOF>\"));\n\t }\n\n\t std::unique_ptr<antlr4::Token> next = Lexer::nextToken();\n\n\t if (next->getChannel() == antlr4::Token::DEFAULT_CHANNEL) {\n\t // Keep track of the last token on the default channel.\n\t this->lastToken = next.get();\n\t }\n\t if (tokens.empty()) {\n\t return std::move(next);\n\t } else{\n\t next.release();\n\t auto tmp=tokens.front();\n\t tokens.pop_front();\n\t return std::unique_ptr<antlr4::Token>(tmp);\n\t }\n\n\t }", "title": "" }, { "docid": "1208b87c38dc5ce423323d6b29f5af78", "score": "0.54462177", "text": "private int yyr13() {\n { yyrv = new RecordDeclarationNode((String)yysv[yysp-2], (String)yysv[yysp-1]); }\n yysv[yysp-=2] = yyrv;\n if (yyst[yysp - 1] == 76) {\n return 80;\n }\n return 10;\n }", "title": "" }, { "docid": "17022aac1df4420b3ed7d8e9370be54d", "score": "0.54387975", "text": "public interface ADTParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int OO = 5;\n /** RegularExpression Id. */\n int AO = 6;\n /** RegularExpression Id. */\n int OP = 7;\n /** RegularExpression Id. */\n int AP = 8;\n /** RegularExpression Id. */\n int CO = 9;\n /** RegularExpression Id. */\n int CP = 10;\n /** RegularExpression Id. */\n int COMMA = 11;\n /** RegularExpression Id. */\n int LPAREN = 12;\n /** RegularExpression Id. */\n int RPAREN = 13;\n /** RegularExpression Id. */\n int IDENTIFIER = 14;\n /** RegularExpression Id. */\n int FIRST_CHAR = 15;\n /** RegularExpression Id. */\n int LETTER = 16;\n /** RegularExpression Id. */\n int DIGIT = 17;\n /** RegularExpression Id. */\n int SPACE = 18;\n /** RegularExpression Id. */\n int EOL = 19;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<OO>\",\n \"<AO>\",\n \"<OP>\",\n \"<AP>\",\n \"<CO>\",\n \"<CP>\",\n \"\\\",\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"<IDENTIFIER>\",\n \"<FIRST_CHAR>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"<SPACE>\",\n \"<EOL>\",\n };\n\n}", "title": "" }, { "docid": "3a442fc315f29c36f2695e5c4b297a06", "score": "0.5409058", "text": "public VarASTNode() {}", "title": "" }, { "docid": "745b0b00b5041bbbfbaa105693ff0a35", "score": "0.54007447", "text": "public R visit(AStoreStmt n) {\n R _ret=null;\n n.f0.accept(this);\n String s1= (String)n.f1.accept(this);\n String s2= (String)n.f2.accept(this);\n //ASTORE SPILLEDARG 0 s0\n // sw $s0, 0($sp)\n String tokens[] = s1.split(\" \");\n System.out.println(\"sw \"+s2+\" , \"+(4*Integer.parseInt((tokens[1])))+\"(\"+\"$sp\"+\")\");\n return _ret;\n }", "title": "" }, { "docid": "8e81b3adb4737e15354f48d9667e9f14", "score": "0.5395688", "text": "public final void mT__12() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = T__12;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/eloipereira/Dropbox/workspace/CE290IFall2012/src/edu/berkeley/eloi/antlr/IMP.g:12:7:\n\t\t\t// ( '+' )\n\t\t\t// /Users/eloipereira/Dropbox/workspace/CE290IFall2012/src/edu/berkeley/eloi/antlr/IMP.g:12:9:\n\t\t\t// '+'\n\t\t\t{\n\t\t\t\tmatch('+');\n\n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t} finally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "title": "" }, { "docid": "cbb5b7e8736555dcbe3d500c6be76caa", "score": "0.53895175", "text": "@Override\n\tpublic void visit(MetaStrLit n) {\n\t}", "title": "" }, { "docid": "bb2671d60a0014bc5c5a75d9950bc337", "score": "0.53785586", "text": "public final void mT12() throws RecognitionException {\n try {\n int _type = T12;\n // Expr.g:7:5: ( '(' )\n // Expr.g:7:7: '('\n {\n match('('); \n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "title": "" }, { "docid": "142ad4091393a6480f4be0ed6ef025a3", "score": "0.53705204", "text": "private int yyr9() {\n {\n ((StatementListNode) yysv[yysp-3]).add(new StatementNode((ParseNode) yysv[yysp-1]));\n yyrv=yysv[yysp-3];\n}\n yysv[yysp-=3] = yyrv;\n return yypstatements();\n }", "title": "" }, { "docid": "58936ffb818ca3c1bdf73395c7ed24a0", "score": "0.5352164", "text": "static final public void GarbageDeclaration() throws ParseException, jsdai.lang.SdaiException {\n switch (jj_nt.kind) {\n case LPAREN:\n jj_consume_token(LPAREN);\n break;\n case RPAREN:\n jj_consume_token(RPAREN);\n break;\n case LBRACE:\n jj_consume_token(LBRACE);\n break;\n case RBRACE:\n jj_consume_token(RBRACE);\n break;\n case LBRACKET:\n jj_consume_token(LBRACKET);\n break;\n case RBRACKET:\n jj_consume_token(RBRACKET);\n break;\n case SEMICOLON:\n jj_consume_token(SEMICOLON);\n break;\n case COMMA:\n jj_consume_token(COMMA);\n break;\n case DOT:\n jj_consume_token(DOT);\n break;\n case COLON:\n jj_consume_token(COLON);\n break;\n case EQ:\n jj_consume_token(EQ);\n break;\n case ASSIGN:\n jj_consume_token(ASSIGN);\n break;\n case GT:\n jj_consume_token(GT);\n break;\n case LT:\n jj_consume_token(LT);\n break;\n case HOOK:\n jj_consume_token(HOOK);\n break;\n case LE:\n jj_consume_token(LE);\n break;\n case GE:\n jj_consume_token(GE);\n break;\n case NE:\n jj_consume_token(NE);\n break;\n case PLUS:\n jj_consume_token(PLUS);\n break;\n case MINUS:\n jj_consume_token(MINUS);\n break;\n case STAR:\n jj_consume_token(STAR);\n break;\n case STARS:\n jj_consume_token(STARS);\n break;\n case SLASH:\n jj_consume_token(SLASH);\n break;\n case BACKSLASH:\n jj_consume_token(BACKSLASH);\n break;\n case BIT_OR:\n jj_consume_token(BIT_OR);\n break;\n case OP_AT:\n jj_consume_token(OP_AT);\n break;\n case COMPLEX_AND:\n jj_consume_token(COMPLEX_AND);\n break;\n case OP_UNDERSCORE:\n jj_consume_token(OP_UNDERSCORE);\n break;\n case ABS:\n jj_consume_token(ABS);\n break;\n case ABSTRACT:\n jj_consume_token(ABSTRACT);\n break;\n case ACOS:\n jj_consume_token(ACOS);\n break;\n case AGGREGATE:\n jj_consume_token(AGGREGATE);\n break;\n case ALIAS:\n jj_consume_token(ALIAS);\n break;\n case AND:\n jj_consume_token(AND);\n break;\n case ANDOR:\n jj_consume_token(ANDOR);\n break;\n case ARRAY:\n jj_consume_token(ARRAY);\n break;\n case AS:\n jj_consume_token(AS);\n break;\n case ASIN:\n jj_consume_token(ASIN);\n break;\n case ATAN:\n jj_consume_token(ATAN);\n break;\n case BAG:\n jj_consume_token(BAG);\n break;\n case BASED_ON:\n jj_consume_token(BASED_ON);\n break;\n case BEGIN:\n jj_consume_token(BEGIN);\n break;\n case BINARY:\n jj_consume_token(BINARY);\n break;\n case BLENGTH:\n jj_consume_token(BLENGTH);\n break;\n case BOOLEAN:\n jj_consume_token(BOOLEAN);\n break;\n case BY:\n jj_consume_token(BY);\n break;\n case CASE:\n jj_consume_token(CASE);\n break;\n case CONSTANT:\n jj_consume_token(CONSTANT);\n break;\n case CONST_E:\n jj_consume_token(CONST_E);\n break;\n case CONTEXT:\n jj_consume_token(CONTEXT);\n break;\n case COS:\n jj_consume_token(COS);\n break;\n case CREATE:\n jj_consume_token(CREATE);\n break;\n case DEPENDENT_MAP:\n jj_consume_token(DEPENDENT_MAP);\n break;\n case DERIVE:\n jj_consume_token(DERIVE);\n break;\n case DIV:\n jj_consume_token(DIV);\n break;\n case EACH:\n jj_consume_token(EACH);\n break;\n case ELSE:\n jj_consume_token(ELSE);\n break;\n case ELSIF:\n jj_consume_token(ELSIF);\n break;\n case END:\n jj_consume_token(END);\n break;\n case END_ALIAS:\n jj_consume_token(END_ALIAS);\n break;\n case END_CASE:\n jj_consume_token(END_CASE);\n break;\n case END_CONSTANT:\n jj_consume_token(END_CONSTANT);\n break;\n case END_CONTEXT:\n jj_consume_token(END_CONTEXT);\n break;\n case END_CREATE:\n jj_consume_token(END_CREATE);\n break;\n case END_DEPENDENT_MAP:\n jj_consume_token(END_DEPENDENT_MAP);\n break;\n case END_ENTITY:\n jj_consume_token(END_ENTITY);\n break;\n case END_FUNCTION:\n jj_consume_token(END_FUNCTION);\n break;\n case END_IF:\n jj_consume_token(END_IF);\n break;\n case END_LOCAL:\n jj_consume_token(END_LOCAL);\n break;\n case END_MAP:\n jj_consume_token(END_MAP);\n break;\n case END_MODEL:\n jj_consume_token(END_MODEL);\n break;\n case END_PROCEDURE:\n jj_consume_token(END_PROCEDURE);\n break;\n case END_REPEAT:\n jj_consume_token(END_REPEAT);\n break;\n case END_RULE:\n jj_consume_token(END_RULE);\n break;\n case END_SCHEMA:\n jj_consume_token(END_SCHEMA);\n break;\n case END_SCHEMA_MAP:\n jj_consume_token(END_SCHEMA_MAP);\n break;\n case END_SCHEMA_VIEW:\n jj_consume_token(END_SCHEMA_VIEW);\n break;\n case END_SUBTYPE_CONSTRAINT:\n jj_consume_token(END_SUBTYPE_CONSTRAINT);\n break;\n case END_TYPE:\n jj_consume_token(END_TYPE);\n break;\n case END_VIEW:\n jj_consume_token(END_VIEW);\n break;\n case ENTITY:\n jj_consume_token(ENTITY);\n break;\n case ENUMERATION:\n jj_consume_token(ENUMERATION);\n break;\n case ESCAPE:\n jj_consume_token(ESCAPE);\n break;\n case EXISTS:\n jj_consume_token(EXISTS);\n break;\n case EXP:\n jj_consume_token(EXP);\n break;\n case EXTENSIBLE:\n jj_consume_token(EXTENSIBLE);\n break;\n case EXTENT:\n jj_consume_token(EXTENT);\n break;\n case FALSE:\n jj_consume_token(FALSE);\n break;\n case FIXED:\n jj_consume_token(FIXED);\n break;\n case FOR:\n jj_consume_token(FOR);\n break;\n case FORMAT:\n jj_consume_token(FORMAT);\n break;\n case FROM:\n jj_consume_token(FROM);\n break;\n case FUNCTION:\n jj_consume_token(FUNCTION);\n break;\n case GENERIC_ENTITY:\n jj_consume_token(GENERIC_ENTITY);\n break;\n case GENERIC:\n jj_consume_token(GENERIC);\n break;\n case HIBOUND:\n jj_consume_token(HIBOUND);\n break;\n case HIINDEX:\n jj_consume_token(HIINDEX);\n break;\n case IDENTIFIED_BY:\n jj_consume_token(IDENTIFIED_BY);\n break;\n case IF:\n jj_consume_token(IF);\n break;\n case IN:\n jj_consume_token(IN);\n break;\n case INDEXING:\n jj_consume_token(INDEXING);\n break;\n case INSERT:\n jj_consume_token(INSERT);\n break;\n case INTEGER:\n jj_consume_token(INTEGER);\n break;\n case INVERSE:\n jj_consume_token(INVERSE);\n break;\n case LENGTH:\n jj_consume_token(LENGTH);\n break;\n case LIKE:\n jj_consume_token(LIKE);\n break;\n case LIST:\n jj_consume_token(LIST);\n break;\n case LOBOUND:\n jj_consume_token(LOBOUND);\n break;\n case LOCAL:\n jj_consume_token(LOCAL);\n break;\n case LOG:\n jj_consume_token(LOG);\n break;\n case LOG10:\n jj_consume_token(LOG10);\n break;\n case LOG2:\n jj_consume_token(LOG2);\n break;\n case LOGICAL:\n jj_consume_token(LOGICAL);\n break;\n case LOINDEX:\n jj_consume_token(LOINDEX);\n break;\n case MAP:\n jj_consume_token(MAP);\n break;\n case MOD:\n jj_consume_token(MOD);\n break;\n case MODEL:\n jj_consume_token(MODEL);\n break;\n case NOT:\n jj_consume_token(NOT);\n break;\n case NUMBER:\n jj_consume_token(NUMBER);\n break;\n case NVL:\n jj_consume_token(NVL);\n break;\n case ODD:\n jj_consume_token(ODD);\n break;\n case OF:\n jj_consume_token(OF);\n break;\n case ONEOF:\n jj_consume_token(ONEOF);\n break;\n case OPTIONAL:\n jj_consume_token(OPTIONAL);\n break;\n case OR:\n jj_consume_token(OR);\n break;\n case ORDERED_BY:\n jj_consume_token(ORDERED_BY);\n break;\n case OTHERWISE:\n jj_consume_token(OTHERWISE);\n break;\n case PARTITION:\n jj_consume_token(PARTITION);\n break;\n case PI:\n jj_consume_token(PI);\n break;\n case PROCEDURE:\n jj_consume_token(PROCEDURE);\n break;\n case QUERY:\n jj_consume_token(QUERY);\n break;\n case REAL:\n jj_consume_token(REAL);\n break;\n case REFERENCE:\n jj_consume_token(REFERENCE);\n break;\n case REMOVE:\n jj_consume_token(REMOVE);\n break;\n case RENAMED:\n jj_consume_token(RENAMED);\n break;\n case REPEAT:\n jj_consume_token(REPEAT);\n break;\n case RETURN:\n jj_consume_token(RETURN);\n break;\n case ROLESOF:\n jj_consume_token(ROLESOF);\n break;\n case RULE:\n jj_consume_token(RULE);\n break;\n case SELECT:\n jj_consume_token(SELECT);\n break;\n case SELF:\n jj_consume_token(SELF);\n break;\n case SET:\n jj_consume_token(SET);\n break;\n case SIN:\n jj_consume_token(SIN);\n break;\n case SIZEOF:\n jj_consume_token(SIZEOF);\n break;\n case SOURCE:\n jj_consume_token(SOURCE);\n break;\n case SUBTYPE_CONSTRAINT:\n jj_consume_token(SUBTYPE_CONSTRAINT);\n break;\n case KW_SKIP:\n jj_consume_token(KW_SKIP);\n break;\n case SQRT:\n jj_consume_token(SQRT);\n break;\n case STRING:\n jj_consume_token(STRING);\n break;\n case SUBTYPE:\n jj_consume_token(SUBTYPE);\n break;\n case SUPERTYPE:\n jj_consume_token(SUPERTYPE);\n break;\n case TAN:\n jj_consume_token(TAN);\n break;\n case TARGET:\n jj_consume_token(TARGET);\n break;\n case THEN:\n jj_consume_token(THEN);\n break;\n case TO:\n jj_consume_token(TO);\n break;\n case TOTAL_OVER:\n jj_consume_token(TOTAL_OVER);\n break;\n case TRUE:\n jj_consume_token(TRUE);\n break;\n case TYPE:\n jj_consume_token(TYPE);\n break;\n case TYPEOF:\n jj_consume_token(TYPEOF);\n break;\n case UNIQUE:\n jj_consume_token(UNIQUE);\n break;\n case UNKNOWN:\n jj_consume_token(UNKNOWN);\n break;\n case UNTIL:\n jj_consume_token(UNTIL);\n break;\n case USE:\n jj_consume_token(USE);\n break;\n case USEDIN:\n jj_consume_token(USEDIN);\n break;\n case VALUE:\n jj_consume_token(VALUE);\n break;\n case VALUE_IN:\n jj_consume_token(VALUE_IN);\n break;\n case VALUE_UNIQUE:\n jj_consume_token(VALUE_UNIQUE);\n break;\n case VAR:\n jj_consume_token(VAR);\n break;\n case VIEW:\n jj_consume_token(VIEW);\n break;\n case WITH:\n jj_consume_token(WITH);\n break;\n case WHERE:\n jj_consume_token(WHERE);\n break;\n case WHILE:\n jj_consume_token(WHILE);\n break;\n case XOR:\n jj_consume_token(XOR);\n break;\n case BINARY_LITERAL:\n jj_consume_token(BINARY_LITERAL);\n break;\n case ENCODED_STRING_LITERAL:\n jj_consume_token(ENCODED_STRING_LITERAL);\n break;\n case INTEGER_LITERAL:\n jj_consume_token(INTEGER_LITERAL);\n break;\n case REAL_LITERAL:\n jj_consume_token(REAL_LITERAL);\n break;\n case SIMPLE_ID:\n jj_consume_token(SIMPLE_ID);\n break;\n case SIMPLE_STRING_LITERAL:\n jj_consume_token(SIMPLE_STRING_LITERAL);\n break;\n case BIT:\n jj_consume_token(BIT);\n break;\n case DIGIT:\n jj_consume_token(DIGIT);\n break;\n case DIGITS:\n jj_consume_token(DIGITS);\n break;\n case ENCODED_CHARACTER:\n jj_consume_token(ENCODED_CHARACTER);\n break;\n case HEX_DIGIT:\n jj_consume_token(HEX_DIGIT);\n break;\n case LETTER:\n jj_consume_token(LETTER);\n break;\n case NOT_PAREN_STAR_QUOTE_SPECIAL:\n jj_consume_token(NOT_PAREN_STAR_QUOTE_SPECIAL);\n break;\n case NOT_QUOTE:\n jj_consume_token(NOT_QUOTE);\n break;\n case OCTET:\n jj_consume_token(OCTET);\n break;\n case SIGN:\n jj_consume_token(SIGN);\n break;\n default:\n jj_la1[169] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n//\t\tSystem.out.println(\"ERROR: garbage between schemas\");\n if (recoverToTheNextSchema(null) < 0) {if (true) return;}\n }", "title": "" }, { "docid": "9249ff074641abd08a131af96e46d8ce", "score": "0.53444", "text": "public regExpGrammar2(regExpGrammar2TokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 9; i++) jj_la1[i] = -1;\n }", "title": "" }, { "docid": "e89ab85d242cc996ca40407c003f20b6", "score": "0.5322841", "text": "public interface AtrParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMMENT = 6;\n /** RegularExpression Id. */\n int ATR = 8;\n /** RegularExpression Id. */\n int COLON = 9;\n /** RegularExpression Id. */\n int OPT = 10;\n /** RegularExpression Id. */\n int FUNCNAME = 11;\n /** RegularExpression Id. */\n int CASTSHADOW = 12;\n /** RegularExpression Id. */\n int RECEIVESHADOW = 13;\n /** RegularExpression Id. */\n int CELLLOOKEDGE = 14;\n /** RegularExpression Id. */\n int CELLLOOKSPECULAR = 15;\n /** RegularExpression Id. */\n int EDGECANCEL = 16;\n /** RegularExpression Id. */\n int EMITTION = 17;\n /** RegularExpression Id. */\n int EMPHASIS = 18;\n /** RegularExpression Id. */\n int DRAW = 19;\n /** RegularExpression Id. */\n int RATE = 20;\n /** RegularExpression Id. */\n int SHADER = 21;\n /** RegularExpression Id. */\n int NUM = 22;\n /** RegularExpression Id. */\n int NAME = 23;\n /** RegularExpression Id. */\n int BLOCK_START = 24;\n /** RegularExpression Id. */\n int BLOCK_END = 25;\n /** RegularExpression Id. */\n int DATA_START = 26;\n /** RegularExpression Id. */\n int DATA_END = 27;\n /** RegularExpression Id. */\n int DQ = 28;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int COMMENT_TEXT = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"/*\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 7>\",\n \"\\\"atr\\\"\",\n \"\\\":\\\"\",\n \"\\\"opt\\\"\",\n \"<FUNCNAME>\",\n \"\\\"castshadow\\\"\",\n \"\\\"receiveshadow\\\"\",\n \"\\\"celllookedge\\\"\",\n \"\\\"celllookspecular\\\"\",\n \"\\\"edgecancel\\\"\",\n \"\\\"emittion\\\"\",\n \"\\\"emphasis\\\"\",\n \"\\\"draw\\\"\",\n \"\\\"rate\\\"\",\n \"\\\"shader\\\"\",\n \"<NUM>\",\n \"<NAME>\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n };\n\n}", "title": "" }, { "docid": "4e3d69ec8d4a80155fad31469a605db6", "score": "0.5314036", "text": "public interface Tokens {\r\n /* terminals */\r\n public static final int NUMInt = 3;\r\n public static final int FUNCTION = 23;\r\n public static final int ASTERISK = 8;\r\n public static final int STR = 40;\r\n public static final int SLASH = 12;\r\n public static final int LESS_THAN_OR_EQUAL = 20;\r\n public static final int DOUBLE_AMPERSAND = 19;\r\n public static final int SEMICOLON = 14;\r\n public static final int DEFINED = 31;\r\n public static final int COMMA = 25;\r\n public static final int TBOOL = 33;\r\n public static final int RIGHT_PARENTHESIS = 7;\r\n public static final int QUESTION_MARK = 21;\r\n public static final int NUM = 2;\r\n public static final int IF = 38;\r\n public static final int LEFT_CURLY_BRACKET = 15;\r\n public static final int ID = 4;\r\n public static final int EOF = 0;\r\n public static final int RETURN = 24;\r\n public static final int TRUE = 16;\r\n public static final int error = 1;\r\n public static final int TSTR = 36;\r\n public static final int VOID = 32;\r\n public static final int TINT = 34;\r\n public static final int COLON = 22;\r\n public static final int PLUS_SIGN = 11;\r\n public static final int ELSE = 37;\r\n public static final int SKIP = 27;\r\n public static final int WHILE = 28;\r\n public static final int THEN = 10;\r\n public static final int HYPHEN_MINUS = 13;\r\n public static final int TNUM = 35;\r\n public static final int EQUALS_SIGN = 17;\r\n public static final int EXCLAMATION_MARK = 5;\r\n public static final int FALSE = 9;\r\n public static final int RIGHT_CURLY_BRACKET = 18;\r\n public static final int PRINT = 29;\r\n public static final int LENGTH = 30;\r\n public static final int LEFT_PARENTHESIS = 6;\r\n public static final int DO = 26;\r\n public static final int DOUBLE_EQUALS_SIGN = 39;\r\n}", "title": "" }, { "docid": "d952f11755743bd9643a80fd0a433ab3", "score": "0.53138864", "text": "private int yyr21() {\n {\n yyrv = new AssignmentNode((ReferenceNode)((DeclarationNode)yysv[yysp-3]).evaluate(), (ParseNode)yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return 2;\n }", "title": "" }, { "docid": "40667c8c9b839111b2f79509c069a0a8", "score": "0.5296606", "text": "public interface Parser {\n Object parse(TokenStream tokens);\n}", "title": "" }, { "docid": "582b692b108bdd87671079c517e13149", "score": "0.529558", "text": "@Override\n public Integer visitBeginend(ExprGrammarFileParser.BeginendContext ctx) {\n\n //Assembly translation for Begin End\n visit(ctx.opt_stmts());\n return 0;\n }", "title": "" }, { "docid": "665e19014c084390c0898e1a7ef75487", "score": "0.52868056", "text": "@Override\n\tpublic void visit(MetaAndPEG n) {\n\t}", "title": "" }, { "docid": "1cf59e567ea748f14a0491e8a2211250", "score": "0.5280662", "text": "@Test(timeout = 4000)\n public void test102() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"dz_I<;3H0=nEr1\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n xPathLexer0.identifierOrOperatorName();\n xPathLexer0.getPreviousToken();\n xPathLexer0.isIdentifierStartChar('f');\n Token token1 = xPathLexer0.and();\n assertNull(token1);\n }", "title": "" }, { "docid": "df95833018cf3940606100d241c928aa", "score": "0.5260635", "text": "private Node parseStatement() {\r\n\t\ttry {\r\n\t\t\ttokenList.get(gCurrentIndex);\r\n\t\t} catch (IndexOutOfBoundsException e) { //if no tokens are remaining print error\r\n\t\t\tSystem.out.println(e);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\tToken currentToken = tokenList.get(gCurrentIndex); //get the current Token\r\n\t\tNode currentNode = new Node(new Token(\"statement\", \"statement\"));\r\n\t\t\r\n\t\tif (currentToken.getKind().equals(\"variable\")) { //IDENTIFIER = <expression>\r\n\t\t\ttry {\r\n\t\t\t\tgCurrentIndex ++; //increment since terminal = to be added\r\n\t\t\t\tToken secondToken = tokenList.get(gCurrentIndex);\r\n\t\t\t\tgCurrentIndex ++; //increment to see if expression exists \r\n\t\t\t\tToken thirdToken = tokenList.get(gCurrentIndex);\r\n\t\t\t\tif (secondToken.getKind().equals(\"=\")) {\r\n\t\t\t\t\tcurrentNode.setFirst(new Node(currentToken));\r\n\t\t\t\t\tcurrentNode.setSecond(new Node(secondToken));\r\n\t\t\t\t\tcurrentNode.setThird(parseExpression());\r\n\t\t\t\t} else\r\n\t\t\t\t\tprintError(\"Expression parsing error: variable not followed by an = and an expression: \" +\r\n\t\t\t\tcurrentToken.toString() + \" at Index: \" + gCurrentIndex);\r\n\t\t\t}\r\n\t\t\tcatch (IndexOutOfBoundsException e) {\r\n\t\t\t\tprintError(\"Expression parsing error: variable not followed by an = and an expression: \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if (currentToken.getDetails().equals(\"msg\")) { // <statement> -> message STRING\r\n\t\t\tgCurrentIndex ++;\r\n\t\t\tToken secondToken = tokenList.get(gCurrentIndex);\r\n\t\t\tgCurrentIndex ++; //increment second time since terminal msg and strings added\r\n\t\t\tcurrentNode.setFirst(new Node(currentToken));\r\n\t\t\tif (!secondToken.getKind().equals(\"string\")) {\r\n\t\t\t\tprintError (\"msg followed by a \" + secondToken.getKind()\r\n\t\t\t\t\t\t\t\t\t\t\t+ \" token instead of a string\");\r\n\t\t\t}\r\n\t\t\tcurrentNode.setSecond(new Node(secondToken));\r\n\t\t} else if (currentToken.getDetails().equals(\"print\")\r\n\t\t\t\t|| currentToken.getDetails().equals(\"show\")) { //<statement> -> print <expression\r\n\t\t\tcurrentNode.setFirst(new Node(currentToken));\r\n\t\t\tgCurrentIndex ++; //increment index terminal print added\r\n\t\t\tcurrentNode.setSecond(parseExpression());\r\n\t\t} else if (currentToken.getDetails().equals(\"newline\")) { //<statement> -> newline\r\n\t\t\tcurrentNode.setFirst(new Node(currentToken));\r\n\t\t\tgCurrentIndex ++; //increment index terminal newline added\r\n\t\t} else if (currentToken.getDetails().equals(\"input\")) { //<statement> -> input STRING IDENTIFIER\r\n\t\t\tcurrentNode.setFirst(new Node(currentToken));\r\n\t\t\tgCurrentIndex ++; //increment terminal input added as first Child\r\n\t\t\ttry {\r\n\t\t\t\tif( tokenList.get(gCurrentIndex).getKind().equals(\"string\")) {\r\n\t\t\t\t\tcurrentNode.setSecond(new Node(tokenList.get(gCurrentIndex)));\r\n\t\t\t\t\tgCurrentIndex ++; // terminal string added as second Child\r\n\t\t\t\t\tif(tokenList.get(gCurrentIndex).getKind().equals(\"variable\")) {\r\n\t\t\t\t\t\tcurrentNode.setThird(new Node (tokenList.get(gCurrentIndex)));\r\n\t\t\t\t\t\tgCurrentIndex ++; //added a terminal variable token\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t\tprintError(\"input prompt was not followed by an indentifier\");\r\n\t\t\t\t}\r\n\t\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\t\tprintError(\"Input token not followed by a string and identifier\");\r\n\t\t\t}\r\n\t \t} else { //error\r\n\t\tprintError(\"Invalid token during parseStatement() phase: \" + currentToken.toString() + \" index: \" + gCurrentIndex +\r\n\t\t\t\t\" next token is \" + tokenList.get(gCurrentIndex + 1).toString());\r\n\t \t}\r\n\t\treturn currentNode;\r\n\t}", "title": "" }, { "docid": "ccd5e005f53019bb11a9bf95d957d6b4", "score": "0.5238776", "text": "private int yyr34() {\n {\n yyrv = new BinaryOperationNode((ParseNode)yysv[yysp-3], \">\", (ParseNode) yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return yyprelational();\n }", "title": "" }, { "docid": "e206b9152f242515e9174a9fbc7c07e5", "score": "0.5236464", "text": "@Override\n\tpublic void visit(MetaTyChar n) {\n\t}", "title": "" }, { "docid": "75beff782616b34b20917f710a22f278", "score": "0.52343744", "text": "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SPACE = 1;\n /** RegularExpression Id. */\n int PAR = 2;\n /** RegularExpression Id. */\n int NUMBER = 3;\n /** RegularExpression Id. */\n int WHILE = 4;\n /** RegularExpression Id. */\n int DO = 5;\n /** RegularExpression Id. */\n int OD = 6;\n /** RegularExpression Id. */\n int END = 7;\n /** RegularExpression Id. */\n int PLUS = 8;\n /** RegularExpression Id. */\n int MINUS = 9;\n /** RegularExpression Id. */\n int MULT = 10;\n /** RegularExpression Id. */\n int EQ = 11;\n /** RegularExpression Id. */\n int NEQ = 12;\n /** RegularExpression Id. */\n int LT = 13;\n /** RegularExpression Id. */\n int LE = 14;\n /** RegularExpression Id. */\n int GT = 15;\n /** RegularExpression Id. */\n int GE = 16;\n /** RegularExpression Id. */\n int LPAREN = 17;\n /** RegularExpression Id. */\n int RPAREN = 18;\n /** RegularExpression Id. */\n int LBRACKET = 19;\n /** RegularExpression Id. */\n int RBRACKET = 20;\n /** RegularExpression Id. */\n int LBRACE = 21;\n /** RegularExpression Id. */\n int RBRACE = 22;\n /** RegularExpression Id. */\n int COMMA = 23;\n /** RegularExpression Id. */\n int SEMICOLON = 24;\n /** RegularExpression Id. */\n int COLON = 25;\n /** RegularExpression Id. */\n int PERIOD = 26;\n /** RegularExpression Id. */\n int ASSIGN = 27;\n /** RegularExpression Id. */\n int AND = 28;\n /** RegularExpression Id. */\n int VAR = 29;\n /** RegularExpression Id. */\n int IF = 30;\n /** RegularExpression Id. */\n int FI = 31;\n /** RegularExpression Id. */\n int THEN = 32;\n /** RegularExpression Id. */\n int ELSE = 33;\n /** RegularExpression Id. */\n int NOP = 34;\n /** RegularExpression Id. */\n int NOT = 35;\n /** RegularExpression Id. */\n int REMOVE = 36;\n /** RegularExpression Id. */\n int SK = 37;\n /** RegularExpression Id. */\n int PROC = 38;\n /** RegularExpression Id. */\n int FUNC = 39;\n /** RegularExpression Id. */\n int IS = 40;\n /** RegularExpression Id. */\n int RETURN = 41;\n /** RegularExpression Id. */\n int CALL = 42;\n /** RegularExpression Id. */\n int BEGIN = 43;\n /** RegularExpression Id. */\n int PARALLEL = 44;\n /** RegularExpression Id. */\n int RAP = 45;\n /** RegularExpression Id. */\n int PN = 46;\n /** RegularExpression Id. */\n int FN = 47;\n /** RegularExpression Id. */\n int VARIABLE = 48;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<SPACE>\",\n \"\\\"par\\\"\",\n \"<NUMBER>\",\n \"\\\"while\\\"\",\n \"\\\"do\\\"\",\n \"\\\"od\\\"\",\n \"\\\"end\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"=\\\"\",\n \"\\\"<>\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\",\\\"\",\n \"\\\";\\\"\",\n \"\\\":\\\"\",\n \"\\\".\\\"\",\n \"\\\":=\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"var\\\"\",\n \"\\\"if\\\"\",\n \"\\\"fi\\\"\",\n \"\\\"then\\\"\",\n \"\\\"else\\\"\",\n \"\\\"nop\\\"\",\n \"\\\"!\\\"\",\n \"\\\"remove\\\"\",\n \"\\\"skip\\\"\",\n \"\\\"proc\\\"\",\n \"\\\"func\\\"\",\n \"\\\"is\\\"\",\n \"\\\"return\\\"\",\n \"\\\"call\\\"\",\n \"\\\"begin\\\"\",\n \"\\\"||\\\"\",\n \"\\\"rap\\\"\",\n \"<PN>\",\n \"<FN>\",\n \"<VARIABLE>\",\n };\n\n}", "title": "" }, { "docid": "0a5ecbdebf40a2f872e575b993896a6b", "score": "0.52002764", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\".8>dY4X{H2NflJBb\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(31, token0.getTokenType());\n assertEquals(\".8\", token0.getTokenText());\n \n Token token1 = xPathLexer0.relationalOperator();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n }", "title": "" }, { "docid": "4edb8d9ce35ae156b689b6ce82e03d37", "score": "0.51892954", "text": "@Override\n\tpublic void visit(MetaSeqPEG n) {\n\t}", "title": "" }, { "docid": "09222b8f00fc2b1e61b3d8419222c0a4", "score": "0.518539", "text": "private int yyr24() {\n {\n yyrv = new BinaryOperationNode((ParseNode)yysv[yysp-3], \"-\", (ParseNode) yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "c4b55630c61e2c9aca0bb3bf7e083f6a", "score": "0.5183449", "text": "private int yyr23() {\n {\n yyrv = new BinaryOperationNode((ParseNode)yysv[yysp-3], \"+\", (ParseNode) yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "5f5ab5a4e2336d5122f2728b6760988a", "score": "0.5156982", "text": "@Override\n\tpublic void visitDeclaration(Declaration node) {\n\n\t}", "title": "" }, { "docid": "918dc54a9361c69f5f14c93567308849", "score": "0.51542056", "text": "private int yyr20() {\n {\n yyrv = new AssignmentNode((ReferenceNode)yysv[yysp-3], (ParseNode)yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return 2;\n }", "title": "" }, { "docid": "13cd7436d7df762b88792ca56c81e953", "score": "0.51535076", "text": "private int yyr30() {\n {\n yyrv = new BinaryOperationNode((ParseNode)yysv[yysp-3], \"==\", (ParseNode) yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return 4;\n }", "title": "" }, { "docid": "6264acc2285335a209c8ca68ff3ba34e", "score": "0.5152156", "text": "public R visit(MoveStmt n) {\n R _ret=null;\n n.f0.accept(this);\n String s1 = (String)n.f1.accept(this);\n coming_from_label=0;\n mov_d = s1;\n //System.out.println(\"check \"+s1);\n String s2 = (String)n.f2.accept(this);\n String first = new String();\n if(s2!=null)\n \t first = (String) s2.subSequence(0, 1);\n \n if(coming_from_op==0)\n {\n\t if(coming_from_label==0)\n\t {\n\t \t if((!first.startsWith(\"0\")) && (!first.startsWith(\"1\")) && (!first.startsWith(\"2\")) && (!first.startsWith(\"3\")) && (!first.startsWith(\"4\")) && (!first.startsWith(\"5\")) && (!first.startsWith(\"6\")) && (!first.startsWith(\"7\")) && (!first.startsWith(\"8\")) && (!first.startsWith(\"9\")))\n\t \t \tSystem.out.println(\"move \"+s1+\" \"+s2);\n\t \t else\n\t \t\t System.out.println(\"li \"+s1+\" \"+s2);\n\t }\n\t else if(coming_from_label==1)\n\t {\n\t \t coming_from_label=1;\n\t \t System.out.println(\"la \"+s1+\" \"+s2);\n\t }\n }\n coming_from_op=0;\n return _ret;\n }", "title": "" }, { "docid": "234f4e717d7a2c42a7510408079f26ac", "score": "0.51406306", "text": "private int yyr36() {\n {\n yyrv = new BinaryOperationNode((ParseNode)yysv[yysp-3], \">=\", (ParseNode) yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return yyprelational();\n }", "title": "" }, { "docid": "af2a8bf10cdb5f89badc54a834ec19df", "score": "0.51387656", "text": "public interface Grammar\n{\n\n\t/**\n\t * Checks whether the token is a delimiter or not.\n\t * \n\t * @param token the token\n\t * @return <code>true</code> if the token is delimiter <code>false</code> otherwise.\n\t */\n\tboolean isDelimiter(ExpressionToken token);\n\n\t/**\n\t * Checks whether the token is a delimiter or not.\n\t * \n\t * @param token the token\n\t * @return <code>true</code> if the token is delimiter <code>false</code> otherwise.\n\t */\n\tboolean isDelimiter(String token);\n\n\t/**\n\t * Checks whether the given token is approachable using any of the pattern\n\t * or not.\n\t * \n\t * Given token can be partially or fully constructed token during\n\t * parsing process. Parser generally calls this method to check whether the\n\t * current token can be combined with next character of expression to form\n\t * some meaningful token or not. If not, then it utilize the existing\n\t * collected characters as one token, otherwise it keep collecting\n\t * characters.\n\t * \n\t * @param token the token, partially or full constructed, to check whether\n\t * it can approach to any expression token pattern or not.\n\t * @return <code>true</code> if the token pattern is approachable <code>false</code> otherwise.\n\t */\n\tboolean isApproachable(String token);\n\n\t/**\n\t * Checks whether the token is allowed or not.\n\t * \n\t * A token is fully constructed token. Parser generally calls this method to\n\t * check whether the current token is a valid token as per the production\n\t * rules or not.\n\t * \n\t * @param token the token which is to be checked for its validity\n\t * @return <code>true</code> if the token is allowed <code>false</code> otherwise.\n\t */\n\tboolean isAllowed(String token);\n\n\t/**\n\t * Checks whether the given token is an operator or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token is an operator <code>false</code> otherwise\n\t */\n\tboolean isOperator(ExpressionToken token);\n\n\t/**\n\t * Checks whether the given token is an operator or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token is an operator <code>false</code> otherwise\n\t */\n\tboolean isOperator(String token);\n\n\t/**\n\t * Checks whether the token is an function or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token is an function <code>false</code> otherwise\n\t */\n\tboolean isFunction(ExpressionToken token);\n\n\t/**\n\t * Checks whether the token is an function or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token is an function <code>false</code> otherwise\n\t */\n\tboolean isFunction(String token);\n\n\t/**\n\t * Use this method to add any function identification to the grammar.\n\t * \n\t * Grammar implementation will generally load the function identification itself from some configuration file. Like,\n\t * in case of DefaultXMLGrammar implementation, it is loaded from grammar.xml. However, developer may opt to add\n\t * functions using API also.\n\t * \n\t * @param functionName name of the function to add\n\t */\n\tvoid addFunction(String functionName);\n\n\t/**\n\t * Checks whether the given token is a binary operator or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token is a binary operator <code>false</code> otherwise\n\t */\n\tboolean isBinaryOperator(ExpressionToken token);\n\n\t/**\n\t * Checks whether the given token is a binary operator or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token is a binary operator <code>false</code> otherwise\n\t */\n\tboolean isBinaryOperator(String token);\n\n\t/**\n\t * Checks whether the given operator is a unary operator or not.\n\t * \n\t * @param operator the operator to check\n\t * @return <code>true</code> if the operator is used as unary operator <code>false</code> otherwise.\n\t */\n\tboolean isUnary(ExpressionToken operator);\n\n\t/**\n\t * Checks whether the given operator is a unary operator or not.\n\t * \n\t * @param operator the operator to check\n\t * @return <code>true</code> if the operator is used as unary operator <code>false</code> otherwise.\n\t */\n\tboolean isUnary(String operator);\n\n\t/**\n\t * Gets the precedence order of the given operator\n\t * \n\t * @param operator the operator to check for precedence\n\t * @param isUnary true if the operator is unary, as an operator can behave\n\t * either as unary or as binary\n\t * @return the precedence order of the operator\n\t */\n\tint getPrecedenceOrder(ExpressionToken operator, boolean isUnary);\n\n\t/**\n\t * Gets the precedence order of the given operator\n\t * \n\t * @param operator the operator to check for precedence\n\t * @param isUnary true if the operator is unary, as an operator can behave\n\t * either as unary or as binary\n\t * @return the precedence order of the operator\n\t */\n\tint getPrecedenceOrder(String operator, boolean isUnary);\n\n\t/**\n\t * Checks whether the token is a left bracket or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token can be used as left bracket <code>false</code> otherwise.\n\t */\n\tboolean isLeftBracket(ExpressionToken token);\n\n\t/**\n\t * Checks whether the token is a left bracket or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token can be used as left bracket <code>false</code> otherwise.\n\t */\n\tboolean isLeftBracket(String token);\n\n\t/**\n\t * Checks whether the token is a right bracket or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token can be used as right bracket <code>false</code> otherwise.\n\t */\n\tboolean isRightBracket(ExpressionToken token);\n\n\t/**\n\t * Checks whether the token is a right bracket or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token can be used as right bracket <code>false</code> otherwise.\n\t */\n\tboolean isRightBracket(String token);\n\n\t/**\n\t * Check whether the given token is a bracket or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token is a bracket <code>false</code> otherwise\n\t */\n\tboolean isBracket(ExpressionToken token);\n\n\t/**\n\t * Check whether the given token is a bracket or not.\n\t * \n\t * @param token the token to check\n\t * @return <code>true</code> if the token is a bracket <code>false</code> otherwise\n\t */\n\tboolean isBracket(String token);\n\n\t/**\n\t * Returns the opposite bracket for the given bracket.\n\t * \n\t * @param bracket the bracket for which we need to find the opposite bracket\n\t * @return the opposite part of bracket w.r.t given bracket\n\t */\n\tString getOppositeBracket(String bracket);\n\n\t/**\n\t * Checks whether to ignore the blanks in expression or not. It tells the\n\t * parser whether to exclude the extra blanks while parsing or not.\n\t * \n\t * @return <code>true</code> if parser wants to exclude the blanks <code>false</code> otherwise.\n\t */\n\tboolean isIgnoreBlank();\n}", "title": "" }, { "docid": "c1202395912f4456b7d485011624f41f", "score": "0.510887", "text": "public interface PersonParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SPACE = 1;\n /** RegularExpression Id. */\n int PERSON = 2;\n /** RegularExpression Id. */\n int LP = 3;\n /** RegularExpression Id. */\n int RP = 4;\n /** RegularExpression Id. */\n int COMMA = 5;\n /** RegularExpression Id. */\n int LB = 6;\n /** RegularExpression Id. */\n int RB = 7;\n /** RegularExpression Id. */\n int SEMI = 8;\n /** RegularExpression Id. */\n int MISS = 9;\n /** RegularExpression Id. */\n int MRS = 10;\n /** RegularExpression Id. */\n int MS = 11;\n /** RegularExpression Id. */\n int DR = 12;\n /** RegularExpression Id. */\n int MADAM = 13;\n /** RegularExpression Id. */\n int MR = 14;\n /** RegularExpression Id. */\n int SIR = 15;\n /** RegularExpression Id. */\n int MALE = 16;\n /** RegularExpression Id. */\n int FEMALE = 17;\n /** RegularExpression Id. */\n int DIGIT = 18;\n /** RegularExpression Id. */\n int DIGIT_3 = 19;\n /** RegularExpression Id. */\n int PHONE_7 = 20;\n /** RegularExpression Id. */\n int PHONE_10 = 21;\n /** RegularExpression Id. */\n int NUMBER = 22;\n /** RegularExpression Id. */\n int LETTER = 23;\n /** RegularExpression Id. */\n int LETTER_OR_WHITESPACE = 24;\n /** RegularExpression Id. */\n int WORD = 25;\n /** RegularExpression Id. */\n int NAME = 26;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<SPACE>\",\n \"\\\"Person\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\",\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\";\\\"\",\n \"\\\"Miss\\\"\",\n \"\\\"Mrs\\\"\",\n \"\\\"Ms\\\"\",\n \"\\\"Dr\\\"\",\n \"\\\"Madam\\\"\",\n \"\\\"Mr\\\"\",\n \"\\\"Sir\\\"\",\n \"\\\"M\\\"\",\n \"\\\"F\\\"\",\n \"<DIGIT>\",\n \"<DIGIT_3>\",\n \"<PHONE_7>\",\n \"<PHONE_10>\",\n \"<NUMBER>\",\n \"<LETTER>\",\n \"<LETTER_OR_WHITESPACE>\",\n \"<WORD>\",\n \"<NAME>\",\n };\n\n}", "title": "" }, { "docid": "a6d8d3f18b2be85c1ed3f9269bd2a67a", "score": "0.5106592", "text": "@Test\n public void testVarDecl3()\n {\n StringReader sr = new StringReader(\n \"var var = \\\"var\\\" + var();\"\n );\n JavaParser ip = new JavaParser(sr);\n ip.parseStatement();\n }", "title": "" }, { "docid": "7f62e2a91bc79211d8073eeee66c1250", "score": "0.50902164", "text": "public interface End extends UnaryExpression {\n}", "title": "" }, { "docid": "7e6f3efec7e8545ffac14b6296af6b8f", "score": "0.5081523", "text": "public static void main(String[] args) throws RecognitionException {\n \n ANTLRFileStream input = null;\n RUSTWITHRULESLexer lexer;\n CommonTokenStream tokens;\n RUSTWITHRULESParser parser;\n \n\t\ttry\n {\n\t\t\t/*************************************************************************************/\n\t\t\t// EXEMPLES RUST (doit marcher en assembleur)\n\t\t\t// MARCHE\n\t\t\t// doit afficher +5+385\n\t\t\tinput = new ANTLRFileStream(\"SourceCodeAssemblyExamples/ex1.rs\");\n\t\t\t// MARCHE\n\t\t\t// doit afficher +27+120\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyExamples/ex2.rs\");\n\t\t\t// MARCHE\n\t\t\t// doit afficher +144\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyExamples/ex3.rs\");\n\t\t\t// /!\\ NE MARCHE PAS /!\\\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyExamples/ex4.rs\");\n\t\t\t/*************************************************************************************/\n\t\t\t//DEMO PERSO\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/struct\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/ptr\");\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/vec_struct.rs\");\n\n\n\t\t\t// TEST POUR ASSEMBLEUR (a verifier que ca marche en + des exemples rust) -> pour le moment les 5 marchent\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/Simple_1_Complete.rs\");\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/Simple_1_While_test.rs\");\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/Simple_1_Mult_test.rs\");\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/Simple_1_Aff_test.rs\");\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/Simple_5.rs\");\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/Simple_ptr.rs\");\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/Simple_str.rs\");\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/vec2.rs\");\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/arg_vec.rs\");\n\t\t\t//input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/length.rs\");\n //input = new ANTLRFileStream(\"SourceCodeAssemblyTestsBase/Complicated_str.rs\");\n\n\n\n\t\t\t// FICHIERS QUI DOIVENT MARCHER\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeValidated/ex1Upgraded.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeValidated/funCallTest.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/vec.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/return_vec.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/arg_vec.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/vec2.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/bracket.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/bracket_2.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/vec_struct.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/ex3.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/oppose_bool.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/oppose.rs\");\n\n\t\t\t// FICHIER QUI DOIVENT LEVER UNE OU DES ERREURS\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_vec.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_arg_vec.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_return_vec.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_oppose_bool.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_oppose.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/struct_simple.rs\");\n //input = new ANTLRFileStream(\"sourceCodeDetectedError/testProgWithoutMain.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testError2FunDecl.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorNonMutableAff.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorTypeAff.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorTypeAffExpression.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorIncorrectWhilePredicat.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorIncorrectIfPredicat.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorPrintNull.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorAffectationUndeclaredValue.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorUndeclaredFunction.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorFunCallWithVarIdf.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorFunCallWithoutProperArgNumber.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorFunCallWithoutProperArgTypes.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/testErrorFunCallIncorrectReturnTypeAsReturnBloc.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_fun_struct_notgoodtype.rs\");\n\n //FICHIERS TESTS AURELIEN\n //COOL\n //input = new ANTLRFileStream(\"sourceCodeValidated/test_cool_struct.rs\");\n //input = new ANTLRFileStream(\"sourceCodeValidated/test_cool_access.rs\");\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeToValidate/ptr_test1.rs\");\n\n\t\t\t//ERREUR\n //input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_struct_nonmutaff.rs\");\n //input = new ANTLRFileStream(\"sourceCodeDetectedError/tets_error_struct_emptyfield.rs\");\n //input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_struct_badtype.rs\");\n //input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_access_norighttype.rs\");\n //input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_access_noexistent.rs\");\n //input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_access_noexistentfield.rs\");\n //input = new ANTLRFileStream(\"sourceCodeDetectedError/test_error_struct_recursivestructerror.rs\"); //3 lignes fausses !\n\t\t\t//input = new ANTLRFileStream(\"sourceCodeValidated/funCallStruct.rs\");\n\n\n\t lexer = new RUSTWITHRULESLexer(input);\n\t tokens = new CommonTokenStream(lexer);\n\t parser = new RUSTWITHRULESParser(tokens);\n\t // Analyse Semantique\n\t Main.syntaxicAnalysis(parser.fichier());\n\t\t}\n\t\tcatch (IOException e)\n {\n e.printStackTrace();\n }\n \n\n // If everything is OK while compiling\n System.exit(0);\n // If there is an error\n //System.exit(-1);\n }", "title": "" }, { "docid": "276145387042d3e0ea6565b320523193", "score": "0.5075107", "text": "@Test(timeout = 4000)\n public void test034() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":96L7XJ39p\");\n xPathLexer0.nextToken();\n xPathLexer0.star();\n xPathLexer0.number();\n xPathLexer0.consume();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "title": "" }, { "docid": "cb43fb2e34e20ef6fc63a07d3ca97fed", "score": "0.507146", "text": "private int yyr14() {\n { yyrv = addDeclaration(yysv[yysp-3], yysv[yysp-1]); }\n yysv[yysp-=3] = yyrv;\n return 72;\n }", "title": "" }, { "docid": "0d9efd11558b54425af73bf81d69bae4", "score": "0.505411", "text": "@Test(timeout = 4000)\n public void test002() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"FWs(bY1\");\n xPathLexer0.relationalOperator();\n Token token0 = xPathLexer0.comma();\n assertEquals(32, token0.getTokenType());\n assertEquals(\"F\", token0.getTokenText());\n \n Token token1 = xPathLexer0.literal();\n assertNull(token1);\n \n Token token2 = xPathLexer0.equals();\n assertEquals(21, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals((-1), token3.getTokenType());\n }", "title": "" }, { "docid": "304b0232283b86bec4e69b8309a6f664", "score": "0.50520873", "text": "private int yyr12() {\n { yyrv = new DeclarationNode((String) yysv[yysp-1], Type.INTEGER); }\n yysv[yysp-=2] = yyrv;\n return yypdeclaration();\n }", "title": "" }, { "docid": "04922d93d8b9cd0f471d93bbdbbece83", "score": "0.5051288", "text": "public void toGrammar() {\n System.out.print(\"<arithmetic_expression> -> \"); // printed here b/c it will always be printed\n switch (type) {\n case 0:\n System.out.println(\"id\");\n printContents();\n break;\n case 1:\n System.out.println(\"literal_integer\");\n printContents();\n break;\n case 2:\n System.out.println(\"<binary_expression>\");\n binary.toGrammar();\n break;\n default:\n System.out.println(\"Failed to get grammar\");\n }\n\n }", "title": "" }, { "docid": "8c72d027c4e38f86642e6a39f11fda1d", "score": "0.5045671", "text": "@Override\n\tpublic void visit(MetaRulePEG n) {\n\t}", "title": "" }, { "docid": "22bf7173f84dcc7c241fc94ccb75eb41", "score": "0.5040546", "text": "@Override\n\tpublic void visit(MetaAnyPEG n) {\n\t}", "title": "" }, { "docid": "3de6c394b0e6714e7c60a501040123df", "score": "0.5040362", "text": "@Override\n\tpublic void visit(TyLang n) {\n\t}", "title": "" }, { "docid": "888f61f0843095293b382a5c12262db4", "score": "0.50336695", "text": "private void parseLiteral() {\r\n \t\t\r\n \t}", "title": "" }, { "docid": "dbc9a2979a39f3b5d263a30bed04bb7a", "score": "0.5028342", "text": "private int yyr28() {\n {\n yyrv = new BinaryOperationNode((ParseNode)yysv[yysp-3], \"**\", (ParseNode) yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return yypfactor();\n }", "title": "" }, { "docid": "48a1c7e36f83c8175a3e8b91840f1335", "score": "0.50188184", "text": "public interface PGNParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMMENT = 6;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int LINECOMMENT = 10;\n /** RegularExpression Id. */\n int STRLIT = 11;\n /** RegularExpression Id. */\n int INTEGER = 12;\n /** RegularExpression Id. */\n int PERIOD = 13;\n /** RegularExpression Id. */\n int LBRACKET = 14;\n /** RegularExpression Id. */\n int RBRACKET = 15;\n /** RegularExpression Id. */\n int OPAREN = 16;\n /** RegularExpression Id. */\n int CPAREN = 17;\n /** RegularExpression Id. */\n int GAMETERM = 18;\n /** RegularExpression Id. */\n int MOVE = 19;\n /** RegularExpression Id. */\n int TAGNAME = 20;\n /** RegularExpression Id. */\n int CASTLE = 21;\n /** RegularExpression Id. */\n int NAG = 22;\n /** RegularExpression Id. */\n int ANNOTATION = 23;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_COMMENT = 1;\n /** Lexical state. */\n int IN_SINGLE_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\r\\\\n\\\"\",\n \"\\\"{\\\"\",\n \"<COMMENT>\",\n \"\\\"}\\\"\",\n \"\\\";\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"<LINECOMMENT>\",\n \"<STRLIT>\",\n \"<INTEGER>\",\n \"\\\".\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"<GAMETERM>\",\n \"<MOVE>\",\n \"<TAGNAME>\",\n \"<CASTLE>\",\n \"<NAG>\",\n \"<ANNOTATION>\",\n };\n\n}", "title": "" }, { "docid": "a62aedc2cc3a9682e2f8d8e68888fe8d", "score": "0.50156987", "text": "public static void main(String[] args) {\n Parser<Token, NullCloneable, NullCloneable> p = statement();\n TokenTester<NullCloneable, NullCloneable> tt = new TokenTester<>(p);\n tt.setLogTestStrings(false);\n tt.test();\n }", "title": "" }, { "docid": "be1ea162de3376091915203e3c6f929c", "score": "0.5013744", "text": "public interface Jcc2ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 1;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 2;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 3;\n /** RegularExpression Id. */\n int CLASS = 9;\n /** RegularExpression Id. */\n int USE = 10;\n /** RegularExpression Id. */\n int LPAREN = 11;\n /** RegularExpression Id. */\n int RPAREN = 12;\n /** RegularExpression Id. */\n int LBRACE = 13;\n /** RegularExpression Id. */\n int RBRACE = 14;\n /** RegularExpression Id. */\n int LBRACKET = 15;\n /** RegularExpression Id. */\n int RBRACKET = 16;\n /** RegularExpression Id. */\n int SEMICOLON = 17;\n /** RegularExpression Id. */\n int COMMA = 18;\n /** RegularExpression Id. */\n int DOT = 19;\n /** RegularExpression Id. */\n int ASSIGN = 20;\n /** RegularExpression Id. */\n int GT = 21;\n /** RegularExpression Id. */\n int LT = 22;\n /** RegularExpression Id. */\n int BANG = 23;\n /** RegularExpression Id. */\n int TILDE = 24;\n /** RegularExpression Id. */\n int HOOK = 25;\n /** RegularExpression Id. */\n int COLON = 26;\n /** RegularExpression Id. */\n int EQ = 27;\n /** RegularExpression Id. */\n int LE = 28;\n /** RegularExpression Id. */\n int GE = 29;\n /** RegularExpression Id. */\n int NE = 30;\n /** RegularExpression Id. */\n int SC_OR = 31;\n /** RegularExpression Id. */\n int SC_AND = 32;\n /** RegularExpression Id. */\n int INCR = 33;\n /** RegularExpression Id. */\n int DECR = 34;\n /** RegularExpression Id. */\n int PLUS = 35;\n /** RegularExpression Id. */\n int MINUS = 36;\n /** RegularExpression Id. */\n int STAR = 37;\n /** RegularExpression Id. */\n int SLASH = 38;\n /** RegularExpression Id. */\n int BIT_AND = 39;\n /** RegularExpression Id. */\n int BIT_OR = 40;\n /** RegularExpression Id. */\n int XOR = 41;\n /** RegularExpression Id. */\n int REM = 42;\n /** RegularExpression Id. */\n int LSHIFT = 43;\n /** RegularExpression Id. */\n int RSIGNEDSHIFT = 44;\n /** RegularExpression Id. */\n int RUNSIGNEDSHIFT = 45;\n /** RegularExpression Id. */\n int PLUSASSIGN = 46;\n /** RegularExpression Id. */\n int MINUSASSIGN = 47;\n /** RegularExpression Id. */\n int STARASSIGN = 48;\n /** RegularExpression Id. */\n int SLASHASSIGN = 49;\n /** RegularExpression Id. */\n int ANDASSIGN = 50;\n /** RegularExpression Id. */\n int ORASSIGN = 51;\n /** RegularExpression Id. */\n int XORASSIGN = 52;\n /** RegularExpression Id. */\n int REMASSIGN = 53;\n /** RegularExpression Id. */\n int LSHIFTASSIGN = 54;\n /** RegularExpression Id. */\n int RSIGNEDSHIFTASSIGN = 55;\n /** RegularExpression Id. */\n int RUNSIGNEDSHIFTASSIGN = 56;\n /** RegularExpression Id. */\n int BOOLEAN = 57;\n /** RegularExpression Id. */\n int BREAK = 58;\n /** RegularExpression Id. */\n int BYTE = 59;\n /** RegularExpression Id. */\n int CASE = 60;\n /** RegularExpression Id. */\n int CHAR = 61;\n /** RegularExpression Id. */\n int CONTINUE = 62;\n /** RegularExpression Id. */\n int _DEFAULT = 63;\n /** RegularExpression Id. */\n int DO = 64;\n /** RegularExpression Id. */\n int DOUBLE = 65;\n /** RegularExpression Id. */\n int ELSE = 66;\n /** RegularExpression Id. */\n int FALSE = 67;\n /** RegularExpression Id. */\n int FLOAT = 68;\n /** RegularExpression Id. */\n int FOR = 69;\n /** RegularExpression Id. */\n int IF = 70;\n /** RegularExpression Id. */\n int INSTANCEOF = 71;\n /** RegularExpression Id. */\n int INT = 72;\n /** RegularExpression Id. */\n int LONG = 73;\n /** RegularExpression Id. */\n int NEW = 74;\n /** RegularExpression Id. */\n int NULL = 75;\n /** RegularExpression Id. */\n int RETURN = 76;\n /** RegularExpression Id. */\n int SHORT = 77;\n /** RegularExpression Id. */\n int STRING = 78;\n /** RegularExpression Id. */\n int TRUE = 79;\n /** RegularExpression Id. */\n int VOID = 80;\n /** RegularExpression Id. */\n int WHILE = 81;\n /** RegularExpression Id. */\n int EQUALS = 82;\n /** RegularExpression Id. */\n int IDENTIFIER = 83;\n /** RegularExpression Id. */\n int LETTER = 84;\n /** RegularExpression Id. */\n int DIGIT = 85;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 86;\n /** RegularExpression Id. */\n int DECIMAL_LITERAL = 87;\n /** RegularExpression Id. */\n int HEX_LITERAL = 88;\n /** RegularExpression Id. */\n int OCTAL_LITERAL = 89;\n /** RegularExpression Id. */\n int FLOATING_POINT_LITERAL = 90;\n /** RegularExpression Id. */\n int EXPONENT = 91;\n /** RegularExpression Id. */\n int CHARACTER_LITERAL = 92;\n /** RegularExpression Id. */\n int STRING_LITERAL = 93;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<SINGLE_LINE_COMMENT>\",\n \"<FORMAL_COMMENT>\",\n \"<MULTI_LINE_COMMENT>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"class\\\"\",\n \"\\\"use\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\"!\\\"\",\n \"\\\"~\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"||\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"&\\\"\",\n \"\\\"|\\\"\",\n \"\\\"^\\\"\",\n \"\\\"%\\\"\",\n \"\\\"<<\\\"\",\n \"\\\">>\\\"\",\n \"\\\">>>\\\"\",\n \"\\\"+=\\\"\",\n \"\\\"-=\\\"\",\n \"\\\"*=\\\"\",\n \"\\\"/=\\\"\",\n \"\\\"&=\\\"\",\n \"\\\"|=\\\"\",\n \"\\\"^=\\\"\",\n \"\\\"%=\\\"\",\n \"\\\"<<=\\\"\",\n \"\\\">>=\\\"\",\n \"\\\">>>=\\\"\",\n \"\\\"bool\\\"\",\n \"\\\"break\\\"\",\n \"\\\"byte\\\"\",\n \"\\\"case\\\"\",\n \"\\\"char\\\"\",\n \"\\\"continue\\\"\",\n \"\\\"default\\\"\",\n \"\\\"do\\\"\",\n \"\\\"double\\\"\",\n \"\\\"else\\\"\",\n \"\\\"false\\\"\",\n \"\\\"float\\\"\",\n \"\\\"for\\\"\",\n \"\\\"if\\\"\",\n \"\\\"instanceof\\\"\",\n \"\\\"int\\\"\",\n \"\\\"long\\\"\",\n \"\\\"new\\\"\",\n \"\\\"null\\\"\",\n \"\\\"return\\\"\",\n \"\\\"short\\\"\",\n \"\\\"string\\\"\",\n \"\\\"true\\\"\",\n \"\\\"void\\\"\",\n \"\\\"while\\\"\",\n \"\\\"equals\\\"\",\n \"<IDENTIFIER>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"<INTEGER_LITERAL>\",\n \"<DECIMAL_LITERAL>\",\n \"<HEX_LITERAL>\",\n \"<OCTAL_LITERAL>\",\n \"<FLOATING_POINT_LITERAL>\",\n \"<EXPONENT>\",\n \"<CHARACTER_LITERAL>\",\n \"<STRING_LITERAL>\",\n };\n\n}", "title": "" }, { "docid": "4ca85b606e7b199467091873063dbc17", "score": "0.50104076", "text": "@Override\n public Token next() throws IOException {\n\n String substr = source.substring(pos); \n\n if (substr.length() == 0) {\n return null;\n }\n\n int start = 0;\n int end = start;\n\n char startChar = substr.charAt(start);\n\n if (startChar == '\\n' || startChar == ' ') {\n pos++;\n return next();\n }\n\n // SYMBOL\n if (startChar == '-' || startChar == '+' || startChar == '=' || startChar == ';') {\n pos++;\n return new SymbolToken(startChar);\n }\n\n // STRING\n if (startChar == '\"') {\n // start quote is not a part of the string\n start++;\n end = start;\n\n while (substr.charAt(end) != '\"') {\n end++;\n\n if (end > (substr.length() - 1)) {\n throw new IOException(\"Error: Unclosed string\");\n }\n }\n\n // inclusive to exclusive (end char will be the end quote)\n String string = substr.substring(start, end);\n\n // position will be the current position plus the length of the string plus 1 to land on the next token type\n pos = pos + end + 1;\n\n return new StringToken(string);\n }\n\n // NAME\n if (Character.isLetter(startChar)) {\n while (Character.isLetter(substr.charAt(end)) || Character.isDigit(substr.charAt(end))) {\n end++; \n\n if (end > (substr.length() - 1)) {\n throw new IOException(\"Error: Invalid name\");\n }\n }\n\n String name = substr.substring(start, end);\n\n pos = pos + end;\n\n return new NameToken(name);\n }\n\n // NUMBER\n if (Character.isDigit(startChar) || startChar == '.') {\n // a double can only contain one decimal point\n int decimals = 0;\n\n if (startChar == '.') {\n decimals++;\n }\n\n while (Character.isDigit(substr.charAt(end)) || substr.charAt(end) == '.') {\n end++;\n\n if (substr.charAt(end) == '.') {\n decimals++;\n }\n\n if (end > (substr.length() - 1)) {\n throw new IOException(\"Error: Invalid number\");\n }\n }\n\n if (decimals > 1) {\n throw new IOException(\"Error: Invalid number\");\n }\n\n double number = Double.parseDouble(substr.substring(start, end));\n\n pos = pos + end;\n\n return new NumberToken(number);\n }\n\n throw new IOException(\"Syntax Error\");\n }", "title": "" }, { "docid": "0272b49267f5d8584b5b5836fb0bd72b", "score": "0.5007912", "text": "private MethodDeclarationParser() {\n super();\n }", "title": "" }, { "docid": "ba95a1dbaced5c7993f48782e2a2bbc6", "score": "0.50024045", "text": "@Override\n\tpublic void visit(MetaConstraintPEG n) {\n\n\t}", "title": "" }, { "docid": "ae0fd07a121987e7c688d7f1d11d4897", "score": "0.49995792", "text": "@Override\n\tpublic void visit(TyChar n) {\n\t}", "title": "" }, { "docid": "eb05cca2eb35345951167e4cb49d1063", "score": "0.4985726", "text": "@Override\n\tpublic void visit(MetaTyLang n) {\n\t}", "title": "" }, { "docid": "3d40b1c0655b3ebd60c1960174880ec5", "score": "0.49833825", "text": "private int yyr17() {\n {\n yyrv = new RecordDefinitionNode(yysv[yysp-3].toString(), (SymbolTable) yysv[yysp-2]);\n}\n yysv[yysp-=4] = yyrv;\n return 11;\n }", "title": "" }, { "docid": "959e5cce702d84db177c1afb15782a39", "score": "0.49778625", "text": "@Test \n public void testVarDecl2()\n {\n StringReader sr = new StringReader(\n \"String var = \\\"hello\\\";\"\n );\n JavaParser ip = new JavaParser(sr);\n ip.parseStatement();\n }", "title": "" }, { "docid": "217a65d9acf648378708df9a40d15181", "score": "0.49679866", "text": "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int EqNotEq = 10;\n /** RegularExpression Id. */\n int CADR = 13;\n /** RegularExpression Id. */\n int PRED = 14;\n /** RegularExpression Id. */\n int FUNVAR = 15;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"-\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"<EqNotEq>\",\n \"\\\"atom\\\"\",\n \"\\\"cons\\\"\",\n \"<CADR>\",\n \"<PRED>\",\n \"<FUNVAR>\",\n };\n\n}", "title": "" }, { "docid": "0d025df2ba7d1a8c36432070b2c78d62", "score": "0.49621534", "text": "@Test(timeout = 4000)\n public void test036() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"!<@Zi96SDu4kN!?U50\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(23, token0.getTokenType());\n assertEquals(\"!\", token0.getTokenText());\n \n XPathLexer xPathLexer1 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n \n XPathLexer xPathLexer2 = new XPathLexer(\"!<@Zi96SDu4kN!?U50\");\n Token token2 = xPathLexer2.literal();\n assertEquals(27, token2.getTokenType());\n assertNotNull(token2);\n assertEquals(\"<@Zi96SDu4kN\", token2.getTokenText());\n \n xPathLexer0.mod();\n xPathLexer0.or();\n Token token3 = xPathLexer2.whitespace();\n assertEquals((-2), token3.getTokenType());\n assertEquals(\"\", token3.getTokenText());\n }", "title": "" }, { "docid": "7b4d94ee6e1ce7dd592aef898c458f4e", "score": "0.49529257", "text": "@Test(timeout = 4000)\n public void test013() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"6_Rse<dmB\");\n xPathLexer0.plus();\n xPathLexer0.dots();\n xPathLexer0.getPreviousToken();\n xPathLexer0.or();\n xPathLexer0.not();\n xPathLexer0.and();\n xPathLexer0.star();\n xPathLexer0.nextToken();\n xPathLexer0.whitespace();\n xPathLexer0.div();\n xPathLexer0.nextToken();\n xPathLexer0.number();\n xPathLexer0.or();\n xPathLexer0.rightParen();\n xPathLexer0.nextToken();\n xPathLexer0.mod();\n xPathLexer0.number();\n xPathLexer0.or();\n xPathLexer0.and();\n xPathLexer0.equals();\n xPathLexer0.identifierOrOperatorName();\n xPathLexer0.div();\n xPathLexer0.nextToken();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "title": "" }, { "docid": "4c7f58be161df4d33b1ea4f3778e6fb0", "score": "0.4952862", "text": "private int yyr26() {\n {\n yyrv = new BinaryOperationNode((ParseNode)yysv[yysp-3], \"*\", (ParseNode) yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return yypterm();\n }", "title": "" }, { "docid": "fc973e9da562f42af5ec0ce608bb4830", "score": "0.49476716", "text": "public interface ShortAndIsh extends ASTNodeIsh {\n}", "title": "" }, { "docid": "28bf57036e61dc903ef2877430235a79", "score": "0.4947479", "text": "public int nextToken() throws IOException {\n super.nextToken();\n if (ttype == TT_WORD) {\n\tif (sval.equals(\"ifelse\")) {\n\t ttype = TT_IFELSE;\n\t} else if (Character.isUpperCase(sval.charAt(0))) {\n\t ttype = TT_VAR;\n\t} else {\n\t ttype = TT_FUN;\n\t}\n }\n return ttype;\n }", "title": "" }, { "docid": "1f67c544467ade601f948ef9e1c32667", "score": "0.4944384", "text": "public interface lexicoYconstantes {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int MODIFICADOR = 5;\n /** RegularExpression Id. */\n int CLASS = 6;\n /** RegularExpression Id. */\n int TIPODATO = 7;\n /** RegularExpression Id. */\n int IF = 8;\n /** RegularExpression Id. */\n int ELSE = 9;\n /** RegularExpression Id. */\n int ELSEIF = 10;\n /** RegularExpression Id. */\n int WHILE = 11;\n /** RegularExpression Id. */\n int EXPRESION_REGULAR = 12;\n /** RegularExpression Id. */\n int PARENTESISIZQUIERDO = 13;\n /** RegularExpression Id. */\n int PARENTESISDERECHO = 14;\n /** RegularExpression Id. */\n int LLAVEIZQUIERDA = 15;\n /** RegularExpression Id. */\n int LLAVEDERECHA = 16;\n /** RegularExpression Id. */\n int PUNTOYCOMA = 17;\n /** RegularExpression Id. */\n int COMILLASDOBLES = 18;\n /** RegularExpression Id. */\n int ASIGNACION = 19;\n /** RegularExpression Id. */\n int EXPRESION = 20;\n /** RegularExpression Id. */\n int MAS = 21;\n /** RegularExpression Id. */\n int MENOS = 22;\n /** RegularExpression Id. */\n int POR = 23;\n /** RegularExpression Id. */\n int ENTRE = 24;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 25;\n /** RegularExpression Id. */\n int BOOLEAN_LITERAL = 26;\n /** RegularExpression Id. */\n int DOUBLE_LITERAL = 27;\n /** RegularExpression Id. */\n int STRING_LITERAL = 28;\n /** RegularExpression Id. */\n int IDENTIFICADOR = 29;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<MODIFICADOR>\",\n \"\\\"class\\\"\",\n \"<TIPODATO>\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"else if\\\"\",\n \"\\\"while\\\"\",\n \"<EXPRESION_REGULAR>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\";\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"=\\\"\",\n \"<EXPRESION>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"<INTEGER_LITERAL>\",\n \"<BOOLEAN_LITERAL>\",\n \"<DOUBLE_LITERAL>\",\n \"<STRING_LITERAL>\",\n \"<IDENTIFICADOR>\",\n };\n\n}", "title": "" }, { "docid": "2f347de4ec6ba262eeca5067fa952020", "score": "0.49443096", "text": "public void visit(TyMetaExpr n) {\n\t}", "title": "" }, { "docid": "88b6e98ae669436631f50224480696f5", "score": "0.49414274", "text": "@Test(timeout = 4000)\n public void test113() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P:,.7{?xi [nKK8tz R\");\n xPathLexer0.consume();\n Token token0 = xPathLexer0.rightParen();\n token0.toString();\n xPathLexer0.setPreviousToken(token0);\n xPathLexer0.identifierOrOperatorName();\n Token token1 = xPathLexer0.mod();\n assertNull(token1);\n }", "title": "" }, { "docid": "2bece286daf1686acd58f451a0d97949", "score": "0.49395096", "text": "@Test\n public void testVarDecl1()\n {\n StringReader sr = new StringReader(\n \"var v = \\\"hello\\\";\"\n );\n JavaParser ip = new JavaParser(sr);\n ip.parseStatement();\n }", "title": "" }, { "docid": "a985318d08c941f3f1bda13c31a0cc13", "score": "0.49375567", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"cvF[vjL\");\n Token token0 = xPathLexer0.not();\n assertEquals(\"c\", token0.getTokenText());\n assertEquals(23, token0.getTokenType());\n \n xPathLexer0.mod();\n xPathLexer0.and();\n Token token1 = xPathLexer0.comma();\n xPathLexer0.or();\n token1.toString();\n token1.toString();\n Token token2 = xPathLexer0.minus();\n assertEquals(6, token2.getTokenType());\n assertEquals(\"F\", token2.getTokenText());\n \n token1.toString();\n Token token3 = xPathLexer0.doubleColon();\n assertEquals(\"[v\", token3.getTokenText());\n assertEquals(19, token3.getTokenType());\n \n token1.toString();\n xPathLexer0.div();\n String string0 = token1.toString();\n assertEquals(\"[ (32) (v)\", string0);\n \n xPathLexer0.setPreviousToken(token1);\n Token token4 = xPathLexer0.leftBracket();\n assertEquals(3, token4.getTokenType());\n assertEquals(\"j\", token4.getTokenText());\n \n Token token5 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"L\", token5.getTokenText());\n \n xPathLexer0.getXPath();\n Token token6 = xPathLexer0.at();\n assertEquals(16, token6.getTokenType());\n \n xPathLexer0.mod();\n Token token7 = xPathLexer0.pipe();\n assertEquals(17, token7.getTokenType());\n \n xPathLexer0.mod();\n xPathLexer0.identifierOrOperatorName();\n xPathLexer0.identifierOrOperatorName();\n Token token8 = xPathLexer0.dots();\n assertEquals(13, token8.getTokenType());\n \n Token token9 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token9.getTokenType());\n }", "title": "" }, { "docid": "39e9544cb663714c64854ea6207f7df9", "score": "0.4934393", "text": "public interface LexicalAnalyzer<T extends Enum<T> & HasPattern> {\n\n\tpublic Token<T> nextTok() throws ParseException;\n}", "title": "" }, { "docid": "a3efd3b0ef7456920636edd9ffc5ee7e", "score": "0.4933264", "text": "@Override\n\tpublic void visit(AttributeGrammar n) {\n\t}", "title": "" }, { "docid": "34c263fac95e5fb2d10d39c9e85a60f5", "score": "0.4922419", "text": "@Test(timeout = 4000)\n public void test112() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"!Q.H*G 5anvW?`Gu\");\n xPathLexer0.slashes();\n xPathLexer0.leftParen();\n xPathLexer0.identifier();\n xPathLexer0.mod();\n xPathLexer0.identifierOrOperatorName();\n xPathLexer0.not();\n xPathLexer0.at();\n xPathLexer0.setXPath(\"y(2+hcN&EDG\");\n xPathLexer0.getPreviousToken();\n xPathLexer0.mod();\n xPathLexer0.nextToken();\n xPathLexer0.relationalOperator();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "title": "" }, { "docid": "8049b3b7d936cc5622c7828f79374a65", "score": "0.49199498", "text": "public static void main(String[] args) {\n\n Alternation<Token, NullCloneable, NullCloneable> adjective\n = new Alternation<>();\n adjective.add(new Literal<>(\"steaming\"));\n adjective.add(new Literal<>(\"hot\"));\n\n Sequence<Token, NullCloneable, NullCloneable> good = new Sequence<>();\n good.add(new Repetition<>(adjective));\n good.add(new Literal<>(\"coffee\"));\n\n String s = \"hot hot steaming hot coffee\";\n Assembly<Token, NullCloneable, NullCloneable> a = new TokenAssembly<>(s);\n System.out.println(good.bestMatch(a));\n\n }", "title": "" }, { "docid": "c49e8ee087b4f465cf6fcff6adc4d2e1", "score": "0.49192774", "text": "@Override\n public void _statementPart_() throws IOException, CompilationException {\n // System.out.println(\"----------------------------------------------------------\");\n// System.out.println(\"312BEGIN StatementPart\");\n System.out.println(\"312BEGIN StatementPart\");\n\n\n //Program should begin with token: Begin\n acceptTerminal(2);\n\n //While there are still tokens to be read\n while(nextToken.symbol != Token.eofSymbol){\n\n statementList();\n\n\n //Semi column at end\n if(nextToken.symbol== 30){\n acceptTerminal(30);\n }\n //if END symbol\n else if(nextToken.symbol == 8){\n acceptTerminal(8);\n\n }\n\n else {\n //report invalid token\n myGenerate.reportError(nextToken, \" Invalid token\");\n }\n\n\n\n\n// System.out.println(\"\");\n// System.out.println(\"\");\n\n }\n System.out.println(\"312END StatementPart\");\n\n// System.out.println(\"----------------------------------------------------------\");\n }", "title": "" }, { "docid": "a1f39e21c6ef138f51fc1a22e0d4df73", "score": "0.49175346", "text": "@Test\n\tpublic void testParse_simpleMatchWithSlotFillerConstrainedExplicitlyWithPlusSign() throws Exception {\n\t\tSet<String> patterns = createSet(\"{activation-keyword} := activated;\",\n\t\t\t\t\"{c-activate} := [trigger +activation-keyword];\");\n\n\t\tSet<String> expectedReferenceStrs = createSet(\"{activation-keyword}\",\n\t\t\t\t\"{c-activate [trigger]={activation-keyword}}\");\n\n\t\ttestParse(TEST_TEXT_0, patterns, expectedReferenceStrs, new ActivatedEntitySlotValidator((String[]) null),\n\t\t\t\tnew ActivatorSlotValidator((String[]) null));\n\t}", "title": "" }, { "docid": "2b034bee79c4edfb595d9a70713cbdfd", "score": "0.49155688", "text": "@Override\n\tpublic void visit(MetaBindPEG n) {\n\n\t}", "title": "" }, { "docid": "cb68b12e995284620f072d5401546059", "score": "0.49150935", "text": "private int yyr35() {\n {\n yyrv = new BinaryOperationNode((ParseNode)yysv[yysp-3], \"<=\", (ParseNode) yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return yyprelational();\n }", "title": "" }, { "docid": "d29e9b499b2142528024719f5b86ca6a", "score": "0.4912992", "text": "public void visit(TyMetaPeg n) {\n\t}", "title": "" }, { "docid": "d59ab8b7dffed4a6f6e04299f4db69e7", "score": "0.4907482", "text": "@Test(timeout = 4000)\n public void test022() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\".-\\\\H2V=CO\");\n xPathLexer0.nextToken();\n xPathLexer0.identifier();\n xPathLexer0.relationalOperator();\n xPathLexer0.pipe();\n xPathLexer0.dots();\n xPathLexer0.at();\n xPathLexer0.or();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "title": "" }, { "docid": "a548c3720da639ea2d114afd35d20cdd", "score": "0.49055165", "text": "@Test(timeout = 4000)\n public void test052() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"9kCLj>>A`@)\");\n xPathLexer0.pipe();\n xPathLexer0.identifier();\n xPathLexer0.doubleColon();\n xPathLexer0.nextToken();\n xPathLexer0.relationalOperator();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "title": "" }, { "docid": "28921a04c425ee5ad1a1997b8cd5ccf4", "score": "0.4903586", "text": "private void expression() throws IOException, CompilationException {\n// System.out.println(\"312BEGIN Expression\");\n myGenerate.commenceNonterminal(\"Expression\");\n\n //<expression> ::= <term> | <expression> + <term> | <expression> - <term>\n\n //Always starts with term\n term();\n\n //+ AND -\n if(nextToken.symbol == 27){\n acceptTerminal(27);\n expression();\n }else if (nextToken.symbol ==24){\n acceptTerminal(24);\n expression();\n }\n\n// System.out.println(\"312END Expression\");\n myGenerate.finishNonterminal(\"Expression\");\n }", "title": "" }, { "docid": "6b07876962f23326e5ec09b42cb46e5e", "score": "0.490089", "text": "public Node matchExpression(Node type, List<Node> statements) {\n Node v$1 = GNode.create(\"Type\", type, null);\n Node v$2 = GNode.create(\"TypeArguments\", v$1);\n Node v$3 = GNode.create(\"TypeInstantiation\", \"Match\", v$2);\n Node v$4 = GNode.create(\"InstantiatedType\", v$3);\n Node v$5 = GNode.create(\"Arguments\", false);\n Node v$6 = GNode.create(\"Modifier\", \"public\");\n Node v$7 = GNode.create(\"Modifiers\", v$6);\n Node v$8 = GNode.create(\"Type\", type, null);\n Node v$9 = GNode.create(\"FormalParameters\", false);\n Node v$10 = GNode.create(\"Block\", statements.size()).\n addAll(statements);\n Node v$11 = GNode.create(\"MethodDeclaration\", v$7, null, v$8, \"apply\", \n v$9, null, null, v$10);\n Node v$12 = GNode.create(\"ClassBody\", v$11);\n Node v$13 = GNode.create(\"NewClassExpression\", null, null, v$4, v$5, \n v$12);\n Node v$14 = GNode.create(\"Arguments\", false);\n Node v$15 = GNode.create(\"CallExpression\", v$13, null, \"apply\", v$14);\n return v$15;\n }", "title": "" }, { "docid": "4a25b4e2c1159a19dd911b12e34f5600", "score": "0.48955327", "text": "public interface Grammar {\n\n //\n // GENERAL PROPERTIES\n //\n\n /**\n * Describes whether the grammar is case-sensitive. A case-sensitive grammar\n * interprets versions of the same token with different cases as different tokens.\n * @return <code>true</code> if the grammar is case-sensitive\n */\n public boolean isCaseSensitive();\n\n //\n // PARENTHETICALS\n //\n\n /**\n * Returns token associated with opening of a function's list of arguments.\n * @return string token\n */\n public String argumentListOpener();\n\n /**\n * Returns token separating arguments in a list of arguments.\n * @return string token\n */\n public String argumentListSeparator();\n\n /**\n * Returns token associated with an implicit space or adjacency of operators, e.g. \"3 x\" and \"3x\" become \"3*x\"\n * @return string token\n */\n public String implicitSpaceOperator();\n\n /**\n * Returns pairs of strings that represent opening and closing parenthetical statements.\n * \n * @return an array of length-2 arrays of strings, where the first string represents\n * an opening parenthetical and the second represents a closing parenthetical\n */\n public String[][] parentheticals();\n\n //\n // CONSTANTS & VARIABLES\n //\n\n /**\n * Returns the constants in the grammar, together with their associated values.\n * @return a lookup map that contains the constants\n */\n public Map<String, ? extends Object> constants();\n\n //\n // OPERATORS\n //\n\n /** \n * Return strings representing prefix-unary operators in the grammar, such as the\n * \"-\" in \"-5\", or the \"!\" in \"!true\". Order does not matter. The keys in the map\n * are the operators used in the grammar; the values are the <b>names</b> of the\n * associated functions. These functions will be \"looked up\" in the default class\n * locations, and the corresponding functions should all have a single argument.\n *\n * @return a map pairing operator tokens with the method names representing them.\n */\n public Map<String, Method> preUnaryOperators();\n\n /**\n * Return strings representing postfix-unary operators in the grammar, such as the\n * \"!\" in \"5!\" for factorial. Order does not matter. The keys in the map\n * are the operators used in the grammar; the values are the <b>names</b> of the\n * associated functions. These functions will be \"looked up\" in the default class\n * locations, and the corresponding functions should all have a single argument.\n *\n * @return a map pairing operator tokens with the method names representing them.\n */\n public Map<String, Method> postUnaryOperators();\n\n /**\n * Return strings representing <i>all binary <b>AND</b> multary operators</i>\n * in the grammar. The keys in the map\n * are the operators used in the grammar; the values are the <b>names</b> of the\n * associated functions. These functions will be \"looked up\" in the default class\n * locations, and the corresponding functions should all have two or more arguments.\n *\n * @return a map pairing operator tokens with the method names representing them.\n */\n public Map<String, Method> naryOperators();\n\n /**\n * Return strings representing <i>multary</i> operators in the grammar.\n * These should also be returned by the <code>binaryOperators()</code> method,\n * in which there order is used to determine the order-of-operations. Operators\n * returned by <code>binaryOperators()</code> that are not returned by this\n * method are assumed to be purely <i>binary</i> operators.\n * \n * The keys in the map\n * are the operators used in the grammar; the values are the <b>names</b> of the\n * associated functions. These functions will be \"looked up\" in the default class\n * locations, and the corresponding functions should have a single array-based\n * argument.\n *\n * @return a map pairing operator tokens with the method names representing them.\n */\n public String[] multaryOperators();\n\n /**\n * Return list of operators in order desired for order-of-operations.\n * These should be ordered in a way consistent with order-of-operations.\n * The last entry is the first operator that will be evaluated, and the first entry\n * is the last operator that will be evaluated (and be at the top of the token tree).\n *\n * @return an array of operators in order of operations\n */\n public String[] orderOfOperations();\n\n //\n // FUNCTIONS\n //\n\n /**\n * Returns strings representing functions in the grammar.\n * @return an array of strings that represent function names\n */\n public Map<String, Method> functions();\n}", "title": "" }, { "docid": "6711673ff87d174006ba720edd911bbd", "score": "0.48953876", "text": "@Test\n public void doesNotEndInDelimiter() {\n Lexer lexer = new TokenLexer();\n InputStream stream = new TextStream(\"let nice: string = 4\");\n TokenStream tokens = lexer.lex(stream);\n\n TokenType[] types = {\n TokenType.LET,\n TokenType.IDENTIFIER,\n TokenType.COLON,\n TokenType.STRING_TYPE,\n TokenType.EQUALS,\n TokenType.NUMBER};\n int i = 0;\n while (tokens.hasNext()) {\n assertEquals(types[i], tokens.peek().getType());\n tokens.consume();\n i++;\n }\n assertFalse(tokens.hasNext());\n }", "title": "" }, { "docid": "0a6d201d052adce0482f8c4c0596ebd7", "score": "0.4890849", "text": "@Test(timeout = 4000)\n public void test055() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"cT>7-pnH\");\n xPathLexer0.consume();\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\"T\", token0.getTokenText());\n assertEquals(15, token0.getTokenType());\n \n xPathLexer0.consume(1);\n Token token1 = xPathLexer0.nextToken();\n assertEquals(30, token1.getTokenType());\n assertEquals(\"7\", token1.getTokenText());\n \n xPathLexer0.identifierOrOperatorName();\n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"-\", token2.getTokenText());\n assertEquals(6, token2.getTokenType());\n }", "title": "" }, { "docid": "3d724bd4bec8b894d6bdadcdee66ea85", "score": "0.48905614", "text": "public String visit(MoveStmt n) {\n String _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "9a2b757fa8e2363957af89323af7018b", "score": "0.48883227", "text": "public interface IASTFragment {\n\n /**\n * Property-based fragments can only match if their beginnings match\n * Binary expression-based fragments can match anywhere\n *\n * @param other\n * @return true iff other matches this fragment\n */\n public boolean matches(IASTFragment other);\n\n /**\n * Returns a sub-fragment of this one that matches other.\n *\n * Note that the components of the returned fragment may be different.\n * The sub-fragment may end with {@link SimpleExpressionASTFragment} even\n * if it corresponds with a {@link PropertyExpressionFragment} in the\n * original.\n *\n * Also note that Property-based fragments can only match from the\n * beginning,\n * but binary expression-based fragments can match from anywhere.\n *\n * @param other the sub-fragment to match\n * @return a matching sub-fragment or {@link EmptyASTFragment} if there is\n * no match\n */\n public IASTFragment findMatchingSubFragment(IASTFragment other);\n\n /**\n * @return lexical start of this fragment\n */\n public int getStart();\n\n /**\n * @return lexical end of this fragment\n */\n public int getEnd();\n\n /**\n * Convenience method for getEnd() - getStart()\n *\n * @return\n */\n public int getLength();\n\n /**\n * The associated node is the parent node that contains all fragments. The\n * source location\n * of the node may be larger than the start and length\n *\n * @return Will return null for {@link EnclosingASTNodeFragment}\n */\n public Expression getAssociatedExpression();\n\n /**\n * The associated node is the parent node that contains all fragments. The\n * source location\n * of the node may be larger than the start and length\n */\n public ASTNode getAssociatedNode();\n\n /**\n * Produces debug-ready string\n * this.toString() is equivalent to this.print(0)\n *\n * @param indentLvl number of double spaces to indent the string by\n */\n public String print(int indentLvl);\n\n /**\n * @return number of subcomponents of this fragment\n */\n public int fragmentLength();\n\n /**\n * Part of the visitor pattern\n */\n public void accept(FragmentVisitor visitor);\n\n public ASTFragmentKind kind();\n\n}", "title": "" }, { "docid": "3be84a3c10d3ab3b070173383909e66f", "score": "0.48882657", "text": "@Test(timeout = 4000)\n public void test099() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5#6E(+\\\"9BzIj'# V!]\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(30, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"#\", token1.getTokenText());\n \n xPathLexer0.number();\n xPathLexer0.identifierOrOperatorName();\n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"E(+\\\"9BzIj'# V!]\", token2.getTokenText());\n }", "title": "" }, { "docid": "18313c27a229bd9d694d4a1ced018935", "score": "0.4885216", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\".-\\\\H2V=CO\");\n xPathLexer0.nextToken();\n xPathLexer0.relationalOperator();\n xPathLexer0.notEquals();\n xPathLexer0.pipe();\n xPathLexer0.dots();\n xPathLexer0.at();\n xPathLexer0.or();\n xPathLexer0.notEquals();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "title": "" }, { "docid": "513602feb50e9f195307fdc02d855ec6", "score": "0.48830402", "text": "public String visit(StmtExp n) {\n String _ret=null;\n currentFlowGraph.addBlock(currentNo); // entry\n currentNo++;\n n.f1.accept(this);\n currentFlowGraph.addBlock(currentNo);\n currentNo++;\n n.f3.accept(this);\n currentFlowGraph.addBlock(currentNo); // exit\n currentFlowGraph.No = currentNo;\n return _ret;\n }", "title": "" }, { "docid": "26e7910051995b50526aa37c720c1f99", "score": "0.48813653", "text": "@Test(timeout = 4000)\n public void test014() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LMp!?b\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(\"LM\", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.star();\n token1.toString();\n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"!\", token2.getTokenText());\n assertEquals(23, token2.getTokenType());\n \n String string0 = token1.toString();\n assertEquals(\"[ (20) (p)\", string0);\n \n Token token3 = xPathLexer0.slashes();\n assertEquals(\"?\", token3.getTokenText());\n assertEquals(11, token3.getTokenType());\n \n xPathLexer0.or();\n Token token4 = xPathLexer0.nextToken();\n assertEquals((-1), token4.getTokenType());\n }", "title": "" }, { "docid": "a8c6cb05c47808f78c328c61705b4d80", "score": "0.48788995", "text": "@Test(timeout = 4000)\n public void test034() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"CQc:Dvd\");\n Token token0 = xPathLexer0.comma();\n assertEquals(\"C\", token0.getTokenText());\n \n xPathLexer0.identifier();\n Token token1 = xPathLexer0.comma();\n assertEquals(32, token1.getTokenType());\n \n xPathLexer0.identifierOrOperatorName();\n XPathLexer xPathLexer1 = new XPathLexer(\"CQc:Dvd\");\n Token token2 = xPathLexer0.nextToken();\n assertEquals((-1), token2.getTokenType());\n \n xPathLexer1.identifierOrOperatorName();\n xPathLexer0.relationalOperator();\n Token token3 = xPathLexer1.nextToken();\n assertEquals(\":\", token3.getTokenText());\n assertEquals(18, token3.getTokenType());\n \n xPathLexer1.or();\n Token token4 = xPathLexer1.nextToken();\n assertEquals(15, token4.getTokenType());\n assertEquals(\"Dvd\", token4.getTokenText());\n }", "title": "" }, { "docid": "18297976a222d35b5a5c672b54e2ddb6", "score": "0.48770782", "text": "public interface QueryParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int EXISTS = 5;\n /** RegularExpression Id. */\n int COUNT = 6;\n /** RegularExpression Id. */\n int HYBRID = 7;\n /** RegularExpression Id. */\n int STMT = 8;\n /** RegularExpression Id. */\n int EXPR = 9;\n /** RegularExpression Id. */\n int WITHIN = 10;\n /** RegularExpression Id. */\n int WHERE = 11;\n /** RegularExpression Id. */\n int AND = 12;\n /** RegularExpression Id. */\n int OR = 13;\n /** RegularExpression Id. */\n int IS = 14;\n /** RegularExpression Id. */\n int IN = 15;\n /** RegularExpression Id. */\n int NOT = 16;\n /** RegularExpression Id. */\n int ANY = 17;\n /** RegularExpression Id. */\n int ALL = 18;\n /** RegularExpression Id. */\n int INDEX = 19;\n /** RegularExpression Id. */\n int IDENT = 20;\n /** RegularExpression Id. */\n int STRING = 21;\n /** RegularExpression Id. */\n int NUMBER = 22;\n /** RegularExpression Id. */\n int OPERATOR = 23;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"exists\\\"\",\n \"\\\"count\\\"\",\n \"\\\"hybrid\\\"\",\n \"\\\"statement\\\"\",\n \"\\\"expression\\\"\",\n \"\\\"within\\\"\",\n \"\\\"where\\\"\",\n \"\\\"and\\\"\",\n \"\\\"or\\\"\",\n \"\\\"is\\\"\",\n \"\\\"in\\\"\",\n \"\\\"not\\\"\",\n \"\\\"[?]\\\"\",\n \"\\\"[*]\\\"\",\n \"<INDEX>\",\n \"<IDENT>\",\n \"<STRING>\",\n \"<NUMBER>\",\n \"<OPERATOR>\",\n \"\\\":\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\".\\\"\",\n \"\\\",\\\"\",\n };\n\n}", "title": "" }, { "docid": "21a2f7f8cc8638d168f9139e60398084", "score": "0.48755956", "text": "@Test(timeout = 4000)\n public void test131() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"l>B D+c%}I(7Wa6I\");\n Token token0 = xPathLexer0.plus();\n assertEquals(5, token0.getTokenType());\n assertEquals(\"l\", token0.getTokenText());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(2, token1.getTokenType());\n \n Token token2 = xPathLexer0.comma();\n assertEquals(32, token2.getTokenType());\n assertEquals(\"B\", token2.getTokenText());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(\"D\", token3.getTokenText());\n assertEquals(15, token3.getTokenType());\n }", "title": "" }, { "docid": "6ade9b4805947592baf8c2e3a75d7bfc", "score": "0.4864494", "text": "@Override\n\tpublic void visit(MetaTyString n) {\n\t}", "title": "" } ]
58a687a8cd963a00bab9f90c2743eac8
Creates JSONObjects with information of other JSONObjet
[ { "docid": "1b191cc852661bd01a9337ad53ae2354", "score": "0.47608525", "text": "public JSONObject getNewJsonObject(JSONObject data) \n\t{\n\t \n\t\treturn new JSONObject(data.toString());\n\t}", "title": "" } ]
[ { "docid": "991ba81baf36b39a3e9cda9285b716fc", "score": "0.57762384", "text": "JsonObject merge(JsonObject origObj, JsonObject paramObj) {\n Set<Map.Entry<String, JsonElement>> original = origObj.entrySet();\n\n for (Map.Entry<String, JsonElement> entry : paramObj.entrySet()) {\n boolean exists = false;\n String pKey = entry.getKey();\n JsonElement pValue = entry.getValue();\n for (Map.Entry<String, JsonElement> o : original) {\n if (o.getKey().compareToIgnoreCase(pKey) == 0) {\n if (o.getValue().isJsonObject() && pValue.isJsonObject()) {\n merge(o.getValue().getAsJsonObject(), pValue.getAsJsonObject());\n exists = true;\n }\n }\n }\n if (exists == false) {\n origObj.add(pKey, pValue);\n }\n }\n return origObj;\n }", "title": "" }, { "docid": "a7bbf59b97598d776c7fa5e2978b6c16", "score": "0.5706329", "text": "public void testJsonDiffObject() {\n JsonObject o1;\n JsonObject o2;\n JsonDiff diff;\n List<JsonDiff.Issue> issues;\n\n // Differ in size.\n o1 = new MapValue();\n for(int i = 0; i < 10; i++) {\n o1.put(\"key\" + i, \"value\" + i);\n }\n o2 = new MapValue();\n for(int i = 0; i < 7; i++) {\n o2.put(\"key\" + i, \"value\" + i);\n }\n diff = JsonUtil.difference(o1, o2);\n System.out.println(\"Difference: \" + diff);\n issues = diff.getIssues();\n assertEquals(\"Unsespected number of issues.\", 4, issues.size());\n\n // Differ in size and content.\n o1 = new MapValue();\n for(int i = 0; i < 10; i++) {\n o1.put(\"key\" + i, \"value\" + i);\n }\n o2 = new MapValue();\n for(int i = 0; i < 7; i++) {\n o2.put(\"key\" + i, \"valueX\");\n }\n diff = JsonUtil.difference(o1, o2);\n System.out.println(\"Difference: \" + diff);\n issues = diff.getIssues();\n assertEquals(\"Unsespected number of issues.\", 11, issues.size());\n\n }", "title": "" }, { "docid": "4dfc5a3e0a479d5e863944f53e1dc723", "score": "0.5656345", "text": "@Test\n public void test61() throws Throwable {\n HashMap<String, IndexedWord> hashMap0 = new HashMap<String, IndexedWord>();\n assertEquals(0, hashMap0.size());\n assertTrue(hashMap0.isEmpty());\n assertNotNull(hashMap0);\n \n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n assertEquals(0, jSONObject0.length());\n assertEquals(0, hashMap0.size());\n assertTrue(hashMap0.isEmpty());\n assertNotNull(jSONObject0);\n \n JSONObject jSONObject1 = jSONObject0.append(\"<ft\", (Object) \"<ft\");\n assertEquals(1, jSONObject0.length());\n assertEquals(1, jSONObject1.length());\n assertEquals(0, hashMap0.size());\n assertTrue(hashMap0.isEmpty());\n assertNotNull(jSONObject1);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n \n JSONArray jSONArray0 = jSONObject1.optJSONArray(\"<ft\");\n assertEquals(1, jSONArray0.length());\n assertEquals(1, jSONObject0.length());\n assertEquals(1, jSONObject1.length());\n assertEquals(0, hashMap0.size());\n assertTrue(hashMap0.isEmpty());\n assertNotNull(jSONArray0);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n \n String[] stringArray0 = new String[2];\n JSONObject jSONObject2 = new JSONObject(jSONObject0, stringArray0);\n assertEquals(1, jSONObject0.length());\n assertEquals(0, hashMap0.size());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, jSONObject2.length());\n assertNotNull(jSONObject2);\n assertFalse(jSONObject0.equals((Object)jSONObject2));\n assertFalse(jSONObject2.equals((Object)jSONObject1));\n assertFalse(jSONObject2.equals((Object)jSONObject0));\n assertSame(jSONObject0, jSONObject1);\n assertNotSame(jSONObject0, jSONObject2);\n assertNotSame(jSONObject2, jSONObject1);\n assertNotSame(jSONObject2, jSONObject0);\n }", "title": "" }, { "docid": "eedc0090187b7cac8ffd8fb36bc7afa5", "score": "0.55875206", "text": "@Override\r\n\tpublic void merge(JsonElement o) throws JsonException {\n\t\t\r\n\t}", "title": "" }, { "docid": "a2527b01cf4574692a58f0ddbbc26cac", "score": "0.55052936", "text": "private void createUploadTrsacJsonData() throws JSONException {\n\n\t\t// =============== JSON Creation Code Started\n\t\t// =================================================================================================================\n\n\t\t// TOp JSON Object\n\t\tJSONObject jsonObject = new JSONObject();\n\t\t// Array of BillMSt Models\n\t\tJSONArray billMStJsonArr = new JSONArray();\n\n\t\tif (mUpBillMStModels != null && mUpBillMStModels.size() > 0) {\n\t\t\tfor (int index = 0; index < mUpBillMStModels.size(); index++) {\n\t\t\t\tBILL_Mst_Model billMstModel = mUpBillMStModels.get(index);\n\n\t\t\t\t// get model Json data\n\t\t\t\tJSONObject jsonObj = BILL_Mst_Model.getJsonData(billMstModel);\n\n\t\t\t\t// Bill Transaction Json\n\t\t\t\tJSONArray billTxnJsonArr = new JSONArray();\n\n\t\t\t\tif (mUpBillTxnModels != null && mUpBillTxnModels.size() > 0) {\n\t\t\t\t\tfor (int i = 0; i < mUpBillTxnModels.size(); i++) {\n\t\t\t\t\t\tBillTransactionModel billTxnModel = mUpBillTxnModels\n\t\t\t\t\t\t\t\t.get(i);\n\n\t\t\t\t\t\t// get model Json data\n\t\t\t\t\t\tJSONObject billTxnJsonObj = BillTransactionModel\n\t\t\t\t\t\t\t\t.getJsonData(billTxnModel);\n\n\t\t\t\t\t\t// Bill Instruction Json OBject //\n\t\t\t\t\t\tif (mBillInstrctnTxnModelArr != null\n\t\t\t\t\t\t\t\t&& mBillInstrctnTxnModelArr.size() > 0) {\n\t\t\t\t\t\t\t// Get particular product bill instruction from\n\t\t\t\t\t\t\t// array\n\t\t\t\t\t\t\tBill_INSTRCTN_TXN_Model bill_Instrc_txn_Model = null;\n\t\t\t\t\t\t\tfor (Bill_INSTRCTN_TXN_Model bill_instr_txn_Model : mBillInstrctnTxnModelArr) {\n\t\t\t\t\t\t\t\tif (bill_instr_txn_Model.getPrdctCode()\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\t\tbillTxnModel.getPRDCT_CODE())) {\n\t\t\t\t\t\t\t\t\tbill_Instrc_txn_Model = bill_instr_txn_Model;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (bill_Instrc_txn_Model != null) {\n\t\t\t\t\t\t\t\tJSONObject billInstrcJsonObj = Bill_INSTRCTN_TXN_Model\n\t\t\t\t\t\t\t\t\t\t.getJsonData(bill_Instrc_txn_Model);\n\t\t\t\t\t\t\t\t// Place Bill Instruction Json Object in Bill\n\t\t\t\t\t\t\t\t// Txn\n\t\t\t\t\t\t\t\t// Json\n\t\t\t\t\t\t\t\tbillTxnJsonObj.put(\"billInstrctnTxn\",\n\t\t\t\t\t\t\t\t\t\tbillInstrcJsonObj);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tLogger.d(TAG, \"mBillInstrctnTxnModelArr EMpty\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (mCnsmptnTxnModelArr != null\n\t\t\t\t\t\t\t\t&& mCnsmptnTxnModelArr.size() > 0) {\n\t\t\t\t\t\t\t// Bill consumption Json OBject //\n\t\t\t\t\t\t\tPRDCT_CNSMPTN_TXNModel prdct_Cnsmptn_txn_Model = null;\n\t\t\t\t\t\t\tfor (PRDCT_CNSMPTN_TXNModel prdct_cnsmptn_txn_Model : mCnsmptnTxnModelArr) {\n\t\t\t\t\t\t\t\tif (prdct_cnsmptn_txn_Model.getPrdct_code()\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\t\tbillTxnModel.getPRDCT_CODE())) {\n\t\t\t\t\t\t\t\t\tprdct_Cnsmptn_txn_Model = prdct_cnsmptn_txn_Model;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (prdct_Cnsmptn_txn_Model != null) {\n\t\t\t\t\t\t\t\tJSONObject billConsumptionJsonObj = PRDCT_CNSMPTN_TXNModel\n\t\t\t\t\t\t\t\t\t\t.getJsonData(prdct_Cnsmptn_txn_Model);\n\t\t\t\t\t\t\t\t// Place Bill consumption Json Object in Bill\n\t\t\t\t\t\t\t\t// Txn\n\t\t\t\t\t\t\t\t// Json\n\t\t\t\t\t\t\t\tbillTxnJsonObj.put(\"billInstrctnTxn\",\n\t\t\t\t\t\t\t\t\t\tbillConsumptionJsonObj);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tLogger.d(TAG, \"mCnsmptnTxnModelArr EMpty\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Put Bill Txn Json Object in Bill Txn Json Array\n\t\t\t\t\t\tbillTxnJsonArr.put(i, billTxnJsonObj);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tLogger.d(TAG, \"mUpBillTxnModels Empty\");\n\t\t\t\t}\n\n\t\t\t\t// If upload is of Held type\n\t\t\t\tif (isHeldBillTxnUpload) {\n\t\t\t\t\t// Put Bill Txn array in Bill Held Json object\n\t\t\t\t\tjsonObj.put(\"heldTxn\", billTxnJsonArr);\n\t\t\t\t} else {// type Billing\n\t\t\t\t\t\t// Put Bill Txn array in Bill TCN Json object\n\t\t\t\t\tjsonObj.put(\"billTxn\", billTxnJsonArr);\n\t\t\t\t}\n\n\t\t\t\t// Salesman Txn json object\n\t\t\t\tJSONObject slsmanTxnJsonObj = null;\n\t\t\t\tif (mSlmnTxnModel != null) {\n\t\t\t\t\tslsmanTxnJsonObj = SLMN_TXN_Model\n\t\t\t\t\t\t\t.getJsonData(mSlmnTxnModel);\n\t\t\t\t\t// Put SLMN Txn json OBj in Bill Mst Json object\n\t\t\t\t\tjsonObj.put(\"slmnTxn\", slsmanTxnJsonObj);\n\t\t\t\t} else {\n\t\t\t\t\tLogger.d(TAG, \"mSlmnTxnModel Empty\");\n\t\t\t\t}\n\n\t\t\t\t// Flex POS TXn json object\n\t\t\t\tJSONObject flxPosTxnJsonObj = null;\n\t\t\t\tif (mFlxPosTxnModel != null) {\n\t\t\t\t\tflxPosTxnJsonObj = FLX_POS_TXNModel.getJsonData(\n\t\t\t\t\t\t\tmFlxPosTxnModel, billMstModel);\n\t\t\t\t\t// Put FLexPos Txn json OBj in Bill Mst Json object\n\t\t\t\t\tjsonObj.put(\"flexPosTxn\", flxPosTxnJsonObj);\n\t\t\t\t} else {\n\t\t\t\t\tLogger.d(TAG, \"mFlxPosTxnModel Empty\");\n\t\t\t\t}\n\n\t\t\t\t// Payments MSt Json Array\n\t\t\t\tif (mPMT_List != null && mPMT_List.size() > 0) {\n\t\t\t\t\tJSONArray paymentsMstJsonArr = new JSONArray();\n\t\t\t\t\tfor (int j = 0; j < mPMT_List.size(); j++) {\n\t\t\t\t\t\tPAYMT_MST_MODEL paymt_MST_MODEL = mPMT_List.get(j);\n\n\t\t\t\t\t\t// Payments MSt Json Object\n\t\t\t\t\t\tJSONObject paymentsMstJsonObject = PAYMT_MST_MODEL\n\t\t\t\t\t\t\t\t.getJsonData(paymt_MST_MODEL);\n\n\t\t\t\t\t\t// Add multi payments data only if model is \"Cash\"\n\t\t\t\t\t\tif (paymt_MST_MODEL.getPAY_MODE()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"CA\")) {\n\t\t\t\t\t\t\tLogger.d(TAG, \"Cash Model loaded.\");\n\n\t\t\t\t\t\t\tif (mMultiChngMstModels != null\n\t\t\t\t\t\t\t\t\t&& mMultiChngMstModels.size() > 0) {\n\t\t\t\t\t\t\t\t// Issue change MSt Json Array\n\t\t\t\t\t\t\t\tJSONArray issueChngMstArr = new JSONArray();\n\t\t\t\t\t\t\t\tfor (int k = 0; k < mMultiChngMstModels.size(); k++) {\n\t\t\t\t\t\t\t\t\tMULTI_CHNG_MST_Model multi_CHNG_MST_Model = mMultiChngMstModels\n\t\t\t\t\t\t\t\t\t\t\t.get(k);\n\t\t\t\t\t\t\t\t\tJSONObject issueMltiChangeMst = MULTI_CHNG_MST_Model\n\t\t\t\t\t\t\t\t\t\t\t.getJsonData(multi_CHNG_MST_Model,\n\t\t\t\t\t\t\t\t\t\t\t\t\tbillMstModel);\n\n\t\t\t\t\t\t\t\t\t// Put Multi Chng MSt Json object in\n\t\t\t\t\t\t\t\t\t// Payments\n\t\t\t\t\t\t\t\t\t// MSt\n\t\t\t\t\t\t\t\t\t// arr\n\t\t\t\t\t\t\t\t\tissueChngMstArr.put(k, issueMltiChangeMst);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Put Multi chnage Json Arr in Payments Mst\n\t\t\t\t\t\t\t\t// Json\n\t\t\t\t\t\t\t\t// Object\n\t\t\t\t\t\t\t\tpaymentsMstJsonObject.put(\"listChngMsts\",\n\t\t\t\t\t\t\t\t\t\tissueChngMstArr);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLogger.d(TAG, \"mMultiChngMstModels EMpty\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (mMULTY_PMT_List != null\n\t\t\t\t\t\t\t\t\t&& mMULTY_PMT_List.size() > 0) {\n\t\t\t\t\t\t\t\t// Multi Payments Json Array\n\t\t\t\t\t\t\t\tJSONArray multiPymntsMstArr = new JSONArray();\n\t\t\t\t\t\t\t\tfor (int l = 0; l < mMULTY_PMT_List.size(); l++) {\n\t\t\t\t\t\t\t\t\tMULTY_PMT_MST_Model multy_PMT_MST_Model = mMULTY_PMT_List\n\t\t\t\t\t\t\t\t\t\t\t.get(l);\n\t\t\t\t\t\t\t\t\tJSONObject MltiPymntMstJsonObj = MULTY_PMT_MST_Model\n\t\t\t\t\t\t\t\t\t\t\t.getJsonData(multy_PMT_MST_Model,\n\t\t\t\t\t\t\t\t\t\t\t\t\tbillMstModel);\n\n\t\t\t\t\t\t\t\t\t// Put Multi Payments Json object in Multi\n\t\t\t\t\t\t\t\t\t// Payments\n\t\t\t\t\t\t\t\t\t// arr\n\t\t\t\t\t\t\t\t\tmultiPymntsMstArr.put(l,\n\t\t\t\t\t\t\t\t\t\t\tMltiPymntMstJsonObj);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Put Multi Payments Json Arr in Payments Mst\n\t\t\t\t\t\t\t\t// Json\n\t\t\t\t\t\t\t\t// Object\n\t\t\t\t\t\t\t\tpaymentsMstJsonObject.put(\n\t\t\t\t\t\t\t\t\t\t\"listMultiPymntsMsts\",\n\t\t\t\t\t\t\t\t\t\tmultiPymntsMstArr);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLogger.d(TAG, \"mMULTY_PMT_List Empty\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tLogger.d(TAG, \"Other than Cash Model loaded.\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Put Payments MSt Json object in Payments MSt arr\n\t\t\t\t\t\tpaymentsMstJsonArr.put(j, paymentsMstJsonObject);\n\t\t\t\t\t}\n\t\t\t\t\t// Put Payments MST json Array in Bill Mst Json object\n\t\t\t\t\tjsonObj.put(\"paymentMst\", paymentsMstJsonArr);\n\t\t\t\t} else {\n\t\t\t\t\tLogger.d(TAG, \"mPMT_List Empty\");\n\t\t\t\t}\n\n\t\t\t\t// Held Txn Json Array\n\t\t\t\tif (mHeldTxnModels != null && mHeldTxnModels.size() > 0) {\n\t\t\t\t\tJSONArray heldTxnJsonArray = new JSONArray();\n\t\t\t\t\tfor (int m = 0; m < mHeldTxnModels.size(); m++) {\n\t\t\t\t\t\tHeldTransactionModel heldTransactionModel = mHeldTxnModels\n\t\t\t\t\t\t\t\t.get(m);\n\n\t\t\t\t\t\tJSONObject heldTxnJsonObj = HeldTransactionModel\n\t\t\t\t\t\t\t\t.getJsonData(heldTransactionModel);\n\n\t\t\t\t\t\t// Get particular product held bill instruction from\n\t\t\t\t\t\t// array\n\t\t\t\t\t\tBill_INSTRCTN_TXN_Model held_bill_Instrc_txn_Model = null;\n\t\t\t\t\t\tfor (Bill_INSTRCTN_TXN_Model bill_instr_txn_Model : mBillInstrctnTxnModelArr) {\n\t\t\t\t\t\t\tif (bill_instr_txn_Model.getPrdctCode()\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\theldTransactionModel\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getPRDCT_CODE())) {\n\t\t\t\t\t\t\t\theld_bill_Instrc_txn_Model = bill_instr_txn_Model;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (held_bill_Instrc_txn_Model != null) {\n\t\t\t\t\t\t\t// Held Bill Instruction Json OBject //\n\t\t\t\t\t\t\tJSONObject HeldBillInstrcJsonObj = Bill_INSTRCTN_TXN_Model\n\t\t\t\t\t\t\t\t\t.getJsonData(held_bill_Instrc_txn_Model);\n\t\t\t\t\t\t\t// Place Held Bill Instruction Json Object in Held\n\t\t\t\t\t\t\t// Txn\n\t\t\t\t\t\t\t// Json\n\t\t\t\t\t\t\theldTxnJsonObj.put(\"billInstrctnTxn\",\n\t\t\t\t\t\t\t\t\tHeldBillInstrcJsonObj);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Get particular product held bill consumption from\n\t\t\t\t\t\t// array\n\t\t\t\t\t\tPRDCT_CNSMPTN_TXNModel held_Prdct_Cnsmptn_txn_Model = null;\n\t\t\t\t\t\tfor (PRDCT_CNSMPTN_TXNModel held_prdct_cnsmptn_txn_Model : mCnsmptnTxnModelArr) {\n\t\t\t\t\t\t\tif (held_prdct_cnsmptn_txn_Model.getPrdct_code()\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\theldTransactionModel\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getPRDCT_CODE())) {\n\t\t\t\t\t\t\t\theld_Prdct_Cnsmptn_txn_Model = held_prdct_cnsmptn_txn_Model;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (held_Prdct_Cnsmptn_txn_Model != null) {\n\t\t\t\t\t\t\t// Held Bill consumption Json OBject //\n\t\t\t\t\t\t\tJSONObject HeldBillConsumptionJsonObj = PRDCT_CNSMPTN_TXNModel\n\t\t\t\t\t\t\t\t\t.getJsonData(held_Prdct_Cnsmptn_txn_Model);\n\t\t\t\t\t\t\t// Place Held Bill consumption Json Object in Held\n\t\t\t\t\t\t\t// Txn\n\t\t\t\t\t\t\t// Json\n\t\t\t\t\t\t\theldTxnJsonObj.put(\"billInstrctnTxn\",\n\t\t\t\t\t\t\t\t\tHeldBillConsumptionJsonObj);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Put Held json Object in Held Json Array\n\t\t\t\t\t\theldTxnJsonArray.put(m, heldTxnJsonObj);\n\n\t\t\t\t\t}\n\t\t\t\t\t// Put Held Txn array in Bill Mst json object\n\t\t\t\t\tjsonObj.put(\"heldTxn\", heldTxnJsonArray);\n\t\t\t\t} else {\n\t\t\t\t\tLogger.d(TAG, \"mHeldTxnModels Empty\");\n\t\t\t\t}\n\n\t\t\t\t// Put Bill Mst json Object in Bill Mst Json Array\n\t\t\t\tbillMStJsonArr.put(index, jsonObj);\n\t\t\t}\n\t\t} else {\n\t\t\tLogger.d(TAG, \"mUpBillMStModels Empty\");\n\t\t}\n\n\t\t// get mac address data from shardPref\n\t\tSharedPreferences prefs = mContext.getSharedPreferences(\"com.mpos\",\n\t\t\t\tContext.MODE_PRIVATE);\n\t\tString macAddrss = prefs\n\t\t\t\t.getString(MPOSApplication.WIFI_MAC_ADDRESS, \"\");\n\t\t// put tablet Mac Address in reponse\n\t\tjsonObject.put(\"tabMacAddress\", macAddrss);\n\t\t// Put Bill Mst array in top level Json object : Final\n\t\tjsonObject.put(\"billMst\", billMStJsonArr);\n\n\t\t// ==================JSON Creation Code\n\t\t// Completed==============================================================================================================\n\n\t\tLogger.d(TAG, \"Final JSON: \" + jsonObject.toString() +\" printFlag \"+printFlag);\n\n\t\t//Util.writeToSdCard(\"/sdcard/myJsonfile.txt\", jsonObject.toString());\n\n\t\t//new UploadTransData().execute(jsonObject.toString());\n\t\t\n\t\tif(!printFlag){\n\n Util.writeToSdCard(\"/sdcard/myJsonfile.txt\", jsonObject.toString());\n\n \tnew UploadTransData().execute(jsonObject.toString());\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"TRIGGERING THE UPLOAD PRINT DATA\");\n\t\t\t\t//new UploadPrintData(jsonObject.toString());\n\t\t\t\t(this.bfObject).triggerPrinting(jsonObject.toString());\n\t\t\t\t}\n\t\t\n\t\t// uploadTrasactionDataWs(jsonObject.toString());\n\n\t}", "title": "" }, { "docid": "89ac9689e9ec6c6177418dec9ed2b8e9", "score": "0.5449209", "text": "private void populateJsonObj(JSONObject jsonobj, ObjectProvider op) {\r\n AbstractClassMetaData acmd = op.getClassMetaData();\r\n int[] fieldNumbers = acmd.getAllMemberPositions();\r\n op.provideFields(fieldNumbers, new StoreFieldManager(op, jsonobj, true));\r\n }", "title": "" }, { "docid": "188b8157b83138d066b49e660c9c312c", "score": "0.54317456", "text": "@Test\n public void test34() throws Throwable {\n JSONArray jSONArray0 = new JSONArray();\n assertEquals(0, jSONArray0.length());\n assertNotNull(jSONArray0);\n \n JSONObject jSONObject0 = new JSONObject((Object) \"TD|)4W4RETrQ-:|}\");\n assertEquals(3, jSONObject0.length());\n assertNotNull(jSONObject0);\n \n long long0 = jSONObject0.optLong(\"TD|)4W4RETrQ-:|}\");\n assertEquals(3, jSONObject0.length());\n assertEquals(0L, long0);\n \n JSONArray jSONArray1 = jSONArray0.put(136, (Object) jSONArray0);\n assertEquals(137, jSONArray1.length());\n assertEquals(137, jSONArray0.length());\n assertNotNull(jSONArray1);\n assertSame(jSONArray1, jSONArray0);\n assertSame(jSONArray0, jSONArray1);\n \n try {\n JSONObject jSONObject1 = jSONArray1.toJSONObject(jSONArray0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n }\n }", "title": "" }, { "docid": "234c8fbde104a8df49196c7141fee92d", "score": "0.5415427", "text": "@Test\n public void test59() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n assertEquals(0, jSONObject0.length());\n assertNotNull(jSONObject0);\n \n JSONObject jSONObject1 = jSONObject0.accumulate(\"di\", (Object) jSONObject0);\n assertEquals(1, jSONObject1.length());\n assertEquals(1, jSONObject0.length());\n assertNotNull(jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n \n int int0 = jSONObject0.optInt(\"di\", 8);\n assertEquals(1, jSONObject0.length());\n assertEquals(8, int0);\n assertSame(jSONObject0, jSONObject1);\n \n JSONObject jSONObject2 = jSONObject0.put(\"di\", 8);\n assertEquals(1, jSONObject2.length());\n assertEquals(1, jSONObject0.length());\n assertNotNull(jSONObject2);\n assertSame(jSONObject2, jSONObject0);\n assertSame(jSONObject2, jSONObject1);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject0, jSONObject2);\n \n long long0 = jSONObject1.optLong((String) null, (long) 8);\n assertEquals(1, jSONObject1.length());\n assertEquals(1, jSONObject0.length());\n assertEquals(8L, long0);\n assertSame(jSONObject1, jSONObject2);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject0, jSONObject2);\n \n String string0 = JSONObject.valueToString(\"di\", 8, 8);\n assertNotNull(string0);\n assertEquals(\"\\\"di\\\"\", string0);\n \n JSONArray jSONArray0 = jSONObject2.optJSONArray(\"di\");\n assertEquals(1, jSONObject2.length());\n assertEquals(1, jSONObject0.length());\n assertNull(jSONArray0);\n assertSame(jSONObject2, jSONObject0);\n assertSame(jSONObject2, jSONObject1);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject0, jSONObject2);\n }", "title": "" }, { "docid": "3ce355e3c32754099741887eef4a5a0a", "score": "0.5409", "text": "public JSONArray convertJSONs() throws Exception {\r\n\t\tList<JSONObject> listOfProfileObjects = extractObjectsFromJSON();\r\n\t\tList<JSONObject> cities = new ArrayList<>();\r\n\r\n\t\tfor (JSONObject profileObj : listOfProfileObjects) {\r\n\t\t\tString cityName;\r\n\t\t\tJSONObject address;\r\n\t\t\tString street;\r\n\t\t\tString zip;\r\n\t\t\tString resident;\r\n\r\n\t\t\ttry {\r\n\t\t\t\taddress = (JSONObject) profileObj.get(\"address\");\r\n\t\t\t\tcityName = (String) address.get(\"city\");\r\n\t\t\t\tstreet = (String) address.get(\"street\");\r\n\t\t\t\tzip = (String) address.get(\"zip\");\r\n\t\t\t\tresident = (String) (profileObj.get(\"first name\") + \" \" + profileObj.get(\"last name\"));\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t\tthrow new Exception(\"Object invalid\", e);\r\n\t\t\t}\r\n\t\t\tif (cityName == null) {\r\n\t\t\t\tcityName = \"not stated\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tboolean cityAlreadyInTheList = false;\r\n\t\t\tfor (JSONObject cityObject : cities) {\r\n\t\t\t\t// if city already exists, add the data from profileObj\r\n\t\t\t\tif (cityObject.get(\"name\").equals(cityName)) {\r\n\t\t\t\t\tif (!((Collection<String>) cityObject.get(\"streets\")).contains(street)) {\r\n\t\t\t\t\t\t((Collection<String>) cityObject.get(\"streets\")).add(street);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!((Collection<String>) cityObject.get(\"zips\")).contains(zip)) {\r\n\t\t\t\t\t\t((Collection<String>) cityObject.get(\"zips\")).add(zip);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t((Collection<String>) cityObject.get(\"residents\")).add(resident);\r\n\t\t\t\t\tcityObject.replace(\"meanAge\", (long) cityObject.get(\"meanAge\") + (long) profileObj.get(\"age\"));\r\n\t\t\t\t\tcityAlreadyInTheList = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// if city's not in the list yet, add newCity to the list\r\n\t\t\tif (!cityAlreadyInTheList) {\r\n\t\t\t\tJSONObject newCity = new JSONObject();\r\n\t\t\t\tList<String> streets = new ArrayList<>(Arrays.asList(street));\r\n\t\t\t\tList<String> zips = new ArrayList<>(Arrays.asList(zip));\r\n\t\t\t\tList<String> residents = new ArrayList<>(Arrays.asList(resident));\r\n\t\t\t\tnewCity.put(\"name\", cityName);\r\n\t\t\t\tnewCity.put(\"streets\", streets);\r\n\t\t\t\tnewCity.put(\"zips\", zips);\r\n\t\t\t\tnewCity.put(\"residents\", residents);\r\n\t\t\t\tnewCity.put(\"meanAge\", profileObj.get(\"age\"));\r\n\t\t\t\tcities.add(newCity);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// divide ages to get mean, then add updated JSONObjects to JSONArray\r\n\t\tJSONArray cityJsonArray = new JSONArray();\r\n\t\tfor (JSONObject cityJsonObject : cities) {\r\n\t\t\tcityJsonObject.replace(\"meanAge\", calculateMeanAge(cityJsonObject));\r\n\t\t\tcityJsonArray.add(cityJsonObject);\r\n\t\t\tdeleteNulls(cityJsonObject);\r\n\t\t}\r\n\t\treturn cityJsonArray;\r\n\t}", "title": "" }, { "docid": "6d18feb39f3af329116a5769b02fc987", "score": "0.53840554", "text": "@RequestMapping(value = \"ajax_test\")\n @ResponseBody\n public String doRequest2() {\n \n JSONObject object3 = new JSONObject();\n object3.put(\"number\", String.valueOf(new Random().nextInt() * 1000)+\" 3\");\n object3.put(\"date\", new Date().toString()+\" 3\");\n \n// array.add(object1);\n// array.add(object2);\n// array.add(object3);\n \n return object3.toJSONString();\n }", "title": "" }, { "docid": "ca655443663102cb4998e0b38e190a9d", "score": "0.53143907", "text": "@SuppressWarnings(\"unchecked\")\r\n public JSONObject compareDifference(JSONObject oldJSONObject, JSONObject newJSONObject) {\r\n JSONObject resultJSONObject = new JSONObject();\r\n Iterator<String> newKeyIterator;\r\n\r\n newKeyIterator = newJSONObject.keys();\r\n String jsonKey;\r\n try {\r\n while (newKeyIterator.hasNext()) {\r\n jsonKey = newKeyIterator.next();\r\n // if key exists in old JSON object we need to compaare the old and new value.\r\n if (oldJSONObject.has(jsonKey)) {\r\n if (newJSONObject.optString(jsonKey).equals(oldJSONObject.optString(jsonKey))) {\r\n // resultJSONObject.put(jsonKey, newJSONObject.get(jsonKey));\r\n continue; // Only go on if the newvalue already exists and equals the old\r\n // value\r\n }\r\n }// else {\r\n // resultJSONObject.put(jsonKey, newJSONObject.get(jsonKey));\r\n // }\r\n // otherwise add it to the result object!\r\n resultJSONObject.put(jsonKey, newJSONObject.get(jsonKey));\r\n }\r\n } catch (JSONException e) {\r\n Activator.reportDebugMessage(\"Something went wrong comparing the two JSONObjects: \"\r\n + oldJSONObject.toString() + \" and \" + newJSONObject.toString());\r\n }\r\n // System.out.println(\"Result: \"+resultJSONObject.toString());\r\n\r\n return resultJSONObject;\r\n }", "title": "" }, { "docid": "c8f64961695313fd9ac376e93c49f8ee", "score": "0.53095645", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic static void createJSON(UUID uuid) {\n\t\t//Create the blank JSON objects\n\t\tJSONObject dat = new JSONObject();\n\t\tJSONObject locs = new JSONObject();\n\t\tWorld world = Bukkit.getServer().getWorld(\"world\");\n\t\tWorld creativeWorld = Bukkit.getServer().getWorld(\"creative\");\n\t\tWorld gamesWorld = Bukkit.getServer().getWorld(\"games\");\n\t\t\n\t\tJSONObject world_spawn = unzipLocation(world.getSpawnLocation());\n\t\tJSONObject creative_spawn = unzipLocation(creativeWorld.getSpawnLocation());\n\t\tJSONObject games_spawn = unzipLocation(gamesWorld.getSpawnLocation());\n\t\t\n\t\t//Create our JSON world objects\n\t\tlocs.put(\"creative\", creative_spawn);\n\t\tlocs.put(\"world\", world_spawn);\n\t\tlocs.put(\"games\", games_spawn);\n\t\t\n\t\t//Create our upper json objects\n\t\tdat.put(\"homes\", null);\n\t\tdat.put(\"last_locations\", locs);\n\t\t\n\t\t//Write it to the player's dat file\n\t\twriteJSON(uuid, dat);\n\t}", "title": "" }, { "docid": "f31ba5a66631403a5592639789d55c15", "score": "0.529556", "text": "@Override\n\tprotected BaseJsonItem CreateJsonItems() {\n\t\treturn new DetailItem();\n\t}", "title": "" }, { "docid": "c5f2a69c6db07c72ef343d6d072ee067", "score": "0.52708536", "text": "private ObjectNode createJsonNoteObject(NoteData item, boolean isAutosave, boolean plaintextOnly) {\r\n\r\n ObjectNode jsonObj = JsonHelper.getSharedObjectMapper().createObjectNode();\r\n\r\n if (plaintextOnly) {\r\n jsonObj.put(\"content\", HTMLHelper.htmlToPlaintextExt(item.getContent(), false));\r\n } else {\r\n jsonObj.put(\"content\", item.getContent());\r\n }\r\n jsonObj.put(\"tags\", extractTags(item));\r\n jsonObj.put(\"usersToNotify\", extractUsersToNotify(item));\r\n jsonObj.put(\"attachments\", extractAttachments(item));\r\n jsonObj.put(\"isDirectMessage\", item.isDirect());\r\n jsonObj.put(\"isAutosave\", isAutosave);\r\n if (item.getBlog() != null) {\r\n jsonObj.put(\"targetBlog\", BlogSearchHelper.createBlogSearchJSONResult(item.getBlog()\r\n .getId(), item.getBlog().getAlias(), item.getBlog().getTitle(), false));\r\n }\r\n if (item.getObjectProperties() != null) {\r\n ArrayNode properties = jsonObj.putArray(\"properties\");\r\n for (StringPropertyTO property : item.getObjectProperties()) {\r\n ObjectNode propertyJson = properties.addObject();\r\n propertyJson.put(\"keyGroup\", property.getKeyGroup());\r\n propertyJson.put(\"key\", property.getPropertyKey());\r\n propertyJson.put(\"value\", property.getPropertyValue());\r\n }\r\n }\r\n return jsonObj;\r\n }", "title": "" }, { "docid": "f8237044a56bacdd8f083f4b4d847239", "score": "0.5266925", "text": "protected JSONObject buildJSON() {\n\t\tfinal JSONObject featureJson = new JSONObject();\n\t\tfeatureJson.put(JSON_TYPE, JSON_FEATURE);\n\t\tfeatureJson.put(JSON_ID, id);\n\n\t\tfinal JSONObject geometryJson = new JSONObject();\n\t\tfinal JSONArray coordinateJson = new JSONArray();\n\n\t\tgeometryJson.put(JSON_COORDINATES, coordinateJson);\n\t\tfeatureJson.put(JSON_GEOMETRY, geometryJson);\n\n\t\tif(pointList.isEmpty()) {\n\t\t\t// Nothing to add\n\t\t} else {\n\t\t\tfinal Point2D firstPoint = pointList.get(0);\n\t\t\tfinal Point2D lastPoint = pointList.get(pointList.size() - 1);\n\n\t\t\tif(pointList.size() == 1) {\n\t\t\t\tgeometryJson.put(JSON_TYPE, JSON_TYPE_POINT);\n\t\t\t\tcoordinateJson.put(firstPoint.getX());\n\t\t\t\tcoordinateJson.put(firstPoint.getY());\n\t\t\t} else if(! firstPoint.equals(lastPoint)) {\n\t\t\t\tgeometryJson.put(JSON_TYPE, JSON_TYPE_LINESTRING);\n\t\t\t\taddCoordinatesToJSON(coordinateJson);\n\t\t\t} else {\n\t\t\t\tgeometryJson.put(JSON_TYPE, JSON_TYPE_POLYGON);\n\t\t\t\tfinal JSONArray pointsJson = new JSONArray();\n\t\t\t\taddCoordinatesToJSON(pointsJson);\n\t\t\t\tcoordinateJson.put(pointsJson);\n\t\t\t}\n\t\t}\n\n\t\tfinal JSONObject propertiesJson = new JSONObject();\n\t\tfeatureJson.put(JSON_PROPERTIES, propertiesJson);\n\t\tfor(final Entry<String, String> entry : properties.entrySet()) {\n\t\t\tfinal String key = entry.getKey();\n\t\t\tfinal String value = entry.getValue();\n\t\t\tpropertiesJson.put(key, value);\n\t\t}\n\t\t\n\t\treturn featureJson;\n\t}", "title": "" }, { "docid": "98c386c375a4fae3e84329b788cda6a2", "score": "0.5228179", "text": "@Test\n public void test07() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n assertEquals(0, jSONObject0.length());\n assertNotNull(jSONObject0);\n \n int int0 = jSONObject0.length();\n assertEquals(0, jSONObject0.length());\n assertEquals(0, int0);\n \n JSONObject jSONObject1 = jSONObject0.append(\"1\", (Object) \"1\");\n assertEquals(1, jSONObject0.length());\n assertEquals(1, jSONObject1.length());\n assertNotNull(jSONObject1);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n \n String string0 = JSONObject.valueToString(jSONObject1, 0, 0);\n assertEquals(1, jSONObject0.length());\n assertEquals(1, jSONObject1.length());\n assertNotNull(string0);\n assertEquals(\"{\\\"1\\\": [\\\"1\\\"]}\", string0);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n }", "title": "" }, { "docid": "6baf10010cf0d5c4ae4d8365848bd4eb", "score": "0.52085114", "text": "public Z withDefault(JsonObject jobj);", "title": "" }, { "docid": "d3dba8d99cc1eaa797839fcb1ec44929", "score": "0.5208349", "text": "public Z withValue(JsonObject jobj);", "title": "" }, { "docid": "4d8207edb2eb389d8bc75840770c04bc", "score": "0.5164304", "text": "public abstract void mo29948a(JSONObject jSONObject);", "title": "" }, { "docid": "f5808de1b6075c565f4a01d567eb5d21", "score": "0.5160559", "text": "public void mergeChanges(org.json.JSONObject srcObj, GenericClient srcGC) {\n try {\n // Make a copy of the source so the destination fields are copies\n org.json.JSONObject dstObj = getJSONObject();\n for (String field : srcGC.getChangeLog().keySet()) {\n dstObj.put(field, srcObj.get(field));\n logChange(field);\n }\n } catch (org.json.JSONException e) {\n throw new IllegalArgumentException(e);\n }\n }", "title": "" }, { "docid": "b2558e38f55817f19ec26de2fdb019a8", "score": "0.51366794", "text": "@Test\n public void test23() throws Throwable {\n HashMap<StringLabel, CategoryWordTag> hashMap0 = new HashMap<StringLabel, CategoryWordTag>();\n assertEquals(0, hashMap0.size());\n assertTrue(hashMap0.isEmpty());\n assertNotNull(hashMap0);\n \n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n assertEquals(0, hashMap0.size());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, jSONObject0.length());\n assertNotNull(jSONObject0);\n \n JSONObject jSONObject1 = jSONObject0.putOpt(\" Using defaultRule\", (Object) jSONObject0);\n assertEquals(1, jSONObject1.length());\n assertEquals(0, hashMap0.size());\n assertTrue(hashMap0.isEmpty());\n assertEquals(1, jSONObject0.length());\n assertNotNull(jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n \n HashMap<LabeledWord, IndexedWord> hashMap1 = new HashMap<LabeledWord, IndexedWord>();\n assertTrue(hashMap1.isEmpty());\n assertEquals(0, hashMap1.size());\n assertNotNull(hashMap1);\n \n try {\n JSONObject jSONObject2 = jSONObject1.append(\" Using defaultRule\", (Object) hashMap1);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[ Using defaultRule] is not a JSONArray.\n //\n }\n }", "title": "" }, { "docid": "ce519459f39bfcf38245ce06c74253ac", "score": "0.5125997", "text": "public abstract void mo29949b(JSONObject jSONObject);", "title": "" }, { "docid": "f7c09ae4cd43b59326ad61cd7fbe2d5d", "score": "0.5118252", "text": "public JSONWriter object() {\n\t}", "title": "" }, { "docid": "b745502071f39ce42e064149e2834567", "score": "0.51098096", "text": "public static void mixinJsonAnnotations() {\n LOG.info(\"Mixing in JSON annotations for HiveJob and Job into Job\");\n JSONUtil.mixinAnnotatons(Job.class, AnnotationMixinClass.class);\n }", "title": "" }, { "docid": "94e5aa48aa5a0683015ebaa199c832ca", "score": "0.5107011", "text": "public void fromJSON(JSONObject object) {\n JSONObject nave = (JSONObject) ((JSONObject) object.get(\"super\")).get(\"Nave\");\r\n JSONObject entity = (JSONObject) ((JSONObject) nave.get(\"super\")).get(\"Entity\");\r\n JSONObject state = (JSONObject) ((JSONObject) entity.get(\"super\")).get(\"State\");\r\n\r\n /*for (Iterator iterator = opciones.keySet().iterator(); iterator.hasNext();) {\r\n String key = (String) iterator.next();\r\n\r\n }*/\r\n \r\n // State\r\n this.id = (String) state.get(\"id\");\r\n this.name = (String) state.get(\"name\");\r\n this.destroy = (Boolean) state.get(\"destroy\");\r\n\r\n // Entity\r\n this.x = (double) entity.get(\"x\");\r\n this.y = (double) entity.get(\"y\");\r\n this.velocidad = new Vector2((double) entity.get(\"velocidadX\"), (double) entity.get(\"velocidadY\"));\r\n\r\n // Nave\r\n this.countProyectil = (int) (long) nave.get(\"countProyectil\");\r\n this.direccion = new Vector2((double) nave.get(\"xDir\"), (double) nave.get(\"yDir\"));\r\n this.angulo = (double) nave.get(\"angulo\");\r\n\r\n // NavePlayer\r\n this.health = (int) (long) object.get(\"health\");\r\n this.healthMax = (int) (long) object.get(\"healthMax\");\r\n this.leave = (Boolean) object.get(\"leave\");\r\n this.dead = (Boolean) object.get(\"dead\");\r\n this.puntaje = (int) (long) object.get(\"puntaje\");\r\n //this.navesAliadas; // El JSON trae los id de las navesAliadas\r\n this.idBullets = (int) (long) object.get(\"idBullets\");\r\n this.pregunta = (String) object.get(\"pregunta\");\r\n //this.opciones;\r\n this.bloqueado = (boolean) object.get(\"bloqueado\");\r\n this.respuesta = (int) (long) object.get(\"respuesta\");\r\n\r\n }", "title": "" }, { "docid": "04be67dbe3ab690b4014727f39b4230f", "score": "0.5098966", "text": "@Test(timeout = 4000)\n public void test093() throws Throwable {\n HashMap<JSONObject, Double> hashMap0 = new HashMap<JSONObject, Double>();\n HashMap<JSONObject, Double> hashMap1 = new HashMap<JSONObject, Double>();\n HashMap<JSONObject, Double> hashMap2 = new HashMap<JSONObject, Double>();\n JSONObject jSONObject0 = new JSONObject((Map) hashMap1);\n String string0 = \"000\";\n Boolean boolean0 = Boolean.valueOf(false);\n jSONObject0.put(\"000\", (Object) boolean0);\n String string1 = \"\";\n jSONObject0.optBoolean(\"000\", false);\n JSONArray jSONArray0 = new JSONArray();\n JSONArray jSONArray1 = null;\n try {\n jSONArray1 = new JSONArray(hashMap0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONArray initial value should be a string or collection or array.\n //\n verifyException(\"wheel.json.JSONArray\", e);\n }\n }", "title": "" }, { "docid": "477c80d888691da9131f964ab4e8bbe5", "score": "0.509837", "text": "private static JSONObject makeItFlat(final JSONObject flatOne, final String adressKey,\r\n final JSONObject inputObject) throws JSONException {\r\n String[] keys = JSONObject.getNames(inputObject);\r\n if (keys == null) {\r\n // If there exists no key try it must be an empty json object\r\n if (!adressKey.equals(\"\")) {\r\n flatOne.put(adressKey, new JSONObject());\r\n }\r\n } else {\r\n for (String key : keys) {\r\n if (inputObject.optJSONObject(key) == null) {\r\n if (adressKey.equals(\"\")) {\r\n flatOne.put(key, inputObject.optString(key));\r\n } else {\r\n flatOne.put(adressKey + \".\" + key, inputObject.optString(key));\r\n }\r\n } else {\r\n if (adressKey.equals(\"\")) {\r\n makeItFlat(flatOne, key, inputObject.optJSONObject(key));\r\n // Add the toplevel objects to the result object (that are the svgelement\r\n // id's)\r\n // flatOne.put(key, JSONObject.NULL);\r\n } else {\r\n makeItFlat(flatOne, adressKey + \".\" + key, inputObject.optJSONObject(key));\r\n }\r\n }\r\n }\r\n }\r\n // System.out.println(flatOne);\r\n return flatOne;\r\n }", "title": "" }, { "docid": "7f5c8fdbcbdce84f64c0a4fca844b0bf", "score": "0.50932014", "text": "JSONObject toJSON();", "title": "" }, { "docid": "91a713360e26a51928bc156831a816b4", "score": "0.50850964", "text": "public void getDataNegozioJSon(){\n String stringJSon = readShopFileJSon();\n\n //convert from json file to dataNegozioJSon data structure (with listaProdotti and mailRider)\n Gson gson = new Gson();\n JsonObject jsonObject = gson.fromJson(stringJSon, JsonObject.class);\n\n Log.d(\"JSON\", jsonObject.toString());\n\n //gestione listaProdotti, da file json a oggetto java List<Prodotto>\n JsonArray listaProdottiJSon = null;\n\n listaProdottiJSon = jsonObject.getAsJsonArray(\"listaprodotti\");\n\n\n if(listaProdottiJSon!=null){\n //insert each element in the list listaProdottiJSon in the listaProdotti\n for (int i=0; i<listaProdottiJSon.size(); i++){\n //get each jsonElement and insert in the corresponding Prodotto variable\n\n String nomeProdotto = listaProdottiJSon.get(i).getAsJsonObject().getAsJsonPrimitive(\"nome\").getAsString();\n String descrizioneProdotto = listaProdottiJSon.get(i).getAsJsonObject().getAsJsonPrimitive(\"descrizione\").getAsString();\n float prezzoProdotto = listaProdottiJSon.get(i).getAsJsonObject().getAsJsonPrimitive(\"prezzo\").getAsFloat();\n String urlImmagine = listaProdottiJSon.get(i).getAsJsonObject().getAsJsonPrimitive(\"urlimmagine\").getAsString();\n\n //nuovo prodotto dai dati presi dall'elemento i-esimo dell'array Prodotto nel file json\n Prodotto newProdotto = new Prodotto(nomeProdotto,descrizioneProdotto, prezzoProdotto, urlImmagine);\n\n //inserimento nella listaProdotti del nuovo prodotto\n listaprodotti.add(newProdotto);\n\n }\n }\n\n //gestione mailRider, da file json a oggetto java String\n String mailriderJSon=null;\n\n mailriderJSon = jsonObject.getAsJsonPrimitive(\"mailrider\").getAsString();\n\n if(mailriderJSon!=null){\n mailrider = mailriderJSon;\n }\n\n }", "title": "" }, { "docid": "bfaeddce2c32a6a27fc0fa0009ffc826", "score": "0.5081287", "text": "public DeleteRequest merge(JSONObject jsonO) {\n try {\n for ( String key : JSONObject.getNames(jsonO) ) {\n if ( \"_version\".equals(key) ) {\n } else if ( \"cmd\".equals(key) ) {\n setCmd(jsonO.optString(key));\n } else if ( \"programName\".equals(key) ) {\n setProgramName(jsonO.getString(key));\n } else if ( \"author\".equals(key) ) {\n setAuthor(jsonO.getString(key));\n } else {\n throw new RuntimeException(\"JSON parse error. Found invalid key: \" + key + \" in \" + jsonO);\n }\n }\n return this;\n } catch ( Exception e ) {\n throw new RuntimeException(\"JSON parse / casting error when parsing: \" + jsonO, e);\n }\n }", "title": "" }, { "docid": "2114d512a4e0721933879027eff57407", "score": "0.5078282", "text": "public static void m15755a(JSONObject jSONObject, String str, JSONObject jSONObject2) {\n try {\n jSONObject.put(str, jSONObject2);\n } catch (JSONException unused) {\n }\n }", "title": "" }, { "docid": "ace802ebfee9080f20e0595ad6322023", "score": "0.5075113", "text": "public abstract JsonObject serialize();", "title": "" }, { "docid": "04eaa642af67d98669072004cdaf45ef", "score": "0.50615966", "text": "@Test\n public void testJsonCommandsII() {\n // Cache related copy (highest) but with no data transfered\n //\n Payment object = new Payment();\n\n Payment clone = new Payment();\n clone.fromJson(object.toJson(), true, true);\n\n assertNull(object.getAuthorizationId());\n assertNull(object.getReference());\n assertNull(object.getRequestId());\n assertNull(object.getTransactionId());\n }", "title": "" }, { "docid": "3411a5c469c8599dfd584f552fb2ad42", "score": "0.50585717", "text": "@Override\r\n\tpublic void create(JSONArray jsonArray) throws JSONException {\n\t\t\r\n\t}", "title": "" }, { "docid": "70c1f94264b3724a06310b8b0494540e", "score": "0.5040494", "text": "public static JSONObject combineJsonObjects(final List<JSONObject> jsonObjects) {\n JSONObject combinedJson = null;\n try {\n \tcombinedJson = new JSONObject();\n for (final JSONObject eachJsonObj : jsonObjects) {\n final Iterator<?> keys = eachJsonObj.keys();\n String temp;\n while (keys.hasNext()) {\n temp = (String) keys.next();\n combinedJson.put(temp, eachJsonObj.get(temp));\n }\n }\n } catch (JSONException jsonex) {\n \tLOG.error(\"Exception occurred while combining json objects\", jsonex);\n }\n return combinedJson;\n }", "title": "" }, { "docid": "5ad6dc066198e8b23c0dea315cc8de41", "score": "0.5031425", "text": "@Test\n public void test21() throws Throwable {\n HashMap<Integer, CategoryWordTag> hashMap0 = new HashMap<Integer, CategoryWordTag>();\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertNotNull(hashMap0);\n \n JSONObject jSONObject0 = new JSONObject((Object) hashMap0);\n assertEquals(2, jSONObject0.length());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertNotNull(jSONObject0);\n \n Long long0 = new Long((-5L));\n assertEquals((-5L), (long)long0);\n \n JSONObject jSONObject1 = jSONObject0.put(\"fals>\", (Object) long0);\n assertEquals(3, jSONObject1.length());\n assertEquals(3, jSONObject0.length());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertNotNull(jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n \n try {\n JSONObject jSONObject2 = jSONObject1.getJSONObject(\"fals>\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[\\\"fals>\\\"] is not a JSONObject.\n //\n }\n }", "title": "" }, { "docid": "f7ee905e7a1849d7ff5af05d39859acb", "score": "0.5027254", "text": "public JSONObject mo29996a(JSONObject jSONObject, JSONObject jSONObject2, JSONObject jSONObject3, Set<String> set) {\n JSONObject a;\n synchronized (this.f12713c) {\n a = C4673v.m16247a(jSONObject, jSONObject2, jSONObject3, set);\n }\n return a;\n }", "title": "" }, { "docid": "f418830d406d936261e2fbea1a253cb9", "score": "0.50132006", "text": "public abstract JsonObject getJsonAttributes();", "title": "" }, { "docid": "4e9613ab7a1c40887f63b08ab78bf2d0", "score": "0.5005881", "text": "protected JSONObject newJSONObject() {\n return new JSONObject();\n }", "title": "" }, { "docid": "6e68a74578b66e1a3c097b5db3535c80", "score": "0.5003306", "text": "public abstract JSONObject getJson();", "title": "" }, { "docid": "e91b0858e2656840690ee9e11078f5b5", "score": "0.49962452", "text": "@Test(timeout = 4000)\n public void test058() throws Throwable {\n Object object0 = JSONObject.NULL;\n HashMap<String, Object> hashMap0 = new HashMap<String, Object>();\n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n hashMap0.put(\"nam\", jSONObject0);\n JSONObject jSONObject1 = new JSONObject((Map) hashMap0);\n JSONObject jSONObject2 = new JSONObject((Map) hashMap0);\n jSONObject1.optString(\"$xG<04\", \"$xG<04\");\n StringWriter stringWriter0 = new StringWriter();\n Writer writer0 = jSONObject2.write(stringWriter0);\n assertSame(stringWriter0, writer0);\n }", "title": "" }, { "docid": "202a7f90866dba2c32a8fd75734d1bf5", "score": "0.4995503", "text": "private static JSONObject m41336d() {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"clientTimeOut\", f29275a.mo44420b());\n jSONObject.put(\"type\", 2);\n JSONArray jSONArray = new JSONArray();\n for (String str : f29275a.mo44421c().mo44428c()) {\n jSONArray.put(str);\n }\n jSONObject.put(\"content\", jSONArray);\n return jSONObject;\n }", "title": "" }, { "docid": "dcb4c8a70e89766d82e8bfff61116877", "score": "0.49802604", "text": "public JsonPointer append(final JsonPointer other)\n {\n BUNDLE.checkNotNull(other, \"nullInput\");\n final List<TokenResolver<JsonNode>> list\n = Lists.newArrayList(tokenResolvers);\n list.addAll(other.tokenResolvers);\n return new JsonPointer(list);\n }", "title": "" }, { "docid": "9ecd3ac799c6ac473959b5430e5a19ad", "score": "0.49788985", "text": "private JsonElement parseObject(Sig sig, Id objectId) {\n var json = new JsonObject();\n\n json.add(Util.ID_FIELD, objectId.toJson());\n json.add(Util.TYPE_FIELD, Util.sigToJson(sig));\n var fields = this.sigFields.get(sig);\n for (Field field: fields) {\n var members = this.relations.get(field).get(objectId);\n var mult = field.decl().expr.mult();\n if (mult.equals(ExprUnary.Op.SETOF)) {\n var membersJson = new JsonArray();\n for (Id memberId : members) {\n var memberSig = this.objectToSig.get(memberId);\n var memberJson = parseObject(memberSig, memberId);\n membersJson.add(memberJson);\n }\n json.add(Util.fieldName(field), membersJson);\n }\n else if (members.iterator().hasNext()) {\n Id memberId = members.iterator().next();\n var memberSig = this.objectToSig.get(memberId);\n var memberJson = parseObject(memberSig, memberId);\n json.add(Util.fieldName(field), memberJson);\n }\n }\n return json;\n }", "title": "" }, { "docid": "f8776445f90aa9fa261bc9e490d03e32", "score": "0.49661148", "text": "public abstract void mo29951c(JSONObject jSONObject);", "title": "" }, { "docid": "b54b4ad2d9e31e54737a15ce801f7e5d", "score": "0.49540585", "text": "@Test\r\n public void testGetJsonFromEstu() {\r\n System.out.println(\"getJsonFrom\");\r\n List<Curso> cursos = new ArrayList<Curso>();\r\n List<Proyecto> proyectosEmpresa = new ArrayList<Proyecto>();\r\n List<Tecnologia> tecnologias = new ArrayList<Tecnologia>();\r\n Estudiante entidad = new Estudiante(\"Alberto\", \"Mora\", \"ALT\", \"12345678\", \r\n \"alberto.mora@gmail.com\", 81382254 , 1, null, \"213083442\", \"Costa Rica\", \"TEC\", \r\n \"https.www.sdsds.com\",cursos,proyectosEmpresa,tecnologias);\r\n JsonFactory instance = new JsonFactory();\r\n // JSONObject expResult = new JSONObject();\r\n JSONObject result = instance.getJsonFrom(entidad);\r\n //String nombreClase = entidad.getClass().toString();\r\n // System.out.println(nombreClase);\r\n assertEquals(result, result);//ojo\r\n \r\n }", "title": "" }, { "docid": "31829d8e2bf3298f3e8df2bf90179c86", "score": "0.49455595", "text": "public CombinedObjectProperty merge(CombinedObjectProperty other){\n CombinedObjectProperty res = new CombinedObjectProperty();\n res.mapping.putAll(this.mapping);\n res.mapping.putAll(other.mapping);\n res.mapping = Collections.unmodifiableMap(res.mapping);\n return res;\n }", "title": "" }, { "docid": "36a4cf37e38dead0c18f87eef86dd432", "score": "0.49439952", "text": "private JSONObject createObject(String link, String title, boolean hasLink, double[] props)\r\n\t{\r\n\t\tJSONObject obj = new JSONObject();\r\n\t\tobj.put(\"link\", link);\r\n\t\tobj.put(\"hasLink\", hasLink);\r\n\t\tobj.put(\"title\", title);\r\n\t\tobj.put(\"props\", JSONArrayConverter.toArray(props));\r\n\t\treturn obj;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a1a06f5ab8061710b38a0c1749f659cb", "score": "0.49425977", "text": "protected JSONObject createJSONPayload(Object pojo) {\n\t\treturn new JSONObject(pojo);\n\t}", "title": "" }, { "docid": "e7c62ff1d43e711a612da4b86c33ae4c", "score": "0.4935764", "text": "public static void main(String[] args) {\n Student student = new Student(\"Jan\", \"Kowalski\", 32);\n Student student1 = new Student(\"Rysiek\", \"Nowak\", 54);\n Student student2 = new Student(\"Waldek\", \"Kwas\", 44);\n Student student3 = new Student(\"Witek\", \"Morski\", 19);\n Student student4 = new Student(\"Olek\", \"Azor\", 28);\n Student student5 = new Student(\"Marek\", \"Kowal\", 24);\n\n ObjectMapper objectMapper = new ObjectMapper();\n List<Student> studentList = new ArrayList<>();\n studentList.add(student);\n studentList.add(student1);\n studentList.add(student2);\n studentList.add(student3);\n studentList.add(student4);\n studentList.add(student5);\n try {\n objectMapper.writeValue(new File(\"student.json\"), studentList);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n JSONUtils jsonUtils = new JSONUtils();\n jsonUtils.writeList(\"list.json\", studentList);\n jsonUtils.readList(\"list.json\");\n }", "title": "" }, { "docid": "526c6140ab566f711da221eebe9e64a7", "score": "0.4922136", "text": "public static ProcessParameters newProcessParametersUsingJSON(JSONObject obj, String jobIdNumber) {\n\t\t\n\t\t// Can be New, Archive, In, Out.\n\t\tString type = (String)obj.get(\"type\");\n\t\t\n\t\tif (type.equals(\"New\") || type.equals(\"Archive\")) {\n\t\t\tInteger videoInfoId = Integer.parseInt((String)obj.get(\"video_info_id\"));\n\t\t\tInteger clientInfoId = Integer.parseInt((String)obj.get(\"client_info_id\"));\n\t\t\tInteger channelNo = Integer.parseInt((String)obj.get(\"channel_no\"));\n\t\t\tString inputFileName = (String)obj.get(\"input_filename\");\n\t\t\tString outputFileName = (String)obj.get(\"output_filename\");\n\t\t\tInteger clipStartPos = Integer.parseInt((String)obj.get(\"clip_start_pos\"));\n\t\t\tInteger clipEndPos = Integer.parseInt((String)obj.get(\"clip_end_pos\"));\n\t\t\tString mp3_title = (String)obj.get(\"mp3_title\");\n\t\t\tString mp3_artist = (String)obj.get(\"mp3_artist\");\n\t\t\tString mp3_album = (String)obj.get(\"mp3_album\");\n\t\t\t\n\t\t\tString forceReencoding = (String)obj.get(\"force_reencode\");\n\t\t\tboolean force_reencoding = false;\n\t\t\tif (forceReencoding.equals(\"Y\"))\n\t\t\t\tforce_reencoding = true;\n\t\t\t\n\t\t\tif (type.equals(\"New\")) {\n\t\t\t\treturn newRecording(clientInfoId, channelNo, videoInfoId, mp3_title, mp3_artist, mp3_album, clipStartPos, clipEndPos, inputFileName, outputFileName, force_reencoding, jobIdNumber);\n\t\t\t} else {\n\t\t\t\treturn newArchive(clientInfoId, channelNo, videoInfoId, mp3_title, mp3_artist, mp3_album, clipStartPos, clipEndPos, inputFileName, outputFileName, force_reencoding, jobIdNumber);\t\t\t\t\n\t\t\t}\n\t\t} else if (type.equals(\"In\") || type.equals(\"Out\")) {\n\t\t\tInteger inOutVideoInfoId = Integer.parseInt((String)obj.get(\"in_out_video_info_id\"));\n\t\t\tInteger clientInfoId = Integer.parseInt((String)obj.get(\"client_info_id\"));\n\t\t\tInteger channelNo = Integer.parseInt((String)obj.get(\"channel_no\"));\n\t\t\tString cmd = (String)obj.get(\"cmd\");\n\t\t\tString filename = (String)obj.get(\"input_filename\");\n\t\t\t\n\t\t\tif (type.equals(\"In\"))\n\t\t\t\treturn newIn(clientInfoId, channelNo, inOutVideoInfoId, filename, cmd, jobIdNumber);\n\t\t\telse\n\t\t\t\treturn newOut(clientInfoId, channelNo, inOutVideoInfoId, filename, cmd, jobIdNumber);\n\t\t} else if (type.equals(\"Download\")) {\n\t\t\tInteger downloadhistoryId = Integer.parseInt((String)obj.get(\"download_history_id\"));\n\t\t\tInteger clientInfoId = Integer.parseInt((String)obj.get(\"client_info_id\"));\n\t\t\tInteger channelNo = Integer.parseInt((String)obj.get(\"channel_no\"));\n\t\t\tString inputFileName = (String)obj.get(\"input_filename\");\n\n\t\t\treturn newDownload(clientInfoId, channelNo, downloadhistoryId, inputFileName, jobIdNumber);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d72add157e7361455cfdae9badfcdc10", "score": "0.49197942", "text": "protected Json(Json master, String title) {\r\n\t\tthis.master = master;\r\n\t\tthis.title = title;\r\n\t}", "title": "" }, { "docid": "32df15270fcffc4c954c3dea6a145447", "score": "0.4918658", "text": "private void create(JSONObject json) throws JSONException{\n mAnalyzerID = json.getString(\"analyzerId\");\n mResult = json.getString(\"result\");\n }", "title": "" }, { "docid": "e17123ee39d1bc1bf2c01a200350e71c", "score": "0.4894176", "text": "public interface JsonBase {\n\n /**\n * <i>null</i> type name.\n */\n public static final String JSON_TYPE_NULL = \"null\";\n\n /**\n * <i>boolean</i> type name.\n */\n public static final String JSON_TYPE_BOOLEAN = \"boolean\";\n\n /**\n * <i>numeric</i> type name.\n */\n public static final String JSON_TYPE_NUMERIC = \"numeric\";\n\n /**\n * <i>string</i> type name.\n */\n public static final String JSON_TYPE_STRING = \"string\";\n\n /**\n * <i>array</i> type name.\n */\n public static final String JSON_TYPE_ARRAY = \"array\";\n\n /**\n * <i>object</i> type name.\n */\n public static final String JSON_TYPE_OBJECT = \"object\";\n\n /**\n * Returns a string description of the <i>JSON</i> type.\n *\n * @return one of <i>JSON_TYPE</i> constants.\n */\n public String getJsonType();\n\n /**\n * Converts this JSON object to string representation.\n *\n * @return a flat json string.\n */\n public String asJSON();\n\n /**\n * Converts this JSON object to a pretty string representation.\n *\n * @return a prettyfied json string.\n */\n public String asPrettyJSON();\n\n /* Cast operators. */\n \n public boolean isSimple();\n\n public boolean isNull();\n\n public boolean isBoolean();\n\n public boolean isString();\n\n public boolean isNumeric();\n\n public boolean isInteger();\n\n public boolean isDouble();\n\n public boolean isComplex();\n\n public boolean isArray();\n\n public boolean isObject();\n\n}", "title": "" }, { "docid": "0b1aff149b1ecc5e40fc8fff8665811a", "score": "0.48903486", "text": "private void createNutrientDataObjects(List<NutrientData> nutrientsList, JSONObject nutrientsObj) {\n JSONArray totalNutrientsArr = nutrientsObj.toJSONArray(nutrientsObj.names());\n for (int i = 0; i < totalNutrientsArr.length(); i++) {\n JSONObject singularNutrientData = totalNutrientsArr.getJSONObject(i);\n String label = singularNutrientData.getString(\"label\");\n float qty = singularNutrientData.getFloat(\"quantity\");\n String unit = singularNutrientData.getString(\"unit\");\n\n NutrientData currentNutrientData = new NutrientDataImpl();\n setNutrientData(currentNutrientData, label, qty, unit);\n nutrientsList.add(currentNutrientData);\n }\n }", "title": "" }, { "docid": "f1f7c28b0afded6cde4501f65d033ffa", "score": "0.48895848", "text": "private void getJsonForLegacyJob(MRStatusObject statusObj)\n {\n\n String url = \"http://\" + statusObj.getUri() + \":\" + statusObj.getRmPort() + \"/jobdetails.jsp?format=json&jobid=job_\" + statusObj.getJobId();\n String responseBody = MRUtil.getJsonForURL(url);\n\n JSONObject jsonObj = MRUtil.getJsonObject(responseBody);\n if (jsonObj == null) {\n return;\n }\n\n if (jobMap.get(statusObj.getJobId()) != null) {\n MRStatusObject tempObj = jobMap.get(statusObj.getJobId());\n if (tempObj.getJsonObject().toString().equals(jsonObj.toString())) {\n getJsonsForLegacyTasks(statusObj, \"map\");\n getJsonsForLegacyTasks(statusObj, \"reduce\");\n // output.emit(jsonObj.toString());\n // removeJob(statusObj.getJobId());\n return;\n }\n }\n\n // output.emit(jsonObj.toString());\n statusObj.setModified(true);\n statusObj.setJsonObject(jsonObj);\n getJsonsForLegacyTasks(statusObj, \"map\");\n getJsonsForLegacyTasks(statusObj, \"reduce\");\n jobMap.put(statusObj.getJobId(), statusObj);\n\n }", "title": "" }, { "docid": "579b48db8f513d14d3b2eb10bd824619", "score": "0.48879945", "text": "public ArrayList<JsonObject> processRetrieval() {\n //resulting list of Json objects\n ArrayList<JsonObject> owlObjects = new ArrayList<>();\n Collection<OWLClassExpression> entityClasses;\n Set<OWLNamedIndividual> individuals = ontology.getIndividualsInSignature();\n //go over all instances of the class\n for (OWLNamedIndividual ind : individuals) {\n JsonObject owlObject = new JsonObject() ;\n // insert object properties and its corresponding values for the current individual found in the owl model\n for (OWLObjectProperty p : ontology.getObjectPropertiesInSignature()) {\n NodeSet<OWLNamedIndividual> individualValues = reasoner.getObjectPropertyValues(ind, p);\n Set<OWLNamedIndividual> values = individualValues.getFlattened();\n //get the name of the property\n String propertyName = p.getIRI().getShortForm();\n if(propertyName.toLowerCase().startsWith(\"has\")) {\n propertyName = propertyName.substring(3);\n }\n if (!values.isEmpty()) {\n //add found values to array\n Iterator<OWLNamedIndividual> iter = values.iterator();\n JsonArray array = new JsonArray();\n while(iter.hasNext()) {\n array.add(iter.next().getIRI().getShortForm());\n }\n //add property-value pair to the Json object\n owlObject.add(propertyName, array);\n }\n }\n //retrieve all the data properties and corresponding value from the model as well\n for (OWLDataProperty d : ontology.getDataPropertiesInSignature()) {\n Set<OWLLiteral> values = reasoner.getDataPropertyValues(ind, d);\n String propertyName = d.getIRI().getShortForm();\n if(propertyName.startsWith(\"has\")) {\n propertyName = propertyName.substring(3);\n }\n if (!values.isEmpty()) {\n String[] resultSplit = new String[values.size()];\n int i = 0;\n //check the datatype of the corresponding literal\n for(OWLLiteral literal: values) {\n OWLDatatype datatype = literal.getDatatype();\n if(datatype.isDouble()) {\n resultSplit[i] = \"\"+literal.parseDouble();\n }else if(datatype.isString()) {\n resultSplit[i] = literal.getLiteral();\n }else if(datatype.isBoolean()) {\n resultSplit[i] = \"\" + literal.parseBoolean();\n }else if(datatype.isInteger()) {\n resultSplit[i] = \"\" + literal.parseInteger();\n }else if(datatype.isFloat()) {\n resultSplit[i] = \"\" + literal.parseFloat();\n }\n i++;\n }\n //add values of data property to array\n JsonArray array = new JsonArray();\n for(int j = 0; j < resultSplit.length; j++) {\n array.add(resultSplit[j]);\n }\n //add property-value pair to Json object\n owlObject.add(propertyName, array);\n }\n }\n if(owlObject.size() >=1) {\n //add \"worldobjectid\"\n String instanceName = ind.getIRI().getShortForm();\n owlObject.addProperty(\"worldobjectid\", instanceName);\n //retrieve the type of the indivdual and add it as \"worldobjecttype\"\n entityClasses = EntitySearcher.getTypes(ind, ontology);\n JsonArray typeArray = new JsonArray();\n for(OWLClassExpression entityClass: entityClasses) {\n typeArray.add(entityClass.asOWLClass().getIRI().getShortForm());\n }\n owlObject.add(\"worldobjecttype\", typeArray);\n //add Json object to list\n owlObjects.add(owlObject);\n }\n }\n return owlObjects;\n }", "title": "" }, { "docid": "5c650d98ad903a70d89e20fbe87d5dd4", "score": "0.48853174", "text": "public static JsonNode copyObjectNode(JsonNode jsonNode) {\n return ProfilesHelpers.merge(createObjectNode(), jsonNode);\n }", "title": "" }, { "docid": "e86e5c83d1bc00a47eef8bd02b65f20e", "score": "0.48824617", "text": "protected String toJSONFragment() {\n StringBuffer json = new StringBuffer();\n boolean first = true;\n if (isSetASIN()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"ASIN\"));\n json.append(\" : \");\n json.append(quoteJSON(getASIN()));\n first = false;\n }\n if (isSetSellerSKU()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"SellerSKU\"));\n json.append(\" : \");\n json.append(quoteJSON(getSellerSKU()));\n first = false;\n }\n if (isSetOrderItemId()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"OrderItemId\"));\n json.append(\" : \");\n json.append(quoteJSON(getOrderItemId()));\n first = false;\n }\n if (isSetTitle()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"Title\"));\n json.append(\" : \");\n json.append(quoteJSON(getTitle()));\n first = false;\n }\n if (isSetQuantityOrdered()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"QuantityOrdered\"));\n json.append(\" : \");\n json.append(quoteJSON(getQuantityOrdered() + \"\"));\n first = false;\n }\n if (isSetQuantityShipped()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"QuantityShipped\"));\n json.append(\" : \");\n json.append(quoteJSON(getQuantityShipped() + \"\"));\n first = false;\n }\n if (isSetItemPrice()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"ItemPrice\\\" : {\");\n Money itemPrice = getItemPrice();\n\n\n json.append(itemPrice.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetShippingPrice()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"ShippingPrice\\\" : {\");\n Money shippingPrice = getShippingPrice();\n\n\n json.append(shippingPrice.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetGiftWrapPrice()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"GiftWrapPrice\\\" : {\");\n Money giftWrapPrice = getGiftWrapPrice();\n\n\n json.append(giftWrapPrice.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetItemTax()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"ItemTax\\\" : {\");\n Money itemTax = getItemTax();\n\n\n json.append(itemTax.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetShippingTax()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"ShippingTax\\\" : {\");\n Money shippingTax = getShippingTax();\n\n\n json.append(shippingTax.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetGiftWrapTax()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"GiftWrapTax\\\" : {\");\n Money giftWrapTax = getGiftWrapTax();\n\n\n json.append(giftWrapTax.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetShippingDiscount()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"ShippingDiscount\\\" : {\");\n Money shippingDiscount = getShippingDiscount();\n\n\n json.append(shippingDiscount.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetPromotionDiscount()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"PromotionDiscount\\\" : {\");\n Money promotionDiscount = getPromotionDiscount();\n\n\n json.append(promotionDiscount.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetPromotionIds()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"PromotionIds\\\" : {\");\n PromotionIdList promotionIds = getPromotionIds();\n\n\n json.append(promotionIds.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetCODFee()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"CODFee\\\" : {\");\n Money CODFee = getCODFee();\n\n\n json.append(CODFee.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetCODFeeDiscount()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"CODFeeDiscount\\\" : {\");\n Money CODFeeDiscount = getCODFeeDiscount();\n\n\n json.append(CODFeeDiscount.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetGiftMessageText()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"GiftMessageText\"));\n json.append(\" : \");\n json.append(quoteJSON(getGiftMessageText()));\n first = false;\n }\n if (isSetGiftWrapLevel()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"GiftWrapLevel\"));\n json.append(\" : \");\n json.append(quoteJSON(getGiftWrapLevel()));\n first = false;\n }\n if (isSetInvoiceData()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"InvoiceData\\\" : {\");\n InvoiceData invoiceData = getInvoiceData();\n\n\n json.append(invoiceData.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetConditionNote()) {\n \tif (!first) json.append(\", \");\n \tjson.append(quoteJSON(\"ConditionNote\"));\n \tjson.append(\" : \");\n \tjson.append(quoteJSON(conditionNote));\n \tfirst = false;\n }\n if (isSetConditionId()) {\n \tif (!first) json.append(\", \");\n \tjson.append(quoteJSON(\"ConditionId\"));\n \tjson.append(\" : \");\n \tjson.append(quoteJSON(conditionId));\n \tfirst = false;\n }\n if (isSetConditionSubtypeId()) {\n \tif (!first) json.append(\", \");\n \tjson.append(quoteJSON(\"ConditionSubtypeId\"));\n \tjson.append(\" : \");\n \tjson.append(quoteJSON(conditionSubtypeId));\n \tfirst = false;\n }\n if (isSetScheduledDeliveryStartDate()) {\n \tif (!first) json.append(\", \");\n \tjson.append(quoteJSON(\"ScheduledDeliveryStartDate\"));\n \tjson.append(\" : \");\n \tjson.append(quoteJSON(scheduledDeliveryStartDate));\n \tfirst = false;\n }\n if (isSetScheduledDeliveryEndDate()) {\n \tif (!first) json.append(\", \");\n \tjson.append(quoteJSON(\"ScheduledDeliveryEndDate\"));\n \tjson.append(\" : \");\n \tjson.append(quoteJSON(scheduledDeliveryEndDate));\n \tfirst = false;\n }\n return json.toString();\n }", "title": "" }, { "docid": "7d55a7e6132f162e2ba10e54bf239a92", "score": "0.48821118", "text": "java.lang.String getExtraJson();", "title": "" }, { "docid": "afe6c34adb8d67bfc8da42b8dcf265cb", "score": "0.4882067", "text": "@JsonCreator\n public NTuple(@JsonProperty Object[] other) {\n array = new Object[other.length];\n System.arraycopy(other, 0, array, 0, other.length);\n }", "title": "" }, { "docid": "332431037010a95cb2dc3825e6eaeb4c", "score": "0.48759943", "text": "@Test\n public void test45() throws Throwable {\n HashMap<String, IndexedWord> hashMap0 = new HashMap<String, IndexedWord>();\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertNotNull(hashMap0);\n \n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n assertEquals(0, jSONObject0.length());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertNotNull(jSONObject0);\n \n JSONObject jSONObject1 = jSONObject0.append(\"<ft\", (Object) \"<ft\");\n assertEquals(1, jSONObject1.length());\n assertEquals(1, jSONObject0.length());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertNotNull(jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n \n boolean boolean0 = jSONObject1.optBoolean(\"<ft\");\n assertEquals(1, jSONObject1.length());\n assertEquals(1, jSONObject0.length());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertFalse(boolean0);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n }", "title": "" }, { "docid": "4f515175f5e7282a3645aee59517e16a", "score": "0.48755464", "text": "public JsonObject merge(JsonObject object) {\n if (object == null) {\n throw new NullPointerException(\"object is null\");\n }\n for (Member member : object) {\n this.set(member.name, member.value);\n }\n return this;\n }", "title": "" }, { "docid": "64cc37671131531322a7e8734a35b645", "score": "0.48691198", "text": "@Override\r\n\tpublic String[] updateJsonProperties() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "2aa4eb3d804387530767d135da4ead31", "score": "0.4868307", "text": "public void parseCampJSON() throws Exception {\n JSONObject mainObj = new JSONObject(jsonString);\n JSONArray array = mainObj.getJSONArray(\"data\");\n\n for (int i = 0; i < array.length(); i++) {\n ArrayList<Address> addies = new ArrayList<>();\n ArrayList<PhoneNumber> numbers = new ArrayList<>();\n ArrayList<String> emails = new ArrayList<>();\n ArrayList<Hours> hours = new ArrayList<>();\n String direct = \"\";\n String wheelchair = \"\";\n String ada = \"\";\n String toilets = \"\";\n String internet = \"\";\n String showers = \"\";\n String water = \"\";\n String fees = \"\";\n String weather = \"\";\n String regURL = \"\";\n String url = \"\";\n\n JSONObject subObj = array.getJSONObject(i);\n JSONArray curr = null;\n JSONObject currObj = null;\n JSONObject con = null;\n int j = 0;\n boolean good = true;\n\n try {\n curr = subObj.getJSONArray(\"addresses\");\n } catch (Exception e) {\n good = false;\n }\n if (good) {\n for (j = 0; j < curr.length(); j++) {\n currObj = curr.optJSONObject(j);\n addies.add(new Address(currObj.getString(\"line1\"), currObj.getString(\"line2\"), currObj.getString(\"line3\"), currObj.getString(\"city\"),\n currObj.getString(\"stateCode\"), currObj.getString(\"postalCode\"), currObj.getString(\"type\"))); //PROBLEM HERE\n }\n }\n\n try {\n con = subObj.getJSONObject(\"contacts\");\n } catch (Exception e) {\n good = false;\n }\n if (good) {\n curr = con.getJSONArray(\"phoneNumbers\");\n for (j = 0; j < curr.length(); j++) {\n currObj = curr.optJSONObject(j);\n numbers.add(new PhoneNumber(currObj.getString(\"phoneNumber\"), currObj.getString(\"type\")));\n }\n\n curr = con.getJSONArray(\"emailAddresses\");\n for (j = 0; j < curr.length(); j++) {\n currObj = curr.optJSONObject(j);\n emails.add(currObj.getString(\"emailAddress\"));\n }\n }\n\n good = true;\n try {\n curr = subObj.getJSONArray(\"operatingHours\");\n } catch (Exception e) {\n good = false;\n }\n if (good) {\n if (curr.length() > 0) {\n for (j = 0; j < 1; j++) {\n currObj = curr.optJSONObject(j);\n JSONObject hoursArray = currObj.getJSONObject(\"standardHours\");\n Map<String, String> stan = new HashMap<>();\n Iterator<String> iter = hoursArray.keys();\n while (iter.hasNext()) {\n String key = iter.next();\n String val = hoursArray.getString(key);\n stan.put(key, val);\n }\n hours.add(new Hours(currObj.getString(\"name\"), currObj.getString(\"description\"), stan));\n }\n }\n }\n\n good = true;\n try {\n currObj = subObj.getJSONObject(\"accessibility\");\n } catch (Exception e) {\n good = false;\n }\n if (good) {\n try {\n wheelchair = currObj.getString(\"wheelchairaccess\");\n } catch (Exception e) {\n }\n try {\n ada = currObj.getString(\"adainfo\");\n } catch (Exception e) {\n }\n }\n\n good = true;\n currObj = null;\n try {\n currObj = subObj.getJSONObject(\"amenities\");\n } catch (Exception e) {\n good = false;\n }\n if (good) {\n try {\n toilets = currObj.getString(\"toilets\");\n } catch (Exception e) {\n }\n try {\n internet = currObj.getString(\"internetConnectivity\");\n } catch (Exception e) {\n }\n try {\n showers = currObj.getString(\"showers\");\n } catch (Exception e) {\n }\n try {\n water = currObj.getString(\"potableWater\");\n } catch (Exception e) {\n }\n }\n\n try {\n fees = subObj.getString(\"fees\");\n } catch (Exception e) {\n }\n\n try {\n weather = subObj.getString(\"weatheroverview\");\n } catch (Exception e) {\n }\n\n try {\n regURL = subObj.getString(\"regulationsurl\");\n } catch (Exception e) {\n }\n\n try {\n direct = subObj.getString(\"directionsoverview\");\n } catch (Exception e) {\n }\n\n results.add(new VCenterSearchResult(subObj.getString(\"name\"), subObj.getString(\"description\"), direct,\n subObj.getString(\"latLong\"), numbers, emails, addies, hours, url, wheelchair, ada, toilets,\n internet, showers, water, fees, weather, regURL, \"Campground\"));\n }\n }", "title": "" }, { "docid": "268f83b3a817e2b91daa6d299a8849ca", "score": "0.48606637", "text": "private Object handleObject(JsonObject json, JsonDeserializationContext context) {\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\tfor(Map.Entry<String, JsonElement> entry : json.entrySet())\n\t\t\tmap.put(entry.getKey(), context.deserialize(entry.getValue(), Object.class));\n\t\t\treturn map;\n\t}", "title": "" }, { "docid": "73c694e8127bc29ed05572f8f5cbbe29", "score": "0.48488277", "text": "public JSONObject createFinalJSON() {\r\n\t\t// Create the JSONObject\t\r\n\t\tJSONObject finalOutput = new JSONObject();\r\n\t\ttry {\r\n\t\t\t// Create the JSONObject containing a JSONArray\r\n\t\t\t// created using the createJSonArray method\r\n\t\t\t// name the JSONObject as \"departments\"\r\n\t\t\tfinalOutput.put(\"departments\", createJSonArray());\r\n\t\t}catch(Exception e) {\r\n\t\t e.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t// Return the JSONObject containing the array\r\n\t\t\treturn finalOutput;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "692cce547b701c1b473293cb204eddd3", "score": "0.48486444", "text": "public static void main(String[] args) throws JsonParseException, JsonMappingException, IOException {\n\t\tCompanyDemo companydemo=new CompanyDemo();\n\t\tCustomer customer=new Customer();\n\t\t\n\t\tString filePath = \"companydemo.json\";\n\t\tString filePath1=\"customer.json\";\n\n\t\tFile file = new File(filePath);\n\t\tFile file1 = new File(filePath1);\n\t\tString writeCustPath=\"/home/admin1/eclipse-workspace/JavaProject2/customer1.json\";\n\t\tString writeCompanyPath =\"/home/admin1/eclipse-workspace/JavaProject2/writecompany1.json\";\n\t\t\n\t\tFile file2=new File(writeCustPath);\n\t\tFile file3=new File(writeCompanyPath);\n\t\t\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\t\n\t\tQueue1 buyqueue=new Queue1();\n\t\tQueue1 sellqueue=new Queue1();\n\t\tList<CompanyDemo> companyList = objectMapper.readValue(file, new TypeReference<List<CompanyDemo>>() {});\n\t\tfor(int i=0;i<companyList.size();i++)\n\t\t{\n\t\t\tSystem.out.println(\"Name:\"+\" \"+companyList.get(i).getCname());\n\t\t\tSystem.out.println(\" Share Price:\"+\" \"+companyList.get(i).getSharePrice());\n\t\t\t\n\t\t\tSystem.out.println(\"Number of Share:\"+\" \"+companyList.get(i).getNumberofshare());\n\t\t\tSystem.out.println(\"---------------------------------------------\");\n\t\t\t\n\t\t}\n\t\t\n\t\tList<Customer> custList = objectMapper.readValue(file1, new TypeReference<List<Customer>>() {});\n\t\tfor(int i=0;i<custList.size();i++)\n\t\t{\n\t\t\tSystem.out.println(\"Customer_id:\"+\" \"+custList.get(i).getCustid());\n\t\t\tSystem.out.println(\" CustName:\"+\" \"+custList.get(i).getCustname());\n\t\t\tSystem.out.println(\"Mobile_No:\"+\" \"+custList.get(i).getMobileno());\n\t\t\tSystem.out.println(\"City:\"+\" \"+custList.get(i).getCity());\n\t\t\tSystem.out.println(\"date\"+\" \"+custList.get(i).getDate());\n\t\t\tSystem.out.println(\"Customer available share:\"+\" \"+custList.get(i).getCustomerAvailableShare());\n\t\t\tSystem.out.println(\"---------------------------------------------\");\n\t\t\t//purchsed.push(0);\n\t\t\t//sold.push(0);\n\t\t\tbuyqueue.insert(0);\n\t\t\tsellqueue.insert(0);\n\t\t\tboolean flag = false ;\n\t\t\twhile(flag == false ) {\n\t\t\t\tcompanydemo=(CompanyDemo)companyList.get(0);\n\t\t\t\tcustomer=(Customer)custList.get(0);\n\t\t\t\tSystem.out.println(companydemo);\n\t\t\t\tSystem.out.println(customer);\n\t\t\t\tSystem.out.println(\"Enter the choice\");\n\t\t\t\tSystem.out.println(\"\\t 1.Purches Shares \\t 2.Sell Shares \\t 3.display \\t 4.exit\");\n\t\t\t\tint choice = JsonUtility.inputInteger();\n\t\t\t\tswitch(choice)\n\t\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"enter the number of share,want to purches\");\n\t\t\t\t\tint buynumberofshare=JsonUtility.inputInteger();\n\t\t\t\t\t\n\t\t\t\t\tif( buynumberofshare>companydemo.getNumberofshare())\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println( buynumberofshare+\"number of share not available\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\tint companyshare=companydemo.getNumberofshare()-buynumberofshare;\n\t\tSystem.out.println(\"after sell companys share\"+\"---\"+companyshare);\n\t\tint customershare=customer.getCustomerAvailableShare()+buynumberofshare;\n\t\tSystem.out.println(\"after buy customer share:\"+\"---\"+customershare);\n\t\tcompanydemo.setNumberofshare(companyshare);\n\t\tcustomer.setCustomerAvailableShare(customershare);\n\t\tSystem.out.println(\"enter the date\");\n\t\tString date=JsonUtility.inputSingleString();\n\t\tcustomer.setDate(date);\n System.out.println(\"You have successfully buyed :\"+\"---\"+buynumberofshare+\"---\"+\" of \"+\"---\"+companydemo.getCname()+\"---\"+\" on \"+customer.getDate());\n \n // purchsed.push(buynumberofshare);\n \tbuyqueue.insert(buynumberofshare);\n \t//sellqueue.remove(buynumberofshare);\n\t\tcompanyList.add(companydemo);\n\t\tcustList.add(customer);\n\t\tobjectMapper.writeValue(file2,customer);\n\t\tobjectMapper.writeValue(file3,companydemo);\n \t\n\t\t}\n\t\tbreak;\t\t\t\n\t\tcase 2:\n\t\t\tSystem.out.println(\"enter the number os share\");\n\t\t\tint sellNumberofShare=JsonUtility.inputInteger();\n\t\t\tif(sellNumberofShare>customer.getCustomerAvailableShare())\n\t\t\t{\n\t\t\t\tSystem.out.println(sellNumberofShare+\"---\"+\"number of share not available\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint customerRemainShare=customer.getCustomerAvailableShare()-sellNumberofShare;\n\t\t\t\tSystem.out.println(\"customer remaining share:\"+\"---\"+customerRemainShare);\n\t\t\t\tint companyAddedShare=companydemo.getNumberofshare()+sellNumberofShare;\n\t\t\t\tSystem.out.println(\"companys total share\"+\"--\"+ companyAddedShare);\n\t\t\t\tcompanydemo.setNumberofshare(companyAddedShare);\n\t\t\t\tcustomer.setCustomerAvailableShare(customerRemainShare);\n\t\t\t\tSystem.out.println(\"enter the date\");\n\t\t\t\tString date=JsonUtility.inputSingleString();\n\t\t\t\tcustomer.setDate(date);\n\t\t\t\tSystem.out.println(\"You have successfully sell :\"+\"---\"+sellNumberofShare+\"---\"+\" of \"+\"---\"+companydemo.getCname()+\"---\"+\" on \"+\"---\"+customer.getDate());\n\t\t\t\t//sold.push(sellNumberofShare);\n\t\t\t\tsellqueue.insert(sellNumberofShare);\n\t\t\t\tcustList.add(customer);\n\t\t\t\tobjectMapper.writeValue(file2,customer);\n\t\t\t\tobjectMapper.writeValue(file3,companydemo);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 3:\n\t\t System.out.println(\"number of purchsed stock:\");\n\t\t // purchsed.printStack(purchsed);\n\t\t buyqueue.display();\n\t\t ///purchsed.printStack();\n\t\t System.out.println(\"number of sold stock:\");\n\t\t sellqueue.display();\n\t\t //sold.printStack(sold);\n\t\t break;\n\t\tcase 4:\n System.exit(0);\n\t\t\t\t\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t\n\n\t}\n\n\t}", "title": "" }, { "docid": "ace9c2cd3c2055bf17b154d19c4e017c", "score": "0.48428896", "text": "@Override // com.pushwoosh.internal.network.PushRequest\n public void buildParams(JSONObject jSONObject) throws JSONException {\n jSONObject.put(\"email\", this.a);\n jSONObject.put(\"tz_offset\", TimeUnit.SECONDS.convert((long) TimeZone.getDefault().getOffset(new Date().getTime()), TimeUnit.MILLISECONDS));\n jSONObject.put(\"userId\", this.b);\n }", "title": "" }, { "docid": "b30b05625107c642a33ab941eb09dc15", "score": "0.48385125", "text": "@Test\n public void test43() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n assertEquals(0, jSONObject0.length());\n assertNotNull(jSONObject0);\n \n JSONObject jSONObject1 = jSONObject0.put(\"Kz8h#;aSt4;Q.oSQ1U\", 68);\n assertEquals(1, jSONObject1.length());\n assertEquals(1, jSONObject0.length());\n assertNotNull(jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n \n int int0 = jSONObject0.optInt(\"Kz8h#;aSt4;Q.oSQ1U\", 68);\n assertEquals(1, jSONObject0.length());\n assertEquals(68, int0);\n assertSame(jSONObject0, jSONObject1);\n }", "title": "" }, { "docid": "f0dd3d06b25d18e60b580bf4d5e0e3db", "score": "0.4833753", "text": "@Test\n public void test46() throws Throwable {\n HashMap<StringLabel, CategoryWordTag> hashMap0 = new HashMap<StringLabel, CategoryWordTag>();\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertNotNull(hashMap0);\n \n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n assertEquals(0, jSONObject0.length());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertNotNull(jSONObject0);\n \n HashMap<LabeledWord, IndexedWord> hashMap1 = new HashMap<LabeledWord, IndexedWord>();\n assertEquals(0, hashMap1.size());\n assertTrue(hashMap1.isEmpty());\n assertNotNull(hashMap1);\n \n JSONObject jSONObject1 = jSONObject0.accumulate(\"alot\", (Object) hashMap1);\n assertEquals(1, jSONObject0.length());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertEquals(0, hashMap1.size());\n assertTrue(hashMap1.isEmpty());\n assertEquals(1, jSONObject1.length());\n assertNotNull(jSONObject1);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n \n JSONObject jSONObject2 = jSONObject0.put(\" 2Using efaul@Rule\", (long) 253);\n assertEquals(2, jSONObject0.length());\n assertEquals(2, jSONObject2.length());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertNotNull(jSONObject2);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject0, jSONObject2);\n assertSame(jSONObject2, jSONObject1);\n assertSame(jSONObject2, jSONObject0);\n \n String string0 = JSONObject.valueToString(jSONObject2);\n assertEquals(2, jSONObject0.length());\n assertEquals(2, jSONObject2.length());\n assertTrue(hashMap0.isEmpty());\n assertEquals(0, hashMap0.size());\n assertNotNull(string0);\n assertEquals(\"{\\\" 2Using efaul@Rule\\\":253,\\\"alot\\\":{}}\", string0);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject0, jSONObject2);\n assertSame(jSONObject2, jSONObject1);\n assertSame(jSONObject2, jSONObject0);\n }", "title": "" }, { "docid": "c2d7a4fb5b55aee67557089c16900ac3", "score": "0.48321012", "text": "private void update(JsonArray j) {\r\n\t\tint i = getObjectPos(j.title);\r\n\t\tif(i!=-1) objects.set(i, (JsonObject)j);\r\n\t\telse objects.add(j);\r\n\t}", "title": "" }, { "docid": "3a9f51d621cfe0c9faa2641bcde527ec", "score": "0.4824998", "text": "@Test\n public void test18() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n assertEquals(0, jSONObject0.length());\n assertNotNull(jSONObject0);\n \n HashIndex<StringLabel> hashIndex0 = new HashIndex<StringLabel>();\n assertFalse(hashIndex0.isLocked());\n assertEquals(0, hashIndex0.size());\n assertNotNull(hashIndex0);\n \n JSONObject jSONObject1 = jSONObject0.put(\"T2$\\\"STZ){kI$wL\", (Collection) hashIndex0);\n assertEquals(1, jSONObject1.length());\n assertEquals(1, jSONObject0.length());\n assertFalse(hashIndex0.isLocked());\n assertEquals(0, hashIndex0.size());\n assertNotNull(jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n \n JSONArray jSONArray0 = jSONObject1.getJSONArray(\"T2$\\\"STZ){kI$wL\");\n assertEquals(1, jSONObject1.length());\n assertEquals(1, jSONObject0.length());\n assertFalse(hashIndex0.isLocked());\n assertEquals(0, hashIndex0.size());\n assertEquals(0, jSONArray0.length());\n assertNotNull(jSONArray0);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n }", "title": "" }, { "docid": "0bed5c61e4f9424f4464f37c89dfc16b", "score": "0.48162764", "text": "public String addTransaction(String senderID,String receiverID,String transactionID)\n {\n ObjectNode result = Json.newObject();\n String status = \"success\";\n Individual det_existing_sender = ontReasoned.getIndividual(NS +senderID);\n Individual det_existing_receiver = ontReasoned.getIndividual(NS +receiverID);\n Individual det_unique = ontReasoned.getIndividual(NS +transactionID);\n if((det_existing_sender !=null)&&(det_existing_receiver != null)&&(det_unique == null))\n {\n try\n {\n System.out.println(\"I have entered the add transaction method.\");\n // First, get the classes we need\n OntClass transaction = ontReasoned.getOntClass(NS + \"Transaction\");\n // Get the properties we need\n OntProperty hasSender = ontReasoned.getObjectProperty(NS + \"hasSender\");\n OntProperty hasReceiver = ontReasoned.getObjectProperty(NS + \"hasReceiver\");\n // Create the individuals we need. We need a pizza and a topping.\n Individual trans1 = ontReasoned.createIndividual(NS +transactionID,transaction);\n //Transaction needs two individuals, that is two persons which should be already created in the ontology\n Individual sender = ontReasoned.getIndividual(NS+senderID);\n Individual receiver = ontReasoned.getIndividual(NS+receiverID);\n //Adding the properties hasSender and hasReceiver to the transaction\n trans1.addProperty(hasSender,sender);\n trans1.addProperty(hasReceiver,receiver);\n System.out.println(\"Transaction got created:\"+trans1);\n }\n catch(JenaException je)\n {\n System.err.println(\"ERROR\" + je.getMessage());\n je.printStackTrace();\n status = \"failure\";\n }\n }\n else if(det_unique != null)\n status = \"transaction id already exists in the system.\";\n if(det_existing_sender == null && det_unique == null)\n status = \"sender is not present in ontology. \";\n if(det_existing_receiver == null && det_unique == null)\n status = \"receiver is not present in ontology yet. \";\n if (det_existing_receiver == null && det_existing_sender == null && det_unique == null)\n status = \"sender and receiver not present in ontology. \";\n\n // result.put(\"status:\",status);\n return status;\n }", "title": "" }, { "docid": "48f3b8ce40936f6affdc1b05037076d0", "score": "0.48154423", "text": "public void serializeJson(JsonWriter jw) {\n try {\n jw.beginObject();\n if (getID() == -1) {\n jw.name(\"id\").nullValue();\n } else {\n jw.name(\"id\").value(getID());\n }\n if (getName() == null) {\n jw.name(\"name\").nullValue();\n } else {\n jw.name(\"name\").value(getName());\n }\n if (getPhone() == -1 ){\n jw.name(\"phone\").nullValue();\n } else {\n jw.name(\"phone\").value(getPhone());\n }\n if (getEmail() == null) {\n jw.name(\"email\").nullValue();\n } else {\n jw.name(\"email\").value(getEmail());\n }\n if (getAddress() == null) {\n jw.name(\"address\").nullValue();\n } else{\n jw.name(\"address\").value(getAddress());\n }\n if (getDevice_id() == null ){\n jw.name(\"device_id\").nullValue();\n } else{\n jw.name(\"device_id\").value(getDevice_id());\n }\n\n jw.endObject();\n } catch (java.io.IOException e) {\n Log.d(\"carerSerialize\", \"Error:\" + e.toString());\n }\n }", "title": "" }, { "docid": "b77e6fa4e3de6965d2ce12ba7d02e3a8", "score": "0.48147836", "text": "private void getJsonForJob(MRStatusObject statusObj)\n {\n\n String url = \"http://\" + statusObj.getUri() + \":\" + statusObj.getRmPort() + \"/proxy/application_\" + statusObj.getAppId() + \"/ws/v1/mapreduce/jobs/job_\" + statusObj.getJobId();\n String responseBody = MRUtil.getJsonForURL(url);\n\n JSONObject jsonObj = MRUtil.getJsonObject(responseBody);\n\n if (jsonObj == null) {\n url = \"http://\" + statusObj.getUri() + \":\" + statusObj.getHistoryServerPort() + \"/ws/v1/history/mapreduce/jobs/job_\" + statusObj.getJobId();\n responseBody = MRUtil.getJsonForURL(url);\n jsonObj = MRUtil.getJsonObject(responseBody);\n }\n\n if (jsonObj != null) {\n if (jobMap.get(statusObj.getJobId()) != null) {\n MRStatusObject tempObj = jobMap.get(statusObj.getJobId());\n if (tempObj.getJsonObject().toString().equals(jsonObj.toString())) {\n getJsonsForTasks(statusObj);\n getCounterInfoForJob(statusObj);\n return;\n }\n }\n statusObj.setModified(true);\n statusObj.setJsonObject(jsonObj);\n getCounterInfoForJob(statusObj);\n getJsonsForTasks(statusObj);\n jobMap.put(statusObj.getJobId(), statusObj);\n }\n }", "title": "" }, { "docid": "1589b143f28fa39e78c9d78970f4231d", "score": "0.48085803", "text": "private static JSONObject toJsonObject(Object o) throws Exception {\n Map<String, Object> resultMap = new HashMap<>();\n\n Class c = o.getClass();\n Field[] fields = c.getDeclaredFields();\n AccessibleObject.setAccessible(fields, true);\n\n for (Field field : fields) {\n if (field.isAnnotationPresent(Ignore.class)) {\n continue;\n } else if (field.isAnnotationPresent(UseDataAdapter.class)) {\n UseDataAdapter annotation = field.getAnnotation(UseDataAdapter.class);\n JSONDataAdapter adapter = annotation.value().newInstance();\n resultMap.put(field.getName(), adapter.toJson(field.get(o)));\n } else {\n resultMap.put(field.getName(), field.get(o));\n }\n }\n return new JSONObject(resultMap);\n }", "title": "" }, { "docid": "90e7c3709422e9beca3f9e494f8758ca", "score": "0.48035443", "text": "private static JSONObject m41334c() {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"clientTimeOut\", f29275a.mo44420b());\n jSONObject.put(\"type\", 2);\n JSONArray jSONArray = new JSONArray();\n for (String str : f29275a.mo44421c().mo44430d()) {\n jSONArray.put(str);\n }\n jSONObject.put(\"content\", jSONArray);\n return jSONObject;\n }", "title": "" }, { "docid": "b89cabaa2799096ec3eed8bb481a7d85", "score": "0.47986197", "text": "private static void m1115a(JSONObject jSONObject, String str, Object obj) throws JSONException {\n if (obj instanceof Bundle) {\n jSONObject.put(str, m1109a((Bundle) obj));\n } else if (obj instanceof Map) {\n jSONObject.put(str, m1129m((Map) obj));\n } else if (obj instanceof Collection) {\n if (str == null) {\n str = \"null\";\n }\n jSONObject.put(str, m1107a((Collection) obj));\n } else if (obj instanceof Object[]) {\n jSONObject.put(str, m1107a((Collection<?>) Arrays.asList((Object[]) obj)));\n } else {\n jSONObject.put(str, obj);\n }\n }", "title": "" }, { "docid": "4611f203f4fb5d3b2517bf8bdbeb64a1", "score": "0.4795856", "text": "public JsonObject() {\n names = new ArrayList<String>();\n values = new ArrayList<JsonValue>();\n table = new HashIndexTable();\n }", "title": "" }, { "docid": "6105925cb999e1aa9f864cfa76463fbb", "score": "0.478839", "text": "@Override\n public void writeToJSON(JsonWriter jsonWriter) {\n super.writeToJSON(jsonWriter);\n try {\n jsonWriter.name(TAG_ROOMTYPES).beginObject();\n jsonWriter.name(TAG_ROOMTYPE).beginArray();\n for (int i = 0; i < roomTypes.size(); ++i) {\n jsonWriter.beginObject();\n jsonWriter.name(TAG_ROOMNAME).value(roomTypes.get(i).name);\n jsonWriter.name(TAG_INFO).value(roomTypes.get(i).info);\n jsonWriter.name(TAG_DESC).value(roomTypes.get(i).desc);\n jsonWriter.name(TAG_PHOTO).value(roomTypes.get(i).photo);\n jsonWriter.name(TAG_PRICE).value(roomTypes.get(i).price);\n jsonWriter.endObject();\n }\n jsonWriter.endArray();\n jsonWriter.endObject();\n jsonWriter.endObject();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "d6495a5deb04da09b338238c29612f81", "score": "0.47883597", "text": "public GetJSONResponse(Context context) {\n super(context);\n// this.mainContext = context;\n }", "title": "" }, { "docid": "0731727e050d91002757446bcc396b6a", "score": "0.47830966", "text": "public static BankAccount createBankAccount(UserInfo obj1, BalanceInfo obj2, AccountInfo obj3){\nBankAccount obj = new BankAccount();\nobj.uInfo = obj1;\nobj.accInfo = obj3;\nobj.bInfo = obj2;\n\n\nreturn obj;\n}", "title": "" }, { "docid": "9ef690e798243f59443bcfcf4b587047", "score": "0.47807822", "text": "private void addCoordinatesToJSON(final JSONArray jsonArray) {\n\t\tfor(final Point2D point : pointList) {\n\t\t\tfinal JSONArray coordinatesJson = new JSONArray();\n\t\t\tcoordinatesJson.put(point.getX());\n\t\t\tcoordinatesJson.put(point.getY());\n\t\t\tjsonArray.put(coordinatesJson);\n\t\t}\n\t}", "title": "" }, { "docid": "0cc2fde9f38ffd20546a31403e92791e", "score": "0.47702485", "text": "private JSONObject newBaseFlowDataObject(MVMContext ctx) throws Exception {\n JSONObject data = new JSONObject();\n data.put(Flow.CLIENT_ID, ctx.getClientId());\n data.put(Flow.CONTEXT_REF_ID, ctx.getRefId());\n return data;\n }", "title": "" }, { "docid": "01139410bd8b0506c91951d37d875e9e", "score": "0.47699657", "text": "private JsonObject makeRelationshipJsonObject(Relationship tag) {\n\tJsonObject jso = Json.createObjectBuilder()\n\t\t.add(\"start\", tag.getFromBox())//tag.getShapeName()\n .add(\"end\", tag.getToBox())\n .add(\"lineType\", tag.getLineType())\n\t\t.build();\n\treturn jso;\n }", "title": "" }, { "docid": "a50342002b8a4d8b7ba51e4c58ab5c35", "score": "0.47689846", "text": "@Test\n public void test31() throws Throwable {\n JSONObject jSONObject0 = new JSONObject((Map) null);\n assertEquals(0, jSONObject0.length());\n assertNotNull(jSONObject0);\n \n JSONObject jSONObject1 = jSONObject0.put(\"U0si\", 60L);\n assertEquals(1, jSONObject1.length());\n assertEquals(1, jSONObject0.length());\n assertNotNull(jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n \n try {\n JSONArray jSONArray0 = jSONObject0.getJSONArray(\"U0si\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[\\\"U0si\\\"] is not a JSONArray.\n //\n }\n }", "title": "" }, { "docid": "8405502c0f53e45570f1f8b7bc96221e", "score": "0.47587568", "text": "public JSONObject createJsonObject(Event newEvent) {\r\n JSONObject eventDetails = new JSONObject();\r\n eventDetails.put(\"name\", newEvent.getEventName());\r\n eventDetails.put(\"location\", newEvent.getEventLocation().getX() + \",\" + newEvent.getEventLocation().getY());\r\n DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n String strDate = dateFormat.format(newEvent.date);\r\n eventDetails.put(\"time\", strDate);\r\n eventDetails.put(\"type\", newEvent.getEventType());\r\n\r\n JSONObject eventObject = new JSONObject();\r\n eventObject.put(\"event\", eventDetails);\r\n\r\n return eventObject;\r\n }", "title": "" }, { "docid": "441c6cd9543d2c1f8e331027282e5552", "score": "0.47538123", "text": "private static boolean equalsJSONComponents(Object o1, Object o2){\n\t\t\n\t\tif (o1 == null && o2 == null){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (o1 == null && o2 != null || o1 != null && o2 == null){\n//\t\t\tSystem.out.println(\"return 8\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (!o1.getClass().getName().equalsIgnoreCase(o2.getClass().getName())) {\n//\t\t\tSystem.out.println(\"return 9\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (o1 instanceof JSONObject){\n\t\t\treturn equalsIgnoreCase((JSONObject) o1, (JSONObject)o2);\n\t\t}\n\t\t\n\t\tif (o1 instanceof JSONArray){\n\t\t\treturn equalsIgnoreCase((JSONArray) o1, (JSONArray)o2);\n\t\t}\n\t\t\n\t\tif (o1 instanceof String){\n\t\t\t\n\t\t\tString s1 = ((String)o1);\n\t\t\tString s2 = ((String)o2);\n\t\t\t\n\t\t\tString numberPattern = \"-?[\\\\d]+(\\\\.[\\\\d]+)?\";\n\t\t\t\n\t\t\tif (s1.matches(numberPattern)){\n\t\t\t\ts1 = s1.replaceFirst(\"\\\\.0$\", \"\");\n\t\t\t}\n\t\t\t\n\t\t\tif (s2.matches(numberPattern)){\n\t\t\t\ts2 = s2.replaceFirst(\"\\\\.0$\", \"\");\n\t\t\t}\n\t\t\t\n\t\t\tboolean comparison = s1.equalsIgnoreCase(s2);\n//\t\t\tif (!comparison){\n//\t\t\t\tSystem.out.println(\"return 10\");\n//\t\t\t}\n\t\t\t\n\t\t\treturn comparison;\n\t\t}\n\t\t\n\t\tif (o1 instanceof Double){\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.#######\");\n\t\t\to1 = df.format(o1);\n\t\t\to2 = df.format(o2);\n\t\t\tboolean comparison = o1.equals(o2);\n//\t\t\tif (!comparison){\n//\t\t\t\tSystem.out.println(\"return 11: \"+o1 +\" <> \"+o2);\n//\t\t\t}\n\t\t\treturn comparison;\n\t\t}\n\t\t\n\t\treturn o1.equals(o2);\n\t}", "title": "" }, { "docid": "600f5f2367f5cc4ffebbb209b5f0020f", "score": "0.47529888", "text": "@Test\n public void test62() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n assertEquals(0, jSONObject0.length());\n assertNotNull(jSONObject0);\n \n Double double0 = Double.valueOf((double) (-4122));\n assertEquals((-4122.0), (double)double0, 0.01D);\n \n JSONObject jSONObject1 = new JSONObject((Object) double0);\n assertEquals(3, jSONObject1.length());\n assertNotNull(jSONObject1);\n assertFalse(jSONObject1.equals((Object)jSONObject0));\n assertNotSame(jSONObject1, jSONObject0);\n \n String string0 = jSONObject0.optString(\"r9@!TTt,/}@0y\");\n assertEquals(0, jSONObject0.length());\n assertNotNull(string0);\n assertFalse(jSONObject0.equals((Object)jSONObject1));\n assertEquals(\"\", string0);\n assertNotSame(jSONObject0, jSONObject1);\n \n String string1 = jSONObject0.toString((-4122), (-4122));\n assertEquals(0, jSONObject0.length());\n assertNotNull(string1);\n assertFalse(string1.equals((Object)string0));\n assertFalse(jSONObject0.equals((Object)jSONObject1));\n assertEquals(\"{}\", string1);\n assertNotSame(string1, string0);\n assertNotSame(jSONObject0, jSONObject1);\n }", "title": "" }, { "docid": "c7ea409d3f491c50a61dd03233772611", "score": "0.47494483", "text": "public JSONObject listRestoJson ( ) throws DAOException, JSONException\n\t {\n\t\t Connection connexion = null;\n\t\t Connection connexion2 = null;\n\t PreparedStatement preparedStatement = null;\n\t ResultSet resultSet = null;\n\t PreparedStatement preparedStatement2 = null;\n\t ResultSet resultSet2 = null;\n\t List<Resto_Profil> list=new ArrayList<Resto_Profil>();\n\t Resto_Profil temp;\n\t JSONObject jsonObject = new JSONObject();\n\t try {\n\t /* Récupération d'une connexion depuis la Factory */\n\t connexion = daofactory.getConnection();\t \n\t preparedStatement = initialisationRequetePreparee( connexion,SQL_SELECT_Resto, false);\n\t resultSet = preparedStatement.executeQuery();\n\n\t while (resultSet.next()) \n\t {\n\t \ttemp=new Resto_Profil();\n\t \ttemp = map2( resultSet );\n\n\t \t\n\t \ttry {\n\t \t \n\t \t connexion2 = daofactory.getConnection();\n\t \t preparedStatement2 = initialisationRequetePreparee( connexion2, SQL_SELECT_Photo_By_ID_Resto, false,temp.getId_resto());\n\t \t resultSet2 = preparedStatement2.executeQuery();\n\t \t if ( resultSet2.next() )\n\t \t \t\n\t \t { \t\n\t \t \t\n\t \t \ttemp.setPhoto(resultSet2.getString(\"photo_annuaire\"));\n\t \t \n\t \t }\n\t \t else\n\t \t {\n\t \t \ttemp.setPhoto(\"Pas de Photo\");\n\t \t }\n\t \t } catch ( SQLException e ) {\n\t \t throw new DAOException( e );\n\t \t \t}finally {\n\t \t fermeturesSilencieuses( resultSet2, preparedStatement2, connexion2 );\n\t \t }\n\t \tlist.add(temp); \t\n\t \n\t } \n\n \t\n \tjsonObject.put(\"markers\",list);\n \n\t \n\t } catch ( SQLException e ) {\n\t throw new DAOException( e );\n\t } finally {\n\t fermeturesSilencieuses( resultSet, preparedStatement, connexion );\n\t }\n\t \n\t\t return jsonObject;\n\t }", "title": "" }, { "docid": "da5bd9bef2e78a61a5d62dba81b41c09", "score": "0.47415733", "text": "@Test\n public void xxxTest3() {\n String json = \"[{\\n\" +\n \"\\t\\t\\\"configId\\\": 322,\\n\" +\n \"\\t\\t\\\"ruleType\\\": \\\"1\\\",\\n\" +\n \"\\t\\t\\\"ruleId\\\": 1000\\n\" +\n \"\\t},\\n\" +\n \"\\t{\\n\" +\n \"\\t\\t\\\"configId\\\": 42,\\n\" +\n \"\\t\\t\\\"ruleType\\\": \\\"1\\\",\\n\" +\n \"\\t\\t\\\"ruleId\\\": 2222\\n\" +\n \"\\t},\\n\" +\n \"\\t{\\n\" +\n \"\\t\\t\\\"configId\\\": 399,\\n\" +\n \"\\t\\t\\\"ruleType\\\": \\\"0\\\",\\n\" +\n \"\\t\\t\\\"ruleId\\\": 399\\n\" +\n \"\\t}\\n\" +\n \"]\";\n JSONArray objects = JSON.parseArray(json);\n /* List<TemporaryEntity> temporaryEntities = objects.toJavaList(TemporaryEntity.class);\n // System.out.println(\"temporaryEntities:\" + temporaryEntities);\n for (TemporaryEntity temporaryEntity : temporaryEntities) {\n System.out.println(\"temporaryEntity:\" + temporaryEntity);\n }*/\n }", "title": "" }, { "docid": "75d176b56e1b488bcd907d0fa1a335c7", "score": "0.4739167", "text": "@Test\n public void test24() throws Throwable {\n String[] stringArray0 = new String[15];\n JSONObject jSONObject0 = new JSONObject((Object) \"Kz8h#;aSt4;Q.oSQ1U\", stringArray0);\n assertEquals(0, jSONObject0.length());\n assertNotNull(jSONObject0);\n \n Float float0 = new Float((float) (short) (-3737));\n assertEquals((-3737.0F), (float)float0, 0.01F);\n \n JSONObject jSONObject1 = jSONObject0.put(\"Kz8h#;aSt4;Q.oSQ1U\", (Object) float0);\n assertEquals(1, jSONObject1.length());\n assertEquals(1, jSONObject0.length());\n assertNotNull(jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n assertSame(jSONObject0, jSONObject1);\n }", "title": "" }, { "docid": "52bf451ad558d50a5d25240d78d05069", "score": "0.47386912", "text": "JSONObject toJson();", "title": "" }, { "docid": "ce244650d7f4f57ca2283036f3873117", "score": "0.47380844", "text": "public static void m15752a(JSONObject jSONObject, String str, String str2) {\n try {\n jSONObject.put(str, str2);\n } catch (JSONException unused) {\n }\n }", "title": "" }, { "docid": "514856a20f2721952d8376234524a2a0", "score": "0.4735461", "text": "public void fromJSON(JSONObject parent, String key) throws Exception {\n if (!parent.has(key)) {\n return;\n }\n JSONObject jo = parent.getJSONObject(key);\n for (String memkey : jo.keySet()) {\n int val = jo.getInt(memkey);\n modifyCount(memkey, val);\n }\n }", "title": "" }, { "docid": "f50b7984b52a14777e1f28e8e36fcb17", "score": "0.47328907", "text": "@Test\n public void testJsonCommandsI() {\n // Cache related copy (highest)\n //\n Payment object = new Payment();\n\n object.setKey(key);\n\n object.setAuthorizationId(authorizationId);\n object.setReference(reference);\n object.setRequestId(requestId);\n object.setTransactionId(transactionId);\n\n Payment clone = new Payment();\n clone.fromJson(object.toJson(), true, true);\n\n assertEquals(key, object.getKey());\n\n assertEquals(authorizationId, object.getAuthorizationId());\n assertEquals(reference, object.getReference());\n assertEquals(requestId, object.getRequestId());\n assertEquals(transactionId, object.getTransactionId());\n }", "title": "" }, { "docid": "5937ab2eec77629475233b0cf5532948", "score": "0.47293523", "text": "@Test\n public void test17() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n assertEquals(0, jSONObject0.length());\n assertNotNull(jSONObject0);\n \n JSONObject jSONObject1 = jSONObject0.put(\"pUN\", (long) 5640);\n assertEquals(1, jSONObject0.length());\n assertEquals(1, jSONObject1.length());\n assertNotNull(jSONObject1);\n assertSame(jSONObject0, jSONObject1);\n assertSame(jSONObject1, jSONObject0);\n \n long long0 = jSONObject0.getLong(\"pUN\");\n assertEquals(1, jSONObject0.length());\n assertEquals(5640L, long0);\n assertSame(jSONObject0, jSONObject1);\n }", "title": "" }, { "docid": "563ec589630fa46dfd8dedbeab3e6424", "score": "0.47286317", "text": "public JSONArray JsonCoverter(JSONArray jdata) {\n\t\tSet<String> AllContainerIds = new HashSet<String>();\n\t\tJSONArray outerArray = null;\n\t\tJSONArray dataArray = null;\n\t\ttry {\n\t\t\t// here get all Container Ids and remove all duplicates\n\t\t\tfor (int i = 0; i < jdata.length(); i++) {\n\t\t\t\tAllContainerIds.add(jdata.getJSONObject(i).getString(\n\t\t\t\t\t\tCONTAINERID));\n\t\t\t}\n\t\t\tList<String> convertList = new ArrayList<String>(AllContainerIds);\n\t\t\tCollections.sort(convertList); \n\t\t\touterArray = new JSONArray();\n\n\t\t\t// here insert all Undata based On Container Ids\n\n\t\t\tfor (int k = 0; k < convertList.size(); k++) {\n\t\t\t\tJSONObject InnerJdata = new JSONObject();\n\t\t\t\tInnerJdata.put(CONTAINERID, convertList.get(k));\n\t\t\t\tdataArray = new JSONArray();\n\t\t\t\tfor (int j = 0; j < jdata.length(); j++) {\n\t\t\t\t\tif ((convertList).get(k).equalsIgnoreCase(\n\t\t\t\t\t\t\tjdata.getJSONObject(j).getString(CONTAINERID))) {\n\t\t\t\t\t\tdataArray.put(jdata.getJSONObject(j));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tInnerJdata.put(DATA, dataArray);\n\t\t\t\touterArray.put(InnerJdata);\n\n\t\t\t}\n\n\t\t} catch (JSONException je) {\n\t\t\tje.printStackTrace();\n\t\t\tlog.error(\"JSON exception caught while GetBillOfladdingDetails\");\n\t\t\tthrow new DGVFFNestableException(\n\t\t\t\t\tDGVFFNestableException.CODE_AUTHENTICATION_ERROR,\n\t\t\t\t\t\"JSON exception caught while GetBillOfladdingDetails\");\n\t\t}\n\t\treturn outerArray;\n\t}", "title": "" }, { "docid": "c46b265e0aa05d601ebe32747dcca14a", "score": "0.47259983", "text": "public String getJSON(){\n\n try{\n JSONObject jo = new JSONObject();\n\n jo.put(\"id\",id);\n jo.put(\"empresa\",empresa);\n jo.put(\"montante\",montante);\n jo.put(\"taxa\",taxa);\n jo.put(\"fim\",fim.toString());\n jo.put(\"propostas\",propostas.stream()\n .map(p -> p.getJSON())\n .collect(Collectors.toList()));\n \n jo.put(\"sucesso\",sucesso);\n\n return jo.toString();\n }\n catch(Exception e){\n return \"\";\n }\n }", "title": "" } ]
9f54e44db8a5c3bf799184fad5787f83
This code was written following this guide
[ { "docid": "bbb272ade678e1733e82744a5e21c740", "score": "0.0", "text": "public static void RestoreListedBackup(String FileName) throws IOException, SQLException {\n\n\t\tString q = \"\";\n\t\tFile f = new File(\"../BAPERS-FINAL/BAPERS3/GENERATED/DATABASES/\" + FileName + \".sql\"); // source path is the absolute path of dumpfile.\n\n\t\tBufferedReader bf = new BufferedReader(new FileReader(f));\n\t\tString line = null;\n\t\tline = bf.readLine();\n\t\twhile (line != null) {\n\t\t\tq = q + line + \"\\n\";\n\t\t\tline = bf.readLine();\n\t\t}\n\n\t\tString[] commands = q.split(\";\");\n\n\t\tStatement statement = connection.createStatement();\n\t\tfor (String s : commands) {\n\t\t\tstatement.execute(s);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "0c69424878be03e50f19e2ca61ef640b", "score": "0.6622956", "text": "@Override\r\n\tpublic void leggi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1e34493fdecb11f6bbc24ef12eea2281", "score": "0.65716916", "text": "public void mo27791d() {\n }", "title": "" }, { "docid": "fdf6bcd763ea5f5b221fd5a7669d1afb", "score": "0.64799625", "text": "public void mo28805a() {\n }", "title": "" }, { "docid": "381ca210fc42b87f9b8af474719578a0", "score": "0.64648575", "text": "public void mo41489c() {\n }", "title": "" }, { "docid": "8b6c961814c14fa02879570fd7e65ac5", "score": "0.6450479", "text": "@Override\r\n\tpublic void scarica() {\n\t\t\r\n\t}", "title": "" }, { "docid": "051f88f1f94e36fab8ec66de1946f037", "score": "0.64204943", "text": "public void mo27794g() {\n }", "title": "" }, { "docid": "5eb303064635f4909e997c3effe2511d", "score": "0.6393734", "text": "public void mo27792e() {\n }", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.63402337", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "203e120e0c17c7a390717d0ca9ff147a", "score": "0.63218874", "text": "public void mo11316JX() {\n }", "title": "" }, { "docid": "6fc1bc8405449cd5caa1d0d4cc253eff", "score": "0.61848885", "text": "public void mo27783b() {\n }", "title": "" }, { "docid": "222e7b9d44422cda9de5df0085949df1", "score": "0.6118389", "text": "public void mo27793f() {\n }", "title": "" }, { "docid": "0b319072f0ae7225e83791b70ea23079", "score": "0.6103681", "text": "@Override\r\n\tpublic void ghhvhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e8b6a10ed01f50fbe15d66c44e6b001f", "score": "0.6102314", "text": "public void mo28809c() {\n }", "title": "" }, { "docid": "2097402406ed48de16ed7ccfe28a85b4", "score": "0.61022717", "text": "public void mo5927b() {\n }", "title": "" }, { "docid": "b623306824ebd023ab9bf4fc0a66aaf3", "score": "0.60800576", "text": "public void mo5928c() {\n }", "title": "" }, { "docid": "03143ee9b26aa8a7d43576d479e4400a", "score": "0.603936", "text": "public final void mo55685Zy() {\n }", "title": "" }, { "docid": "da5e9df869731b2ae1dfbbfdf12b8cd8", "score": "0.6036868", "text": "public void mo3351d() {\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.59943545", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "f02c338eb46eb5cdf9d19504df309595", "score": "0.59808916", "text": "public void mo28814l() {\n }", "title": "" }, { "docid": "eb92b32dc3cd795c7c394190cf409bd5", "score": "0.597137", "text": "public void mo41487a() {\n }", "title": "" }, { "docid": "393237de9c40b0b47e9d2c845ed92ee5", "score": "0.5968296", "text": "public void mo45857a() {\n }", "title": "" }, { "docid": "d2c29d4693c8d4e0c2e794f58df76a4d", "score": "0.5965529", "text": "private Homework3() {\n\n\t}", "title": "" }, { "docid": "b42b054dfaac7d94036bce6ecf272a0e", "score": "0.59529334", "text": "private void pepe() {\n\t\t\n\t}", "title": "" }, { "docid": "89685a97be106c5e65406e42741d0ec3", "score": "0.59075755", "text": "public void mo1383a() {\n }", "title": "" }, { "docid": "91f4e7e88ad2f79be16e41fb98c69cb6", "score": "0.5903338", "text": "private void aviTomov() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5862416", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "66ad52595c5bd1c3d2060a8827943991", "score": "0.58533686", "text": "public void use() {\n\t\t\n\t}", "title": "" }, { "docid": "b048ca4f20a40ca0411a5330c06ce3d5", "score": "0.5850407", "text": "@Override\n\tpublic void infinteBatery() {\n\t\t\n\t}", "title": "" }, { "docid": "9cfdb7a953eedd93829d98c1649d8fa2", "score": "0.58369905", "text": "@Override\r\n\tprotected void rodape() {\n\t\t\r\n\t}", "title": "" }, { "docid": "acbb02f47467f45f5ab2c3b2e5f7545d", "score": "0.58329195", "text": "public final void mo62452a() {\n }", "title": "" }, { "docid": "e1834e089677c260b4af3324391b3b67", "score": "0.5828849", "text": "public final void mo62463l() {\n }", "title": "" }, { "docid": "37639652af6eed0fea7ffe5de5373e12", "score": "0.5827597", "text": "private void init() {\n \t}", "title": "" }, { "docid": "99eabeaca63a0e3c7f12e5e95f963e6d", "score": "0.5824776", "text": "public final void mo62461j() {\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.58230495", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.58230495", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "190a9f37225fa54ff86b6d69921bf532", "score": "0.5819899", "text": "private void flvTomov() {\n\t\t\n\t}", "title": "" }, { "docid": "90fcb927e39fa8f78288d3712ec01730", "score": "0.5809099", "text": "public void mo3352e() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5805152", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "a46f6ccc5a2230632919d59213754a52", "score": "0.57993716", "text": "@Override\n\tpublic void grafikCizme() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.5782082", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.57772243", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "95ce0fc7444d023b91c55224c1aba5ba", "score": "0.5776235", "text": "private void gpTomov() {\n\t\t\n\t}", "title": "" }, { "docid": "11456bcd21ff0bc594abe5edbbc0252b", "score": "0.57757705", "text": "private void aviTomp4() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5753996", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "4cc23ec21a978357a8a06db5bbae181c", "score": "0.5752871", "text": "@Override\n\t\tpublic void beSporty() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "db4b95a4460fb609bcd3716b1a4b3e23", "score": "0.57471734", "text": "@Override\r\n\tpublic void compra() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e6068b0200c883e42ca4379e8b4390f4", "score": "0.57379365", "text": "@Override\n\tpublic void ihtiyacGidermek() {\n\t\t\n\t}", "title": "" }, { "docid": "9cd862781f3f1b2131f1166e2a9fd8dc", "score": "0.5733926", "text": "private void patrol() {\n\t\t\n\t}", "title": "" }, { "docid": "2ad52390d92954e1d6f2925b4b14bfd4", "score": "0.5720805", "text": "private Helpers() {}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.57166696", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.57166696", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.57166696", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.57166696", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.57166696", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.57166696", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.57166696", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.57166696", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.57166696", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "70374b24c44623641ccc3360bf798dff", "score": "0.5716052", "text": "public final void mo28525a() {\n }", "title": "" }, { "docid": "12cb886ceb5e3e8b5a540a316317c996", "score": "0.57157314", "text": "private void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b971f9e4e57b204443990c5756637316", "score": "0.5715222", "text": "public void mo1385b() {\n }", "title": "" }, { "docid": "32fbfbe133f33f254fefeacf0eba248b", "score": "0.57136226", "text": "public void mo3350c() {\n }", "title": "" }, { "docid": "235772828b460a414a66709e6096b938", "score": "0.5704971", "text": "@Override\r\n protected void initialize() {\r\n }", "title": "" }, { "docid": "235772828b460a414a66709e6096b938", "score": "0.5704971", "text": "@Override\r\n protected void initialize() {\r\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.56957793", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5688637", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "61b5f34bed8d0ebc39cd8ae396d6b61a", "score": "0.5688419", "text": "public abstract void mo114246n();", "title": "" }, { "docid": "2bd910d11f3b18a5106b970f6e7e4c64", "score": "0.5680813", "text": "@Override\n\tpublic void Consulter() {\n\t\t\n\t}", "title": "" }, { "docid": "b2a793cd2e6ec37a2fdb27c90d87a493", "score": "0.567905", "text": "@Override\r\n\tprotected void initialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "39970aed3dc3a7bed24f03fb23731e78", "score": "0.56785744", "text": "@Override\r\n\tpublic void laufen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f70474977937ae778ae28bf2b9056dab", "score": "0.56713885", "text": "@Override\r\n \tpublic void initialize() {\n \t}", "title": "" }, { "docid": "78c9cc568fe811d44b66054986de7cf7", "score": "0.56629074", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5660836", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "9fe10a8f8c056afc50123cc1485a6fdc", "score": "0.56505644", "text": "@Override\n\tvoid comision() {\n\t\t\n\t}", "title": "" }, { "docid": "a1d358ef8dde60480477b5c8b2359c6d", "score": "0.56445897", "text": "@Override\n\tpublic void compra() {\n\t\t\n\t}", "title": "" }, { "docid": "15f4537b748bd93c383ac4b74e5f3fe2", "score": "0.56435114", "text": "Context mo41053c();", "title": "" }, { "docid": "43eb41e76d3c71830fb232d009b9f32c", "score": "0.5638536", "text": "public abstract void mo41463rb();", "title": "" }, { "docid": "d5e85dabb4a7748c278d500e0d0fa16b", "score": "0.56319535", "text": "public void mo15832hx() {\n }", "title": "" }, { "docid": "d5e85dabb4a7748c278d500e0d0fa16b", "score": "0.56319535", "text": "public void mo15832hx() {\n }", "title": "" }, { "docid": "812af2363c26b56566247f6bee5688a9", "score": "0.5624957", "text": "@Override\r\n\tprotected void cabecalho() {\n\t\t\r\n\t}", "title": "" }, { "docid": "81e2e665536902ef3310e7a034f112ea", "score": "0.56086975", "text": "@Override\r\n\tpublic void apagar()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "065cb3c5688cf434a9c95d39e2e2b17f", "score": "0.5604089", "text": "protected NConnectives() {/* intentionally empty block */}", "title": "" }, { "docid": "fa12d2d57a7fccfc1c37a1cc8e442dcf", "score": "0.5599504", "text": "public void mo3353f() {\n }", "title": "" }, { "docid": "fa5eb14703b2a28ee4847f692d01e39d", "score": "0.5597728", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "90482d06eefa133ca95de14c24d6b18e", "score": "0.55966693", "text": "protected void twinkle() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.559427", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "4a8291008e2fc6045b4f27cf1d3c96d6", "score": "0.5593503", "text": "private void setup() {\n\n\t}", "title": "" }, { "docid": "32ccf7aadcdd055562e807468ba1b7bf", "score": "0.5585542", "text": "public void mo28811i() {\n }", "title": "" }, { "docid": "2eaf4ba669b17c058267cac66e2a7f1f", "score": "0.55831033", "text": "void mo34404u();", "title": "" }, { "docid": "cf32bc6fb450ae78d53168f07a4df92d", "score": "0.5555297", "text": "static void SampleItinerary() {\n\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.55538327", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "40d7ac719602acafd24fb53268667c60", "score": "0.555321", "text": "protected void elaboraMappaBiografie() {\n }", "title": "" }, { "docid": "997e3a4ca0d87f37a6060325bf0e2f5a", "score": "0.55514187", "text": "public abstract void mo43895c();", "title": "" }, { "docid": "41aabac9dcbb5573fbd69296a01f2662", "score": "0.55475503", "text": "public abstract void mo114242j();", "title": "" }, { "docid": "aa1f0153cffcd6734386942f326d3b38", "score": "0.5544816", "text": "public final void mo52078y() {\n }", "title": "" }, { "docid": "19432655c63da3a19ca9f84bf27874a2", "score": "0.5544687", "text": "public void mo1387d() {\n }", "title": "" }, { "docid": "fc2dcf21e27f4e56e4155acd558c2b9d", "score": "0.5537228", "text": "public final void mo8557pL() {\n }", "title": "" }, { "docid": "a3e06d5c74833da853c00a033094cb98", "score": "0.55358136", "text": "@Override\n public void cambio() {\n }", "title": "" }, { "docid": "fb22b3731d23c483c2a8958e7ed72b8d", "score": "0.5531468", "text": "private Era() {\r\n\t}", "title": "" }, { "docid": "eaeafae753257c4f617a400374c698f3", "score": "0.5527131", "text": "protected void s() {}", "title": "" }, { "docid": "546f373d880c711d7fabaf297bffdc76", "score": "0.55245453", "text": "void mo75228D();", "title": "" } ]
c389f9d5c9cfc80b72807e08f7e42eb8
Returns the UID, the UID where the Brick is connected to, the position, the hardware and firmware version as well as the device identifier. The position can be '0''8' (stack position). The device identifier numbers can be found :ref:`here `. |device_identifier_constant|
[ { "docid": "a44d87e3ab99a3dd8cdf43b52f213b50", "score": "0.0", "text": "public Identity getIdentity() throws TimeoutException, NotConnectedException {\n\t\tByteBuffer bb = ipcon.createRequestPacket((byte)8, FUNCTION_GET_IDENTITY, this);\n\n\n\t\tbyte[] response = sendRequest(bb.array());\n\n\t\tbb = ByteBuffer.wrap(response, 8, response.length - 8);\n\t\tbb.order(ByteOrder.LITTLE_ENDIAN);\n\n\t\tIdentity obj = new Identity();\n\t\tobj.uid = IPConnection.string(bb, 8);\n\t\tobj.connectedUid = IPConnection.string(bb, 8);\n\t\tobj.position = (char)(bb.get());\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tobj.hardwareVersion[i] = IPConnection.unsignedByte(bb.get());\n\t\t}\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tobj.firmwareVersion[i] = IPConnection.unsignedByte(bb.get());\n\t\t}\n\t\tobj.deviceIdentifier = IPConnection.unsignedShort(bb.getShort());\n\n\t\treturn obj;\n\t}", "title": "" } ]
[ { "docid": "d48242eb9e8dc7ce03d52d2d40b10ae6", "score": "0.6124372", "text": "java.lang.String getDeviceid();", "title": "" }, { "docid": "670f3f5575317f0ffc728506f508db93", "score": "0.5932229", "text": "public long uid() { return bb.getLong(bb_pos + 8); }", "title": "" }, { "docid": "af34ddce9a8c63e8dd76985307028941", "score": "0.5912307", "text": "public DeviceId intBrId() {\n return this.bridgeId;\n }", "title": "" }, { "docid": "d13559065bd61e0696a390526034e16d", "score": "0.5901632", "text": "public String getDevicePlatform() {\n\t\treturn (UDID_.get().split(\"#\")[1]);\n\t}", "title": "" }, { "docid": "5783456c6d04f702361a9a0b79bd51ce", "score": "0.58229923", "text": "public String getPseudoUniqueID() {\n // If all else fails, if the user does have lower than API 9 (lower\n // than Gingerbread), has reset their phone or 'Secure.ANDROID_ID'\n // returns 'null', then simply the ID returned will be solely based\n // off their Android device information. This is where the collisions\n // can happen.\n // Try not to use DISPLAY, HOST or ID - these items could change.\n // If there are collisions, there will be overlapping data\n String devIDShort = \"35\" +\n (Build.BOARD.length() % 10) + (Build.BRAND.length() % 10);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n devIDShort += (Build.SUPPORTED_ABIS[0].length() % 10);\n } else {\n devIDShort += (Build.CPU_ABI.length() % 10);\n }\n\n devIDShort +=\n (Build.DEVICE.length() % 10) + (Build.MANUFACTURER.length() % 10) + (Build.MODEL.length()\n % 10) + (Build.PRODUCT.length() % 10);\n\n // Only devices with API >= 9 have android.os.Build.SERIAL\n // http://developer.android.com/reference/android/os/Build.html#SERIAL\n // If a user upgrades software or roots their phone, there will be a duplicate entry\n String serial;\n try {\n serial = Build.class.getField(\"SERIAL\").get(null).toString();\n\n // Go ahead and return the serial for api => 9\n return new UUID(devIDShort.hashCode(), serial.hashCode()).toString();\n } catch (Exception e) {\n // String needs to be initialized\n serial = \"ESYDV000\"; // some value\n }\n\n // Finally, combine the values we have found by using the UUID class to create a unique identifier\n return new UUID(devIDShort.hashCode(), serial.hashCode()).toString();\n }", "title": "" }, { "docid": "323d9d4ea0cb208faa74f74312a8e241", "score": "0.5769443", "text": "public String getIDstring()\n {\n String idString = HDScreen.nGetDeviceIdString(nDevice);\n if (idString == null) idString = \"GraphicsDevice\" + nDevice;\n return idString;\n }", "title": "" }, { "docid": "6319d25954723085327c80613f6d5392", "score": "0.5733174", "text": "public static String DeviceInfo_getDeviceUID(long deviceInfo)\n {\n return StringUtils.newString(DeviceInfo_getDeviceUIDBytes(deviceInfo));\n }", "title": "" }, { "docid": "e03d727ff216e7fd540a0808c969ecfc", "score": "0.5698649", "text": "com.google.protobuf.ByteString\n getDeviceidBytes();", "title": "" }, { "docid": "f21532faeb0cc301d89c39fbce187bf7", "score": "0.56704074", "text": "@Override // com.pushwoosh.internal.platform.utils.a.g\n @SuppressLint({\"MissingPermission\", \"HardwareIds\"})\n public String b() {\n try {\n TelephonyManager telephonyManager = AndroidPlatformModule.getManagerProvider().getTelephonyManager();\n return telephonyManager != null ? telephonyManager.getDeviceId() : \"\";\n } catch (RuntimeException e) {\n PWLog.error(\"DeviceTelephonyUUID\", e);\n return \"\";\n }\n }", "title": "" }, { "docid": "2fb400c9e4e7803e6363ed9c15517ea0", "score": "0.5651114", "text": "protected String getVirtualInstallationBbUid() {\n try {\n return contextManager.getContext().getVirtualInstallation().getBbUid();\n } catch (VirtualSystemException e) {\n logger.error(\"[ERROR] \" + e.getLocalizedMessage());\n } catch (PersistenceException e) {\n logger.error(\"[ERROR] \" + e.getLocalizedMessage());\n } catch (UnsetContextException e) {\n logger.error(\"[ERROR] \" + e.getLocalizedMessage());\n }\n return \"bb_bb60\";\n }", "title": "" }, { "docid": "3a384d6e114b8bc522471bce39f68f34", "score": "0.5631573", "text": "public java.lang.String getDeviceid() {\n java.lang.Object ref = deviceid_;\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 deviceid_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2eac7b4a1a5868d759d508bdbcada973", "score": "0.56266737", "text": "public java.lang.String getDeviceid() {\n java.lang.Object ref = deviceid_;\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 deviceid_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "c92c1af4c6d21891ed1515e8ffef67e6", "score": "0.55118513", "text": "public int get_address() {\n return USBNative.get_bus_number(dev);\n }", "title": "" }, { "docid": "6420e5b682eda2b3fade0f503e3800dd", "score": "0.5483317", "text": "public static native byte[] DeviceInfo_getDeviceUIDBytes(long deviceInfo);", "title": "" }, { "docid": "77f325306bd3183d4f0f3bc515ffc815", "score": "0.5464764", "text": "java.lang.String getDevice();", "title": "" }, { "docid": "77f325306bd3183d4f0f3bc515ffc815", "score": "0.5464764", "text": "java.lang.String getDevice();", "title": "" }, { "docid": "0a3fd71aa531a5cc678cf1a47e9c4b10", "score": "0.54589605", "text": "@Override\n public int getCommandId() {\n return serialUid;\n }", "title": "" }, { "docid": "0a3fd71aa531a5cc678cf1a47e9c4b10", "score": "0.54589605", "text": "@Override\n public int getCommandId() {\n return serialUid;\n }", "title": "" }, { "docid": "a6b94a9b79da76b2656d7f114023961c", "score": "0.5453813", "text": "public String getUID();", "title": "" }, { "docid": "4e1c07ecf76b4532f25831d372db711a", "score": "0.5452237", "text": "@Array({16}) \n\t@Field(8) \n\tpublic Pointer<Byte > UserID() {\n\t\treturn this.io.getPointerField(this, 8);\n\t}", "title": "" }, { "docid": "2a7465cca4f3b06c143e8ca0e1e5af4d", "score": "0.5431699", "text": "static String m3518d(Context context) {\r\n StringBuilder stringBuilder = new StringBuilder();\r\n try {\r\n if (context.checkCallingOrSelfPermission(\"android.permission.READ_PHONE_STATE\") != 0) {\r\n return stringBuilder.toString();\r\n }\r\n CellLocation cellLocation = ((TelephonyManager) context.getSystemService(\"phone\")).getCellLocation();\r\n if (cellLocation instanceof GsmCellLocation) {\r\n GsmCellLocation gsmCellLocation = (GsmCellLocation) cellLocation;\r\n stringBuilder.append(gsmCellLocation.getLac()).append(\"||\").append(gsmCellLocation.getCid()).append(\"&bt=gsm\");\r\n } else if (cellLocation instanceof CdmaCellLocation) {\r\n CdmaCellLocation cdmaCellLocation = (CdmaCellLocation) cellLocation;\r\n int systemId = cdmaCellLocation.getSystemId();\r\n int networkId = cdmaCellLocation.getNetworkId();\r\n int baseStationId = cdmaCellLocation.getBaseStationId();\r\n if (systemId < 0 || networkId < 0 || baseStationId < 0) {\r\n stringBuilder.append(systemId).append(\"||\").append(networkId).append(\"||\").append(baseStationId).append(\"&bt=cdma\");\r\n } else {\r\n stringBuilder.append(systemId).append(\"||\").append(networkId).append(\"||\").append(baseStationId).append(\"&bt=cdma\");\r\n }\r\n }\r\n return stringBuilder.toString();\r\n } catch (Throwable th) {\r\n az.m3143a(th, \"DeviceInfo\", \"cellInfo\");\r\n th.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "0ae09a7d61453765ec4b9e2ad7f09f9c", "score": "0.54230213", "text": "public UUID getUUID() {\n\t\treturn handle.getId();\n\t}", "title": "" }, { "docid": "0a6adb8d487da41dfae151d57e50ed40", "score": "0.54173374", "text": "java.lang.String getDevicePciBusId();", "title": "" }, { "docid": "0e47be9574d99edf3c2e0172d5d14c12", "score": "0.540306", "text": "public static String getUniquePsuedoID() {\n // If all else fails, if the user does have lower than API 9 (lower\n // than Gingerbread), has reset their device or 'Secure.ANDROID_ID'\n // returns 'null', then simply the ID returned will be solely based\n // off their Android device information. This is where the collisions\n // can happen.\n // Thanks http://www.pocketmagic.net/?p=1662!\n // Try not to use DISPLAY, HOST or ID - these items could change.\n // If there are collisions, there will be overlapping data\n String m_szDevIDShort = \"35\" + (Build.BOARD.length() % 10) + (Build.BRAND.length() % 10) + (Build.CPU_ABI.length() % 10) + (Build.DEVICE.length() % 10) + (Build.MANUFACTURER.length() % 10) + (Build.MODEL.length() % 10) + (Build.PRODUCT.length() % 10);\n\n // Thanks to @Roman SL!\n // https://stackoverflow.com/a/4789483/950427\n // Only devices with API >= 9 have android.os.Build.SERIAL\n // http://developer.android.com/reference/android/os/Build.html#SERIAL\n // If a user upgrades software or roots their device, there will be a duplicate entry\n String serial = null;\n try {\n serial = android.os.Build.class.getField(\"SERIAL\").get(null).toString();\n\n // Go ahead and return the serial for api => 9\n return new UUID(m_szDevIDShort.hashCode(), serial.hashCode()).toString();\n } catch (Exception exception) {\n // String needs to be initialized\n serial = \"serial\"; // some value\n }\n\n // Thanks @Joe!\n // https://stackoverflow.com/a/2853253/950427\n // Finally, combine the values we have found by using the UUID class to create a unique identifier\n return new UUID(m_szDevIDShort.hashCode(), serial.hashCode()).toString();\n }", "title": "" }, { "docid": "2118c616faff2816ed83c01c800f4d5a", "score": "0.5386541", "text": "public long getUID() {\n return uid;\n }", "title": "" }, { "docid": "22b5d93ca6fc22993803ec242a38c9be", "score": "0.5384079", "text": "public com.google.protobuf.ByteString\n getDeviceidBytes() {\n java.lang.Object ref = deviceid_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n deviceid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "26c7a9d520b11ba219259f6290aa8a4c", "score": "0.5363665", "text": "public com.google.protobuf.ByteString\n getDeviceidBytes() {\n java.lang.Object ref = deviceid_;\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 deviceid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "8c4de43064e743237da2a7282c40366f", "score": "0.53589374", "text": "@SuppressLint(\"DefaultLocale\")\r\n\tpublic static String getUniqueDeviceID(Context context)\r\n\t{\n\r\n\t\tTelephonyManager TelephonyMgr = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);\r\n\t\tString m_szImei = TelephonyMgr.getDeviceId(); // Requires READ_PHONE_STATE\r\n\r\n\t\t//This requires adding a permission in AndroidManifest.xml, and users will be notified upon installing your software: android.permission.READ_PHONE_STATE. The IMEI is unique for your phone and it looks like this: 359881030314356 (unless you have a pre-production device with an invalid IMEI like 0000000000000).\r\n\r\n\t\t////////////////////////////////////////////\r\n\t\t////////////////////////////////////////////\r\n\t\t\r\n\t\t//2. Pseudo-Unique ID, that works on all Android devices\r\n\t\t//Some devices don't have a phone (eg. Tablets) or for some reason you don't want to include the READ_PHONE_STATE permission. You can still read details like ROM Version, Manufacturer name, CPU type, and other hardware details, that will be well suited if you want to use the ID for a serial key check, or other general purposes. The ID computed in this way won't be unique: it is possible to find two devices with the same ID (based on the same hardware and rom image) but the chances in real world applications are negligible. For this purpose you can use the Build class:\r\n\t\t\r\n\t\tString m_szDevIDShort = \"35\" + //we make this look like a valid IMEI\r\n\t\t\t\tBuild.BOARD.length()%10+ Build.BRAND.length()%10 +\r\n\t\t\t\tBuild.CPU_ABI.length()%10 + Build.DEVICE.length()%10 +\r\n\t\t\t\tBuild.DISPLAY.length()%10 + Build.HOST.length()%10 +\r\n\t\t\t\tBuild.ID.length()%10 + Build.MANUFACTURER.length()%10 +\r\n\t\t\t\tBuild.MODEL.length()%10 + Build.PRODUCT.length()%10 +\r\n\t\t\t\tBuild.TAGS.length()%10 + Build.TYPE.length()%10 +\r\n\t\t\t\tBuild.USER.length()%10 ; //13 digits\r\n\t\t\r\n\t\t//Most of the Build members are strings, what we're doing here is to take their length and transform it via modulo in a digit. We have 13 such digits and we are adding two more in front (35) to have the same size ID like the IMEI (15 digits). There are other possibilities here are well, just have a look at these strings.\r\n\t\t//Returns something like: 355715565309247 . No special permission are required, making this approach very convenient.\r\n\t\t\r\n\t\t////////////////////////////////////////////\r\n\t\t////////////////////////////////////////////\r\n\r\n\t\t//3. The Android ID , considered unreliable because it can sometimes be null. The documentation states that it \"can change upon factory reset\". This string can also be altered on a rooted phone.\r\n\t\tString m_szAndroidID = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID);\r\n\r\n\t\t//Returns: 9774d56d682e549c . No special permissions required.\r\n\r\n\t\t////////////////////////////////////////////\r\n\t\t////////////////////////////////////////////\r\n\r\n\t\t//4. The WLAN MAC Address string, is another unique identifier that you can use as a device id. Before you read it, you will need to make sure that your project has the android.permission.ACCESS_WIFI_STATE permission or the WLAN MAC Address will come up as null.\r\n\t\tWifiManager wm = (WifiManager)context.getSystemService(Context.WIFI_SERVICE);\r\n\t\tString m_szWLANMAC = wm.getConnectionInfo().getMacAddress();\r\n\r\n\t\t//Returns: 00:11:22:33:44:55 (not a real address since this is a custom ROM , as you can see the MAC address can easily be faked). WLAN doesn't have to be on, to read this value.\r\n\t\t\r\n\t\t////////////////////////////////////////////\r\n\t\t////////////////////////////////////////////\r\n\t\t\r\n\t\t\r\n\t\t//5. The BT MAC Address string, available on Android devices with Bluetooth, can be read if your project has the android.permission.BLUETOOTH permission.\r\n\t\tBluetoothAdapter m_BluetoothAdapter\t= null; // Local Bluetooth adapter\r\n \tm_BluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\r\n \tString m_szBTMAC = \"\";\r\n \tif(m_BluetoothAdapter != null) m_BluetoothAdapter.getAddress();\r\n\r\n\t\t//Returns: 43:25:78:50:93:38 . BT doesn't have to be on, to read it.\r\n\r\n\t\t////////////////////////////////////////////\r\n\t\t////////////////////////////////////////////\r\n\r\n//\t Combined Device ID\r\n//\t\tAbove, you have here 5 ways of reading a device unique identifier. Some of them might fail and return null, or you won't be able to use them because of the special permissions or because the hardware is missing (phone, bluetooth, wlan).\r\n//\t\tNevertheless on all platforms you will find at least one that works. So a very good idea is to mix these strings, and generate a unique result out of their sum. To mix the strings you can simply concatenate them, and the result can be used to compute a md5 hash:\r\n\r\n \tString m_szLongID = m_szImei + m_szDevIDShort + m_szAndroidID+ m_szWLANMAC + m_szBTMAC;\r\n \t// compute md5\r\n \tMessageDigest m = null;\r\n \ttry {\r\n \t\tm = MessageDigest.getInstance(\"MD5\");\r\n \t} catch (NoSuchAlgorithmException e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n \tm.update(m_szLongID.getBytes(),0,m_szLongID.length());\r\n \t// get md5 bytes\r\n \tbyte p_md5Data[] = m.digest();\r\n \t// create a hex string\r\n \tString m_szUniqueID = new String();\r\n \tfor (int i=0;i\r\n \t\t\t<p_md5Data.length;i++) {\r\n \t\tint b = (0xFF & p_md5Data[i]);\r\n \t\t// if it is a single digit, make sure it have 0 in front (proper padding)\r\n \t\tif (b <= 0xF) m_szUniqueID+=\"0\";\r\n \t\t// add number to string\r\n \t\tm_szUniqueID+=Integer.toHexString(b);\r\n \t}\r\n \t// hex string to uppercase\r\n \tm_szUniqueID = m_szUniqueID.toUpperCase(Locale.getDefault());\r\n\t\t \r\n\r\n//\t\tThe result has 32 hex digits and it looks like this:\r\n//\t\t9DDDF85AFF0A87974CE4541BD94D5F55\r\n \t\r\n \treturn m_szUniqueID;\r\n\t}", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.5355466", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.5355466", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.5355466", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.5355466", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "ddadfe4ba3541c88ece62324466abff0", "score": "0.53554434", "text": "java.lang.String getDeviceId();", "title": "" }, { "docid": "6c27c56ed58ae35be06824a72f021a5e", "score": "0.5346223", "text": "public long getUID()\n\t{\n\t\treturn this.UID;\n\t}", "title": "" }, { "docid": "09271b2ebae5f37974e5502191e8ec47", "score": "0.5328476", "text": "public long getDeviceID() {\n return deviceID;\n }", "title": "" }, { "docid": "3a8767dee5ef6837cb7e974b40e1bc2d", "score": "0.53124195", "text": "@Override // com.pushwoosh.internal.platform.utils.a.g\n public String b() {\n RegistrationPrefs registrationPreferences = RepositoryModule.getRegistrationPreferences();\n String str = registrationPreferences.deviceId().get();\n if (!TextUtils.isEmpty(str)) {\n return str;\n }\n String uuid = UUID.randomUUID().toString();\n registrationPreferences.deviceId().set(uuid);\n return uuid;\n }", "title": "" }, { "docid": "dc5e2f4f3b9fa8c1e0707099230e2b29", "score": "0.52788013", "text": "@Override // com.pushwoosh.internal.platform.utils.a.g\n public String b() {\n if (Build.VERSION.SDK_INT >= 28) {\n return \"\";\n }\n String str = Build.SERIAL;\n return TextUtils.equals(\"unknown\", str) ? \"\" : str;\n }", "title": "" }, { "docid": "144596d3f34ce31a453389b61fc121ec", "score": "0.5278048", "text": "public String getUUID(){\r\n return this.uuID;\r\n }", "title": "" }, { "docid": "9229ab6b40c7abb55e793b696365b817", "score": "0.52610976", "text": "public int get_bus_number() {\n return USBNative.get_bus_number(dev);\n }", "title": "" }, { "docid": "9b16561b630b44d0b71c10ef37d15a37", "score": "0.52566385", "text": "public String getUID() {\n return getDockerAddress();\n }", "title": "" }, { "docid": "eff6edd172ede5cbd1b91bdbaf545281", "score": "0.5255586", "text": "@Override\r\n public String getFrameOfReferenceUID() throws DIException {\r\n // source DICOM object:\t\t\t-\tFrame Of Reference Module\r\n // DICOM name and code:\t\t\t-\t(0020,0052) Frame of Reference UID UI 1\r\n // destination TDS object:\t\t-\tSeries\r\n // destination TDS attribute:\t-\tFrameOfReferenceUID\r\n DValue dataElement = dicomDataSet.getValueByGroupElementString(\"0020,0052\");\r\n if (dataElement == null) {\r\n return null;\r\n }\r\n return getStringAnswer(dataElement);\r\n }", "title": "" }, { "docid": "251f2e7960cc1b325b8ca7393e0b84cc", "score": "0.5249903", "text": "java.lang.String getDevicebrand();", "title": "" }, { "docid": "749d4b8e386d8a357b58a34264ad0dd5", "score": "0.52479845", "text": "java.lang.String getSbDFId();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "8f933202e41730e1fcac29812ee0e89f", "score": "0.5246953", "text": "java.lang.String getUuid();", "title": "" }, { "docid": "cebeb40d31db37ebbd5d94be593fa8ed", "score": "0.5238232", "text": "public String getDeviceID() {\n return deviceID;\n }", "title": "" }, { "docid": "f845e528ca833fd396589998ab97f3d4", "score": "0.52306753", "text": "public com.vmail.external.ups.hh.ws.DeviceIdentifier getDeviceIdentifier() {\r\n return deviceIdentifier;\r\n }", "title": "" }, { "docid": "bebb61041f23b0383c61bd5367993728", "score": "0.5230463", "text": "se.mejsla.camp.mazela.network.common.protos.MazelaProtocol.Uuid getUuid();", "title": "" }, { "docid": "bebb61041f23b0383c61bd5367993728", "score": "0.5230463", "text": "se.mejsla.camp.mazela.network.common.protos.MazelaProtocol.Uuid getUuid();", "title": "" }, { "docid": "3dd6d7c8d284d204ba2a37c637345bf7", "score": "0.5222996", "text": "public String getUserDeviceId(){\n\t\treturn userDeviceId;\n\t}", "title": "" }, { "docid": "143c41b6eb6e199fc851e37abf4808d1", "score": "0.52069396", "text": "Pointer urg_sensor_serial_id(urg_t urg);", "title": "" }, { "docid": "74da4e7b62c39c66201f61a42f4f6645", "score": "0.5202716", "text": "public UUID getID() {\n return uid;\n }", "title": "" }, { "docid": "4cd5dbc67924ced7c5a1502b8e5d6636", "score": "0.5194179", "text": "public int getDeviceID() {\n\t\treturn deviceID;\n\t}", "title": "" }, { "docid": "bd5657d9c304e09f55141677e6370672", "score": "0.51854545", "text": "public static String m4396c(Context context) {\n return ((TelephonyManager) context.getSystemService(\"phone\")).getDeviceId();\n }", "title": "" }, { "docid": "4512ff32c9642f6588abb4199038d8e7", "score": "0.5183393", "text": "public String WLS_CordinatorID(){\n\t\tString DeviceID=null;\n\t\ttry{\n\t\t\tCursor mcursor=null;\n\t\t\tmcursor=sdb.query(SERVER_CNFG_TABLE, new String[] {SERVER_CNFG_DevId},SERVER_CNFG_ID+\"=1\" , \n\t\t\t\t\tnull, null, null, null);\n\t\t\tif(mcursor.getCount()!=0){\n\t\t\t\tmcursor.moveToFirst();\n\t\t\t\tDeviceID=mcursor.getString(mcursor.getColumnIndex(SERVER_CNFG_DevId));\n\t\t\t\tLog.d(\"TAG\",\"wireless server Cordinator Id :\"+DeviceID);\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn DeviceID;\n\t}", "title": "" }, { "docid": "92d867ba9ded345133bda4c6d30e5530", "score": "0.5183312", "text": "@Override\n public UUID getUuid() {\n return GATT_UUID;\n }", "title": "" }, { "docid": "3a90bd202e4dbfef4f6f109830d4c8dd", "score": "0.51806456", "text": "public static String getDevice() {\n\t\treturn Build.MODEL;\n\t}", "title": "" }, { "docid": "5a14fd9f0b841bd9e8f96950548a93fb", "score": "0.51719725", "text": "public String getUDIDOfTheDevice() throws IOException, InterruptedException{\n\t\tString value=null;\n\t\tString line = null;\n\t\tFile filepath = new File(System.getProperty(\"user.dir\"));\n\t\tFile shellScriptToRun = new File(filepath,\"/getUDID.sh\");\n\t\tProcess proc = Runtime.getRuntime().exec(shellScriptToRun.toString());\n\t\tInputStream stdin = proc.getInputStream();\n\t\tInputStreamReader isr = new InputStreamReader(stdin);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\twhile ( (line = br.readLine()) != null){\n\t\t\t value = line;\n\t\t} \n\t\tString udid = \"\\\"\"+value+\"\\\"\";\n\t\treturn udid;\n\t}", "title": "" }, { "docid": "db53f7a56ff8e599c8a3768ced84100d", "score": "0.51667506", "text": "public String getSOPInstanceUID() throws DIException {\n DValue dataElement = dicomDataSet.getValueByGroupElementString(\"0008,0018\");\r\n if (dataElement == null) {\r\n return null;\r\n }\r\n return getStringAnswer(dataElement);\r\n }", "title": "" }, { "docid": "c1c0086c32fa2d0fee1501be879c9919", "score": "0.5165304", "text": "public String getUserUuid() throws SystemException;", "title": "" }, { "docid": "1196b65b50a8acbacc6045526954114a", "score": "0.5146956", "text": "com.google.protobuf.ByteString\n getSbDRUGIdBytes();", "title": "" }, { "docid": "efa2c255a752c6d7582116e481aba59b", "score": "0.51452184", "text": "private static String getIdForDevice(Context c)\r\n {\r\n \tif(c==null)\r\n \t\treturn null;\r\n\t\tTelephonyManager TelephonyMgr = (TelephonyManager)c.getSystemService(Context.TELEPHONY_SERVICE);\r\n\t\tString m_szImei = TelephonyMgr.getDeviceId(); // Requires READ_PHONE_STATE\r\n\r\n\t\t//2 compute DEVICE ID\r\n\t\tString m_szDevIDShort = \"4567\" + \r\n\t\tBuild.BOARD.length()%10+ Build.BRAND.length()%10 + \r\n\t\tBuild.DEVICE.length()%10 + \r\n\t\tBuild.DISPLAY.length()%10 + Build.HOST.length()%10 + \r\n\t\tBuild.ID.length()%10 + \r\n\t\tBuild.MODEL.length()%10 + Build.PRODUCT.length()%10 + \r\n\t\tBuild.TAGS.length()%10 + Build.TYPE.length()%10 + \r\n\t\tBuild.USER.length()%10 ;\r\n\r\n\t\t//3 android ID - unreliable\r\n\t\tString m_szAndroidID = Secure.getString(c.getContentResolver(), Secure.ANDROID_ID); \r\n\r\n\t\tString m_szWLANMAC = \"\";\r\n\t\ttry \r\n\t\t{\r\n\t\t\t//4 wifi manager, read MAC address - requires android.permission.ACCESS_WIFI_STATE or comes as null\r\n\t\t\tWifiManager wm = (WifiManager)c.getSystemService(Context.WIFI_SERVICE);\r\n\t\t\tm_szWLANMAC = wm.getConnectionInfo().getMacAddress();\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t\t//6 SUM THE IDs\r\n\t\tString m_szLongID = \"\";\r\n\t\tif(m_szImei!=null)\r\n\t\t\tm_szLongID = m_szLongID + m_szImei;\r\n\t\tif(m_szDevIDShort!=null)\r\n\t\t\tm_szLongID = m_szLongID + m_szDevIDShort;\r\n\t\tif(m_szAndroidID!=null)\r\n\t\t\tm_szLongID = m_szLongID + m_szAndroidID;\r\n\t\tif(m_szWLANMAC!=null)\r\n\t\t\tm_szLongID = m_szLongID + m_szWLANMAC;\r\n\t\t\r\n\t\tif(m_szLongID.trim().equals(\"\"))\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tandroidId = m_szLongID;\r\n\t\t\treturn m_szLongID;\r\n\t\t}\r\n }", "title": "" }, { "docid": "f53fbc6f481d9984a084f919271fa938", "score": "0.5143321", "text": "public java.lang.String getDevicePciBusId() {\n java.lang.Object ref = devicePciBusId_;\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 devicePciBusId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "b82b0dcd9420975ac193bf0fe3f9b7a6", "score": "0.5142819", "text": "String getUuid();", "title": "" }, { "docid": "d47f2859c167e2a9c7aaadd1cbcadc40", "score": "0.513715", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"{deviceId=\" + mid + \",\" + \"address=\" + mSocket.getInetAddress().getHostAddress() + \",\" + \"port=\"\n\t\t\t\t+ mSocket.getPort() + \"}\";\n\t}", "title": "" }, { "docid": "9b5b5cb1465ab236daf9647b4db308a7", "score": "0.51309806", "text": "GetDeviceIdentifierResult getDeviceIdentifier(GetDeviceIdentifierRequest getDeviceIdentifierRequest);", "title": "" }, { "docid": "3009657d1273714b93269428b467df65", "score": "0.51256114", "text": "com.google.protobuf.ByteString\n getUuidBytes();", "title": "" }, { "docid": "3009657d1273714b93269428b467df65", "score": "0.51256114", "text": "com.google.protobuf.ByteString\n getUuidBytes();", "title": "" }, { "docid": "3009657d1273714b93269428b467df65", "score": "0.51256114", "text": "com.google.protobuf.ByteString\n getUuidBytes();", "title": "" }, { "docid": "3009657d1273714b93269428b467df65", "score": "0.51256114", "text": "com.google.protobuf.ByteString\n getUuidBytes();", "title": "" }, { "docid": "3009657d1273714b93269428b467df65", "score": "0.51256114", "text": "com.google.protobuf.ByteString\n getUuidBytes();", "title": "" }, { "docid": "3009657d1273714b93269428b467df65", "score": "0.51256114", "text": "com.google.protobuf.ByteString\n getUuidBytes();", "title": "" }, { "docid": "3009657d1273714b93269428b467df65", "score": "0.51256114", "text": "com.google.protobuf.ByteString\n getUuidBytes();", "title": "" }, { "docid": "3009657d1273714b93269428b467df65", "score": "0.51256114", "text": "com.google.protobuf.ByteString\n getUuidBytes();", "title": "" }, { "docid": "3009657d1273714b93269428b467df65", "score": "0.51256114", "text": "com.google.protobuf.ByteString\n getUuidBytes();", "title": "" }, { "docid": "ef519b7729cd29b2dc1ace687f326671", "score": "0.51255876", "text": "control.Uuid.UUID getIdentifier();", "title": "" } ]
215dfd44d2c2f8f3cc9ba3089b7244f8
Sets the parent resource of this exclusion.
[ { "docid": "b0f520e5182cd79fbcf20b37fbda70f5", "score": "0.73250693", "text": "public void setParentResource(IResource parentResource) {\n \t\tthis.fParentResource = parentResource;\n \t}", "title": "" } ]
[ { "docid": "1a8dfebf1a8710e33aae97da08d6ba3e", "score": "0.68903923", "text": "public void setParent(Parent parent) {\n\t\tthis.parent = parent;\n\t}", "title": "" }, { "docid": "7b89283a4a56d14be24b7b6d32140348", "score": "0.6879293", "text": "public void setParent(int parent) {\n\t\tthis.parent=parent;\n\t}", "title": "" }, { "docid": "419b69f17f7e1722c7a6228433397164", "score": "0.68468285", "text": "protected void setParent(Configuration parent) {\n this.parent = parent;\n }", "title": "" }, { "docid": "c3366f876f0f64a935ab6e9a187527fe", "score": "0.68357384", "text": "public void setParent(String parent) {\n this.parent = parent;\n }", "title": "" }, { "docid": "c3366f876f0f64a935ab6e9a187527fe", "score": "0.68357384", "text": "public void setParent(String parent) {\n this.parent = parent;\n }", "title": "" }, { "docid": "3efdc13e640f3ad2187cb771d9a750d5", "score": "0.6807349", "text": "public void setParent(ParentEntity parent_in) {\n\t\tparent = parent_in;\n\t}", "title": "" }, { "docid": "5ec5887af8afa5934b1b2e90ba176aef", "score": "0.67335016", "text": "@Override\n\tpublic void setParent(Object parent) {\n\n\t}", "title": "" }, { "docid": "5be2091055e3ff8758edd2e76d05fd29", "score": "0.6729056", "text": "public void setParent(String parent) {\r\n\t\tthis.parent = parent;\r\n\t}", "title": "" }, { "docid": "a36fe5395de6d03a3873ea5d2a27c9ff", "score": "0.6693078", "text": "protected void setParent( final AbstractDevice parent ) throws ParentNotAllowedException {\n \t\tthis.parent = parent;\n \t}", "title": "" }, { "docid": "80e7a38ff5fd6b66ff95b3a3b558766b", "score": "0.6661999", "text": "public void setParent(String parent) {\n\t\tthis.parent = parent;\n\t}", "title": "" }, { "docid": "adb71c831a0201ad0ca185f64a0b71d7", "score": "0.66447", "text": "public void setParentResourceId(String parentResourceId) {\n this.parentResourceId = parentResourceId;\n }", "title": "" }, { "docid": "bfaeffb923b69c059b4212884810a2db", "score": "0.6616836", "text": "protected void setParent(AstNode parent)\n {\n assert parent == null || !this.isDiscarded() && !parent.isDiscarded();\n this.m_parent = parent;\n }", "title": "" }, { "docid": "7f20f763a4465f9cb7bf490edd7182bb", "score": "0.65957695", "text": "protected void setParent(final PARENT p) {\n this.parent = p;\n }", "title": "" }, { "docid": "1098ada355d099ac3f82905c784cb1b0", "score": "0.6541622", "text": "@Override\n\tpublic void setParentCondition(BooleanCondition parent) {\n\t\tthis.parent = parent;\n\t}", "title": "" }, { "docid": "f954f579226af36e5d0041b9106f08a7", "score": "0.6536148", "text": "public void setParent(FileDirEntity parent) {\n this.parent = parent;\n }", "title": "" }, { "docid": "9fa8a76109f485b9ca8e843407142fd5", "score": "0.653155", "text": "protected void setParent(Structure parent) {\n // -- never used by references\n }", "title": "" }, { "docid": "94eebcf9e5028205c4e0dc6ad6bffb4a", "score": "0.64675725", "text": "public IResource getParentResource() {\n \t\treturn fParentResource;\n \t}", "title": "" }, { "docid": "042f53ca953f5d37ee3960c94c1947f6", "score": "0.6464499", "text": "public ExprNode setParent(ExprNode p) {\n\t\tthis.parent = p;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "41b1fa3e88c2e16c39cc79ed404dcf27", "score": "0.6447074", "text": "public void setParent(HL7RepeatingField parent) {\n this.parent = parent;\n setDirty();\n }", "title": "" }, { "docid": "5a42e9b7470b07be7465ba3ecbc9f2c2", "score": "0.6421889", "text": "public void setParent( ChangeLogSetImpl parent ) {\r\n\t\tthis.parent = parent;\r\n\t}", "title": "" }, { "docid": "2b32308231ef51b2d7ef14d0bd9f8951", "score": "0.64030445", "text": "public void setParent(Node parent);", "title": "" }, { "docid": "2b139e648665c5ee47b9ef8934513749", "score": "0.6382491", "text": "public void setParent(java.lang.String value) {\n this.parent = value;\n }", "title": "" }, { "docid": "4751b729ec57485809ad334c0775be1f", "score": "0.6322971", "text": "public void setParent(Node p)\n {\n\tthis.parent = p;\n }", "title": "" }, { "docid": "b9855c9dd3e8b73398bed64de5a0472f", "score": "0.63167566", "text": "private void setParent(FileSystemViewerPanel parent){\n\t\tthis.parent = parent;\n\t}", "title": "" }, { "docid": "90263743981caa8aa173381879de4aca", "score": "0.6307154", "text": "public void setParent(Object Parent) throws com.sun.star.lang.NoSupportException {\n }", "title": "" }, { "docid": "c56503a47350fa6573ccf3d21a2f5d16", "score": "0.6290974", "text": "public Object getParent() {\n return parent;\n }", "title": "" }, { "docid": "1af36481d06872c0f715fdf2e19be7fb", "score": "0.62708986", "text": "public void setParent(Cake c){\n\t\tparent = c;\n\t}", "title": "" }, { "docid": "64ff2e8072b7ac8fc0e1d75e611ce02c", "score": "0.627071", "text": "public void setParent(InvDatasetImpl parent) {\n this.parent = parent;\n hashCode = 0;\n }", "title": "" }, { "docid": "7d564a1ebf4489653d3a20c0ae92c4d6", "score": "0.62498635", "text": "public RefreshExclusion getParentExclusion() {\n \t\treturn fParentExclusion;\n \t}", "title": "" }, { "docid": "0265b72e895fa8d9916a887e15ba4dd0", "score": "0.62369263", "text": "public void setParent(LecturerCreateQuiz parent){\n parent_admin = parent;\n }", "title": "" }, { "docid": "eba1c1c7405d596122f1facff113fdc1", "score": "0.62285334", "text": "public void setUniParent(Element parent) {\n \t\tif(_parentLink != null) {\n \t\t\t_parentLink.connectTo(null);\n \t\t}\n \t\tif(parent != null) {\n \t\t\t_parentLink = null;\n \t\t} else if(_parentLink == null) {\n \t\t\t_parentLink = createParentLink();\n \t\t}\n \t\t_parent = parent;\n \t}", "title": "" }, { "docid": "53e9a762d72b26130d56934717665e48", "score": "0.62229544", "text": "public void setParent(Node parent) {\r\n\t\tthis.parent = parent;\r\n\t}", "title": "" }, { "docid": "b402957272aff5a2a911964bd39f1787", "score": "0.62143314", "text": "protected void setParent(FileSettings value) {\r\n parent = value;\r\n }", "title": "" }, { "docid": "74b3c8436af7121767d341da9afc2593", "score": "0.62012976", "text": "public void setParent(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n \r\n if (param==java.lang.Integer.MIN_VALUE) {\r\n localParentTracker = false;\r\n \r\n } else {\r\n localParentTracker = true;\r\n }\r\n \r\n this.localParent=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "ef650db265b3b5c64005605b8fd02850", "score": "0.61903125", "text": "public void setParentID(int parentID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PARENTID$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PARENTID$2);\n }\n target.setIntValue(parentID);\n }\n }", "title": "" }, { "docid": "aa937b3bb17f84dc44aa68c66d9c05cc", "score": "0.6187047", "text": "public Role getParent() {\n return parent;\n }", "title": "" }, { "docid": "65aa93d1bc75705be2c3b9c4d522172d", "score": "0.61869335", "text": "@Generated(hash = 1022301335)\n public void setParent(@NotNull Relationship parent) {\n if (parent == null) {\n throw new DaoException(\n \"To-one property 'parentId' has not-null constraint; cannot set to-one to null\");\n }\n synchronized (this) {\n this.parent = parent;\n parentId = parent.getId();\n parent__resolvedKey = parentId;\n }\n }", "title": "" }, { "docid": "7753bea35861a660dbc7c54c3846ee4c", "score": "0.61848015", "text": "public final PARENT getParent() {\n return parent;\n }", "title": "" }, { "docid": "eaf6f076541f9a2f11bf05086807397c", "score": "0.61736524", "text": "public void setParent (com.yunkuo.cms.entity.main.Channel parent) {\n this.parent = parent;\n }", "title": "" }, { "docid": "0950aa2aa6646c7d87d622a979977f31", "score": "0.61714715", "text": "public void setParent(@NotNull PsiElement<?> parent) {\n if (this.parent != null)\n throw new AssertionError(\"This element's parent has already been set, its line number: \" + parent.lineNumber);\n this.parent = parent;\n }", "title": "" }, { "docid": "a3c08dfe269fd79c856ec25ad12f2f4c", "score": "0.6164524", "text": "@Override\n\tpublic BooleanCondition getParentCondition() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "5863ea6082ab486943359692fd792960", "score": "0.6162653", "text": "public long getParent() {\n return parent_;\n }", "title": "" }, { "docid": "7019ae0951f9a56d4e47ac11c5954165", "score": "0.6157424", "text": "public int getParent() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "bf592d5e45432e4a44b2b5a91aa3f73e", "score": "0.6135594", "text": "public int getParent() {\r\n return parent;\r\n }", "title": "" }, { "docid": "38cec836ad317d2c14e91bf0465a66b8", "score": "0.6133571", "text": "private void setParent(DirectoryEntry parent)\n\t{\n\t\tjava.util.ArrayList<DirectoryEntry> children = getChildren(parent);\n\t\tfor (java.util.Iterator<DirectoryEntry> iter = children.iterator(); iter.hasNext(); ){\n\t\t\tDirectoryEntry de = iter.next();\n\t\t\tparents.put(de, parent);\n\t\t\tsetParent(de);\n\t\t}\n\t}", "title": "" }, { "docid": "0ef73b78e4c47aa0b4b56ff39ee74fe8", "score": "0.61200476", "text": "public Parent getParent() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "3a83430c9513c11f97945b03329441ed", "score": "0.6113124", "text": "public long getParent() {\n return parent_;\n }", "title": "" }, { "docid": "f35a0f13f75127c368c108b5b33af750", "score": "0.6089014", "text": "IWidget setParent(@Nullable IWidget parent);", "title": "" }, { "docid": "c57161f8a84487f5f4f336e01a9c360f", "score": "0.60827875", "text": "public void setParent_id(Integer parent_id) {\n this.parent_id = parent_id;\n }", "title": "" }, { "docid": "cb70947e57949ec98eb4e29da28d2dfb", "score": "0.60804987", "text": "protected void setParent(ILanguageElement parent) {\n this.parent = parent;\n }", "title": "" }, { "docid": "0fc732a6115ae470b0b4d383ec23d68d", "score": "0.60795534", "text": "public void setParent(XmlElement element)\n {\n if (!isMutable())\n {\n throw new UnsupportedOperationException(\"value \\\"\" + this + \"\\\" is not mutable\");\n }\n\n if (element == null)\n {\n throw new IllegalArgumentException(\"parent cannot be null\");\n }\n\n XmlElement xmlParent = getParent();\n if (xmlParent != null && xmlParent != element)\n {\n throw new IllegalStateException(\"parent already set\");\n }\n\n m_parent = element;\n }", "title": "" }, { "docid": "8393474f0bcb8d7a7135aeed64eab1fe", "score": "0.60777664", "text": "public void setParentid(Integer parentid) {\r\n this.parentid = parentid;\r\n }", "title": "" }, { "docid": "6dec89e8a5348b78dfbd1c928b31cfe4", "score": "0.6073122", "text": "public Object getParent() {\r\n return this.parent;\r\n }", "title": "" }, { "docid": "6dec89e8a5348b78dfbd1c928b31cfe4", "score": "0.6073122", "text": "public Object getParent() {\r\n return this.parent;\r\n }", "title": "" }, { "docid": "ea8efc30a3d876d39f0032d36565c5b7", "score": "0.6072149", "text": "public Object getParent() {\n return this.parent;\n }", "title": "" }, { "docid": "ea8efc30a3d876d39f0032d36565c5b7", "score": "0.6072149", "text": "public Object getParent() {\n return this.parent;\n }", "title": "" }, { "docid": "f033f40358dd31690047c1210327e872", "score": "0.606766", "text": "public Object getParent() {\r\n return this.parent;\r\n }", "title": "" }, { "docid": "f033f40358dd31690047c1210327e872", "score": "0.606766", "text": "public Object getParent() {\r\n return this.parent;\r\n }", "title": "" }, { "docid": "99292d5b38c4268cf47faf0fe6b2b785", "score": "0.6061455", "text": "public final void setParent(Node parent) {\n\t\tthis.parent = parent;\n\t}", "title": "" }, { "docid": "99292d5b38c4268cf47faf0fe6b2b785", "score": "0.6061455", "text": "public final void setParent(Node parent) {\n\t\tthis.parent = parent;\n\t}", "title": "" }, { "docid": "5f85114a7deae25dc70f59af23486ccc", "score": "0.60458237", "text": "@ManyToOne(optional = false)\n\tpublic BidirectionalMandatoryParent getParent() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "9e292a5a0fa028c49a0626a0110ded59", "score": "0.6035896", "text": "public void setParent(Parent parent1) {\n\t\tparent = parent1;\n\t}", "title": "" }, { "docid": "133b665bf8ae838b4768447aa1e6e9a3", "score": "0.60332125", "text": "public void setParentWorkItem(WorkItem parentWorkItem) {\n this.parentWorkItem = parentWorkItem;\n if (isAttached()) {\n attachedBOC.setUpdated(this);\n }\n }", "title": "" }, { "docid": "35951e5a70eacf1f14b99d05e3e60219", "score": "0.6032406", "text": "public SimpleIndexRequestBuilder setParent(String parent) {\n request.parent(parent);\n return this;\n }", "title": "" }, { "docid": "c08baa1e47cae1bf9c142f27e549a85e", "score": "0.6030749", "text": "public void setParentid(Integer parentid) {\n this.parentid = parentid;\n }", "title": "" }, { "docid": "29f81c50affe232f436c614f83758060", "score": "0.6028131", "text": "public void setParentObjectId(Long parentObjectId);", "title": "" }, { "docid": "c5573290a6ce30a1a9f438d9c66d76e2", "score": "0.6023999", "text": "@Override\n\tpublic int getParent() {\n\t\treturn this.parent;\n\t}", "title": "" }, { "docid": "755f0bbe64a24c212ee45bf245c5f3dd", "score": "0.60215497", "text": "public Scope getParent() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "4e47a80b1f6da2c21085a8474e651cc4", "score": "0.60199416", "text": "public FileDirEntity getParent() {\n return parent;\n }", "title": "" }, { "docid": "61d660f8a454c01820af51701635281a", "score": "0.6004474", "text": "public void setParent(IContributionManager parent) {\n // do nothing, the parent of our inner item\n // is its SubContributionManager\n }", "title": "" }, { "docid": "77113a1e4b2a28c369dd3ae10ef65c43", "score": "0.600309", "text": "public String getParent() {\n return parent;\n }", "title": "" }, { "docid": "77113a1e4b2a28c369dd3ae10ef65c43", "score": "0.600309", "text": "public String getParent() {\n return parent;\n }", "title": "" }, { "docid": "00341ca2dab9f3aae669475cfea68cba", "score": "0.59999", "text": "public String getParent() {\r\n\t\treturn parent;\r\n\t}", "title": "" }, { "docid": "d4bc900a2f0bf12589b80fd1c77e2453", "score": "0.59976774", "text": "public void setParent(entity.Workflow value);", "title": "" }, { "docid": "d62d8eaed941953c0804ebe2f0148038", "score": "0.5995643", "text": "public void setParent(Group parent) {\n final String ERROR_MSG = \"Can't assign group as parent, circular reference not allowed.\";\n if (parent == null) {\n if (this.parent != null) {\n this.parent.children.remove(this);\n }\n this.parent = null;\n return;\n }\n if (parent == this) {\n throw new IllegalStateException(ERROR_MSG);\n }\n if (isDescendant(parent)) {\n throw new IllegalStateException(ERROR_MSG);\n }\n this.parent = parent;\n parent.children.add(this);\n }", "title": "" }, { "docid": "a62fef98c5a6090613c04428590bcee3", "score": "0.5991254", "text": "public void setParentID(String parentID) {\n\t\tsetAttribute(\"parentID\", parentID); \n\t}", "title": "" }, { "docid": "c8a60b1df09578a074f58bed0c347081", "score": "0.59903514", "text": "public String getParent() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "419d1da1baf67b0112482a7c78c8b54a", "score": "0.59799814", "text": "@Override\r\n\tpublic void setParent(ContentData parent) {\n\t\t\r\n\t}", "title": "" }, { "docid": "f27c0ddf594f5c38ff0e1652ec516f64", "score": "0.59796715", "text": "public void setParentGroupAssignment(FxGroupAssignment parent) {\n this.parentGroupAssignment = parent;\n }", "title": "" }, { "docid": "75406b75aea858752062a46c1eb5b919", "score": "0.597792", "text": "public void setParent(EquationNode parent) {\n\tthis.parent = parent;\n }", "title": "" }, { "docid": "8c6579e6e3c080a87767c9f43ec6e034", "score": "0.5977392", "text": "public Builder setParent(long value) {\n bitField0_ |= 0x00000001;\n parent_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "70c9377df7387b0e8ed8e41bddcacb0f", "score": "0.59652835", "text": "@Override\n protected void setParent(Group parent) {\n super.setParent(parent);\n }", "title": "" }, { "docid": "dcded6b3635f72e5e2921b10199991bb", "score": "0.595113", "text": "public influent.idl.FL_Cluster.Builder setParent(java.lang.String value) {\n validate(fields()[6], value);\n this.parent = value;\n fieldSetFlags()[6] = true;\n return this; \n }", "title": "" }, { "docid": "44f4e8ff873932d6a946d43c18d2154a", "score": "0.5950737", "text": "public void setParentName(java.lang.String parentName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PARENTNAME$40, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PARENTNAME$40);\n }\n target.setStringValue(parentName);\n }\n }", "title": "" }, { "docid": "7c8134237b5baf3078e226216d8c353a", "score": "0.59429127", "text": "CommonCollectionResource getParent();", "title": "" }, { "docid": "76c1d3f48a4302bb64b143b9236c5f2c", "score": "0.5938701", "text": "public Builder setParent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000800;\n parent_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0d6be0d3ec8a23a3817a1fbf91c6b526", "score": "0.5933184", "text": "public final void setParent(State parent) {\n super.setParent(parent);\n }", "title": "" }, { "docid": "74b974ba34e94b739f4bce33e57a9c2b", "score": "0.5931375", "text": "public void setParentDirectory(Directory parentDirectory) {\r\n this.parentDirectory = parentDirectory;\r\n }", "title": "" }, { "docid": "62716c6c1e48535e7e468b25fbef9a2b", "score": "0.59312177", "text": "@Override\n\tpublic void setParent(Activity parent) {\n\t\t\n\t}", "title": "" }, { "docid": "b8570bfbbc1e83a2ae7246cf9937e50c", "score": "0.5918138", "text": "@ApiModelProperty(value = \"The id of the parent resource (null if parent top level)\")\n public String getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "c6edb6e0f124c5866c0a8c185607acd4", "score": "0.59176487", "text": "public IBuildObject getParent() {\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "ba570167fb1e2d3a69507fe0640edd21", "score": "0.5914396", "text": "public Builder clearParent() {\n bitField0_ = (bitField0_ & ~0x00000001);\n parent_ = 0L;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e0ac305bf7c2119f51567dbe1d979da0", "score": "0.59142655", "text": "public void setParentIntermediaryNo(Integer parentIntermediaryNo) {\n\t\tthis.parentIntermediaryNo = parentIntermediaryNo;\n\t}", "title": "" }, { "docid": "f591d58edd46dbe92f1384284908d840", "score": "0.5913274", "text": "public void setParent(Score parent) {\n this.parent = parent;\n }", "title": "" }, { "docid": "6b49892d7fd88ef8734d597aacfc5723", "score": "0.59132665", "text": "public int getParentID() {\n return parentID_;\n }", "title": "" }, { "docid": "318e6a302e05c6e392bda3cbe748b4d2", "score": "0.59000725", "text": "public int getParentID() {\n return parentID_;\n }", "title": "" }, { "docid": "a9d0a17eb7c566d61f0e8eba7448bc39", "score": "0.5896824", "text": "@Transient\n @JsonProperty(\"parent\")\n public Long getParentId() {\n return this.parent == null ? null : this.parent.getId();\n }", "title": "" }, { "docid": "bf2abdbc43ee45a1d79e5bbaac3df7c1", "score": "0.5894245", "text": "public String parent() {\r\n\t\treturn parent;\r\n\t}", "title": "" }, { "docid": "3be48c5cf983bec9cb94926dc7e16a27", "score": "0.587375", "text": "public Builder setParentID(int value) {\n bitField0_ |= 0x00000004;\n parentID_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7a611585e15e0fee57b6dcf7ebf9b89e", "score": "0.58736753", "text": "public Move setParent(java.lang.String parent) {\n this.parent = parent;\n return this;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "55f20dd3969d9c3e407a42404ae5023a", "score": "0.0", "text": "@Override\n public void onClick(View v) {\n intent = new Intent(Register.this, Login.class);\n finish();\n startActivity(intent);\n }", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6491197", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.64641994", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "5697bde38a38a77f3a0bd238fb737c11", "score": "0.6364729", "text": "@Override\n public int getDochody() {\n return 0;\n }", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "85b25c664df01fd0b02e103c9bbc8372", "score": "0.62679124", "text": "@Override\r\n\tpublic void arreter() {\n\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "a56ce606ea5cc945279ea9725eed5272", "score": "0.6159551", "text": "@Override\n\tpublic void alearga() {\n\t\t\n\t}", "title": "" }, { "docid": "07779d53803dc6875c03bdee2e1afeb5", "score": "0.6132161", "text": "@Override\n public void ordenar() {\n }", "title": "" }, { "docid": "b9936bc3db0ac97ae50d7643a27379b4", "score": "0.61193323", "text": "@Override\n\tpublic void intercourse() {\n\n\t}", "title": "" }, { "docid": "35e5940d13f06d1f0d6a21cf2739c70a", "score": "0.61117256", "text": "public function() {}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.603307", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "829bb71476cb87bb452950e0e97007e6", "score": "0.6019835", "text": "@Override\n\tprotected void dataAcquisition() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "8d2080edd6605bcfb742d32fd1a0091e", "score": "0.59731764", "text": "@Override\n\tpublic void ilerle() {\n\n\t}", "title": "" }, { "docid": "ee0f5f270c3e0eea9f37c3d1e42b1161", "score": "0.5962932", "text": "public void mo12736g() {\n }", "title": "" }, { "docid": "2aee513697daff4bfe2636e5d0fa9a30", "score": "0.5960253", "text": "@Override\n\tpublic void bewegeNachUnten() {\n\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "cb1c09afbbe0ad234f211aa36d586f4e", "score": "0.59103566", "text": "@Override\r\n\t\tprotected void update() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5900665", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "15c9cae08ae101b3a04f9ff3b519ae04", "score": "0.5882791", "text": "public void mo8316a() {\n }", "title": "" }, { "docid": "b7288a7694313b8a4d39355a49521e40", "score": "0.5882", "text": "@Override\r\n\tpublic void atras() {\n\t\tsuper.atras();\r\n\t}", "title": "" }, { "docid": "4077955e82cce22d988577ca0a7978fc", "score": "0.5878152", "text": "@Override\n\tpublic void dormir() {\n\n\t}", "title": "" }, { "docid": "833ba2f1d8822ebbb0dddd05020c0c08", "score": "0.58703625", "text": "@Override\n\tpublic void attaque() {\n\t}", "title": "" }, { "docid": "3e9c4de332bfb94422f785054fa63ada", "score": "0.58645976", "text": "@Override\r\n\tpublic void limpiar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.58598334", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "8e75ffe6faa994ed57c6ffb8b56296fe", "score": "0.5852322", "text": "public void xiuproof() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "39da14b1f6e1adac9c0b748811e78b68", "score": "0.58369607", "text": "public void mo12645zl() {\n }", "title": "" }, { "docid": "d87000313f7b5075ec45a2b0ee7df323", "score": "0.58221865", "text": "@Override\r\n\tprotected void location() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "4e86f604c407a96c75671f663064c24b", "score": "0.580598", "text": "public void mo8319b() {\n }", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5799415", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.57941025", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "b429c7e890f65a814ea31e6014003667", "score": "0.5782731", "text": "@Override\n public int describeContents(){\n return 0;\n }", "title": "" }, { "docid": "680a0d25967a28e3b7a6643d55703105", "score": "0.57812274", "text": "public void contaaordem() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b901583faeb614d4d67271470c31d36c", "score": "0.5750588", "text": "@Override\n\tpublic void sare() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.574232", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fa729e301b181004ac22fa6a16b19c1b", "score": "0.57202786", "text": "@Override\n public void init()\n {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0b812af084ac0cb033ab904c49294fed", "score": "0.5685316", "text": "public void mo25703a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5684768", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "dc4ad5d6a5fcdc294379036f367a401b", "score": "0.5684058", "text": "@Override\n public void frenar() {\n\n }", "title": "" }, { "docid": "c0f925eed1b58e6d19fd99e8a3e26d34", "score": "0.5677166", "text": "@Override\r\n public boolean sallittu() {\r\n return false;\r\n }", "title": "" }, { "docid": "322e19fcfb5cfbd6ffce194d7e04df05", "score": "0.5665703", "text": "@Override\n\t\t\tprotected void reInitial() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fdeab6ca2d3dd91b347a8cc2f5c862c2", "score": "0.56656164", "text": "private static void generateNew() {\n\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "d6d75432f50fcf22c3834bdfb660cd26", "score": "0.5641307", "text": "@Override\n public void use(){\n \n }", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.563811", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "91e98bbf9cac4e38e126d6b5c2a2ecac", "score": "0.5624502", "text": "@Override\n\tprotected void setupData() {\n\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.5618833", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "290b69adc6f043c0f6d04c952f144b7d", "score": "0.56084245", "text": "@Override\n\tpublic void ImplementRule()\n\t{\n\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "9fa93751aa3acc716354baf4c9c4b1ff", "score": "0.5604908", "text": "@Override\n\tpublic void NoOftems() {\n\n\t}", "title": "" }, { "docid": "dce285146917b7d4be86c4f1ade0646e", "score": "0.5600153", "text": "@Override\r\n protected void onLoad() {}", "title": "" }, { "docid": "2698e2df29a24b9998ee11e61625c8a0", "score": "0.5599527", "text": "private void method() {\n\t\t\t}", "title": "" }, { "docid": "3767348a298bdbc42a516908dfac0022", "score": "0.5598486", "text": "public final void mo34050B() {\n }", "title": "" }, { "docid": "8436022dbd33301a64633011031cfa7b", "score": "0.55980015", "text": "protected void filtrarHoyDDPF() {\n\t\t\r\n\t}", "title": "" } ]
ac9a3df6d385526f7426d5caa64640a4
required string url = 1;
[ { "docid": "6cfdc85b682b2ec4d226081f5ceabe97", "score": "0.0", "text": "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "dede9d43bcfbf49e51db5e54b7c9742f", "score": "0.74312985", "text": "public void setUrl(String url) {\n/* 87 */ this.url = url;\n/* */ }", "title": "" }, { "docid": "a15ceef5b39149b6fd4c5da88cc93f24", "score": "0.7418684", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "1994cddaaf5f2898d59fa084791b9d7e", "score": "0.725426", "text": "public void setUrl(String url);", "title": "" }, { "docid": "6e520e75b3a6a63d10b010e3b4eb0e98", "score": "0.72372353", "text": "public void setUrl(String url) { this.url = url; }", "title": "" }, { "docid": "cdc89df3c9cf019ac2f52f05090b8b80", "score": "0.7164623", "text": "public void setUrl(String _url)\n {\n this._url = _url;\n }", "title": "" }, { "docid": "e569b8eb5ed710c3068aa5a78e47135b", "score": "0.71291006", "text": "public void setURL(String url) {\n\t\tthis.url=url;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c95f5cef21ac940e454ecb77e3a6255e", "score": "0.7107241", "text": "public void setUrl(String url){\n this.url = url;\n }", "title": "" }, { "docid": "d9650e4aafd89cbf94d290d58ea23ced", "score": "0.7083308", "text": "public urlValidate(String input){\r\n\t\tthis.url = input;\r\n\t}", "title": "" }, { "docid": "7372ef174fa1451c8208d54115573575", "score": "0.7072438", "text": "public void setUrl(String url) {\n\tthis.url = url;\n }", "title": "" }, { "docid": "3aba5a527a0e24bb85b3b47fd26fff06", "score": "0.706083", "text": "void setUrl(String url);", "title": "" }, { "docid": "3aba5a527a0e24bb85b3b47fd26fff06", "score": "0.706083", "text": "void setUrl(String url);", "title": "" }, { "docid": "3aba5a527a0e24bb85b3b47fd26fff06", "score": "0.706083", "text": "void setUrl(String url);", "title": "" }, { "docid": "df079d34f83a3c2946dd8b9a196027e3", "score": "0.7049012", "text": "public void setUrl(java.lang.String url);", "title": "" }, { "docid": "05651a71628384b63b685556f5560dd3", "score": "0.7031047", "text": "public void setUrl(String url)\r\n {\r\n this.url = url;\r\n }", "title": "" }, { "docid": "f4430ab39bdce96ffc4b359964398906", "score": "0.67905515", "text": "public void setUrl(String url) {\r\n this.url = url;\r\n }", "title": "" }, { "docid": "f4430ab39bdce96ffc4b359964398906", "score": "0.67905515", "text": "public void setUrl(String url) {\r\n this.url = url;\r\n }", "title": "" }, { "docid": "998c8cf1c651aff6812cfde3e3b5837a", "score": "0.67879856", "text": "public void GetURL(String URL);", "title": "" }, { "docid": "1c93cfbbb5d36fb238d0d044d816fca8", "score": "0.6775241", "text": "public void setUrl(java.lang.String url) {\r\n this.url = url;\r\n }", "title": "" }, { "docid": "eeac30ad0400f6d2bef93b8680078991", "score": "0.6746862", "text": "public void setURL(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "d964b507939ca81fe295e9292f67cb5c", "score": "0.6690124", "text": "public void setDocURL(WebURL aURL) { }", "title": "" }, { "docid": "7c3c0fba734dd193b46bc7725be9c7ae", "score": "0.66881496", "text": "public void setUrl(final String url)\n {\n this.url = url;\n }", "title": "" }, { "docid": "d9df10c602ede787e601997c23ebdbb5", "score": "0.6687952", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "d9df10c602ede787e601997c23ebdbb5", "score": "0.6687952", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "d9df10c602ede787e601997c23ebdbb5", "score": "0.6687952", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "d9df10c602ede787e601997c23ebdbb5", "score": "0.6687952", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "d9df10c602ede787e601997c23ebdbb5", "score": "0.6687952", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "d9df10c602ede787e601997c23ebdbb5", "score": "0.6687952", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "d9df10c602ede787e601997c23ebdbb5", "score": "0.6687952", "text": "public void setUrl(String url) {\n this.url = url;\n }", "title": "" }, { "docid": "e230f52a5f7b1541ae988d360a19a069", "score": "0.6674708", "text": "public void setUrl(java.lang.String url) {\n this.url = url;\n }", "title": "" }, { "docid": "8c46ae769364b5efc795f045f9408b15", "score": "0.6671875", "text": "public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}", "title": "" }, { "docid": "2460055f598ff128d545b7051cf97f60", "score": "0.66707027", "text": "public HttpRequestDefinition(String url) {\n this.url = Val.chkStr(url);\n }", "title": "" }, { "docid": "ec0be74be8672be1bdb549f92337bbc6", "score": "0.66572785", "text": "@Override\n\tpublic void initWithUrl(String url) {\n\n\t}", "title": "" }, { "docid": "a276ad9b7f2d61989a754f0d5d8506a7", "score": "0.66492414", "text": "public void setUrl(String s) {\r\n this.url = s;\r\n }", "title": "" }, { "docid": "859835272ae9bc64b2fdb0ad97b3cda6", "score": "0.6620835", "text": "String get(URL var0);", "title": "" }, { "docid": "71c5d5775e06c320e8d2c746bda7d4de", "score": "0.66067743", "text": "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "title": "" }, { "docid": "71c5d5775e06c320e8d2c746bda7d4de", "score": "0.66067743", "text": "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "title": "" }, { "docid": "d7288d9e8fb49c6f69250e65b6ac383b", "score": "0.654172", "text": "public void setUrl(String value) {\r\n\t\tthis.url = value;\r\n\t}", "title": "" }, { "docid": "a19c5daab10bc9a9fac3528c5b58bbcf", "score": "0.6509033", "text": "public void setUrl(final String url) {\n this.url = url;\n }", "title": "" }, { "docid": "396d62a70f73773ef3466623ec4a173c", "score": "0.6474292", "text": "@NotNull URL url();", "title": "" }, { "docid": "e96ba4945e1187009902828636c49a3c", "score": "0.64278436", "text": "URLSegment(final String url) {\r\n verifyArg(url, \"url\");\r\n this.url = url;\r\n }", "title": "" }, { "docid": "f930939362267cd770b81dbd41014427", "score": "0.64245665", "text": "String getURL();", "title": "" }, { "docid": "d37ae3b31a023e5d2099548aa061c80a", "score": "0.6422077", "text": "public URL getUrl() { return url; }", "title": "" }, { "docid": "563bb414785151594bf05f76567d5519", "score": "0.6413803", "text": "public String getUrl() { return url; }", "title": "" }, { "docid": "952ca3525f9d061017c0d54aeec4c449", "score": "0.6395756", "text": "public String getUrl() {\n/* 94 */ return this.url;\n/* */ }", "title": "" }, { "docid": "d87f970e9c21c4d14989304eecba54d7", "score": "0.6363545", "text": "@Override\n\tpublic void get(String url) {\n\n\t}", "title": "" }, { "docid": "feb9400b2d2872b52f6eab60a3c720e3", "score": "0.636216", "text": "public void setUrl(String value) {\n\n if (value.length() > 0) {\n this.url = value;\n }\n }", "title": "" }, { "docid": "32ff6fe521924ed1bc164a1f4c2d49d1", "score": "0.6353555", "text": "abstract URL url();", "title": "" }, { "docid": "00fb739f25cb03b0a3af8306a4588655", "score": "0.6290203", "text": "public void setUrl(String url) {\n setSource(url);\n }", "title": "" }, { "docid": "890a9ab4a2b807a99cd05413298035e5", "score": "0.6277505", "text": "public void setURL(String thisurl){\n try {\n this.url = new URL(thisurl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "896898749b06f4e812a5061a2a163719", "score": "0.6264247", "text": "public String getURL();", "title": "" }, { "docid": "bfae6b4591e7ba828855609c3c205ad3", "score": "0.6242519", "text": "URL getURL();", "title": "" }, { "docid": "bfae6b4591e7ba828855609c3c205ad3", "score": "0.6242519", "text": "URL getURL();", "title": "" }, { "docid": "48393f7ff8e1cc2bc04d2ab81b2d8b86", "score": "0.62414974", "text": "Builder addUrl(String value);", "title": "" }, { "docid": "0b4b372a2c5a6df3ac8af5d13f36d046", "score": "0.62142986", "text": "public static Constraint url() {\n\t\treturn new Constraint(\"url\", simplePayload(\"url\")) {\n\t\t\tpublic boolean isValid(Object actualValue) {\n\t\t\t\tif (actualValue != null) {\n\t\t\t\t\tif (!Utils.isValidURL(actualValue.toString())) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "26b5239c16cf7ff7bc571b2ed0c1d1fa", "score": "0.6207756", "text": "public void setURL(String URL) {\n this.URL = URL;\n }", "title": "" }, { "docid": "99f9c09a9c6d3222dd0b9757cf3e9fc8", "score": "0.62018293", "text": "public abstract String getUrl();", "title": "" }, { "docid": "99f9c09a9c6d3222dd0b9757cf3e9fc8", "score": "0.62018293", "text": "public abstract String getUrl();", "title": "" }, { "docid": "99f9c09a9c6d3222dd0b9757cf3e9fc8", "score": "0.62018293", "text": "public abstract String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6198592", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6198592", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6198592", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6198592", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6198592", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6198592", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6198592", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6198592", "text": "String getUrl();", "title": "" }, { "docid": "2562088704a43dac224e6793acbb5003", "score": "0.6198592", "text": "String getUrl();", "title": "" }, { "docid": "d07f60c15c7bee24af891f10db51169d", "score": "0.61755806", "text": "void setUrl(String url) throws SQLException;", "title": "" }, { "docid": "940868c33a7f39e6900b927fd05b615a", "score": "0.6169728", "text": "private UrlTest() {\r\n }", "title": "" }, { "docid": "8f85136890a05d776ef7be19c4682929", "score": "0.6161297", "text": "public interface UrlFactor {\n\n\n public int method();\n public String url();\n\n\n}", "title": "" }, { "docid": "3994e8f33a5e957e1c62c00ef3d6c569", "score": "0.6145855", "text": "@Test\n public void urlTest() {\n // TODO: test url\n }", "title": "" }, { "docid": "94678db2c20279a5db67261fdad039a9", "score": "0.6135534", "text": "Builder addUrl(URL value);", "title": "" }, { "docid": "b72fff3e905da958bbd1379e099d3b19", "score": "0.61285615", "text": "public String getURL() {\n\treturn urlString;\n }", "title": "" }, { "docid": "57efc3a84bcbae8131b7e64538a89c6c", "score": "0.61211383", "text": "public void setUrl(String tmp) {\n this.url = tmp;\n }", "title": "" }, { "docid": "f23d873283dec63ec54445bd3a6bff1b", "score": "0.610738", "text": "public void setURL(java.lang.String URL) {\n this.URL = URL;\n }", "title": "" }, { "docid": "08fb060c3be7a558c0d17f585b67d28b", "score": "0.6094863", "text": "private URL() {\n // UTILITY-CONSTRUCTOR\n }", "title": "" }, { "docid": "416b905d4e6b9ef892708a558ac21550", "score": "0.60833806", "text": "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "title": "" }, { "docid": "416b905d4e6b9ef892708a558ac21550", "score": "0.60833806", "text": "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "title": "" }, { "docid": "7fcb2cd66d78791e46438d0c462fe72d", "score": "0.6082843", "text": "public void setUrl(String url) {\n\t\tthis.urls = new String[] { url };\n\t}", "title": "" }, { "docid": "e79183cb2efc4242043098639d9fcb0b", "score": "0.6077382", "text": "public void setUrlVar(String urlVar) {\n this.urlVar = urlVar;\n }", "title": "" }, { "docid": "fbf2c7bb3edf847ffe4b14dacdb62bd0", "score": "0.60646915", "text": "private boolean validateUrl(String url) {\n if ((null == url) || (url.equals(\"\"))) {\n System.err.print(\"URL cannot be empty\\n\");\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "dae13bf6fcc62c217166aca86540447e", "score": "0.6053562", "text": "public Dependency(Type type, String url) {\n if (url == null) {\n throw new IllegalArgumentException(\"url cannot be null\");\n }\n assert type != null;\n this.type = type;\n this.url = url;\n }", "title": "" }, { "docid": "0a6371f96bec11469607f9fc91e49645", "score": "0.6049973", "text": "public void setWebsiteUrl(@Nullable String url);", "title": "" }, { "docid": "b7cd9954d910a611a4fdb6737c46fa70", "score": "0.6047579", "text": "public void setURL(String url) {\n set(KEY_URL, url);\n }", "title": "" }, { "docid": "e30df383af348dbf9e69a03d5c748dd4", "score": "0.6043362", "text": "protected void setUrl(String url) {\n mUrl = url;\n }", "title": "" }, { "docid": "970656a9bc9f4276e91157d1784bea10", "score": "0.60381454", "text": "public void setURL(@Nullable @NotEmpty final String url) {\n moduleURL = StringSupport.trimOrNull(url);\n }", "title": "" }, { "docid": "7145cdb1b3db163a8e610357652ce3d1", "score": "0.6033693", "text": "public abstract String getRequestUrl();", "title": "" }, { "docid": "7145cdb1b3db163a8e610357652ce3d1", "score": "0.6033693", "text": "public abstract String getRequestUrl();", "title": "" }, { "docid": "438d0dbd7d562dacd6fb3d5cd5e4cdd5", "score": "0.6033086", "text": "public String getUrl() {\n\t\t return url;\n\t}", "title": "" }, { "docid": "d54dd498b3367f2e971abe1258d4b6cd", "score": "0.6006903", "text": "public abstract URL getUrl();", "title": "" }, { "docid": "d884e2c8ac1d98e1a6843f899194c60f", "score": "0.60043633", "text": "public abstract String getUrlContent(String url);", "title": "" }, { "docid": "b5c8c5b35e67444bac39c4260695fdc6", "score": "0.6001701", "text": "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "title": "" }, { "docid": "b5c8c5b35e67444bac39c4260695fdc6", "score": "0.6001701", "text": "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "title": "" }, { "docid": "b5c8c5b35e67444bac39c4260695fdc6", "score": "0.6001701", "text": "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "title": "" }, { "docid": "b5c8c5b35e67444bac39c4260695fdc6", "score": "0.6001701", "text": "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "title": "" }, { "docid": "b5c8c5b35e67444bac39c4260695fdc6", "score": "0.6001701", "text": "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "title": "" }, { "docid": "b5c8c5b35e67444bac39c4260695fdc6", "score": "0.6001701", "text": "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "title": "" }, { "docid": "b5c8c5b35e67444bac39c4260695fdc6", "score": "0.6001701", "text": "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "title": "" }, { "docid": "b5c8c5b35e67444bac39c4260695fdc6", "score": "0.6001701", "text": "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "title": "" }, { "docid": "b5c8c5b35e67444bac39c4260695fdc6", "score": "0.6001701", "text": "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "title": "" }, { "docid": "b5c8c5b35e67444bac39c4260695fdc6", "score": "0.6001701", "text": "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "c7273cd022fcfd77767340fdb51006e6", "score": "0.0", "text": "public static void main(String[] args) {\n\r\n\t\tint n=6;\r\n\t\tdouble c=0.5;\r\n\t\t System.out.println(c);\r\nfor(int i=1;i<n;i++)\r\n{\r\n\t\r\n \r\n\t c=(c*2)+c;\r\n System.out.println(c);\r\n \r\n\t//System.out.println(i);\r\n\t\r\n\t\r\n\t\r\n}\r\n\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "11d67a80d2cd31685776b15ccccc59f0", "score": "0.65296996", "text": "@Override\n\t\t\tpublic void PridenieNaBielu() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "f9e89d9677a2c32741b998a15248d5eb", "score": "0.6487723", "text": "@Override\r\n\tpublic void Lyf() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "603f0a18e57250d8f455d8cee02b8630", "score": "0.64378566", "text": "@Override\r\n public void Refuel() {\n \r\n }", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "efda110dae3567ecb4380b4b672c3e8d", "score": "0.635662", "text": "public void anzeigen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74e8290546e9191e1ae5373cdf611067", "score": "0.632985", "text": "@Override\r\n\tpublic void Petrol() {\n\t\t\r\n\t}", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.62754047", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6219628", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.61844474", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "2a5b1784967271fc8f331ece95bee2d7", "score": "0.6173247", "text": "@Override\r\n\t\tpublic void Sudentcf() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "88ecb62c7a1a93131fb72fdf892b6e96", "score": "0.6163209", "text": "public void mo18969b() {\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "af1d7a03c29969bf292760b5053e6876", "score": "0.61020076", "text": "@Override\r\n\tpublic void avanzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c841421384f44238db014cb90fda536", "score": "0.609516", "text": "@Override\n\tpublic void foocall() {\n\t}", "title": "" }, { "docid": "0535d453c6fc64b6eaca5802d4fcc90b", "score": "0.6038407", "text": "@Override\r\n public void atacar() {\n }", "title": "" }, { "docid": "60b0611b3c431fd71ef675a97986d8ce", "score": "0.60336334", "text": "@Override\n\tpublic void bouger() {\n\t\t\n\t}", "title": "" }, { "docid": "93def8741e9801c804ccf94cc0a8c010", "score": "0.60311055", "text": "@Override\r\n\tpublic void comenzar() {\n\r\n\t}", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.6027037", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124886", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124886", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "068782d4ca6b549d5b38c417ad4e7fbc", "score": "0.6000438", "text": "@Override\n\tpublic void embauche() {\n\t\t\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "59fd0ccdce9a8709416c7bdb0b2740f7", "score": "0.59167963", "text": "@Override\n public void solidaria() {\n \n \n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5900665", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "f5d4f15bcecfb5439000bf8ce3463314", "score": "0.58953464", "text": "@Override\r\n protected void init() {\n \r\n }", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.58881694", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58730215", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "faf38c70a5abc38e6e6819931e05fdbb", "score": "0.5862488", "text": "@Override\n protected void initialize() { \n }", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "d735c08559b9ccd2b05318e486d52050", "score": "0.585777", "text": "@Override\n public void generate() {\n\n }", "title": "" }, { "docid": "c27a216ac709a1e3b9e7156e1c8104e5", "score": "0.5851762", "text": "public void initailize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7a47ca8b3a55006f92a271bd71da43b7", "score": "0.583262", "text": "@Override\n\tprotected void Sessioprovide() {\n\t\t\n\t}", "title": "" }, { "docid": "ea53a5ca5e3b174f6cc9c79515550cf9", "score": "0.58291394", "text": "@Override\n\tpublic void Faild() {\n\t}", "title": "" }, { "docid": "d8211552b23c886f56d98e4efc7a55fa", "score": "0.58270997", "text": "private void OI() {\n\t\t\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a92ef4f07b07ea7007bb9f92475a6a97", "score": "0.580496", "text": "private void UDPM() {\n\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4dcf8d1b9c1a18d89084161416469f7", "score": "0.5784581", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "329dcd36a53fe338909407efceaa048a", "score": "0.57815796", "text": "@Override\n\tpublic void ovr() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5772904", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5767454", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5756245", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6e516d7c552dcd925edbe971705ed31a", "score": "0.5742983", "text": "public void mo41019a() {\n }", "title": "" }, { "docid": "b07fa371b39d89d85ee2b46058153640", "score": "0.5741075", "text": "private void set() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f523d2f53f60a1ff3244e79927814898", "score": "0.5737052", "text": "public void mo46998a() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c5279e0c512854cbd0006208a1abf1e4", "score": "0.57304084", "text": "public void sprzedaj() {\n\t\t\n\t}", "title": "" }, { "docid": "4791f18ffa1db9cf9896372a4bb400cd", "score": "0.5712386", "text": "@Override\n\t\t\t\tpublic void update() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "b329688e04bd48d0184ad83234db5580", "score": "0.5702716", "text": "@Override\r\n public int describeContents() {\n return 0;\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5696396", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "94016f621198b25fa3341ef2382c6876", "score": "0.5689651", "text": "@Override\n\tpublic void grandir() {\n\t\t\n\t}", "title": "" }, { "docid": "7a5ce2d278c2d189c1b8ef8c5af5d416", "score": "0.5686818", "text": "@Override\n\tprotected void initValue() {\n\n\t}", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5685303", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "be566411d6ed8758a024d201a025c102", "score": "0.5682171", "text": "@Override\r\n\tprotected void update() {\n\t}", "title": "" }, { "docid": "264b73ede67394b8d57db8f3623673db", "score": "0.56804705", "text": "@Override\r\n\tpublic void afterConstruct() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a055db97fb04dc3ace542d55ba4eb731", "score": "0.5659786", "text": "public void wypozycz() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "704e96abbfbd46ebb60411493a1aaa91", "score": "0.5653795", "text": "@Override\r\n\tpublic void magic() {\n\r\n\t}", "title": "" } ]
f11341b1e5850b1265c40464746b1c2c
Creates a new MetaData object.
[ { "docid": "764328fc6b811ff0c0952a7d67714fb2", "score": "0.5699662", "text": "@JsonCreator\n\tpublic MetaData(\n\t\t@JsonProperty(JSON_KEY_ID)\n\t\tfinal String id,\n\t\t@JsonProperty(JSON_KEY_TIMESTAMP)\n\t\tfinal DateTime timestamp)\n\t\tthrows OmhException {\n\t\t\n\t\t// Timestamps cannot be in the future.\n\t\tif((timestamp != null) && timestamp.isAfterNow()) {\n\t\t\tthrow\n\t\t\t\tnew OmhException(\n\t\t\t\t\t\"The timestamp cannot be in the future.\");\n\t\t}\n\t\t\n\t\tthis.id = id;\n\t\tthis.timestamp = timestamp;\n\t}", "title": "" } ]
[ { "docid": "9445f29c220bfc5c8f1da5816c1d983d", "score": "0.7080643", "text": "public MetaData build() throws OmhException {\n\t\t\treturn new MetaData(id, timestamp);\n\t\t}", "title": "" }, { "docid": "255d6ace43adf9c4097533647234b69f", "score": "0.68721354", "text": "public Metadata() {\n\t}", "title": "" }, { "docid": "c9f376f720cb2d555b0de0e992fc5bc3", "score": "0.66403973", "text": "public UniqueMetaData newUniqueMetaData()\n {\n UniqueMetaData unimd = new UniqueMetaData();\n addUniqueConstraint(unimd);\n return unimd;\n }", "title": "" }, { "docid": "e48d70fcd2b7d21fef3a24b8563977f0", "score": "0.63421994", "text": "public ProjectMetaData() {\n\n\t\tdateOfCreation = new Date();\n\t}", "title": "" }, { "docid": "3a3331b9226a721f110c936778c63f48", "score": "0.62781096", "text": "public void setMetadata() {\n try {\n Map<String, Object> map = new HashMap<>();\n map.put(\"author\", notNull(\"author\"));\n map.put(\"source\", notNull(\"source\"));\n map.put(\"license\", notNull(\"license\"));\n map.put(\"name\", notNull(\"name\"));\n map.put(\"description\", notNull(\"description\"));\n map.put(\"primaryFeatureId\", notNull(\"primaryFeatureId\"));\n map.put(\"_id\", notNull(\"_id\"));\n\n map.put(\"featureIdGen\", json.getInt(\"featureIdGen\"));\n map.put(\"productIdGen\", json.getInt(\"productIdGen\"));\n metadata = new Metadata(map);\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "3163869e58e5409b9ccaeccee12a3d72", "score": "0.6249201", "text": "public MediaMetaData() {\n }", "title": "" }, { "docid": "77c0c7a3294d0ac45e2923028b3629c1", "score": "0.6202518", "text": "private Metadata createMetaData(Command command) throws RepositoryException {\n \t\tMetadata meta = new Metadata();\n \t\ttry {\n \t\t\tmeta.setOriginalName(getInputFile(command).getName());\n \t\t} catch (IOException e) {\n \t\t\tthrow new RepositoryException(\"could not set meta data Name\", e);\n \t\t}\n \n \t\tif (command.isSet(\"d\"))\n \t\t\tmeta.setDescription(command.getOptionParam(\"d\"));\n \n \t\tString name;\n \t\tif (command.isSet(\"n\")) { // name option set?\n \t\t\tname = command.getOptionParam(\"n\");\n \t\t\tif (db.contains(name)) { // if name exists, exit\n \t\t\t\tthrow new RepositoryException(\"There is already a data\"\n \t\t\t\t\t\t+ \" set named \" + name + \" name in the repository.\");\n \t\t\t}\n \t\t} else { // no name provided, make a unique name from originalname\n \t\t\tname = createUniqueName(meta.getOriginalName());\n \t\t}\n \t\tmeta.setName(name);\n \n \t\treturn meta;\n \t}", "title": "" }, { "docid": "5bbd9b94fbe194f7ce0b3726517be536", "score": "0.61652154", "text": "public QueryMetaData newQueryMetaData(String queryName)\n {\n if (StringUtils.isWhitespace(queryName))\n {\n throw new InvalidClassMetaDataException(\"044154\", fullName);\n }\n QueryMetaData qmd = new QueryMetaData(queryName);\n addQuery(qmd);\n return qmd;\n }", "title": "" }, { "docid": "5c40e6fe67c278c4ff7249fbbbd82018", "score": "0.6150832", "text": "public FieldMetaData newFieldMetaData(String fieldName)\n {\n FieldMetaData fmd = new FieldMetaData(this, fieldName);\n addMember(fmd);\n return fmd;\n }", "title": "" }, { "docid": "6642514d11c971afbc5cb8227dd4bd69", "score": "0.6105162", "text": "public DataframemetadataDao() {\n super(Dataframemetadata.DATAFRAMEMETADATA, jooq.sqlite.gen.tables.pojos.Dataframemetadata.class);\n }", "title": "" }, { "docid": "9fe4d5cb041356a8c8f4d06a3d9b9249", "score": "0.6103707", "text": "public Metadata createMetadata() \n {\n if (metadata == null)\n return metadata = new Metadata();\n else\n throw new BuildException(\"Only one nested <metadata> element is allowed in an \" + TASK_NAME + \" task.\");\n }", "title": "" }, { "docid": "f5ba698d91a46dd7a853f6d5eefbcc25", "score": "0.6072665", "text": "public VersionMetaData newVersionMetaData()\n {\n this.versionMetaData = new VersionMetaData();\n this.versionMetaData.parent = this;\n return this.versionMetaData;\n }", "title": "" }, { "docid": "909434b37277c542a8453e45cf083431", "score": "0.6012606", "text": "Olap4ldDatabaseMetaData newDatabaseMetaData(\n Olap4ldConnection olap4jConnection);", "title": "" }, { "docid": "a758ef5b4d6c119236f6fc167fb14601", "score": "0.59886855", "text": "public ForeignKeyMetaData newForeignKeyMetaData()\n {\n ForeignKeyMetaData fkmd = new ForeignKeyMetaData();\n addForeignKey(fkmd);\n return fkmd;\n }", "title": "" }, { "docid": "24aae04f927b03c82903a74f4395b97b", "score": "0.5974754", "text": "public DbServerMetadata() {\n }", "title": "" }, { "docid": "b4ad949c907322f41148c68f95afdf03", "score": "0.59710956", "text": "public void create()\n {\n for (Class<?> metadata : getMappings().values())\n {\n registerMetaDataClass(metadata);\n }\n if (getSuffixClass() != null)\n registerMetaDataClass(getSuffixClass());\n }", "title": "" }, { "docid": "f7a3c4007ca5bcf358b4d9509ac7450b", "score": "0.59215623", "text": "public DatastoreIdentityMetaData newDatastoreIdentityMetaData()\n {\n this.datastoreIdentityMetaData = new DatastoreIdentityMetaData();\n this.datastoreIdentityMetaData.parent = this;\n this.identitySpecified = true;\n return this.datastoreIdentityMetaData;\n }", "title": "" }, { "docid": "e2ab2470cbdb1f79acce33c7b89d4c43", "score": "0.5902533", "text": "@MetaDataRetriever\n public MetaData getMetaData(MetaDataKey key) throws Exception {\n String id = key.getId();\n\n DefaultMetaDataBuilder builder = new DefaultMetaDataBuilder();\n DynamicObjectBuilder<?> dynamicObject = builder.createDynamicObject(id);\n if(!id.startsWith(\"#[\")){\n String folder = connector.getConfig().getFolder();\n File dbfFile = new File(folder, id);\n\n DbfReader dbfReader = new DbfReader(dbfFile);\n DbfMetadata metadata = dbfReader.getMetadata();\n\n for (DbfField dbfField : metadata.getFields()) {\n String fieldName = dbfField.getName();\n\n switch (dbfField.getType()) {\n case Date:\n dynamicObject.addSimpleField(fieldName, DataType.DATE);\n break;\n case Numeric:\n dynamicObject.addSimpleField(fieldName, DataType.NUMBER);\n break;\n case Character:\n dynamicObject.addSimpleField(fieldName, DataType.STRING);\n break;\n case Logical:\n dynamicObject.addSimpleField(fieldName, DataType.BOOLEAN);\n break;\n case Double:\n dynamicObject.addSimpleField(fieldName, DataType.DOUBLE);\n break;\n case Integer:\n dynamicObject.addSimpleField(fieldName, DataType.INTEGER);\n break;\n case Float:\n dynamicObject.addSimpleField(fieldName, DataType.FLOAT);\n break;\n case Double7:\n dynamicObject.addSimpleField(fieldName, DataType.DOUBLE);\n break;\n case DateTime:\n dynamicObject.addSimpleField(fieldName, DataType.DATE_TIME);\n break;\n case Currency:\n dynamicObject.addSimpleField(fieldName, DataTypeFactory.getInstance().getDataType(BigDecimal.class));\n break;\n default:\n dynamicObject.addSimpleField(fieldName, DataType.STRING);\n }\n }\n }\n\n MetaDataModel model = builder.build();\n return new DefaultMetaData(model);\n }", "title": "" }, { "docid": "1125e27a88e07f66d09924ffdb7fe923", "score": "0.5860163", "text": "protected void createMetadata(OSharedContext ctx) {\n OSharedContext shared = ctx;\n metadata.init(shared);\n ((OSharedContextDistributed) shared).create(this);\n }", "title": "" }, { "docid": "80651b67a6bb101a8ca2890b4754c28e", "score": "0.5826624", "text": "protected static void createMeta() throws IOException {\n\t\tFile metaFile = new File(\"data/metadata.csv\");\n\t\tmetaFile.createNewFile();\n\t}", "title": "" }, { "docid": "57be7a43061978da708cf7af6975f5e1", "score": "0.58227086", "text": "@POST( CONTROLLER + METADATA_PATH )\n VersionedObjectKey createMetadataObject( @Body CreateMetadataObjectRequest request );", "title": "" }, { "docid": "ee7d7ae876355f9c50965520be502a9b", "score": "0.5818981", "text": "public InheritanceMetaData newInheritanceMetaData()\n {\n this.inheritanceMetaData = new InheritanceMetaData();\n this.inheritanceMetaData.parent = this;\n return this.inheritanceMetaData;\n }", "title": "" }, { "docid": "4f62bcfe800d8e56348d98eed7c66f67", "score": "0.56837934", "text": "public PrimaryKeyMetaData newPrimaryKeyMetaData()\n {\n this.primaryKeyMetaData = new PrimaryKeyMetaData();\n this.primaryKeyMetaData.parent = this;\n return this.primaryKeyMetaData;\n }", "title": "" }, { "docid": "9fdcd3b30de729e9de0c33be9a282d12", "score": "0.56676006", "text": "protected abstract T createDataSetInformation();", "title": "" }, { "docid": "a938b03158ab274e1366aa45f5771ba1", "score": "0.5666641", "text": "private MetadataUtil() {}", "title": "" }, { "docid": "3b4911da839e20621c5f31b4a05dc8ed", "score": "0.5622733", "text": "@Override\r\n\tpublic MetaData getMetaData(HttpHeaders headers) {\n\t\ttry {\r\n\t\t\treturn MetaDataUtil.getMetaData(new LigneRappel(), new HashMap<String, MetaData>(),new ArrayList<String>());\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "83b75a42c5b8ff426cdc791269e9e2e5", "score": "0.5612468", "text": "public MetadataWriter() {\n\t}", "title": "" }, { "docid": "5252dbc891c4dba8c1c9427ccbb9da85", "score": "0.5610088", "text": "DataType createDataType();", "title": "" }, { "docid": "50cec8212b5c8ac95090386893d4659f", "score": "0.55973697", "text": "public metro.trans.avro.MetaData.Builder getMetadataBuilder() {\n if (metadataBuilder == null) {\n if (hasMetadata()) {\n setMetadataBuilder(metro.trans.avro.MetaData.newBuilder(metadata));\n } else {\n setMetadataBuilder(metro.trans.avro.MetaData.newBuilder());\n }\n }\n return metadataBuilder;\n }", "title": "" }, { "docid": "0917ced2bf65dc019e74044763da4543", "score": "0.5596727", "text": "@Override\n public Object createMetaData(ObjectMapper mapper) {\n ObjectNode metadata = mapper.createObjectNode();\n\n ObjectNode kernelspec = mapper.createObjectNode();\n kernelspec.put(\"name\", \"ir\");\n kernelspec.put(\"display_name\", \"R\");\n kernelspec.put(\"language\", \"R\");\n\n ObjectNode language_info = mapper.createObjectNode();\n language_info.put(\"name\", \"R\");\n language_info.put(\"codemirror_mode\", \"r\");\n language_info.put(\"pygments_lexer\", \"r\");\n language_info.put(\"mimetype\", \"text/x-r-source\");\n language_info.put(\"file_extension\", \".r\");\n language_info.put(\"version\", \"3.3.2\");\n\n metadata.putPOJO(\"kernelspec\", kernelspec);\n metadata.putPOJO(\"language_info\", language_info);\n\n return metadata;\n }", "title": "" }, { "docid": "65095f7b8cb8107f54421a43f100a0e4", "score": "0.5538866", "text": "public ExtractorAlchemyAPI_Metadata()\r\n\t{\r\n\t\t//insert capabilities of this extractor\r\n\t\t_capabilities.put(EntityExtractorEnum.Name, \"AlchemyAPI-metadata\");\r\n\t\t_capabilities.put(EntityExtractorEnum.Quality, \"1\");\r\n\t\t_capabilities.put(EntityExtractorEnum.URLTextExtraction, \"true\");\r\n\t\t_capabilities.put(EntityExtractorEnum.GeotagExtraction, \"true\");\r\n\t\t_capabilities.put(EntityExtractorEnum.SentimentExtraction, \"false\");\t\t\r\n\t}", "title": "" }, { "docid": "4f89b14f4075fdef4c284c010444fbd2", "score": "0.5533566", "text": "public BackupAgent makeMetadataAgent() {\n PackageManagerBackupAgent pmAgent = new PackageManagerBackupAgent(mPackageManager, mUserId);\n pmAgent.attach(mContext);\n pmAgent.onCreate(UserHandle.of(mUserId));\n return pmAgent;\n }", "title": "" }, { "docid": "716bf396e2c54562bd8797fddaa43bae", "score": "0.55290765", "text": "public DataframemetadataDao(Configuration configuration) {\n super(Dataframemetadata.DATAFRAMEMETADATA, jooq.sqlite.gen.tables.pojos.Dataframemetadata.class, configuration);\n }", "title": "" }, { "docid": "2b8e275aa68ab0dfa9a8e7f2d386d60b", "score": "0.5479331", "text": "public DatasetMeta createDataset(DatasetMeta datasetMetaData) {\n\t\tboolean isDatasetCreated = false;\n\t\ttry{\n\t\t\tSession session = getSessionFactory().getCurrentSession();\n\t\t\t//if(!datasetexists(datasetMetaData.getDatasetName())){\n\t\t\t session.save(datasetMetaData);\t\t\t\t\n\t\t\t//}\n\t\t\t\n\t\t\t//datasetMetaData.setIsDatasetExist(true);\n\t\t\tSystem.out.println(\"Dataset ending date \" + datasetMetaData.getEndingDate());\n\t\t\tsession.clear();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\treturn datasetMetaData;\n\t}", "title": "" }, { "docid": "1980fe64c259df83ab8ef3ac48535ead", "score": "0.5470621", "text": "public IndexMetaData newIndexMetaData()\n {\n IndexMetaData idxmd = new IndexMetaData();\n addIndex(idxmd);\n return idxmd;\n }", "title": "" }, { "docid": "4d5ab6329e754249e441a3c35649e888", "score": "0.54594785", "text": "public StoredProcQueryMetaData newStoredProcQueryMetaData(String queryName)\n {\n if (StringUtils.isWhitespace(queryName))\n {\n throw new InvalidClassMetaDataException(\"044154\", fullName);\n }\n StoredProcQueryMetaData qmd = new StoredProcQueryMetaData(queryName);\n addStoredProcQuery(qmd);\n return qmd;\n }", "title": "" }, { "docid": "e457ebbde02bf5ea8a6d9378de829066", "score": "0.54557914", "text": "Metadata getMetadata();", "title": "" }, { "docid": "01e598398c80b673954453d9210e1314", "score": "0.5455615", "text": "public PropertyMetaData newPropertyMetaData(String propName)\n {\n PropertyMetaData pmd = new PropertyMetaData(this, propName);\n addMember(pmd);\n return pmd;\n }", "title": "" }, { "docid": "e68eded500014c60d1c1c14c694dba44", "score": "0.5455538", "text": "public JoinMetaData newJoinMetaData()\n {\n JoinMetaData joinmd = new JoinMetaData();\n addJoin(joinmd);\n return joinmd;\n }", "title": "" }, { "docid": "eaf6eca47284bd23ec9ae630ff5fbb35", "score": "0.54293203", "text": "public Template() {\n metadata = new Metadata();\n }", "title": "" }, { "docid": "ba111b03c28159c7205979680365bd68", "score": "0.5427703", "text": "public synchronized AttributeTypeMetaData AttributeTypeMetaData(String attributeName){\n if( attributeInfo == null ){\n attributeInfo = new HashMap();\n }\n if( attributeInfo.containsKey( attributeName ) ){\n return (AttributeTypeMetaData) attributeInfo.get( attributeName );\n }\n AttributeTypeInfo info = null;\n if( ftc.getSchema() != null ){\n for( Iterator i=ftc.getSchema().iterator(); i.hasNext(); ){\n AttributeTypeInfoDTO dto = (AttributeTypeInfoDTO) i.next();\n info = new AttributeTypeInfo( dto ); \n }\n DataStore dataStore = data.getDataStoreInfo( ftc.getDataStoreId() ).getDataStore();\n try{\n FeatureType schema = dataStore.getSchema( ftc.getName() );\n info.sync( schema.getAttributeType( attributeName ));\n }catch(IOException e){}\n }\n else {\n // will need to generate from Schema \n \tDataStore dataStore = data.getDataStoreInfo( ftc.getDataStoreId() ).getDataStore();\n \ttry{\n \tFeatureType schema = dataStore.getSchema( ftc.getName() );\n info = new AttributeTypeInfo( schema.getAttributeType( attributeName )); }catch(IOException e){}\n }\n attributeInfo.put( attributeName, info );\n \n return info;\n }", "title": "" }, { "docid": "4686d8b4705bcd63b8f15a1ef44e9fb5", "score": "0.5414242", "text": "public AbstractInjectionValueMetaData()\r\n {\r\n }", "title": "" }, { "docid": "64f94636b818329cd78b768ce4f9d675", "score": "0.5396691", "text": "Map<String, Object> getMetaData();", "title": "" }, { "docid": "2188d72dc2065cfc5a908f1d3916e692", "score": "0.53734297", "text": "protected TrackType createTrackType() {\r\n TrackType entity = new TrackType();\r\n entity.setDescription(\"description\");\r\n return entity;\r\n }", "title": "" }, { "docid": "d0b9791d02f009eae032d5c2a137e31f", "score": "0.5360663", "text": "@MetaDataRetriever\n\tpublic MetaData getMetaData(MetaDataKey key) throws Exception {\n\t\t//NodeId nodeId = (NodeId) key;\n\t\t\n\t\tDefaultMetaDataBuilder builder = new DefaultMetaDataBuilder();\n\t // Since our model is static and we can simply create the pojo model.\n\t String[] keyParts = key.getId().split(\"#\");\n\t String id = key.getId();\n\t if (keyParts.length != 2) {\n\t throw new RuntimeException(\n\t \"Invalid key. Format should be 'entityType#id'\");\n\t }\n\t //Integer id = Integer.valueOf(keyParts[1]);\n\t CustomNodeId methodID = map.get(id);\n\t /* entity.setId(id);*/\n\t Description description = null;\n\n\t /*DynamicObjectBuilder<?> dynamicObject = builder.createDynamicObject(key\n\t .getId());\n\n\t for (Description fields : description.getInnerFields()) {\n\t addFields(fields, dynamicObject);\n\t }*/\n\n\t MetaDataModel model = builder.build();\n\t MetaData metaData = new DefaultMetaData(model);\n\n\t return metaData;\n\t}", "title": "" }, { "docid": "e0aa6ea04c1907cdd34c76756ae6929d", "score": "0.5352551", "text": "public MetadataNormalizer createMetadataNormalizer()\n {\n return new MetadataNormalizer(fieldNameCache);\n }", "title": "" }, { "docid": "d615f9f7ccb952729ddc62422aca61f8", "score": "0.5346774", "text": "public static LabelsMetaDataImpl createLabelsMetaData(Document xml_doc) throws Exception {\r\n\t\tLabelsMetaDataImpl result = new LabelsMetaDataImpl();\r\n\t\tElement root_element = xml_doc.getDocumentElement();\r\n\t\tNodeList list_children = root_element.getChildNodes();\r\n\t\tfor ( int i = 1 ; i < list_children.getLength() ; i += 2 ) {\r\n\t\t\tresult.addRootNode(appendNode(list_children.item(i)));\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "60dc799471a85654a32f902e091db9e3", "score": "0.53148246", "text": "private ApiInfo metaData() {\r\n\t\treturn new ApiInfoBuilder().title(\"KOOP REST API\").description(\"\\\"KOOP REST API for Kroger\\\"\").version(\"1.0.0\")\r\n\t\t\t\t.license(\"Kroger License Version 1.0\").licenseUrl(\"https://www.apache.org/licenses/LICENSE-2.0\\\"\")\r\n\t\t\t\t.contact(new Contact(\"Deloitte\", \"https://www2.deloitte.com/us/en.html\", \"kroger help email\")).build();\r\n\t}", "title": "" }, { "docid": "3dc3e3497075f337c015adf5f4d2abf1", "score": "0.5297832", "text": "public static MysqlDatabase createEntity() {\n MysqlDatabase mysqlDatabase = new MysqlDatabase()\n .version(DEFAULT_VERSION)\n .tables(DEFAULT_TABLES);\n return mysqlDatabase;\n }", "title": "" }, { "docid": "f2cb0eed86973746ad008ec5f27e3263", "score": "0.529111", "text": "void prepare(M metadata, Random random);", "title": "" }, { "docid": "4fead1ada8cb49058afb812436d608ca", "score": "0.5272122", "text": "TypeMetaInfo createTypeMetaInfo();", "title": "" }, { "docid": "5ddc68269a5399116aa5eb5991d36c36", "score": "0.52585465", "text": "public DefaultMetaData(MetaDataModel payload)\n {\n this.payload = payload;\n this.properties = new TreeMap<MetaDataPropertyScope, MetaDataProperties>();\n initProperties();\n }", "title": "" }, { "docid": "7691990f4e514b012d3bc6bc59e85aac", "score": "0.5242542", "text": "public static TActivity createEntity() {\n TActivity tActivity = new TActivity()\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .category(DEFAULT_CATEGORY)\n .objective(DEFAULT_OBJECTIVE)\n .concept(DEFAULT_CONCEPT)\n .activityTime(DEFAULT_ACTIVITY_TIME)\n .totalTime(DEFAULT_TOTAL_TIME)\n .tags(DEFAULT_TAGS)\n .status(DEFAULT_STATUS);\n return tActivity;\n }", "title": "" }, { "docid": "5f827fd20f0b67b3712f31d7559dc3cd", "score": "0.5242148", "text": "public metro.trans.avro.Transactions.Builder setMetadata(metro.trans.avro.MetaData value) {\n validate(fields()[1], value);\n this.metadataBuilder = null;\n this.metadata = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "title": "" }, { "docid": "33fbf089dd9f8e1dd3a56528dad63c39", "score": "0.5240706", "text": "public SELF getMetaData();", "title": "" }, { "docid": "e5be5f0f6d7967c9d905034478dad606", "score": "0.52246845", "text": "public MetadataFragment() {\n }", "title": "" }, { "docid": "f75181165b21c33605a4ceaeddf96f1c", "score": "0.5223795", "text": "public MetaData (int type, String columnName, int precision, int scale) {\r\n\t\tthis.columnName = columnName;\r\n\t\tthis.precision = precision;\r\n\t\tthis.scale = scale;\r\n\t\tthis.index = searchSQLtypesArray(type);\r\n\t\tif (index<0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t\r\n\t\tthis.isCaseSensitive = false;\r\n\t\tthis.isCurrency = true;\r\n\t\tthis.columnNullable = ResultSetMetaData.columnNullable;\r\n\t}", "title": "" }, { "docid": "019b43a1909f4b6d473f0441ea4c41f8", "score": "0.5223547", "text": "ActualDataType createActualDataType();", "title": "" }, { "docid": "e6063d6711b27c2fd43a84c2790bd224", "score": "0.5217543", "text": "public PDFMetadata makeMetadata(Metadata meta, boolean readOnly) {\n PDFMetadata pdfMetadata = new PDFMetadata(meta, readOnly);\n getDocument().registerObject(pdfMetadata);\n return pdfMetadata;\n }", "title": "" }, { "docid": "96fd5e319f6127a1cd985d839eaa0373", "score": "0.5210796", "text": "public Object getMetaData() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6bd5e1c20663b8dc0dcc44ad90679ed5", "score": "0.52057725", "text": "public NewBundleData setMetadata(Map<String, String> metadata) {\n this.metadata = metadata;\n return this;\n }", "title": "" }, { "docid": "3d2ef5a33aea2211030aeefe10d5b3b4", "score": "0.5202502", "text": "public CategorieEntity createInstance() {\n\t\t// Primary Key values\n\n\t\treturn createInstance( mockValues.nextInteger() );\n\t}", "title": "" }, { "docid": "da7f984ac671f273d9a071e648b598f0", "score": "0.51896065", "text": "public Builder setMetadata(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00080000;\n metadata_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6bb19125e8fb5d58fc02df93633ec29a", "score": "0.5185378", "text": "public CFMetaData getCFMetaData() throws RequestValidationException\n {\n CFMetaData newCFMD;\n newCFMD = new CFMetaData(keyspace(),\n columnFamily(),\n ColumnFamilyType.Standard,\n comparator,\n id);\n applyPropertiesTo(newCFMD);\n return newCFMD;\n }", "title": "" }, { "docid": "16cb86cd9117ec4c1223a3aa006a2ee2", "score": "0.51798224", "text": "void createMetadataVersionInDataStore(String versionName, String versionSnapshot);", "title": "" }, { "docid": "43b3f1846d9b166f5b8724971167e1a9", "score": "0.5173833", "text": "public PackageData() {\n super(null, null, null);\n }", "title": "" }, { "docid": "355443757669363d7cc9716341f3b48f", "score": "0.51717097", "text": "protected Metadata createResponseMeta() {\n Metadata metadata = new DefaultMetadata();\n metadata.put(Http2Headers.PseudoHeaderName.STATUS.value(), HttpResponseStatus.OK.codeAsText());\n metadata.put(HttpHeaderNames.CONTENT_TYPE, TripleConstant.CONTENT_PROTO);\n metadata.putIfNotNull(TripleHeaderEnum.GRPC_ENCODING.getHeader(), super.getCompressor().getMessageEncoding())\n .putIfNotNull(TripleHeaderEnum.GRPC_ACCEPT_ENCODING.getHeader(), getAcceptEncoding());\n return metadata;\n }", "title": "" }, { "docid": "288247ea01d0bbc0f3856af6b69a1471", "score": "0.5169371", "text": "public String createMetadata() throws SQLException {\r\n String str = \"\";\r\n PreparedStatement stm = null;\r\n ResultSet rs = null;\r\n ResultSetMetaData rsmd = null;\r\n try {\r\n // this query is just for making dummy table with same header\r\n String dummyQuery = \"SELECT TOP 1 [companyName],[name]AS [KAM NAME],[employeeId] AS [KAM ID],[Zone] As [Zone Name],[Region] FROM [BSI].[dbo].[TBL_FCCS]\";\r\n stm = this.conn.prepareStatement(dummyQuery);\r\n rs = stm.executeQuery(); // Get the ResultSet from the query\r\n rsmd = rs.getMetaData(); // Get result set meta data\r\n this.numColumns = rsmd.getColumnCount();\r\n } catch (SQLException ex) {\r\n logger.error(\"ConnectionToSql- createMetaData():: SQL exception--\" + ex.getMessage());\r\n }\r\n for (int i = 1; i < this.numColumns + 1; i++) {\r\n\r\n if (i == 1) {\r\n str = rsmd.getColumnName(i);\r\n } else {\r\n str = str + \",\" + rsmd.getColumnName(i);\r\n }\r\n }\r\n rs.close();\r\n stm.close();\r\n logger.info(\"ConnectionToSql:: Meta data created\");\r\n return str;\r\n }", "title": "" }, { "docid": "c1ef3e1f8fb4b7495e22f4d818bea7df", "score": "0.51653373", "text": "Attribute createAttribute();", "title": "" }, { "docid": "279ef886ae3af8593b86a8790a90b329", "score": "0.51590866", "text": "WithCreate withDescription(String description);", "title": "" }, { "docid": "279ef886ae3af8593b86a8790a90b329", "score": "0.51590866", "text": "WithCreate withDescription(String description);", "title": "" }, { "docid": "38b6be8a56ef3407a9164fc53ad60c6d", "score": "0.51513207", "text": "public final DataModelClass createDataModel(){\n\t\ttry {\n\t\t\tif (wDataModelClass != null){\n\t\t\t\treturn wDataModelClass.newInstance();\n\t\t\t}else{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\twLogger.error(e);\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "164c20357423be550e5fdfd457708c29", "score": "0.5151298", "text": "private String getMetadata() {\n \n // New instance of object Metadata\n Metadata metadata = new Metadata(); \n \n // New stringbuilder to which metadata elements and HTML tags can be appended\n // Converted to string and returned as method output\n StringBuilder metadataBuilder = new StringBuilder(); \n \n metadataBuilder.append(\"\\n<h2> Metadata </h2>\");\n \n // Search Type: Can only have one result per mzIdentML file\n metadataBuilder.append(\"\\n<p>\");\n metadataBuilder.append(\"Search Type: \");\n metadataBuilder.append(metadata.getSearchType());\n metadataBuilder.append(\"</p>\");\n \n // Software Name(s)\n metadataBuilder.append(\"\\n<p>\");\n metadataBuilder.append(\"List of Software Used: \");\n metadataBuilder.append(metadata.getSoftwareName());\n metadataBuilder.append(\"</p>\");\n \n // Enzyme(s) Used\n metadataBuilder.append(\"\\n<p>\");\n metadataBuilder.append(\"Enzymes Used: \");\n metadataBuilder.append(metadata.getEnzymesUsed());\n metadataBuilder.append(\"</p>\");\n \n // Fixed modification(s) searched\n metadataBuilder.append(\"\\n<p>\");\n metadataBuilder.append(\"Fixed Modifications: \");\n metadataBuilder.append(metadata.getFixedModifications());\n metadataBuilder.append(\"</p>\");\n \n // Variable modification(s) searched\n metadataBuilder.append(\"\\n<p>\");\n metadataBuilder.append(\"Variable Modifications: \");\n metadataBuilder.append(metadata.getVariableModifications());\n metadataBuilder.append(\"</p>\");\n \n // Convert stringbuilder to a string and return\n return metadataBuilder.toString();\n }", "title": "" }, { "docid": "f653be39d706f1ff62ef3e970715b047", "score": "0.51492107", "text": "public static PeppolMessageMetadata create(TransmissionResult transmissionResult) {\n Header header = transmissionResult.getHeader();\n\n PeppolMessageMetadata metadata = new PeppolMessageMetadata();\n metadata.setMessageId(header.getIdentifier().getIdentifier());\n metadata.setRecipientId(header.getReceiver() != null ? header.getReceiver().getIdentifier() : null);\n metadata.setSenderId(header.getSender() != null ? header.getSender().getIdentifier() : null);\n metadata.setDocumentTypeIdentifier(header.getDocumentType().getIdentifier());\n metadata.setProfileTypeIdentifier(header.getProcess().getIdentifier());\n metadata.setSendingAccessPoint(OC_AP_COMMON_NAME);\n metadata.setReceivingAccessPoint(OC_AP_COMMON_NAME);\n metadata.setProtocol(transmissionResult.getProtocol().getIdentifier());\n metadata.setSendersTimeStamp(transmissionResult.getTimestamp());\n metadata.setReceivedTimeStamp(new Date());\n metadata.setTransmissionId(header.getIdentifier().getIdentifier());\n metadata.setInstanceType(header.getInstanceType().getType());\n metadata.setInstanceTypeVersion(header.getInstanceType().getVersion());\n metadata.setInstanceTypeStandard(header.getInstanceType().getStandard());\n\n return metadata;\n }", "title": "" }, { "docid": "59fa40a637d423a795c5e9a27cb6abe9", "score": "0.5147533", "text": "Database getDatabase( DatabaseMeta meta ) {\n return new Database( this, meta );\n }", "title": "" }, { "docid": "0d09698a2cdf5532329face1035507f4", "score": "0.51378244", "text": "public ManifestationDAO newManifestationDAO() {\n\n return new ManifestationDAO(this.getEntityManager());\n }", "title": "" }, { "docid": "da6aff29b26b7538230484a5ff3f167d", "score": "0.51363367", "text": "public static FoodmartSchema createFoodmartSchema(){\n return new FoodmartSchema();\n }", "title": "" }, { "docid": "0b96231340bc82413ad07c0343a850e0", "score": "0.51347786", "text": "@Override\n public MetaData call() {\n CloudProviderInfo cloudProviderInfo = CloudMetadataProvider.fetchAndParseCloudProviderInfo(cloudProvider, cloudDiscoveryTimeoutMs);\n return new MetaData(\n processInformation,\n service,\n system,\n cloudProviderInfo,\n coreConfiguration.getGlobalLabels()\n );\n }", "title": "" }, { "docid": "ef055d6f4c190ae4cb75490b3ae9ddc2", "score": "0.51310694", "text": "public FileMeta getFileMeta(){\n\t\tRecordFileMeta fm = new RecordFileMeta();\n\t\tfm.setFileName(outputFile);\n\t\tfm.setSize(numEntries);\n\t\treturn fm;\n\t}", "title": "" }, { "docid": "f3fe455b7775c78105a27eae1d7ba259", "score": "0.5123331", "text": "public Builder setMetadataBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00080000;\n metadata_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d948dcf631f27b215fd6dcc21578fd82", "score": "0.51222366", "text": "@Override\n public Closeable newCache (ImmutableBytesWritable cachePtr, final MemoryChunk chunk) throws SQLException {\n final List<IndexMaintainer> maintainers =\n IndexMaintainer.deserialize(cachePtr, GenericKeyValueBuilder.INSTANCE);\n return new IndexMetaDataCache() {\n\n @Override\n public void close() throws IOException {\n chunk.close();\n }\n\n @Override\n public List<IndexMaintainer> getIndexMaintainers() {\n return maintainers;\n }\n };\n }", "title": "" }, { "docid": "bfc49ef2b56da07fe72094076838864c", "score": "0.51182187", "text": "public MetaData (int type, String columnName, int maxChars) {\r\n\t\tthis.columnName = columnName;\r\n\t\tthis.precision = maxChars;\r\n\t\tthis.scale = 0;\r\n\t\tthis.index = searchSQLtypesArray(type);\r\n\t\tif (index<0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\r\n\t\tthis.isCaseSensitive = true;\r\n\t\tthis.isCurrency = false;\r\n\t\tthis.columnNullable = ResultSetMetaData.columnNullable;\r\n\t}", "title": "" }, { "docid": "4a0ee6b56becb45d0e051da57483e7ef", "score": "0.5114364", "text": "public static PeppolMessageMetadata create(InboundMetadata inboundMetadata) {\n Header header = inboundMetadata.getHeader();\n X509Certificate certificate = inboundMetadata.getCertificate();\n X500Principal principal = certificate.getSubjectX500Principal();\n\n PeppolMessageMetadata metadata = new PeppolMessageMetadata();\n metadata.setMessageId(header.getIdentifier().getIdentifier());\n metadata.setRecipientId(header.getReceiver().getIdentifier());\n metadata.setSenderId(header.getSender().getIdentifier());\n metadata.setDocumentTypeIdentifier(header.getDocumentType().getIdentifier());\n metadata.setProfileTypeIdentifier(header.getProcess().getIdentifier());\n metadata.setSendingAccessPoint(principal.getName());\n metadata.setReceivingAccessPoint(OC_AP_COMMON_NAME);\n metadata.setProtocol(inboundMetadata.getProtocol().getIdentifier());\n metadata.setSendersTimeStamp(inboundMetadata.getTimestamp());\n metadata.setReceivedTimeStamp(new Date());\n metadata.setTransmissionId(header.getIdentifier().getIdentifier());\n metadata.setInstanceType(header.getInstanceType().getType());\n metadata.setInstanceTypeVersion(header.getInstanceType().getVersion());\n metadata.setInstanceTypeStandard(header.getInstanceType().getStandard());\n\n return metadata;\n }", "title": "" }, { "docid": "1930f50c839a7fa494d13c3149a380d5", "score": "0.5110863", "text": "@Override\n\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\tif (lang != LANG_SQL)\n\t\t\tthrow new SQLException(\"This method is only supported in SQL mode\", \"M0M04\");\n\n\t\treturn new MonetDatabaseMetaData(this);\n\t}", "title": "" }, { "docid": "402dd3b1dcd6dee124d06cde0329399f", "score": "0.5102853", "text": "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder() {\n return getMetaInformationFieldBuilder().addBuilder(\n io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "title": "" }, { "docid": "402dd3b1dcd6dee124d06cde0329399f", "score": "0.5102853", "text": "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder() {\n return getMetaInformationFieldBuilder().addBuilder(\n io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "title": "" }, { "docid": "402dd3b1dcd6dee124d06cde0329399f", "score": "0.5102853", "text": "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder() {\n return getMetaInformationFieldBuilder().addBuilder(\n io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "title": "" }, { "docid": "402dd3b1dcd6dee124d06cde0329399f", "score": "0.5102853", "text": "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder() {\n return getMetaInformationFieldBuilder().addBuilder(\n io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "title": "" }, { "docid": "402dd3b1dcd6dee124d06cde0329399f", "score": "0.5102853", "text": "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder() {\n return getMetaInformationFieldBuilder().addBuilder(\n io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "title": "" }, { "docid": "402dd3b1dcd6dee124d06cde0329399f", "score": "0.5102853", "text": "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder() {\n return getMetaInformationFieldBuilder().addBuilder(\n io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "title": "" }, { "docid": "402dd3b1dcd6dee124d06cde0329399f", "score": "0.5102853", "text": "public io.dstore.engine.MetaInformation.Builder addMetaInformationBuilder() {\n return getMetaInformationFieldBuilder().addBuilder(\n io.dstore.engine.MetaInformation.getDefaultInstance());\n }", "title": "" }, { "docid": "5b2551f1e7e33f3049e943201a84d2ae", "score": "0.509854", "text": "public ModelMetaData generate() {\n String packageName = workFlowProcess.getPackageName();\n\n modelMetaData = new ModelMetaData(workflowType, workFlowProcess.getId(),\n CodegenUtils.version(workFlowProcess.getVersion()),\n packageName, className, workFlowProcess.getVisibility(),\n VariableDeclarations\n .ofOutput((VariableScope) ((io.automatiko.engine.workflow.base.core.Process) workFlowProcess)\n .getDefaultContext(VariableScope.VARIABLE_SCOPE)),\n true,\n ProcessToExecModelGenerator.isServerlessWorkflow(workFlowProcess)\n ? \"/class-templates/JsonOutputModelTemplate.java\"\n : \"/class-templates/ModelTemplate.java\",\n \"Output data model for \" + workFlowProcess.getName(),\n \"Describes output data model expected by \" + workFlowProcess.getName());\n modelFileName = modelMetaData.getModelClassName().replace('.', '/') + \".java\";\n modelMetaData.setSupportsValidation(context.getBuildContext().isValidationSupported());\n modelMetaData.setSupportsOpenApi(context.getBuildContext().isOpenApiSupported());\n\n if (context.getBuildContext().isGraphQLSupported()) {\n String processId = workFlowProcess.getId();\n if (workFlowProcess.getVersion() != null) {\n processId += \"_\" + workFlowProcess.getVersion();\n }\n\n modelMetaData.addAugmentor(new GraphQLModelAugmentor(false, context.getProcess(processId), context));\n }\n\n return modelMetaData;\n }", "title": "" }, { "docid": "09c114d5bda6799c477f77e3dbc5b992", "score": "0.5086112", "text": "private void initializeMetadata() {\n // only prepend a series name prefix to the metadata keys if multiple\n // series are being opened\n final int seriesCount = getSeriesCount();\n int numEnabled = 0;\n for (int s=0; s<seriesCount; s++) {\n if (options.isSeriesOn(s)) numEnabled++;\n }\n metadata = new ImporterMetadata(getReader(), this, numEnabled > 1);\n }", "title": "" }, { "docid": "dec1778d32b9b6e74118df50a2dcb7f2", "score": "0.50823474", "text": "public String getDatabaseMetaData();", "title": "" }, { "docid": "5f6cf200b8d6a15dbbeed770bf525c45", "score": "0.50675005", "text": "public abstract SLEXMMDataModel createDatamodel(String name);", "title": "" }, { "docid": "57b935d427b928f0ad610031a66f7ad6", "score": "0.5063342", "text": "Description createDescription();", "title": "" }, { "docid": "1f1d23ba6063397ebf8e27b109539ccf", "score": "0.50621134", "text": "List<? extends EObject> createMetaDataModel(IndexRow row,\r\n\t\t\tResourceSet resourceSet);", "title": "" }, { "docid": "5fd5e2df043a418634ce79cf4a745cda", "score": "0.50572383", "text": "public metro.trans.avro.MetaData getMetadata() {\n return metadata;\n }", "title": "" }, { "docid": "bf16c058c905173aeace58c1fcb59613", "score": "0.5053415", "text": "public io.dstore.engine.MetaInformation.Builder getMetaInformationBuilder(\n int index) {\n return getMetaInformationFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "bf16c058c905173aeace58c1fcb59613", "score": "0.5053415", "text": "public io.dstore.engine.MetaInformation.Builder getMetaInformationBuilder(\n int index) {\n return getMetaInformationFieldBuilder().getBuilder(index);\n }", "title": "" } ]
89f7104c2d048a354ed74e7041a80ab6
Answer true iff the node x matches the previouslyseen value at Donain[index]. The matching uses datatypevalue semantics, implemented by Node::sameValueAs().
[ { "docid": "6228e202624cda97eab3fbf28a90cc5b", "score": "0.73302585", "text": "public boolean match( Domain d, Node x )\r\n { return x.sameValueAs( d.getElement( index ) ); }", "title": "" } ]
[ { "docid": "1ccb80281b6c66d05e76e5815f91c9e1", "score": "0.52561504", "text": "@Override\n public boolean equals(Object obj) {\n if (obj == this) {\n return true;\n }\n if (obj == null || getClass() != obj.getClass()) {\n return false;\n }\n final Node node = (Node) obj;\n return value == node.value;\n }", "title": "" }, { "docid": "b91e7b85463b7937329a9bbcee439545", "score": "0.51660496", "text": "private boolean contains(DoubleNode<E> n){\n Iterator<DoubleNode<E>> i = nodeIterator();\n while(i.hasNext()){\n if(i.next() == n){\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "b3c281e2d1c7579be58879e5705b538f", "score": "0.50868046", "text": "abstract Varnode getIndexValue();", "title": "" }, { "docid": "d97e670317f3e58b9d17f3e642533df6", "score": "0.5044666", "text": "@Override\r\n\t\tpublic boolean equals(Object obj) {\n\t\t\treturn this.val == ((Node)obj).val;\r\n\t\t}", "title": "" }, { "docid": "7f418246933634b28467e78c07d503b0", "score": "0.50240356", "text": "@Override\n\tpublic boolean pertenece(int x) {\n\t\tNodo aux = prim;\n\t\twhile(aux != null) {\n\t\t\tif(x == aux.x)\n\t\t\t\treturn true;\n\t\t\taux = aux.sig;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c8e0b957cc9ac14bafa78993ecc8b0f4", "score": "0.49989158", "text": "@DOMSupport(DomLevel.THREE)\r\n @BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P, BrowserType.SAFARI_3P})\r\n\t@Function boolean isEqualNode(final Node arg);", "title": "" }, { "docid": "82e64d3df01600e01df408f8e7e30b7b", "score": "0.49920446", "text": "private boolean hasSameOperator(Value v, Value node) {\n\t\tif(node instanceof BinaryOperator && v instanceof BinaryOperator){\n\t\t\tBinaryOperator binaryOperator = (BinaryOperator)v;\n\t\t\tBinaryOperatorID binaryOperatorID1 = binaryOperator.getOperatorID();\n\t\t\tbinaryOperator = (BinaryOperator)node;\n\t\t\tBinaryOperatorID binaryOperatorID2 = binaryOperator.getOperatorID();\n\n\t\t\tif(binaryOperatorID1 == binaryOperatorID2){\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t}else if(node instanceof PhiNode && v instanceof PhiNode){\n\t\t\tPhiNode phiNode = (PhiNode) v;\n\t\t\tPhiNode phiNode1 = (PhiNode)node;\n\t\t\tif(phiNode == phiNode1)\n\t\t\t\treturn true;\n\t\t}\n\t\telse if(node instanceof Constant && v instanceof Constant){\n\t\t\tConstant constant1 = (Constant) node;\n\t\t\tConstant constant2 = (Constant) v;\n\t\t\tif(constant1.equals(constant2))\n\t\t\t\treturn true;\n\t\t}\n\n\t\telse if(node instanceof Argument && v instanceof Argument){\n\t\t\tArgument argument1 = (Argument) node;\n\t\t\tArgument argument2 = (Argument) v;\n\t\t\tif(argument2.equals(argument1))\n\t\t\t\treturn true;\n\t\t}\n\n\t\telse if(node instanceof CastInst && v instanceof CastInst){\n\t\t\tCastInst castInst1 = (CastInst) node;\n\t\t\tCastInst castInst2 = (CastInst) v;\n\t\t\tif(castInst1.getInstructionID() == castInst2.getInstructionID())\n\t\t\t\treturn true;\n\t\t}\n\t\telse if(node instanceof GetElementPtrInst && v instanceof GetElementPtrInst){\n\t\t\tGetElementPtrInst ptrInst1 = (GetElementPtrInst) node;\n\t\t\tGetElementPtrInst ptrInst2 = (GetElementPtrInst) v;\n\t\t\tif(ptrInst1.getPointerOperand() == ptrInst2.getPointerOperand()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse if(node instanceof AllocaInst && v instanceof AllocaInst){\n\t\t\tAllocaInst allocaInst1 = (AllocaInst) node;\n\t\t\tAllocaInst allocaInst2 = (AllocaInst) v;\n\t\t\tif(allocaInst1 == allocaInst2)\n\t\t\t\treturn true;\n\n\t\t}\n\t\telse if(node.getValueTypeID()== null && v.getValueTypeID()== null){\n\t\t\tValue value1 = node;\n\t\t\tValue value2 = v;\n\t\t\tif(value1.getType().getTypeId() == value2.getType().getTypeId())\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "30532aa40f9ece5d79f6485db75838fe", "score": "0.49712282", "text": "private boolean searchNextValueNode() {\n while (currentStackLevel >= 0) {\n final int currentCursorIndex = currentStackLevel * 2;\n final int currentLengthIndex = currentCursorIndex + 1;\n\n final int nodeCursor = nodeCursorsAndLengths[currentCursorIndex];\n final int nodeLength = nodeCursorsAndLengths[currentLengthIndex];\n\n if (nodeCursor < nodeLength) {\n final AbstractMapNode nextNode = nodes[currentStackLevel].getNode(nodeCursor);\n nodeCursorsAndLengths[currentCursorIndex]++;\n\n if (nextNode.hasNodes()) {\n /*\n * put node on next stack level for depth-first traversal\n */\n final int nextStackLevel = ++currentStackLevel;\n final int nextCursorIndex = nextStackLevel * 2;\n final int nextLengthIndex = nextCursorIndex + 1;\n\n nodes[nextStackLevel] = nextNode;\n nodeCursorsAndLengths[nextCursorIndex] = 0;\n nodeCursorsAndLengths[nextLengthIndex] = nextNode.nodeArity();\n }\n\n if (nextNode.hasPayload()) {\n /*\n * found next node that contains values\n */\n currentValueNode = nextNode;\n currentValueCursor = 0;\n currentValueLength = nextNode.payloadArity();\n return true;\n }\n } else {\n currentStackLevel--;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "fec8e1291bc397e286b3e2566bfbf77f", "score": "0.49633288", "text": "private boolean sameAtts(Instances nodeData) {\n\t\tfor (int k = 0; k < nodeData.numAttributes() - 1; k++) {\n\t\t\tif (nodeData.numDistinctValues(k) > 1)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "079c68015a9b761858069c052e94f9fb", "score": "0.4960402", "text": "private boolean contains( AnyType x, BinaryNode<AnyType> t )\n {\n if( t == null )\n return false;\n \n int compareResult = x.compareTo( t.element );\n \n if( compareResult < 0 )\n return contains( x, t.left );\n else if( compareResult > 0 )\n return contains( x, t.right );\n else\n return true; // Match\n }", "title": "" }, { "docid": "b4b69b6ce030aaeb55d5762dee32e14c", "score": "0.49383748", "text": "public boolean equals(Object x){\n boolean equ = false;\n Entry that;\n if ( x instanceof Entry){\n that = (Entry) x;\n equ =(this.column == that.column&&this.value == that.value);\n }\n return equ;\n }", "title": "" }, { "docid": "0ef1c0fd70609c82bc5012d92f8c6a38", "score": "0.4937377", "text": "private boolean containsNodeWithValue(int value) {\n Node node = head;\n while (node != null && node.value != value) node = node.next;\n return node != null;\n }", "title": "" }, { "docid": "5cf8d5ee33d6ecf89105e03f8c81b41c", "score": "0.49208704", "text": "boolean dnaMatch(Nucleotide otherNucleotide);", "title": "" }, { "docid": "53691f8e40f262a8369abcf6a2a13d6e", "score": "0.4874282", "text": "public boolean contains(T x) {\r\n\tEntry<T> node = find(root, x);\r\n\treturn node == null ? false : x.equals(node.element);\r\n }", "title": "" }, { "docid": "84f305791b51bfacc81e9c1ed61750c5", "score": "0.487156", "text": "public static boolean sameValue(final Object x, final Object y) {\n final JSType xType = JSType.ofNoFunction(x);\n final JSType yType = JSType.ofNoFunction(y);\n\n if (xType != yType) {\n return false;\n }\n\n if (xType == JSType.UNDEFINED || xType == JSType.NULL) {\n return true;\n }\n\n if (xType == JSType.NUMBER) {\n final double xVal = ((Number)x).doubleValue();\n final double yVal = ((Number)y).doubleValue();\n\n if (Double.isNaN(xVal) && Double.isNaN(yVal)) {\n return true;\n }\n\n // checking for xVal == -0.0 and yVal == +0.0 or vice versa\n if (xVal == 0.0 && Double.doubleToLongBits(xVal) != Double.doubleToLongBits(yVal)) {\n return false;\n }\n\n return xVal == yVal;\n }\n\n if (xType == JSType.STRING || yType == JSType.BOOLEAN) {\n return x.equals(y);\n }\n\n return x == y;\n }", "title": "" }, { "docid": "c0fbad51495e9e6e6ec2adcd244914b0", "score": "0.4866175", "text": "private boolean sameValue(Union that) { \n return (this.left.equals(that.left) && this.right.equals(that.right)) || \n (this.left.equals(that.right) && this.right.equals(that.left));\n }", "title": "" }, { "docid": "e46b1349f8d5ce92c1d806c75783b548", "score": "0.48568827", "text": "public boolean equals(Object obj) {\n\t\tif (!(obj instanceof Node<?, ?>)) return false;\n\t\tNode<?, ?> n = (Node<?, ?>) obj;\n\t\treturn n.graph == graph && n.index == index;\n\t}", "title": "" }, { "docid": "0784a1596f6f0c0255bdced411dff086", "score": "0.48209062", "text": "@Override\n public boolean contains(V anEntry) {\n Node currentNode = head;\n while (currentNode != null) {\n if ((currentNode.getValue()).equals(anEntry)) {\n return true;\n }\n currentNode = currentNode.getNextNode();\n }\n return false;\n }", "title": "" }, { "docid": "b378f7b6218d0fc35ff85167fd20f9a3", "score": "0.48151794", "text": "public boolean contains(T x) {\n\t\tEntry<T> node = find(root, x);\n\t\treturn node == null ? false : x.equals(node.element);\n\t}", "title": "" }, { "docid": "5df0ba8402aecb82d7e29fe629a4a560", "score": "0.4809075", "text": "@Override\n\tpublic boolean equal(Value e) {\n\t\tif (e instanceof SymbolValue)\n\t\t\treturn varName.equals(((SymbolValue) e).getVarName());\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cf14af3b90b49ee05b208a178841ff4e", "score": "0.48001245", "text": "public abstract boolean directTest (final DATATYPE aValue);", "title": "" }, { "docid": "62dae5280ab5a7ff392cbbe16d71f844", "score": "0.4792319", "text": "boolean matchIndex ( int index )\r\n {\n if ( _index == NO_INDEX )\r\n return true;\r\n\r\n return _index == index;\r\n }", "title": "" }, { "docid": "365088750352d51f1f59dae820aea488", "score": "0.47912583", "text": "private boolean matchValue(UnoPlayer p) {\r\n\r\n for (UnoCard c : p.listOfCards()) {\r\n\r\n if (c.getValue() == currentCard.getValue()) {\r\n\r\n return true;\r\n\r\n }\r\n }\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "4c77a76dd250b76490446ed321f89b28", "score": "0.4787779", "text": "public abstract boolean isMatch(T value, Object parent);", "title": "" }, { "docid": "cd60263cf18cef42a550ef172594438a", "score": "0.4778685", "text": "private boolean nodesEqual( IntNode node1, IntNode node2 ) {\n return ( node1 != null && node2 != null) &&\n ( node1.getValue() == node2.getValue() );\n }", "title": "" }, { "docid": "42fa431303bc74efbe492f88d267f0af", "score": "0.4777511", "text": "public boolean containsNode( Node current, int value) {\n\t\tif (current == null){\n\t\t\treturn false;\n\t\t}\n\t\tif (value == current.n) {\n\t\t\treturn true;\n\t\t}\n\t\treturn value < current.n\n\t\t\t? containsNode(current.left, value)\n\t\t\t: containsNode(current.right, value);\n\t}", "title": "" }, { "docid": "e0730a315f51fd02cb8522600ea337dd", "score": "0.47614726", "text": "public abstract boolean equalsValue(Object o1, Object o2);", "title": "" }, { "docid": "79a7be77d9b4b4aeb822ec53e2c5a83e", "score": "0.4759473", "text": "public boolean equalTo(Huge_Unsigned_Int x) {\n\t\tif (this.size != x.size)\n\t\t\treturn false;\n\n\t\tint i;\n\t\tfor (i = 0; i < size; i++) {\n\t\t\tif (this.intArray[i] != x.intArray[i])\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1cdd093dbf673c69f6c08e0089df8c5b", "score": "0.47573918", "text": "boolean rnaMatch(Nucleotide otherNucleotide);", "title": "" }, { "docid": "5947ff13ca22edb8b615b531993883be", "score": "0.47514626", "text": "private boolean contains(E x, BinaryNode<E> t) {\n curr = null;\n if(t == null)\n return false;\n int compareResult = x.compareTo(t.element);\n if(compareResult < 0){\n return contains(x, t.left);\n }\n else if(compareResult > 0) {\n return contains(x, t.right);\n }\n else {\n curr = t;\n // Match\n return true;\n }\n }", "title": "" }, { "docid": "013dc8286e2d562ef1cebf9afda81769", "score": "0.47410733", "text": "private boolean search(Node<T> x, T toSearch) {\r\n\t\tif (x == null)\r\n\t\t\treturn false;\r\n\t\telse if (compare(toSearch, x.value) == 0)\r\n\t\t\treturn true;\r\n\t\telse if (compare(toSearch, x.value) < 0)\r\n\t\t\treturn search(x.left, toSearch);\r\n\t\telse\r\n\t\t\treturn search(x.right, toSearch);\r\n\t}", "title": "" }, { "docid": "38b3b49d30b402d7c3e582aa6197f0b1", "score": "0.4730922", "text": "public Boolean defaultComparison(SimpleNode node, Object data)\n\t{\n\t\t//System.out.println(\"Comparing: \" + node.getClass().getName() + \" to \" + data.getClass().getName());\n\n\t\tif (node.getClass() != data.getClass()) {\n\t\t\t//System.out.println(\"Different classes\");\n\t\t\treturn Boolean.FALSE;\n\t\t}\n\n\t\tSimpleNode other = (SimpleNode) data;\n\t\tif (other.jjtGetNumChildren() != node.jjtGetNumChildren()) {\n\t\t\t//System.out.println(\"Different lengths\");\n\t\t\treturn Boolean.FALSE;\n\t\t}\n\n\t\tint last = node.jjtGetNumChildren();\n\t\tfor (int ndx = 0; ndx < last; ndx++) {\n\t\t\tNode nextNodeChild = node.jjtGetChild(ndx);\n\t\t\tNode nextOtherChild = other.jjtGetChild(ndx);\n\n\t\t\tObject result = nextNodeChild.jjtAccept(this, nextOtherChild);\n\t\t\tif (result.equals(Boolean.FALSE)) {\n\t\t\t\t//System.out.println(\"Different child #\" + ndx + \" \" + node.toString() + \"/\" + node.getClass().getName() + \" to \" + data.toString() + \"/\" + data.getClass().getName());\n\t\t\t\treturn Boolean.FALSE;\n\t\t\t}\n\t\t}\n\n\t\t//System.out.println(\"Match\");\n\t\treturn Boolean.TRUE;\n\t}", "title": "" }, { "docid": "02b2bcf26eb7df236e7bfed352c0228b", "score": "0.4713874", "text": "private boolean contains (AnyType x, BinaryNode<AnyType>t) {\r\n if (t == null)\r\n return false;\r\n\r\n int comparison = x.compareTo(t.element);\r\n\r\n // Shift to the left\r\n if (comparison < 0)\r\n return contains(x, t.left);\r\n\r\n // Shift to the right\r\n else if (comparison > 0)\r\n return contains(x, t.right);\r\n\r\n // If the element matches and it is VALID\r\n else // if (comparison == 0)\r\n return t.valid; // Return true or false depending\r\n // on if the node's exists\r\n }", "title": "" }, { "docid": "d373e83b90a3ccb2cef0d6db52c87e3a", "score": "0.46860945", "text": "public boolean EqualsNode(Node compare) {\r\n\t\tif(compare.getMeal().compareTo(meal) == 0 && compare.getPrice() == price && compare.getRestaurant().compareTo(restaurant)==0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4c2592c5a7d1e73f7a505a814724e3b8", "score": "0.46845803", "text": "@Override\n\tpublic boolean match(IValue other) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f526522bed7552d80ae51d5fb17aff4d", "score": "0.4673605", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic boolean equals(Object item) {\n\t\ttry{\n\t\t\tList<T> otherList = (DList<T>) item;\n\t\t\tif (otherList.length() != this.length()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tListNode<T> node1 = this.front();\n\t\t\tListNode<T> node2 = otherList.front();\n\t\t\t\n\t\t\twhile(node1.isValidNode() || node2.isValidNode()) {\n\t\t\t\tif((node1.isValidNode() && !node2.isValidNode()) || !(node1.isValidNode() && node2.isValidNode())) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif(!node1.item.equals(node2.item)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tnode1 = node1.next();\n\t\t\t\tnode1 = node2.next();\n\t\t\t}\n\t\t\treturn true;\n\t\t}catch (InvalidNodeException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "f7f84d3a93cc7b322c9c4c0915124609", "score": "0.46691734", "text": "public boolean equals(GraphNode node) {\n\t\tfor(int i = 0; i < 16; i++) {\n\t\t\tif (node.state[i] != this.state[i]) \n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e2d6dd975f573db9a32ea5642dbb6f33", "score": "0.46598917", "text": "public boolean containsNode(T value) {\n return nodes.containsKey(new Node<>(value));\n }", "title": "" }, { "docid": "a4a02e9e04750c5ad25bb593c8a9f5b3", "score": "0.46421933", "text": "private boolean contains(AnyType x, BinaryNode<AnyType> t) {\n// if (t == null) {\n// return false;\n// }\n//\n// if (myCompare(x, t.element) > 0) {\n// return contains(x, t.right);\n// } else if (myCompare(x, t.element) < 0) {\n// return contains(x, t.left);\n// } else {\n// return true;\n// }\n\n while (t != null) {\n if (myCompare(x, t.element) > 0) {\n t = t.right;\n } else if (myCompare(x, t.element) < 0) {\n t = t.left;\n } else {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "048aa98ab0622b94d44e995bcc3ca70a", "score": "0.4640958", "text": "@DOMSupport(DomLevel.THREE)\r\n @BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Function boolean isSameNode(final Node other);", "title": "" }, { "docid": "befd13778d33e60007fa4ba898824da1", "score": "0.4623794", "text": "public boolean equals(Object x){\n\t\tif( x instanceof Entry && x !=null){\n if(this.col == ((Entry)x).col && this.data == ((Entry)x).data){\n\t\t\t\treturn true;\n }\n\t\t\t}\n\t\t\t//System.out.println(\"\\t\\tcol \" + col + \"\\n\\t\\t is not the same as\" + ((Entry) x).col);\n\t\t\t//System.out.println(\"\\t\\tdata \" + data + \"\\n\\t\\t is not the same as\" + ((Entry) x).data);\n\t\t\treturn false;\n }", "title": "" }, { "docid": "bc99ae2e7a2b3f758ff8c3652a720419", "score": "0.46206722", "text": "@Test\n\tpublic void testEquals() {\n\t\t//Reflexive case x.equals(x) is always true;\n\t assertTrue(\"A node equals itself\", a.equals(a));\n\t \n\t //Check for false positives\n\t assertTrue(\"Two different nodes are not equal\", !a.equals(b));\n\t assertTrue(\"Two different nodes are not equal flipped\", !b.equals(a));\n\t \n\t //Just general check\n\t Node<String> like_a = new Node<String>(\"A\");\n\t assertEquals(\"Two different but same data nodes are equal\", a, like_a);\n\t}", "title": "" }, { "docid": "61400ba9e0af37e184724faf25fb2640", "score": "0.46206477", "text": "public boolean find(E value){\n for(E node : this){\n if(value.equals(node)){\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "844e9afdd03ab6cac26704789cdde7fe", "score": "0.46180135", "text": "private static boolean isEqualNode(SimpleNode currentNode, SimpleNode newNode)\r\n\t{\r\n\t\treturn (currentNode.ID == newNode.ID);\r\n\t}", "title": "" }, { "docid": "fe3fd8f84e24cbc9d17c0d8ce4ea11c6", "score": "0.46147427", "text": "public boolean equals(Node node) {\n \t\treturn (node.getX() == this.getX() && node.getY() == this.getY());\n \t}", "title": "" }, { "docid": "d645f54ddc5a3f375d15672d2335138b", "score": "0.46140265", "text": "public boolean contains( AnyType x )\n {\n return contains( x, root );\n }", "title": "" }, { "docid": "d645f54ddc5a3f375d15672d2335138b", "score": "0.46140265", "text": "public boolean contains( AnyType x )\n {\n return contains( x, root );\n }", "title": "" }, { "docid": "d1d94dc2b816c32f324e71aa0730b184", "score": "0.46129313", "text": "void equalTo(T element);", "title": "" }, { "docid": "33fbbea6a85d71babbc8f9a966c97358", "score": "0.46098572", "text": "public boolean isFuzzyAssigned(IndexedDataObject<T> obj);", "title": "" }, { "docid": "25b29a63551975bbd532e58dfcb65f81", "score": "0.4602542", "text": "public boolean isSameNode(Node other) {\n return this == other;\n }", "title": "" }, { "docid": "35ad90d544b44342b3bd2413d1403e0e", "score": "0.45964512", "text": "public boolean contains(T x) {\n Entry<T> t = find(x);\n return t != null && t.element.equals(x);\n }", "title": "" }, { "docid": "2e84fd7347cc86940c2a1443d881cf83", "score": "0.4593955", "text": "@Override\n public boolean equals(Object object) {\n if (this == object)\n return true;\n\n if(object instanceof ContinuousVariable == false)\n return false;\n\n ContinuousVariable variable = (ContinuousVariable) object;\n return this.name.equals(variable.getName())\n && this.index == variable.index;\n }", "title": "" }, { "docid": "847cc56836150b55e962f32797508560", "score": "0.4586123", "text": "public Boolean equals(Racional x){\n\t\treturn ((this.num/this.den)==(x.getNum()/x.getDen()));\n\t}", "title": "" }, { "docid": "0a85a7321d8315e4bd0d70da370283db", "score": "0.45656186", "text": "public boolean equals(Object x){\n if(x instanceof Matrix){\n Matrix temp = (Matrix) x;\n if(this.size == temp.size){\n for(int i = 1; i<=this.size;i++){\n\t\t\t\t\tif(this.array[i].length() != temp.array[i].length()) return false;\n\t\t\t\t\tif(this.array[i].length() ==0 && temp.array[i].length() ==0) continue;\n if(!(this.array[i].equals(temp.array[i]))) {\n System.out.println(\"List \" + this.array[i] + \"\\ndoesn't equal \" + temp.array[i]);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n }\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "29c3d003b124b95cca3aa9b476eeef74", "score": "0.45604825", "text": "private boolean safeMatch( IntNode node, int num ) {\n return ( node != null ) && ( node.getValue() == num );\n }", "title": "" }, { "docid": "5532b481c90f8b54bc33e87d1d00fc6f", "score": "0.45301372", "text": "public boolean NodeExists(Entry node){\n \n boolean ok = false;\n \n for(Entry vector1 : neig.local_vec(true)){\n \n if(node.dest == vector1.dest) ok = true;\n\n }\n \n return ok;\n }", "title": "" }, { "docid": "96145685f60649ad76fe94681b5abeab", "score": "0.45269793", "text": "public boolean equals(Object otherNode)\n {\n //Can the other entry point to null?\n if (otherNode == null) return false;\n //Is the other entry a Node?\n if (this.getClass() != otherNode.getClass()) return false;\n \n Node other = (Node) otherNode;\n \n //Is the other entry a reference to this entry?\n if (this == other) return true;\n if (!this.getData().equals(other.getData())) return false;\n if (this.getNext() != other.getNext()) return false;\n \n return true;\n }", "title": "" }, { "docid": "f3f59579d6c6849072f5e5a968153844", "score": "0.4525503", "text": "public boolean equal() {\n return (value & (CONTAINS | INSIDE)) == (CONTAINS | INSIDE);\n }", "title": "" }, { "docid": "4756d3fb6eff4fbfe085a74d752f6e5c", "score": "0.45200118", "text": "@Override\r\n public boolean equals (Object other) {\r\n if (this.getClass() != other.getClass()) {\r\n return false;\r\n } \r\n LinkedForneymonagerie otherFM = (LinkedForneymonagerie) other;\r\n if (this.size != otherFM.size) {\r\n return false;\r\n }\r\n \r\n int index = 0;\r\n for (Node n = this.sentinel.next; n != this.sentinel; n = n.next) {\r\n if (!n.fm.equals(otherFM.get(index))) {\r\n return false;\r\n }\r\n index++;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "95ce87604053e1698aec0cce3361d89c", "score": "0.4498916", "text": "public boolean lookForIt(int value) {\n\t\treturn containsNode(root, value);\n\t}", "title": "" }, { "docid": "fe9b0f7ff19663a11d9f70718b515a3e", "score": "0.44955933", "text": "@Override\n public boolean equals(Object pNode) {\n Node node = (Node)pNode;\n if (node == null) return false;\n if (this == node) return true;\n if (getData() == node.getData() && getNext() == node.getNext() &&\n getPrev() == node.getPrev()) return true;\n return false;\n }", "title": "" }, { "docid": "d39c67e38f32170194112f8c0d7448e1", "score": "0.44847286", "text": "private boolean equals(Node A, Node B) {\n if(A == null || B == null)\n return false;\n else{\n if (A.value == B.value) {\n if (A.nMinor != null && B.nMinor != null) {\n return equals(A.nMinor, B.nMinor);\n } else {\n return true;\n }\n } else {\n return false;\n }\n }\n }", "title": "" }, { "docid": "2cb3d10b2c633d6e6de33f8d38e4b97f", "score": "0.44727308", "text": "public static boolean equalityNode(EvalNode node1, EvalNode node2) {\n return ObjectUtils.equals(node1.getValue(), node2.getValue());\n }", "title": "" }, { "docid": "bfe9a20a6d67726cb44596209331e4ad", "score": "0.44711384", "text": "private boolean hasDuplicate(E value) {\n boolean result = false;\n Iterator<E> it = innerStorage.iterator();\n while (it.hasNext()) {\n E element = it.next();\n if (element.equals(value)) {\n result = true;\n break;\n }\n }\n return result;\n }", "title": "" }, { "docid": "31c63e665d7cdc91994790d8e200eefd", "score": "0.4470458", "text": "@Override\n\t\t\tpublic boolean isMatch(final T value, final Object parent) {\n\t\t\t\treturn AbstractFuzzyMatcher.this.isMatch(value, parent) && other.isMatch(value, parent);\n\t\t\t}", "title": "" }, { "docid": "4398a84bb47f4090a3662a37a221775f", "score": "0.44682136", "text": "public boolean eqValue(E that) {\n return this.value.compareTo(that) == 0;\n }", "title": "" }, { "docid": "4a02ebd3b4515d7ac215f0365f8564dc", "score": "0.44648337", "text": "public boolean includes(int x) {\n Node current = this.head;\n while (current != null) {\n if (current.data == x)\n return true;\n current = current.next;\n }\n return false;\n }", "title": "" }, { "docid": "4e3eb07fb8752eb8d78706eb4dee6040", "score": "0.44589266", "text": "@Override\n public boolean isEqual(IKeyValueNode<TKey, TValue> other) {\n return this.comparator.isEqual(this, other);\n }", "title": "" }, { "docid": "05bd4fef4eb6886e992bd9b62956edf2", "score": "0.44575858", "text": "private T getData(Node<T> x) {\r\n\t\twhile (x.right != null)\r\n\t\t\tx = x.right;\r\n\r\n\t\treturn x.value;\r\n\t}", "title": "" }, { "docid": "b81c09a2cffd6f0fea20543be46d4b7e", "score": "0.44555527", "text": "@Override\n public boolean sameValueAs(Type other) {\n return this.equals(other);\n }", "title": "" }, { "docid": "c82a5bfa196b0d8d4f6ec96e3a9d73a1", "score": "0.44514045", "text": "public boolean areEquals(){\n return prediction.equals(value);\n }", "title": "" }, { "docid": "df3b65a8ac16265e1ba0199ada07c399", "score": "0.445037", "text": "@Override\n public boolean equals(Object o) {\n if (o == this) {\n return true;\n }\n if (!(o instanceof Node)) {\n return false;\n }\n Node other = (Node) o;\n return this.nodeId == other.nodeId && Arrays.equals(this.coordinates, other.coordinates);\n }", "title": "" }, { "docid": "f7b90abc24ce192ec16aa10700cca5e0", "score": "0.4443348", "text": "public boolean contains(Object value)\n {\n \tListNode temp = front;\n \twhile(temp != null)\n \t{\n \t\tif(temp.getValue().equals(value))\n \t\t{\n \t\t\treturn true;\n \t\t}\n \t\ttemp = temp.getNext();\n \t} \n \treturn false;\t\n }", "title": "" }, { "docid": "bd53ca39d844c632b8b2c9a6a502dbe2", "score": "0.44415337", "text": "public Object visit(ASTEqualityExpression node, Object data)\n\t{\n\t\treturn defaultComparison(node, data);\n\t}", "title": "" }, { "docid": "bf622fdc7a4126d46b15cdc5be9d14ac", "score": "0.4439383", "text": "public T get(T x) {\n Entry<T> t = find(x);\n if(!isNull(t) && t.element.equals(x))\n return x;\n return null;\n }", "title": "" }, { "docid": "4d90669e4a70eb0c09c62180c1027e6d", "score": "0.4436166", "text": "public T getMatch(T x)\n {\n\t if (x == null)\n\t\t {\n\t\t\t throw new IllegalArgumentException(\"Error! x is null\");\n\t\t }\n\t //loop through array\n\t for (int i =0; i < arraySize; i++)\n\t {\n\t\t if (array[i].equals(x))\n\t\t\t return x;\n\t }\n\t return null; \n }", "title": "" }, { "docid": "52c6a72f8492ac290e9ed710e5125ddd", "score": "0.4430147", "text": "private boolean keyExistButValueNew(Node<K, V> nodeFromList, Node<K, V> newNode, V value) {\n if (newNode.getKey().equals(nodeFromList.getKey()) &&\n !newNode.getValue().equals(nodeFromList.getValue())) {\n nodeFromList.setValue(value);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "dfdfaae18cb8e4ab9ea97500f04017f6", "score": "0.44244432", "text": "public boolean contains(T value) {\n Node node = root;\n while (node != null) {\n // Compare current value to the value in the node.\n int cmp = value.compareTo(node.value);\n if (cmp < 0)\n node = node.left;\n else if (cmp > 0)\n node = node.right;\n else\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "55bc88f33fbf967e0012baff4f44a14a", "score": "0.4420372", "text": "public RedBlackNode<T> treeSuccessor(RedBlackNode<T> x){\r\n\r\n\t\t//se x tem filho a esquerda, retorna o menor valor da arvore direita de x\r\n\t\tif (!isNil(x.left) )\r\n\t\t\treturn treeMinimum(x.right);\r\n\r\n\t\tRedBlackNode<T> y = x.parent;\r\n\t\t//enquanto x for um filho à direita\r\n\t\twhile (!isNil(y) && x == y.right){\r\n\t\t\tx = y;\r\n\t\t\ty = y.parent;\r\n\t\t}\r\n\t\t//retorno do sucessor\r\n\t\treturn y;\r\n\t}", "title": "" }, { "docid": "4f725b86ad6493dcc1c336ed11798d79", "score": "0.44145864", "text": "public boolean equals(Object x){\n if( x instanceof Matrix){\n Matrix tht = (Matrix) x;\n \n if ( getSize() != tht.getSize()){\n return false;\n }\n for (int i = 1; i <= getSize(); ++i){\n if( !(row[i].equals(tht.row[i]))){\n return false;\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "67cace2d05be22a013c207cd9bf29214", "score": "0.44110355", "text": "public boolean isInTree(BST<Integer> testTree, Integer value){\n\tint cmp = -1;\n\tBST<Integer>.Node x = testTree.getRoot();\n\twhile(x != null && (cmp = value.compareTo(x.value)) != 0){\n\t if(cmp < 0)\n\t\tx = x.left;\n\t else\n\t\tx = x.right;\n\t}\n\treturn cmp == 0;\n\t\n }", "title": "" }, { "docid": "f60f3c934b100994373ed00eeadc6264", "score": "0.44090697", "text": "private static boolean do_eq(double x, Object y) {\n for (;;) {\n if (y instanceof Number) {\n return x == ((Number) y).doubleValue();\n }\n if (y instanceof String) {\n return x == ScriptRuntime.toNumber((String)y);\n }\n if (y instanceof Boolean) {\n return x == (((Boolean)y).booleanValue() ? 1 : 0);\n }\n if (y instanceof Scriptable) {\n if (y == Undefined.instance) { return false; }\n y = ScriptRuntime.toPrimitive(y);\n continue;\n }\n return false;\n }\n }", "title": "" }, { "docid": "ead8caf8c37ee4c74ac42593c46d54dc", "score": "0.44021097", "text": "@Override\n\t\t\tpublic boolean isMatch(final T value, final Object parent) {\n\t\t\t\treturn AbstractFuzzyMatcher.this.isMatch(value, parent) || other.isMatch(value, parent);\n\t\t\t}", "title": "" }, { "docid": "9cdf9ba77d3f956611b3b5887ba62ecc", "score": "0.44004366", "text": "final static boolean checkUnique(final XNode[] nodes, final int index) {\n\t\tfinal int len = nodes.length;\n\t\tif (len <= 1) {\n\t\t\treturn true;\n\t\t}\n\t\tfinal XNode xe = nodes[index];\n\t\tString name = xe.getLocalName();\n\t\tString ns = xe.getNSUri();\n\t\tshort kind = xe.getKind();\n\t\tfor ( int i = 0; i < nodes.length; i++) {\n\t\t\tif (i == index) {\n\t\t\t\tcontinue; //skip the checked node itself;\n\t\t\t}\n\t\t\tfinal XNode node = nodes[i];\n\t\t\tif (node.getKind() != kind) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString name1 = node.getLocalName();\n\t\t\tif (!name1.equals(name)) {\n\t\t\t\tcontinue; // not equal names\n\t\t\t}\n\t\t\tif (ns != null) {\n\t\t\t\tif (!ns.equals(node.getNSUri())) {\n\t\t\t\t\tcontinue; // not equal namespace URI\n\t\t\t\t}\n\t\t\t} else if (xe.getNSUri() != null) {\n\t\t\t\tcontinue; // not equal namespace URI (both null)\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c2a114b180a1416987a192d2a2505e85", "score": "0.43962753", "text": "public boolean containsData(T key){\n return nodePosition.containsKey(key);\n }", "title": "" }, { "docid": "203e82e90d67035b4ae8bbd33a3151ec", "score": "0.43926856", "text": "public boolean equals(Object o)\r\n/* 55: */ {\r\n/* 56: 75 */ if ((o instanceof Node))\r\n/* 57: */ {\r\n/* 58: 76 */ Node node = (Node)o;\r\n/* 59: 77 */ return node.getName().equals(this.type.getName());\r\n/* 60: */ }\r\n/* 61: 79 */ return false;\r\n/* 62: */ }", "title": "" }, { "docid": "3e25013c3cef1f106a65fa3ad29b8147", "score": "0.43789425", "text": "@SuppressWarnings(\"unchecked\")\n @Override\n public boolean equals(Object obj) {\n return t.equals(((Node<T>) obj).t);\n }", "title": "" }, { "docid": "0dae5b24ba87d9861328c4e482be3b1d", "score": "0.4376988", "text": "boolean containNode(UUID nodeUUID);", "title": "" }, { "docid": "4028514da5b92e3a77220cf1c397b5c6", "score": "0.43707603", "text": "public boolean contains(X data){\n if(listSize == 0)\n return false;\n else {\n Node currentNode = head;\n while(currentNode.data != null){\n if(currentNode.data == data)\n return true;\n else\n currentNode = currentNode.getNext();\n }\n }\n return false;\n }", "title": "" }, { "docid": "e312c54689753af541aced0b68c40604", "score": "0.4369271", "text": "@Override\r\n public boolean equals(Object another) {\r\n return (another instanceof NumberConstant)\r\n && (this.value.equals(((NumberConstant) another).value));\r\n }", "title": "" }, { "docid": "4e81955d6cb447e3130851b516196e8f", "score": "0.4365811", "text": "@Override\n\tpublic boolean evaluate(TruthAssignment t) {\n\t\tboolean retval = left.evaluate(t) == right.evaluate(t);\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "3798d21138b5a409f38404256a81eff5", "score": "0.43648782", "text": "public boolean equals(N1 masterNode, N2 slaveNode);", "title": "" }, { "docid": "265ad675551aeaf7949680d33abc7637", "score": "0.436243", "text": "@DISPID(302) //= 0x12e. The runtime will prefer the VTID if present\r\n @VTID(33)\r\n boolean isEqualTo(\r\n @MarshalAs(NativeType.Dispatch) com4j.Com4jObject targetPos);", "title": "" }, { "docid": "2cd48b1af91c1c319300c85099736300", "score": "0.43623513", "text": "public final Type visitEqualityExpression(final GNode n) {\n final Type xLvalue = (Type) dispatch(n.getGeneric(0));\n final Type x = getRValue(xLvalue, n.getGeneric(0));\n final Type y = dispatchRValue(n.getGeneric(2));\n if (x.isError() || y.isError())\n return setType(n, ErrorT.TYPE);\n final String o = n.getString(1);\n final Type result;\n Type tBool = JavaEntities.nameToBaseType(\"boolean\");\n final boolean xIsBool = JavaTypeConverter.isIdentical(x, tBool), yIsBool = JavaTypeConverter.isIdentical(y, tBool);\n assert \"==\".equals(o) || \"!=\".equals(o);\n final Type promX = JavaTypeConverter.promoteBinaryNumeric(y, x);\n final Type promY = JavaTypeConverter.promoteBinaryNumeric(x, y);\n if (null == promX || null == promY) {\n if (xIsBool) {\n if (yIsBool) {\n if (x.hasConstant() && y.hasConstant()) {\n final boolean valX = x.getConstant().isTrue();\n final boolean valY = y.getConstant().isTrue();\n if (\"==\".equals(o))\n result = tBool.annotate().constant(valX == valY);\n else\n result = tBool.annotate().constant(valX != valY);\n } else {\n result = tBool;\n }\n } else {\n _runtime.error(\"boolean expected\", n.getNode(n.size() - 1));\n result = tBool;\n }\n } else {\n if (JavaEntities.isNullT(x) || JavaEntities.isNullT(y)) {\n assrt(n, (JavaEntities.isReferenceT(x) || JavaEntities.isNullT(x)) && \n (JavaEntities.isReferenceT(y) || JavaEntities.isNullT(y)), \"incompatible types\");\n result = tBool;\n } else if (isStringConstant(x) && isStringConstant(y)) {\n final String sx = (String) x.getConstant().getValue(), sy = (String) y.getConstant().getValue();\n result = tBool.annotate().constant(\"==\".equals(o) ? sx.equals(sy) : !sx.equals(sy));\n } else {\n final boolean yx = JavaTypeConverter.isCastable(_table, classpath(), y, x);\n final boolean xy = JavaTypeConverter.isCastable(_table, classpath(), x, y);\n assrt(n, yx || xy, \"incompatible types\");\n result = tBool;\n }\n }\n } else if (!promX.hasConstant() || !promY.hasConstant()) {\n result = tBool;\n } else {\n final NumberT typNum = (NumberT) JavaEntities.resolveToRawRValue(promX);\n final Number valNumX = (Number) promX.getConstant().getValue();\n final Number valNumY = (Number) promY.getConstant().getValue();\n switch (typNum.getKind()) {\n case INT: {\n final int valX = valNumX.intValue(), valY = valNumY.intValue();\n if (\"==\".equals(o))\n result = tBool.annotate().constant(valX == valY);\n else\n result = tBool.annotate().constant(valX != valY);\n break;\n }\n case LONG: {\n final long valX = valNumX.longValue(), valY = valNumY.longValue();\n if (\"==\".equals(o))\n result = tBool.annotate().constant(valX == valY);\n else\n result = tBool.annotate().constant(valX != valY);\n break;\n }\n case FLOAT: {\n final float valX = valNumX.floatValue(), valY = valNumY.floatValue();\n if (\"==\".equals(o))\n result = tBool.annotate().constant(valX == valY);\n else\n result = tBool.annotate().constant(valX != valY);\n break;\n }\n case DOUBLE: {\n final double valX = valNumX.doubleValue(), valY = valNumY.doubleValue();\n if (\"==\".equals(o))\n result = tBool.annotate().constant(valX == valY);\n else\n result = tBool.annotate().constant(valX != valY);\n break;\n }\n default:\n throw new Error();\n }\n }\n return setType(n, result);\n }", "title": "" }, { "docid": "5752110989b59a4f537128153ce0d8e2", "score": "0.4358467", "text": "private boolean inSameSet( MazeNode vertex_A, MazeNode vertex_B ) {\n return (find( vertex_A ) == find( vertex_B ));\n }", "title": "" }, { "docid": "bde855559ac4f3f88e2055758937ec82", "score": "0.4357677", "text": "private static <V> boolean containsKey(Node<V> x, int key) {\n\t\twhile (x != null) {\n\t\t\tint cmp = compareTo(key, x.key);\n\t\t\tif (cmp < 0) x = x.left;\n\t\t\telse if (cmp > 0) x = x.right;\n\t\t\telse return true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e794f4ee25c79138e8484994f1b1d48c", "score": "0.43572673", "text": "public boolean contains(int x,Node node){\n if(node==null){\n return false;\n }\n //int compareResult=x.compareTo(node.data);\n else {\n if (x < node.data) {\n return contains(x, node.left);\n } else if (x > node.data) {\n return contains(x, node.right);\n }\n }\n\n return true;\n\n }", "title": "" }, { "docid": "58b182406e8802df8cf8cb4e4fab32f9", "score": "0.4356508", "text": "@Override\n\tpublic boolean contains(T ele)\n\t{\n\t\t \n\t\tNode<T> temp = first;\n\t\twhile(temp!=null)\n\t\t{\n\t\t\tif(temp.data.equals(ele))\n\t\t\t\treturn true;\n\t\t\ttemp=temp.next;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b5cf30e2c635887f000a61a6685afa50", "score": "0.4354899", "text": "public boolean satisfies(Triple triple) {\r\n if (!TripleUtils.isVariable(triple.getAttribute().getString())) {\r\n if (!triple.getAttribute().getString().equals(name)) {\r\n return false;\r\n }\r\n }\r\n if (TripleUtils.isVariable(triple.getValue().getString())) {\r\n return true;\r\n }\r\n SoarVertex sv = V1();\r\n return sv.isValid(triple.getValue().getString());\r\n }", "title": "" }, { "docid": "8634692abd44fe09b42259afe9d19743", "score": "0.43522286", "text": "public abstract boolean containsValue(Object value);", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "c7c8b444512ac10d5f07cb7d75ec488a", "score": "0.0", "text": "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n\n //Log.e(\"err_store_list2\", result + \"\");\n try {\n if (result != null) {\n JSONObject main_obj = new JSONObject(result);\n\n if (main_obj.getString(\"code\").equalsIgnoreCase(\"200\")) {\n\n JSONArray data_array = main_obj.getJSONArray(\"Stores\");\n //Log.e(\"data_array\", String.valueOf(data_array));\n\n for (int i = 0; i < data_array.length(); i++) {\n\n\n\n JSONObject json_data = data_array.getJSONObject(i);\n\n double latitude_data = Double.parseDouble(json_data.getString(\"latitude\"));\n double longitude_data = Double.parseDouble(json_data.getString(\"longitude\"));\n String store_logo = json_data.getString(\"store_logo\");\n String restaurent_name = json_data.getString(\"name\");\n String description = json_data.getString(\"description\");\n String location = json_data.getString(\"location\");\n String contact_number = json_data.getString(\"contact_number\");\n String opening_time = json_data.getString(\"mon_opening_time\");\n String closing_time = json_data.getString(\"mon_closing_time\");\n\n restaurant_name_list.add(restaurent_name);\n\n JSONArray jsonarray_imagestore = json_data.getJSONArray(\"stores_images\");\n for (int j = 0; j < jsonarray_imagestore.length(); j++) {\n JSONObject jsonObject_imge_store = jsonarray_imagestore.getJSONObject(j);\n\n String store_image = jsonObject_imge_store.getString(\"image_file\");\n String stores_id = jsonObject_imge_store.getString(\"stores_id\");\n //Log.e(\"store_image\", store_image);\n store_img_item.add(new Store_img_item(store_image, stores_id));\n }\n //Log.e(\"store_img_item\", String.valueOf(store_img_item.size()));\n store_item.add(new StoreItem(latitude_data, longitude_data, store_logo, restaurent_name, description,\n location, contact_number, opening_time, closing_time, store_img_item));\n\n //Log.e(\"storesizee\", String.valueOf(store_item.size()));\n //Log.e(\"store\", store_item.toString());\n //Log.e(\"storecontact\", store_item.get(0).getName());\n\n createMarker(store_item.get(i).getLatitude(), store_item.get(i).getLongitude(), store_item.get(i).getStore_img(),\n store_item.get(i).getName(), store_item.get(i).description, store_item.get(i).getContact_number(), store_item.get(i).getOpening_time(),\n store_item.get(i).getClosing_time(), store_item.get(i).getStore_img_items(), store_item);\n mMap.setInfoWindowAdapter(new CustomInfoWindowAdapter(store_item.get(i).getLatitude(), store_item.get(i).getLongitude(), store_item.get(i).getContact_number(), store_item.get(i).getOpening_time(),\n store_item.get(i).getClosing_time()));\n mMap.setOnInfoWindowClickListener(StoreActivity.this);\n }\n\n //edittext bind with searchadapter\n searchAdapter = new SearchAdapter(StoreActivity.this, store_item);\n listview.setAdapter(searchAdapter);\n\n\n txt_availablerest.setText(\"Restaurante\" +\" \"+ store_item.size());\n getCurrentLocation();\n }\n }\n } catch (JSONException e) {\n //Log.e(\"err_store_list\", e.toString());\n }\n }", "title": "" } ]
[ { "docid": "3d9823aba51891281b4bbd4b1818b970", "score": "0.6671074", "text": "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6567672", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "ea8460c7314de45803a19bf7c984d4bf", "score": "0.6523024", "text": "@Override\n public void perish() {\n \n }", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "97d296a7afb7dc4215dea52c44825799", "score": "0.6477082", "text": "@Override\n\tpublic void anular() {\n\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.64591026", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6276059", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "5a2cf6475b24af1408d07534790462c3", "score": "0.6254286", "text": "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.6223679", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "73463480918eeb854ee253f0b90b8f6a", "score": "0.6201336", "text": "@Override\n\tpublic void emprestimo() {\n\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.61950207", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.61950207", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "24836dd83ff94f056e1fcc3c7d1bd342", "score": "0.6173591", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "title": "" }, { "docid": "a89a6a1e5b118a43de52e5ffd006970b", "score": "0.61327106", "text": "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.61285484", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "1c8a7915e39d52e26f69fe54c7cab366", "score": "0.6080161", "text": "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b910b894fe7ad3828da2a23b46f46c91", "score": "0.6077022", "text": "@Override\n\tpublic void nefesAl() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "680ac9d1bc1773741a758290a71e990c", "score": "0.6024072", "text": "@Override\n public void func_104112_b() {\n \n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "c682095c2b4f1946676c35a1deda3c6f", "score": "0.59984857", "text": "@Override\n\tpublic void nghe() {\n\n\t}", "title": "" }, { "docid": "d96634e617617b62a9a214992c3282f5", "score": "0.59672105", "text": "@Override\n public void function()\n {\n }", "title": "" }, { "docid": "d96634e617617b62a9a214992c3282f5", "score": "0.59672105", "text": "@Override\n public void function()\n {\n }", "title": "" }, { "docid": "2f8bc325cbd58e19eae4acec86ffe12c", "score": "0.5965777", "text": "public final void mo51373a() {\n }", "title": "" }, { "docid": "49a9123d9e9db8177a76f606f354e668", "score": "0.59485507", "text": "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "100a24d43d831707c172dbf3ee5fc24c", "score": "0.5940904", "text": "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "d61bad95071bf9780632fa87c434bab9", "score": "0.5910017", "text": "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "96b7c88f13f659e23bf631d2d5053b40", "score": "0.58946234", "text": "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.5886006", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a515456a9e11b20998e2bfdd6c3dce67", "score": "0.58839184", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4da8e9683b65c2cb7a22ee151d8c65e1", "score": "0.58691067", "text": "public void gored() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "b77eac7bccbd213b5d32d3e935c81ffe", "score": "0.58503544", "text": "@Override\n\tpublic void einkaufen() {\n\t}", "title": "" }, { "docid": "d06828119af4f719fc9db2eac57f2601", "score": "0.5847024", "text": "@Override\n protected void initialize() {\n\n \n }", "title": "" }, { "docid": "8c4be9114abb8cb7b57dc3c5d34882a8", "score": "0.58239377", "text": "public void mo38117a() {\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "2fda59f727914730e1ccc0c0b05e57bd", "score": "0.5810089", "text": "Constructor() {\r\n\t\t \r\n\t }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5800025", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1260bf70decb91faff8466bae6765ba2", "score": "0.5790187", "text": "private stendhal() {\n\t}", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "f397b517b3f3532ba47ff3ee806bc420", "score": "0.5787092", "text": "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4a5b709a6553621aa4226737a20ba120", "score": "0.5747959", "text": "@Override\n\tpublic void debite() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "7f454c1ee07328138017395e69b0420e", "score": "0.5721452", "text": "public contrustor(){\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2911d3f6b10d531f37ba6cbbb1e4e44a", "score": "0.57142824", "text": "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "8862e414d1049ff417c2327b444db61e", "score": "0.5711723", "text": "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "title": "" }, { "docid": "29251cbd61f58d1440af2e558c6a19bc", "score": "0.57041645", "text": "@Override\n\tprotected void logic() {\n\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "86232e6a9aaa22e4403270ce10de01d3", "score": "0.5696783", "text": "public void mo4359a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.56774884", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "c0ca0277e879a2b84cd3748b428dc4fa", "score": "0.56734604", "text": "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "dca752ff24c887a367479fb49a14a486", "score": "0.56728", "text": "private RepositorioAtendimentoPublicoHBM() {\r\t}", "title": "" }, { "docid": "137850fe8be37a8fdff9b5f1d19f9338", "score": "0.56696945", "text": "@Override\n protected void initialize() \n {\n \n }", "title": "" }, { "docid": "51fb4cf832bd3bdab07f36fa0655aed2", "score": "0.5661323", "text": "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "title": "" }, { "docid": "fb842ef1f250aaba4286c185df305a9b", "score": "0.5657007", "text": "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "cc19c0c7ab1bdc568508b0381e170621", "score": "0.56549734", "text": "@Override\n protected void prot() {\n }", "title": "" }, { "docid": "92ff2215e2946927efe966014fa1b664", "score": "0.5654792", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "title": "" }, { "docid": "289e1db116de136c64eef3293ece7f16", "score": "0.5652974", "text": "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "title": "" }, { "docid": "502b1954008fce4ba895ad7a32b37b97", "score": "0.5650185", "text": "public void mo55254a() {\n }", "title": "" } ]
96a104853d7ddb57ac0b4f29e36960b6
Read synchronous data without sync with server list.
[ { "docid": "15a610da00a8010cbff7a11bf800391b", "score": "0.50836074", "text": "public List<String> readSynchronousDataWithoutSyncWithServer(BearingData bearingData, BearingConfiguration.OperationType operationType) {\n String siteName;\n if (bearingData == null) {\n siteName = \"\";\n } else {\n siteName = bearingData.getSiteMetaData().getSiteName();\n }\n\n switch (operationType) {\n case READ_SITE_LIST:\n return detectSite.getSiteNames();\n case READ_LOC_LIST:\n List<String> locationNames = locationDetector.getLocationNamesFromClusterData(siteName);\n List<String> locationNamesFromCluster = locationDetector.getLocationNames(siteName, BearingConfiguration.Approach.FINGERPRINT);\n locationNamesFromCluster.addAll(locationNames);\n return locationNamesFromCluster;\n default:\n LogAndToastUtil.addLogs(LogAndToastUtil.LOG_STATUS.DEBUG, TAG, \"readSynchronousDataWithoutSyncWithServer: Unsupported read operation\");\n return new ArrayList<>();\n }\n }", "title": "" } ]
[ { "docid": "18e9d29b20cb30810c7e6c42df2b1769", "score": "0.62059224", "text": "List<T> readAll();", "title": "" }, { "docid": "600a45ce1d948c02832980d12220eab0", "score": "0.60782766", "text": "public List<String> readData() {\n ArrayList<String> inputBuffer = new ArrayList<>(receivedData);\n receivedData.clear(); //clear 'buffer'\n return inputBuffer;\n }", "title": "" }, { "docid": "696fbaa4dd276a38abd12b2fe91e7f99", "score": "0.60180116", "text": "public void serverFileReadObjectSync(ServerFileRead read){\r\n\t\tthis.read = read;\t\t\r\n\t}", "title": "" }, { "docid": "4eb8330eac86a964a5d38ebd94b169c0", "score": "0.587161", "text": "private Message readFromServer() {\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\treturn clientInterface.readMessage();\r\n\t\t\t} catch (ConnectionLostException cle) {\r\n\t\t\t\thandleReconnection();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "023c2da264e197c851077123b5580fbd", "score": "0.5862228", "text": "private void startReading()\n\t{\n\t\tthreadRead = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tDatagramPacket packet;\n\t\t\t\tint index;\n\t\t\t\tboolean clientInList;\n\t\t\t\t\n\t\t\t\twhile(true)\n\t\t\t\t{\n\t\t\t\t\t// create packet\n\t\t\t\t\tpacket = new DatagramPacket(new byte[1024], 1024);\n\t\t\t\t\tindex = -1;\n\t\t\t\t\tclientInList = false;\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// read packet\n\t\t\t\t\t\tsocket.receive(packet);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// check if the packet came from someone that is not in the client list and if the list is already full\n\t\t\t\t\t\tfor(int i = 0; i < clients.length; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(clients[i] != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(packet.getAddress().equals(clients[i].address) && packet.getPort() == clients[i].port)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tindex = i;\n\t\t\t\t\t\t\t\t\tclientInList = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(index == -1)\n\t\t\t\t\t\t\t\t\tindex = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// add client\n\t\t\t\t\t\tif(!clientInList && index >= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tclients[index] = new ServerClient(packet.getAddress(), packet.getPort());\n\t\t\t\t\t\t\tserverListener.onClientJoined(index, packet.getData(), packet.getLength());\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(clientInList) // notify\n\t\t\t\t\t\t\tserverListener.onMessageReceived(index, packet.getData(), packet.getLength());\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if client is not in the list and the server is full, just don't respond\n\t\t\t\t\t} catch(IOException ex)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(Thread.currentThread().isInterrupted())\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tthreadRead.start();\n\t}", "title": "" }, { "docid": "5a0994ed6cdc1c1a54280518247d4005", "score": "0.58089864", "text": "public void getMusicData() {\r\n //Create Apache HTTP client\r\n CloseableHttpClient httpClient = HttpClients.createDefault();\r\n\r\n try {\r\n //Build GET request\r\n HttpGet httpGet = new HttpGet(\"http://localhost:\" + httpPortNumber + httpContext + \"?\" + blockNumber);\r\n\r\n //Contact server to request resource\r\n CloseableHttpResponse response = httpClient.execute(httpGet);\r\n try {\r\n //Check response and print it\r\n int status = response.getStatusLine().getStatusCode();\r\n if (status >= 200 && status < 300) {\r\n HttpEntity entity = response.getEntity();\r\n if (entity != null) {\r\n InputStream stream = entity.getContent();\r\n int bytesRead = stream.read(receivingBuffer);\r\n if (CLIENT_DEBUG) {\r\n System.out.println(\"Number of bytes read: \" + bytesRead);\r\n }\r\n audioPlayer.addData(receivingBuffer);\r\n }\r\n }\r\n } finally {\r\n response.close();\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n try {\r\n //Close the client\r\n httpClient.close();\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "fa986d2c1367f21fc257ba3f530f9fa5", "score": "0.5799023", "text": "public Object receiveData() throws IOException{\r\n\t\treturn client.receiveData();\r\n\t}", "title": "" }, { "docid": "97f0d95737462e13503797d381cbdcf2", "score": "0.5727007", "text": "private <T> List<T> runRead(Pipe<T> restPipe, ReadFilter readFilter)\n throws InterruptedException {\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicBoolean hasException = new AtomicBoolean(false);\n final AtomicReference<List<T>> resultRef = new AtomicReference<List<T>>();\n\n restPipe.read(readFilter, new Callback<List<T>>() {\n private static final long serialVersionUID = 1L;\n\n @Override\n public void onSuccess(List<T> data) {\n resultRef.set(data);\n latch.countDown();\n }\n\n @Override\n public void onFailure(Exception e) {\n hasException.set(true);\n Logger.getLogger(LoaderAdapterTest.class.getSimpleName())\n .log(Level.SEVERE, e.getMessage(), e);\n latch.countDown();\n }\n });\n\n latch.await(2, TimeUnit.SECONDS);\n Assert.assertFalse(hasException.get());\n\n return resultRef.get();\n }", "title": "" }, { "docid": "bd1c7ee8414fb1d43ba49d6e3d8b696d", "score": "0.5726522", "text": "@Override\n\tpublic int ReadData(byte[] datas) throws IOException {\n\t\trecvBuffer = ByteBuffer.wrap(datas);\n\t\tint result = clientChannel.read(recvBuffer);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "772aefa627efb5298911a0b0cb1cf69d", "score": "0.5714762", "text": "public List<String> readData(){\n return list;\n }", "title": "" }, { "docid": "dec080a9774487a7b4ec0d5b9c926c3a", "score": "0.56465864", "text": "@Override\n\tpublic List<Cliente> readAll() {\n\t\treturn clientedao.readAll();\n\t}", "title": "" }, { "docid": "75f99f79a613d6ba9a0373249790182d", "score": "0.5576731", "text": "public ArrayList<Object> readAll() {\n ArrayList<Object> out = new ArrayList<>();\n while (true) {\n Object o = read();\n if (o == null)\n return out;\n out.add(o);\n ++id;\n }\n }", "title": "" }, { "docid": "a49b1b57077299ecd385cae5069e1663", "score": "0.55630326", "text": "@Test\n\tpublic void asyncNioHttpGetTest03() {\n\t\tString[] fields = this.host.split(\":\");\n\n\t\ttry (SocketChannel socketChannel = SocketChannel.open(); Selector selector = Selector.open();) {\n\t\t\tsocketChannel.configureBlocking(false);\n\t\t\tsocketChannel.connect(new InetSocketAddress(fields[0], Integer.valueOf(fields[1])));\n\n\t\t\t// write\n\t\t\tif (socketChannel.finishConnect()) { // do connect\n\t\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\t\twrite(socketChannel, this.path, this.host);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// read\n\t\t\tif (socketChannel.isConnected()) {\n\t\t\t\tread(socketChannel);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "d98c714e81b53d02a45d8f678f837438", "score": "0.5560033", "text": "@Override\n\tpublic void fetchDataFromServer() {\n\t\tsuper.fetchDataFromServer();\n\t}", "title": "" }, { "docid": "3acb1e5e71f63f1316f19bd2e2c85d50", "score": "0.55516726", "text": "private void getData() {\n requestQueue.add(getDataFromServer(requestCount));\r\n //Incrementing the request counter\r\n requestCount++;\r\n }", "title": "" }, { "docid": "37232d4c26e05a25940c0b086b138cf1", "score": "0.55483335", "text": "public synchronized void updateReadSide() throws IOException {\n if(available() != 0){ // not empty\n return;\n }\n in = 0;\n out = 0;\n buffer[in++] = 0;\n read();\n }", "title": "" }, { "docid": "a40a2e52c294eed4d524ea12305ed368", "score": "0.5539534", "text": "@SuppressWarnings(\"unchecked\")\n public ArrayList<String> getFilesFromServer() {\n try {\n files = (ArrayList<String>) in.readObject(); //Wait/Get response from server pass into Array list of strings\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return files; //Return the String array list\n }", "title": "" }, { "docid": "4b2a773c602bc48c5b9faca6212c0376", "score": "0.5514232", "text": "public synchronized ByteBuffer[] fetch() {\n // clear previous results\n recvBuf = null;\n stats.clear();\n\n if (servers == null || servers.size() == 0 || requestBuf == null || fetchTimeoutSeconds <= 0) {\n return recvBuf;\n }\n\n ExecutorService executor = Executors.newSingleThreadExecutor();\n MultiFetch multiFetch = new MultiFetch();\n FutureTask<?> task = new FutureTask(multiFetch, null);\n executor.execute(task);\n try {\n task.get(fetchTimeoutSeconds, TimeUnit.SECONDS);\n } catch (InterruptedException ie) {\n // attempt to cancel execution of the task.\n task.cancel(true);\n LOGGER.error(\"Interrupted during fetch\", ie);\n } catch (ExecutionException ee) {\n // attempt to cancel execution of the task.\n task.cancel(true);\n LOGGER.error(\"Exception during fetch\", ee);\n } catch (TimeoutException te) {\n // attempt to cancel execution of the task.\n task.cancel(true);\n LOGGER.error(\"Timeout for fetch\", te);\n }\n\n executor.shutdownNow();\n multiFetch.close();\n return recvBuf;\n }", "title": "" }, { "docid": "160ebbd3430d27b6c4acbfbb939a1b22", "score": "0.55020005", "text": "private void synchronize() {\n int downloadedData = 1;\n long sum = getTimeCounter();\n\n // getting data\n for (Contact c : networkMap){\n try {\n Socket client = new Socket(c.getIp(), c.getPort());\n PrintWriter out = new PrintWriter(client.getOutputStream(), true);\n\n out.println(\"CLK\");\n BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String number = in.readLine();\n\n sum += Long.parseLong(number);\n downloadedData++;\n\n } catch (IOException e) {\n System.err.println(\"[SYN] cannot connect to \" + c);\n }\n }\n\n // math\n long avg = sum/downloadedData;\n long previousValue = getTimeCounter();\n counterOffSet = avg - (System.currentTimeMillis() - startTimeCounter);\n System.out.println(\"[SYN] Previous value: \" + previousValue + \". New value of counter: \" + getTimeCounter() + \".\");\n }", "title": "" }, { "docid": "c4958e61729651a6858097124daec2d5", "score": "0.55008817", "text": "DataConnectors getIncoming();", "title": "" }, { "docid": "d0fb4fbc729fe1bf4a44d440b582ef32", "score": "0.5473172", "text": "private int synchronousRead(byte [] block, int offset, int count) throws IOException\n {\n int bytes_read = 0;\n int bytes_remaining = count;\n int result = 0;\n \n while (bytes_remaining > 0)\n {\n result = _stream.read(block, bytes_read, bytes_remaining);\n if (result < 0)\n {\n return -1;\n }\n bytes_read += result;\n bytes_remaining -= result;\n }\n \n return count;\n }", "title": "" }, { "docid": "80c600a56a1fe4776ba96f1f58fea3b7", "score": "0.54452497", "text": "int read(byte[] array) {\n\t\tint amountRead = 0;\n\n\t\t/* If an accessory is not connected, this request is not valid */\n\t\tif (isConnected() == false) {\n\t\t\t// throw new USBAccessoryManagerException(\n\t\t\t// USB_ACCESSORY_NOT_CONNECTED );\n\t\t\treturn 0;\n\t\t}\n\n\t\t/* if there is no data to read, return 0 instead of blocking */\n\t\tif (array.length == 0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\t/*\n\t\t * Synchronize to the readData object so that the ReadThread doesn't try\n\t\t * to add data to the list while we are accessing it.\n\t\t */\n\t\tsynchronized (readData) {\n\t\t\t/* while we still have data to read */\n\t\t\twhile (true) {\n\t\t\t\t/*\n\t\t\t\t * if there is no data left in the list, exit with the amount\n\t\t\t\t * read already\n\t\t\t\t */\n\t\t\t\tif (readData.size() == 0) {\n\t\t\t\t\treturn amountRead;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * if we have read all of the data that we can store in the\n\t\t\t\t * buffer provided, then exit.\n\t\t\t\t */\n\t\t\t\tif (amountRead == array.length) {\n\t\t\t\t\treturn amountRead;\n\t\t\t\t}\n\n\t\t\t\tif ((array.length - amountRead) >= readData.get(0).length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * If the amount we need to read is larger than or equal to\n\t\t\t\t\t * the data buffer for this node, then copy what is here and\n\t\t\t\t\t * remove it from the list\n\t\t\t\t\t */\n\t\t\t\t\tfor (int i = 0; i < readData.get(0).length; i++) {\n\t\t\t\t\t\tarray[amountRead++] = readData.get(0)[i];\n\t\t\t\t\t}\n\t\t\t\t\treadData.remove(0);\n\t\t\t\t} else {\n\t\t\t\t\t// If the amount we need to read is less than the data\n\t\t\t\t\t// buffer for this node\n\t\t\t\t\tint amountRemoved = 0;\n\n\t\t\t\t\t/* then copy what we need */\n\t\t\t\t\tfor (int i = 0; i < (array.length - amountRead); i++) {\n\t\t\t\t\t\tarray[amountRead++] = readData.get(0)[i];\n\t\t\t\t\t\tamountRemoved++;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* create a new buffer the size of the remaining data */\n\t\t\t\t\tbyte[] newData = new byte[readData.get(0).length\n\t\t\t\t\t\t\t- amountRemoved];\n\n\t\t\t\t\t/* copy the remaining data to that buffer */\n\t\t\t\t\tfor (int i = 0; i < newData.length; i++) {\n\t\t\t\t\t\tnewData[i] = readData.get(0)[i + amountRemoved];\n\t\t\t\t\t}\n\n\t\t\t\t\t/*\n\t\t\t\t\t * remove the old object and add a new object with the\n\t\t\t\t\t * remaining data\n\t\t\t\t\t */\n\t\t\t\t\treadData.remove(0);\n\t\t\t\t\treadData.add(0, newData);\n\n\t\t\t\t\treturn amountRead;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8a833deaa6b5915cbd889496e65008e2", "score": "0.5441442", "text": "@Test\n public void testNonReplicationReads() throws Exception {\n testInputStreams();\n testSeekRandomly();\n testSeek();\n testReadChunkWithByteArray();\n testReadChunkWithByteBuffer();\n testSkip();\n testECSeek();\n }", "title": "" }, { "docid": "e385b8cc198fde47586920379dca4651", "score": "0.542108", "text": "private byte[] readData(int length) {\n int readLength = (int) Math.min(length, meta.size - meta.pointer);\n\n List<HashMap<BlockManagerId, BlockId>> logicBlockList = meta.logicBlockList;\n\n byte[] data = new byte[readLength];\n int blockStartNum = (int) meta.pointer / meta.blockSize;\n int startOffset = (int) meta.pointer % meta.blockSize;\n int iter = 0;\n\n for (int i = blockStartNum; i < logicBlockList.size(); ++i) {\n HashMap<BlockManagerId, BlockId> logicBlockMap = logicBlockList.get(i);\n\n boolean isAvailable = true;\n for (BlockManagerId blockManagerId : logicBlockMap.keySet()) {\n int tempIter = iter;\n\n try {\n IBlockManager blockManager;\n Id blockId;\n if (isClient) {\n BlockManagerRMIId blockManagerRMIId = new BlockManagerRMIId(hostName, port, blockManagerId.getId());\n blockManager = BlockManagerClient.getClient(blockManagerRMIId);\n blockId = new BlockClientId(logicBlockMap.get(blockManagerId).getId());\n } else {\n blockManager = BlockManagerServer.getServer(blockManagerId);\n blockId = logicBlockMap.get(blockManagerId);\n }\n\n Block block = (Block) blockManager.getBlock(blockId);\n byte[] bytes = block.read();\n int startIndex = (i == blockStartNum) ? startOffset : 0;\n for (int j = startIndex; j < bytes.length && tempIter < readLength; ++j) {\n data[tempIter++] = bytes[j];\n }\n isAvailable = true;\n iter = tempIter;\n break;\n } catch (Exception e) {\n isAvailable = false;\n }\n }\n if (!isAvailable)\n throw new ErrorCode(ErrorCode.UNAVAILABLE_LOGIC_BLOCK);\n }\n meta.pointer += readLength;\n return data;\n }", "title": "" }, { "docid": "35887539bcdd3540f6754846c955caf1", "score": "0.53955144", "text": "public void startRead() {\n\t\t//System.out.println(\"START READ: \" + getElementName() + \" - \" + this);\n\t\trwlock.readLock().lock();\n\t}", "title": "" }, { "docid": "0ae6e42b5ea3d406d9cad1b6596641bf", "score": "0.5391339", "text": "@ThreadSafe\n interface GetDataStream extends WindmillStream {\n /** Issues a keyed GetData fetch, blocking until the result is ready. */\n Windmill.KeyedGetDataResponse requestKeyedData(\n String computation, Windmill.KeyedGetDataRequest request);\n\n /** Issues a global GetData fetch, blocking until the result is ready. */\n Windmill.GlobalData requestGlobalData(Windmill.GlobalDataRequest request);\n\n /** Tells windmill processing is ongoing for the given keys. */\n void refreshActiveWork(Map<String, List<Windmill.KeyedGetDataRequest>> active);\n }", "title": "" }, { "docid": "77e0cd1a2f688a1540e1765356dc99f0", "score": "0.5375662", "text": "public boolean isReadPending() {\n return false;\n }", "title": "" }, { "docid": "85347cab6640021dae22f5e92e57df0d", "score": "0.5368378", "text": "long getReads();", "title": "" }, { "docid": "82d42249b8727c7083e444d3d3216484", "score": "0.5337551", "text": "protected boolean readAvailableNonBlocking() throws IOException {\n throw new UnsupportedOperationException();\n }", "title": "" }, { "docid": "43dfa4c8055abf82d720dfbd74ed7036", "score": "0.5335206", "text": "public List<String> readSynchronousDataAfterSyncWithServer(BearingData bearingData, BearingConfiguration.OperationType operationType) {\n String siteName = \"\";\n if (bearingData == null) {\n siteName = \"\";\n } else {\n siteName = bearingData.getSiteMetaData().getSiteName();\n }\n\n switch (operationType) {\n case READ_SITE_LIST:\n return synchronousServerCalls.getAllSitesSyncWithServer(true);\n case READ_LOC_LIST:\n return synchronousServerCalls.getAllLocationsSyncWithServer(siteName, true);\n case READ_SITE_LIST_ON_SERVER:\n return synchronousServerCalls.getAllSitesSyncWithServer(false);\n case READ_LOC_LIST_ON_SERVER:\n return synchronousServerCalls.getAllLocationsSyncWithServer(siteName, false);\n default:\n LogAndToastUtil.addLogs(LogAndToastUtil.LOG_STATUS.DEBUG, TAG, \"readSynchronousDataAfterSyncWithServer: Unsupported operation\");\n return new ArrayList<>();\n }\n\n }", "title": "" }, { "docid": "ceefb6b052fa87c8e112c7e227cc5519", "score": "0.5323839", "text": "private void SyncMastersData(){\n\t\tif(common.isConnected())\n\t\t{\n\t\t\tAsyncMasterWSCall task = new AsyncMasterWSCall();\n\t\t\ttask.execute();\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "1c792a2d61128e8c00080e5ccbeeea90", "score": "0.5318277", "text": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void readData() {\n\t\tObject obj1 = ObjectIO.readObject(Config.getUndoneDownloadPath(mAct));\n\t\tObject obj2 = ObjectIO.readObject(Config.getFinishDownloadPath(mAct));\n\n\t\tmLoadingList = new ArrayList<DocumentItem>();\n\t\tif (obj1 != null && (obj1 instanceof List)) {\n\t\t\tArrayList<DocumentItem> list = (ArrayList<DocumentItem>) obj1;\n\t\t\tfor (DocumentItem mItem : list) {\n\t\t\t\t// System.out.println(\"下载完:\"+mItem);\n\t\t\t\tif (new File(mItem.getAbsPath()).exists()) {\n\t\t\t\t\tmLoadingList.add(mItem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tmFinishList = new ArrayList<DocumentItem>();\n\t\tif (obj2 != null && (obj2 instanceof List)) {\n\t\t\tArrayList<DocumentItem> list = (ArrayList<DocumentItem>) obj2;\n\t\t\tfor (DocumentItem mItem : list) {\n\t\t\t\t// System.out.println(\"下载完:\"+mItem);\n\t\t\t\tif (new File(mItem.getAbsPath()).exists()) {\n\t\t\t\t\tmFinishList.add(mItem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "75dfe3db9940147a0fa7da134b61bae9", "score": "0.53101724", "text": "public synchronized List<T> read()\n\t\t\tthrows Exception, UnexpectedInputException, ParseException, NonTransientResourceException {\n\t\tList<T> items= new ArrayList<T>(readLimit);\n\t\tScrollableResults results = SourceDataManager.getInstance().getScrollableResults();\n\t\tint i=0;\n\t\twhile (i<readLimit) {\n\t\t\tif(results.next()){\n\t\t\t\tT item=this.sourceItemMapper.map(results.get(0));\n\t\t\t\t//System.out.println(\" reading report \"+item);\n\t\t\t\titems.add(item);\n\t\t\t\ti++;\n\t\t\t}else{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn items;\n\t}", "title": "" }, { "docid": "01103e3ee68cc2276aa1cf9c46e989e0", "score": "0.5309864", "text": "public boolean willReadBlock() {\n return false;\n }", "title": "" }, { "docid": "2b6e234356850a5fafeb1e9d39cb4b86", "score": "0.5286987", "text": "public abstract PolledDeviceData read();", "title": "" }, { "docid": "589d9bdb7e763523d262abeba014bbfa", "score": "0.5284936", "text": "public static int readSyncUsingAsync(IO.Readable io, ByteBuffer buffer) throws IOException {\r\n\t\tAsyncSupplier<Integer,IOException> sp = io.readAsync(buffer);\r\n\t\ttry { return sp.blockResult(0).intValue(); }\r\n\t\tcatch (CancelException e) { throw IO.errorCancelled(e); }\r\n\t}", "title": "" }, { "docid": "e6145236025daeed6d32cc84b01f3fd8", "score": "0.52780247", "text": "protected boolean readAvailableBlocking() throws IOException {\n throw new UnsupportedOperationException();\n }", "title": "" }, { "docid": "29d49f2b98af48d4f19f62406535d0e0", "score": "0.52676934", "text": "@Override\n public Future<SourceControlListResponse> listAsync() {\n return this.getClient().getExecutorService().submit(new Callable<SourceControlListResponse>() { \n @Override\n public SourceControlListResponse call() throws Exception {\n return list();\n }\n });\n }", "title": "" }, { "docid": "b46629b5c40024922844c94709afb56a", "score": "0.5258819", "text": "public byte[] downloadRaw() throws IOException {\n\t\tif (data != null)\n\t\t\treturn data;\n\t\t\n\t\t// TODO: sort nodes according to policy/reasonable order, like putting the local\n\t\t// node first\n\t\t\n\t\tString query = \"chunkid=\"+serializer.toUrlSafeString(getChunkId());\n\t\tHttpRequest req = new BasicHttpRequest(\"GET\", getHandlerPath+\"?\"+query);\n\t\t\n\t\tfor (Node n : srcs) {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tHttpResponse res = connector.send(n, req);\n\t\t\t\tdata = EntityUtils.toByteArray(res.getEntity());\n\t\t\t\t\n\t\t\t\t// validate data\n\t\t\t\tif (!new ChunkId(chunkId.getKey(), data, hashAlgos).equals(chunkId)) {\n\t\t\t\t\tdata = null;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\treturn data;\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// nothing to do, continue to the next node\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tthrow new IOException(\"could not find any suitable node to download\");\n\t}", "title": "" }, { "docid": "149a56877def30726b5c3ab2418bb15c", "score": "0.52587664", "text": "@Override\n\tpublic void empoweredRead() {\n\t}", "title": "" }, { "docid": "8bf1dc958a39605d2a7a65f0e34ddb4b", "score": "0.525674", "text": "void sync();", "title": "" }, { "docid": "8bf1dc958a39605d2a7a65f0e34ddb4b", "score": "0.525674", "text": "void sync();", "title": "" }, { "docid": "5cccbea6939b512734f5656ec67f2792", "score": "0.52552783", "text": "public void lockRead() throws PDFNetException {\n/* 2384 */ LockRead(this.impl);\n/* */ }", "title": "" }, { "docid": "d51fbb78a6c6f2a9d3b47ccaee6523fb", "score": "0.5246275", "text": "private void handleRealTimeData(Long index) {\n String realTimeUri = serverUri + protonKeyUri +\n \"/?wait=true&recursive=true\";\n if (index != null) {\n realTimeUri += \"&waitIndex=\" + index;\n }\n HttpGet request = new HttpGet(URI.create(realTimeUri));\n log.info(REAL_TIME_PROCESSING, realTimeUri);\n // Starts real time executor thread\n executorRealTimeService.execute(new Runnable() {\n public void run() {\n try {\n httpClient.execute(\n request, new FutureCallback<HttpResponse>() {\n\n @Override\n public void completed(HttpResponse result) {\n StatusLine statusLine =\n result.getStatusLine();\n int statusCode = statusLine.getStatusCode();\n if (statusCode ==\n STATUS_CODE &&\n result.getEntity() != null) {\n try {\n String json = EntityUtils\n .toString(result.getEntity());\n GluonConfig response =\n processRealTimeResponse(json);\n // Recursive call to handle\n // real time data\n handleRealTimeData(\n response.modifiedIndex + 1);\n } catch (IOException e) {\n failed(e);\n }\n } else {\n log.error(E_REAL_TIME_PROCESSING);\n }\n }\n\n @Override\n public void cancelled() {\n log.debug(\"Nothing to do with \" +\n \"this overridden method\");\n }\n\n @Override\n public void failed(Exception e) {\n log.error(E_REAL_TIME_PROCESSING,\n e.getMessage());\n }\n });\n } catch (Exception e) {\n log.error(E_REAL_TIME_PROCESSING, e.getMessage());\n }\n }\n });\n }", "title": "" }, { "docid": "3d240d98baa09049b60bc186170a1361", "score": "0.5243098", "text": "public List<Contest> readAll() throws MessageException, Exception;", "title": "" }, { "docid": "7b85902ac2697280d0cfcec2c94223db", "score": "0.5238928", "text": "public List<FileInfo> obtainSharedFileList() throws RejectedException, IOException, ClassNotFoundException {\n /*FOR DEBUGGING ONLY start*/\n// List<FileInfo> list = new ArrayList<FileInfo>();\n// for (File f : mySharedFiles.values()) {\n//// try {\n// list.add(new FileInfo(/*InetAddress.getLocalHost().getHostAddress()*/\"localhost\", f));\n//// } catch (UnknownHostException ex) {\n//// Logger.getLogger(Client.class.getName()).log(Level.SEVERE, null, ex);\n//// }\n// }\n// foundSharedFiles = list;\n /*FOR DEBUGGING ONLY end*/\n BufferedWriter serverOut = null;\n BufferedReader serverIn = null;\n ObjectInputStream listIn = null;\n// try {\n serverOut = new BufferedWriter(\n new OutputStreamWriter(socketToServer.getOutputStream()));\n serverIn = new BufferedReader(\n new InputStreamReader(socketToServer.getInputStream()));\n\n serverOut.write(FishMessageType.CLIENT_FIND_ALL.name());\n serverOut.newLine();\n serverOut.flush();\n\n// String response = serverIn.readLine();\n// if ((response == null)\n// || (response.isEmpty())\n// || (FishMessageType.SERVER_OK != FishMessageType.valueOf(response))) {\n// throw new RejectedException(\"Server did not respond with OK\");\n// }\n\n listIn = new ObjectInputStream(socketToServer.getInputStream());\n foundSharedFiles = (List<FileInfo>) listIn.readObject();\n //System.out.println(Integer.toString(socketToServer.getInputStream().available()));\n\n out.printf(\"%d files were found.\\n\\n\", foundSharedFiles.size());\n// } catch (ClassNotFoundException ex) {\n// Logger.getLogger(FishClient.class.getName()).log(Level.SEVERE, null, ex);\n// } catch (UnknownHostException ex) {\n// out.println(\"ERROR: Host not found.\");\n// } catch (IOException ex) {\n// out.println(\"ERROR: \" + ex.getMessage());\n// } finally {\n//// if (listIn != null) {\n//// listIn.close();\n//// }\n//// if (serverIn != null) {\n//// serverIn.close();\n//// }\n//// if (serverOut != null) {\n//// serverOut.close();\n//// }\n// }\n return foundSharedFiles;\n }", "title": "" }, { "docid": "2995b951f9b882b8695e14c9074b26b8", "score": "0.5220938", "text": "protected void startAsyncLoadOsddData() {\n String url = getOsddSearchLink();\n startAsyncLoadOsddData(url);\n }", "title": "" }, { "docid": "25ff47e2af60a5e1ccb4d69ec232046d", "score": "0.5216233", "text": "public synchronized void getReadLock(int uniqueID, ArrayList<StorageServerInfo> regServers, String filepath, boolean file) throws InterruptedException,IOException {\r\n\r\n // This variable helps track the number of times the request has come for this file node.\r\n this.readNumber += 1;\r\n\r\n // This portion of code is responsible for the replication of file when the number of read requests for that\r\n // file increases to more than 20. All of this happens before the file is locked for shared access.\r\n if (this.readNumber > 20 && file == true)\r\n {\r\n int n = rand.nextInt(regServers.size());\r\n\r\n // We need to find the actual storage server which the file is present in. For this,\r\n // I iterate through all the registered servers to find the first server with the occurrence of the file.\r\n String server_ip = \"\";\r\n int server_port = 0;\r\n serverloop:\r\n for (StorageServerInfo s : regServers) {\r\n for (String filename : s.getFiles()) {\r\n if (filename.equals(filepath)) {\r\n server_ip = s.getStorage_ip();\r\n server_port = s.getClient_port();\r\n break serverloop;\r\n }\r\n }\r\n }\r\n\r\n // Now apart from this server, we need to choose at random, a server whose client port does not equal\r\n // the file server's client port. This is the Server to replicate the file to.\r\n while(regServers.get(n).getClient_port() == server_port)\r\n {\r\n n = rand.nextInt(regServers.size());\r\n }\r\n\r\n // Create my object for calling Storage Copy and sending the request to the randomly selected file server\r\n // to go ahead and replicate the file onto itself from the server who's details are given in the\r\n // body of the HTTP Request.\r\n Map<String, Object> req = new HashMap<String, Object>();\r\n req.put(\"path\", filepath);\r\n req.put(\"server_ip\",server_ip);\r\n req.put(\"server_port\",server_port);\r\n HttpResponse<String> response = this.getResponse(\"/storage_copy\", \"localhost\", regServers.get(n).getCommand_port(), req);\r\n\r\n // Adding the random servers port to the Set corresponding to the filepath. This keeps track of where all\r\n // the files have been replicated. Resetting the readnumber to 0 so that duplicate replications don't keep\r\n // happening.\r\n this.add(filepath, regServers.get(n).getCommand_port());\r\n this.readNumber = 0;\r\n }\r\n\r\n // Here, the request is added into the queue, in which it will remain until there are no more writeLocks and\r\n // the head of the queue is the request ID of itself.\r\n this.queue.add(uniqueID);\r\n while (writeLocks > 0 || !(this.queue.peek() == uniqueID)) {\r\n wait();\r\n }\r\n\r\n // Locking for shared access and removing the request ID from the queue to signify that the lock for the\r\n // file node has been given to that particular request from the client.\r\n readLocks += 1;\r\n this.queue.remove();\r\n }", "title": "" }, { "docid": "9e755158c714f6cdd3a5bcb1c7a50b1e", "score": "0.52160156", "text": "List<UserInfo> read();", "title": "" }, { "docid": "57b0c96dafef1633c84763a06afcf945", "score": "0.5214108", "text": "public interface DataReader {\n\n /**\n * Obtem todos os dados disponiveis\n * @return Lista contendo todos os dados disponiveis\n */\n List<UserInfo> read();\n\n /**\n * Obtem os dados disponiveis dentro de um intervalo\n * @param startIndex Inicio do intervalo\n * @param endIndex Fim do intervalo\n * @return Lista contendo todos os dados disponiveis dentro do intervalo especificado\n */\n List<UserInfo> read(int startIndex, int endIndex);\n}", "title": "" }, { "docid": "578be7f9a50d301de1b2e4f8924498db", "score": "0.5202627", "text": "public synchronized void lockRead() {\n\t\twhile (!tryLockRead()) {\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t}\n\t\t\tcatch (InterruptedException ex) {\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "694cb6e3f0b7f33badcef260b7e2d46f", "score": "0.52005064", "text": "void readData() throws IOException;", "title": "" }, { "docid": "9a25b914bcc2b12d94b7a251e09b8cb2", "score": "0.5198631", "text": "private ArrayList<Object> readData(String filePath) {\r\n return fileHandler.read(filePath);\r\n }", "title": "" }, { "docid": "f6d5fffd42d83df093913eaa8149a02c", "score": "0.5197693", "text": "@Override\n\tpublic List<Orderline> readAll() {\n\t\tList<Orderline> orderline = orderlineService.readAll();\n\t\tfor(Orderline orderline_loop: orderline) {\n\t\t\tLOGGER.info(orderline_loop.toString());\n\t\t}\n\t\treturn orderline;\n\t}", "title": "" }, { "docid": "e114ad7a69a0248bab88b23b5f8a1fb1", "score": "0.5197641", "text": "private int blockRead() {\n StructPollfd[] pollfds = new StructPollfd[2];\n\n // readRawFd will watch whether data is available on the raw channel.\n StructPollfd readRawFd = new StructPollfd();\n pollfds[0] = readRawFd;\n readRawFd.fd = parcelFD.getFileDescriptor();\n readRawFd.events = (short) (OsConstants.POLLIN | OsConstants.POLLHUP);\n\n // syncFd will watch whether any exit signal.\n StructPollfd syncFd = new StructPollfd();\n pollfds[1] = syncFd;\n syncFd.fd = syncPipes[0];\n syncFd.events = (short) OsConstants.POLLIN;\n\n try {\n int ret = Os.poll(pollfds, -1);\n\n if (ret > 0) {\n if (syncFd.revents == OsConstants.POLLIN) {\n // POLLIN on the syncFd as signal to exit.\n byte[] buffer = new byte[1];\n new FileInputStream(syncPipes[0]).read(buffer, 0, 1);\n return POLL_TYPE_EXIT;\n } else if ((readRawFd.revents & OsConstants.POLLHUP) != 0) {\n // RAW driver existing.\n return POLL_TYPE_EXIT;\n } else if ((readRawFd.revents & OsConstants.POLLIN) != 0) {\n // Finally data ready to read.\n return POLL_TYPE_READ_DATA;\n } else {\n Log.d(Constants.TAG, \"unexpected events in blockRead rawEvents:\" + readRawFd.revents +\n \" syncEvents:\" + syncFd.revents);\n // Unexcpected error.\n return POLL_TYPE_EXIT;\n }\n } else {\n // Error\n Log.d(Constants.TAG, \"Error in blockRead: \" + ret);\n }\n } catch (ErrnoException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return POLL_TYPE_EXIT;\n }", "title": "" }, { "docid": "24114531bd60fff9d3676f47a03bca77", "score": "0.5184764", "text": "public void getListFromServer() throws FoodNetworkException {\n\n System.out.println(System.currentTimeMillis());\n FoodList temp;\n if(foodManager.getLastModified() < 0){\n temp = new FoodList(System.currentTimeMillis(), 0);\n }else {\n temp = new FoodList(System.currentTimeMillis(), foodManager.getLastModified());\n }\n List<FoodItem> tempList = foodManager.getFoodItems();\n for(FoodItem i : tempList){\n temp.addFoodItem(i);\n }\n temp.encode(out);\n logSentMessage(temp);\n }", "title": "" }, { "docid": "f9a74909ed4a68129af1d6523f2a6fa0", "score": "0.5181457", "text": "private Iterable<String> read() {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "title": "" }, { "docid": "91e37a406d0c3197d52bafd5206a14c3", "score": "0.51810485", "text": "public void retrieveListClient() throws UnknownHostException {\n Boolean retryRequest = false;\n\n // Create JSON Object for listClient request\n JSONObject listClientRequest = new JSONObject();\n listClientRequest.put(\"method\", \"client_address\");\n\n do {\n // Get JSON Object as join response from server\n JSONObject listClientResponse = null;\n try {\n listClientResponse = new JSONObject(communicator.sendRequestAndGetResponse(listClientRequest));\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Get status from response\n String status = listClientResponse.get(\"status\").toString();\n\n // Check status response from server\n if (status == null) {\n ui.displayFailedResponse(\"Retrieve List Client\", \"connection failure: error response from server\");\n retryRequest = true;\n } else if(status.equals(\"ok\")){\n ui.displaySuccessfulResponse(\"Retrieve List Client\");\n\n //create new listPlayer\n List<ClientInfo> listPlayer2 = new LinkedList<ClientInfo>();\n\n // Iterating client's array\n JSONArray slideContent = (JSONArray) listClientResponse.get(\"clients\");\n Iterator i = slideContent.iterator();\n\n //TODO debug this\n while (i.hasNext()) {\n JSONObject clientJSON = (JSONObject) i.next();\n\n // Add client to list Player\n listPlayer2.add(new ClientInfo(\n Integer.parseInt (clientJSON.get(\"player_id\").toString()),\n Integer.parseInt (clientJSON.get(\"is_alive\").toString()),\n getByName((String)clientJSON.get(\"address\")),\n Integer.parseInt (clientJSON.get(\"port\").toString()),\n (String)clientJSON.get(\"username\")\n ));\n }\n\n // Cari apakah ada player terbunuh\n for (ClientInfo newClientInfo : listPlayer2){\n for (ClientInfo oldClientInfo : listPlayer){\n if (newClientInfo.getPlayerId() == oldClientInfo.getPlayerId()){\n if (oldClientInfo.getIsAlive()==1 && newClientInfo.getIsAlive()==0){\n ui.displayPlayerKilled(newClientInfo);\n if (newClientInfo.getPlayerId() == playerInfo.getPlayerId()){\n playerInfo.setIsAlive(0);\n }\n }\n }\n }\n }\n\n // Clear list player\n listPlayer.clear();\n //copy listPlayer\n for (ClientInfo newClientInfo: listPlayer2){\n listPlayer.add(newClientInfo);\n }\n listPlayer2.clear();\n\n ui.displayListClient(listPlayer);\n\n } else if(status.equals(\"fail\")) {\n ui.displayFailedResponse(\"Retrieve List Client\", \"connection failure: error response from server\");\n retryRequest = true;\n } else if(status.equals(\"error\")){\n ui.displayErrorResponse(\"Retrieve List Client\", \"error: \" + listClientResponse.get(\"description\"));\n retryRequest = true;\n } else {\n ui.displayErrorResponse(\"Retrieve List Client\", \"error: error is undetermined\");\n retryRequest = true;\n }\n }while (retryRequest); // while there is error or failed response, try send request again\n }", "title": "" }, { "docid": "a6d5a6486d0627947fc575c91406de5c", "score": "0.51797557", "text": "private void getDataFromServer() {\n progressDialog.show();\n getDataPresenter.getDataFromSever();\n }", "title": "" }, { "docid": "abec10895da4e3482e80f516718bdfe1", "score": "0.51769537", "text": "private void readInputStream() {\n\n while (connected) {\n try {\n Object readObject = inputStream.readObject();\n server.setSoTimeout(15000);\n Message readMessage = (Message) readObject;\n\n if (readMessage.getMethod().equals(\"shutdownClient\")) {\n connected = false;\n client.disconnect();\n } else if (readMessage.getMethod().equals(\"notifyOtherPlayerDisconnection\")) {\n client.update(readMessage);\n } else {\n try {\n receivedObjectsQueue.put(readObject);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n } catch (SocketTimeoutException te) {\n connected = false;\n Message notifyDisconnection = new Message(\"notifyOtherPlayerDisconnection\", \"YOU\");\n client.update(notifyDisconnection);\n } catch (IOException e) {\n System.out.println(\"\\n\\nServer has died\\n\");\n connected = false;\n System.exit(1);\n } catch (Exception e) {\n System.out.println(\"\\n\\nAn error occurred\\n\\n\");\n e.printStackTrace();\n System.exit(1);\n }\n }\n }", "title": "" }, { "docid": "01b9e5c3e99ff58f9554835a31dd87fb", "score": "0.5174254", "text": "public byte[] syncRead(long aId, long aAddress, long aLength)\n {\n SyncReadLinnCoUkFlash1 sync = new SyncReadLinnCoUkFlash1(this);\n beginRead(aId, aAddress, aLength, sync.getListener());\n sync.waitToComplete();\n sync.reportError();\n\n return sync.getBuffer();\n }", "title": "" }, { "docid": "22400c69bdd372d281245b0b98fb69e5", "score": "0.51710266", "text": "private void readLock() {\n lock.readLock().lock();\n }", "title": "" }, { "docid": "4a1cb1cd6dc7acd3afd22929e6cafe51", "score": "0.5169136", "text": "private static void testToListBlocking() {\r\n\t\tList<Integer> o = Observable\r\n\t\t\t\t.just(63, 5, 17, 9, 212, 34)\r\n\t\t\t\t.toList()\r\n\t\t\t\t.toBlocking()\r\n\t\t\t\t.single();\r\n\r\n\t\tfor(Iterator<Integer> i = o.iterator();i.hasNext();) {\r\n\t\t\tSystem.out.println(\"Blocking Single: \" + i.next());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7461e94635f016e2c3f43f67a796b83a", "score": "0.5163372", "text": "@Override\n public List<Orders> readAll() {\n \tList<Orders> orders = orderDAO.readAll();\n \torders.parallelStream().forEach(LOGGER::info);\n \n\t\treturn orders;\n \t\n }", "title": "" }, { "docid": "02a3a6046e52bfa5c1e835d1098c9416", "score": "0.51631457", "text": "boolean getNontransactionalRead();", "title": "" }, { "docid": "0c17ac2947ca9742975d9d49aafe1998", "score": "0.51446754", "text": "private List<String> loadRawDataFromWeb()\n throws IOException\n {\n List<String> ret = new ArrayList<String>();\n System.setProperty(\"http.agent\", \"Chrome\");\n URL url = new URL(URL_TO_DATA);\n BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));\n String inputLine; \n while ((inputLine = in.readLine()) != null)\n {\n ret.add(inputLine);\n }\n in.close();\n return ret;\n }", "title": "" }, { "docid": "ddbe9b9c6ee851efe87ca608640b7631", "score": "0.5143078", "text": "public boolean hasDataToRead() {\n return true;\n }", "title": "" }, { "docid": "483dd171031d99f38f3daaaefa14131e", "score": "0.5136273", "text": "@WorkerThread\n public List<String> getAll() {\n open();\n String serializedData = null;\n List<String> allData = new ArrayList<>();\n Cursor cursor = database.query(TABLE_NAME, allColumns, null, null, null, null, null);\n if (cursor.moveToFirst()) {\n do {\n serializedData = cursorToData(cursor);\n allData.add(serializedData);\n } while (cursor.moveToNext());\n }\n // make sure to close the cursor\n cursor.close();\n close();\n return allData;\n }", "title": "" }, { "docid": "db5467af00f60cd5b9b5eebf7136766a", "score": "0.5135758", "text": "void updateReadAllItems();", "title": "" }, { "docid": "ac7369cd5d607cc8567d8038f05177b1", "score": "0.51197606", "text": "@Override \n\tpublic synchronized String receiveALine() throws Exception {\n \t\tString result = \"no data\";\n \t\twhile( list.size() == 0 ){\n// \t\t\tprintln(\"list empty. I'll wait\" );\n \t\t\twait();\n \t\t} \n\t\tresult = list.remove(0);\n//\t\tSystem.out.println(\" SerialPortConnSupport receiveALine result= \" + result);\n\t\treturn result;\n \t}", "title": "" }, { "docid": "f7a309f6bf7e6e85844073492fc9b11e", "score": "0.5119406", "text": "@Override\n\t@Command\n\tpublic String list() throws IOException {\n\n\t\tString packet = \"!list\";\n\t\tbyte[] buffer = packet.getBytes();\n\t\tDatagramPacket request = new DatagramPacket(buffer, buffer.length, InetAddress.getByName(host), udpPort);\n\t\tdatagramSocket.send(request);\n\n\t\tudpListener = new UdpListener(datagramSocket, userResponseStream, threadPool);\n\t\tthreadPool.submit(udpListener);\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "edcb94ec755c4c596feddffb32874029", "score": "0.5100915", "text": "@Override\n public String readLine() throws IOException {\n waitReady();\n return super.readLine();\n }", "title": "" }, { "docid": "14c9028bfdc245aaa85363e7c47742e6", "score": "0.5098278", "text": "public static int readFullySyncUsingAsync(IO.Readable io, ByteBuffer buffer) throws IOException {\r\n\t\tAsyncSupplier<Integer,IOException> sp = io.readFullyAsync(buffer);\r\n\t\ttry { return sp.blockResult(0).intValue(); }\r\n\t\tcatch (CancelException e) { throw IO.errorCancelled(e); }\r\n\t}", "title": "" }, { "docid": "a77417f46e025a92dd0ec873eacd6aa7", "score": "0.50967485", "text": "public synchronized SerializableLiteGame readSerializableLG() {\n while ( !updateLG ){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n updateLG = false;\n SerializableLiteGame result = messageHandler.getLiteGameFromServer();\n messageHandler.setLGRead(false);\n return result;\n }", "title": "" }, { "docid": "c31b2fa7e16374b4b319006251f231ea", "score": "0.50899106", "text": "private void getData() {\n //Adding the method to the queue by calling the method getDataFromServer\n requestQueue.add(getDataFromServer(requestCount));\n //Incrementing the request counter\n requestCount++;\n }", "title": "" }, { "docid": "420be21415d02647d5ec7cb8b12f6619", "score": "0.50874287", "text": "private void read() {\n DataDiri[] list = appDatabase.dao().getData();\n // TODO 2: Tampilin Databse\n rc.setLayoutManager(new LinearLayoutManager(this));\n DataDiriAdapater dataDiriAdapater = new DataDiriAdapater(list, this);\n rc.setAdapter(dataDiriAdapater);\n }", "title": "" }, { "docid": "59a8a2fd6299c3200957135c5292ed2a", "score": "0.5086876", "text": "public void readDataWithAsynchronousResponse(RequestReadEvent requestReadEvent) {\n final UUID requestID = UUID.fromString(requestReadEvent.getRequestID());\n final String siteName = requestReadEvent.getSiteName();\n\n switch (requestReadEvent.getFetchRequest()) {\n case ALL_SITES_LOCAL:\n readSiteNames(requestID);\n break;\n case ALL_LOCATIONS_LOCAL:\n readLocationNames(requestID, siteName);\n break;\n case ALL_SITES_SYNC_WITH_SERVER:\n getAllSiteNamesAfterSyncWithServer();\n break;\n case ALL_LOCATIONS_SYNC_WITH_SERVER:\n getAllLocationNamesAfterSyncWithServer(siteName);\n break;\n case ALL_SITES_FROM_SERVER:\n getAllSiteNamesOnlyFromServer();\n break;\n case ALL_LOCATIONS_FROM_SERVER:\n getAllLocationNamesOnlyFromServer(siteName);\n break;\n default:\n LogAndToastUtil.addLogs(LogAndToastUtil.LOG_STATUS.DEBUG, TAG, \"readDataWithAsynchronousResponse: Unsupported read Operation\");\n }\n\n }", "title": "" }, { "docid": "b83dfa4ac5e377f471627b5f7c3519f7", "score": "0.5083934", "text": "private void readFromProcess() {\n int bytesAvailable = mByteQueue.getBytesAvailable();\n int bytesToRead = Math.min(bytesAvailable, mReceiveBuffer.length);\n try {\n int bytesRead = mByteQueue.read(mReceiveBuffer, 0, bytesToRead);\n mEmulator.append(mReceiveBuffer, 0, bytesRead);\n } catch (InterruptedException e) {\n }\n\n if (mNotify != null) {\n mNotify.onUpdate();\n }\n }", "title": "" }, { "docid": "7e67a9147cc98fe2afbb05820202308f", "score": "0.5082836", "text": "int read(int fd, long[] values, int size);", "title": "" }, { "docid": "e22369ee119815c8c1f3d6cce1260234", "score": "0.5080784", "text": "public static int readSyncUsingAsync(IO.Readable.Seekable io, long pos, ByteBuffer buffer) throws IOException {\r\n\t\tAsyncSupplier<Integer,IOException> sp = io.readAsync(pos, buffer);\r\n\t\ttry { return sp.blockResult(0).intValue(); }\r\n\t\tcatch (CancelException e) { throw IO.errorCancelled(e); }\r\n\t}", "title": "" }, { "docid": "2ec70b4cd921e060ee3fd2cb53e01c80", "score": "0.5072792", "text": "@Override\n public int read() throws IOException {\n try {\n return super.read();\n } catch (IOException e) {\n LOG.warn(\"Read failed, possibly a stale connection. Will re-attempt.\", e);\n // If the stream has been idle for a while, then Object Storage LB closes the connection causing an IOException\n // on the client side. Close the current stream and try again.\n FSStreamUtils.closeQuietly(super.getSourceInputStream());\n super.setSourceInputStream(null);\n return super.read();\n }\n }", "title": "" }, { "docid": "e1981a625d05abffc95b6941b66dd33d", "score": "0.50699574", "text": "private void getContactsFromServer() {\n communication.getContacts(db.getCurrentID());\n\n }", "title": "" }, { "docid": "0f73374d45cdcb364c87d5ad9b0f3538", "score": "0.50690377", "text": "@Override\n public void run() {\n ServerDataEvent dataEvent;\n ServerBoundTransaction incoming;\n ClientBoundTransaction outgoing;\n\n while (true) {\n // Wait for data to become available\n synchronized (queue) {\n while (queue.isEmpty()) {\n try {\n queue.wait();\n } catch (InterruptedException e) {\n }\n }\n dataEvent = (ServerDataEvent) queue.remove(0);\n incoming = (ServerBoundTransaction) SerializeUtils.deserialize(dataEvent.data);\n outgoing = null;\n }\n// System.out.println(incoming.command.toString() + \" - \"\n// + Thread.currentThread().getName()); // debugging\n\n switch (incoming.command) {\n case SORTED_GET:\n outgoing = this.getSortedData(incoming);\n break;\n case SORTED_SEND:\n outgoing = this.saveSortedData(incoming);\n break;\n case UNSORTED_GET:\n outgoing = this.sendUnsortedData(incoming);\n break;\n case UNSORTED_SEND:\n outgoing = this.saveUnsortedData(incoming);\n break;\n case UNSORTED_STATUS_RESET:\n outgoing = this.resetUnsortedData(incoming, dataEvent);\n break;\n case UNSORTED_UPDATE_SEND:\n outgoing = this.updateUnsortedData(incoming);\n break;\n case UNSORTED_DISCARD:\n outgoing = this.discardUnsortedData(incoming);\n break;\n case UPDATE_REQUEST_SEND:\n outgoing = this.saveDataRequest(incoming);\n break;\n case UPDATE_REQUEST_GET:\n outgoing = this.sendDataRequests(incoming);\n break;\n case UNSORTED_GET_ID:\n outgoing = this.sendDataItem(incoming);\n break;\n case UNSORTED_GET_SOURCE:\n outgoing = this.sendSentData(incoming);\n break;\n case TASK_SEND:\n outgoing = this.sendTask(incoming);\n break;\n case TASK_RESEND:\n outgoing = this.resendTask(incoming);\n break;\n case PLAN_SEND_NEW:\n outgoing = this.saveNewPlan(incoming);\n break;\n case PLAN_APPLY:\n outgoing = this.applyPlan(incoming);\n break;\n case USERS_SIGN_IN:\n outgoing = this.getSigninUser(incoming);\n break;\n case TASK_UPDATE:\n outgoing = this.updateTask(incoming);\n break;\n case TASKS_GET:\n outgoing = this.getTasks(incoming);\n break;\n case PLAN_SEARCH:\n outgoing = this.searchPlans(incoming);\n break;\n case USERS_GET_SERVICEUSERS:\n outgoing = this.getServiceUsers(incoming);\n break;\n case NEWSITEM_SEND:\n outgoing = this.saveNewsItem(incoming);\n break;\n case NEWSITEM_UPDATE:\n outgoing = this.updateNewsItem(incoming);\n break;\n case NEWSITEMS_GET:\n outgoing = this.getNewsItems(incoming);\n break;\n case SITUATIONS_GET:\n outgoing = this.getSituations(incoming);\n break;\n case USERS_REGISTER:\n outgoing = this.registerUser(incoming, dataEvent);\n break;\n case USERS_UNSORTED_SUBSCRIBE:\n outgoing = this.subscribeUnsorted(incoming, dataEvent);\n break;\n case USERS_UNSORTED_UNSUBSCRIBE:\n outgoing = this.unsubscribeUnsorted(incoming, dataEvent);\n break;\n case UNSORTED_STATUS_UPDATE:\n outgoing = this.updateUnsortedStatus(incoming);\n break;\n default:\n outgoing = new ClientBoundTransaction(incoming);\n outgoing.result = ConnState.COMMAND_FAIL;\n break;\n }\n\n // Return output to sender\n dataEvent.data = SerializeUtils.serialize(outgoing);\n dataEvent.server.send(dataEvent.socket, dataEvent.data);\n }\n }", "title": "" }, { "docid": "e857e1c7eee9eb742af3bbdfc5581a2c", "score": "0.5068308", "text": "@JavascriptInterface\n\tpublic byte[] read_data() {\n\t\tbyte[] bytesRead = null;\n\t\ttry {\n\t\t\tByteArrayOutputStream buf = new ByteArrayOutputStream();\n\t\t\tint b;\n\t\t\twhile ((b = finalSocket.getInputStream().read()) != -1) {\n\t\t\t\tif (b == '>')\n\t\t\t\t\tbreak;\n\t\t\t\tbuf.write(b);\n\t\t\t}\n\t\t\tbytesRead = buf.toByteArray();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn bytesRead;\n }", "title": "" }, { "docid": "a3162d0fff7a1508acde458d938d2e52", "score": "0.5066765", "text": "public void run() {\n long t1 = System.currentTimeMillis();\n\n int numTotalServers = servers.size();\n stats.setNumTotalServers(numTotalServers);\n\n // buffer for receiving response from servers\n recvBuf = new ByteBuffer[numTotalServers];\n // buffer for sending request\n ByteBuffer[] sendBuf = new ByteBuffer[numTotalServers];\n long[] numBytesRead = new long[numTotalServers];\n int[] frameSize = new int[numTotalServers];\n boolean[] hasReadFrameSize = new boolean[numTotalServers];\n\n try {\n selector = Selector.open();\n } catch (IOException ioe) {\n LOGGER.error(\"Selector opens error\", ioe);\n return;\n }\n\n for (int i = 0; i < numTotalServers; i++) {\n // create buffer to send request to server.\n sendBuf[i] = requestBuf.duplicate();\n // create buffer to read response's frame size from server\n recvBuf[i] = ByteBuffer.allocate(4);\n stats.incTotalRecvBufBytes(4);\n\n InetSocketAddress server = servers.get(i);\n SocketChannel s = null;\n SelectionKey key = null;\n try {\n s = SocketChannel.open();\n s.configureBlocking(false);\n // now this method is non-blocking\n s.connect(server);\n key = s.register(selector, s.validOps());\n // attach index of the key\n key.attach(i);\n } catch (Exception e) {\n stats.incNumConnectErrorServers();\n LOGGER.error(\"Set up socket to server {} error\", server, e);\n\n // free resource\n if (s != null) {\n try {\n s.close();\n } catch (Exception ex) {\n LOGGER.error(\"failed to free up socket\", ex);\n }\n }\n if (key != null) {\n key.cancel();\n }\n }\n }\n\n // wait for events\n while (stats.getNumReadCompletedServers() + stats.getNumConnectErrorServers()\n < stats.getNumTotalServers()) {\n // if the thread is interrupted (e.g., task is cancelled)\n if (Thread.currentThread().isInterrupted()) {\n return;\n }\n\n try {\n selector.select();\n } catch (Exception e) {\n LOGGER.error(\"Selector selects error\", e);\n continue;\n }\n\n Iterator<SelectionKey> it = selector.selectedKeys().iterator();\n while (it.hasNext()) {\n SelectionKey selKey = it.next();\n it.remove();\n\n // get previously attached index\n int index = (Integer) selKey.attachment();\n\n if (selKey.isValid() && selKey.isConnectable()) {\n // if this socket throws an exception (e.g., connection refused),\n // print error msg and skip it.\n try {\n SocketChannel sChannel = (SocketChannel) selKey.channel();\n sChannel.finishConnect();\n } catch (Exception e) {\n stats.incNumConnectErrorServers();\n LOGGER.error(\"Socket {} connects to server {} error\", index, servers.get(index), e);\n }\n }\n\n if (selKey.isValid() && selKey.isWritable() && sendBuf[index].hasRemaining()) {\n // if this socket throws an exception, print error msg and\n // skip it.\n try {\n SocketChannel sChannel = (SocketChannel) selKey.channel();\n sChannel.write(sendBuf[index]);\n } catch (Exception e) {\n LOGGER.error(\"Socket {} writes to server {} error\", index, servers.get(index), e);\n }\n }\n\n if (selKey.isValid() && selKey.isReadable()) {\n // if this socket throws an exception, print error msg and\n // skip it.\n try {\n SocketChannel sChannel = (SocketChannel) selKey.channel();\n int bytesRead = sChannel.read(recvBuf[index]);\n\n if (bytesRead > 0) {\n numBytesRead[index] += bytesRead;\n\n if (!hasReadFrameSize[index] && recvBuf[index].remaining() == 0) {\n // if the frame size has been read completely, then prepare\n // to read the actual frame.\n frameSize[index] = recvBuf[index].getInt(0);\n\n if (frameSize[index] <= 0) {\n stats.incNumInvalidFrameSize();\n LOGGER.error(\n \"Read an invalid frame size {} from {}. Does the server use TFramedTransport?\",\n frameSize[index],\n servers.get(index));\n sChannel.close();\n continue;\n }\n\n if (frameSize[index] + 4 > stats.getMaxResponseBytes()) {\n stats.setMaxResponseBytes(frameSize[index] + 4);\n }\n\n if (frameSize[index] + 4 > maxRecvBufBytesPerServer) {\n stats.incNumOverflowedRecvBuf();\n LOGGER.error(\n \"Read frame size {} from {}, total buffer size would exceed limit {}\",\n frameSize[index],\n servers.get(index),\n maxRecvBufBytesPerServer);\n sChannel.close();\n continue;\n }\n\n // reallocate buffer for actual frame data\n recvBuf[index] = ByteBuffer.allocate(frameSize[index] + 4);\n recvBuf[index].putInt(frameSize[index]);\n\n stats.incTotalRecvBufBytes(frameSize[index]);\n hasReadFrameSize[index] = true;\n }\n\n if (hasReadFrameSize[index] && numBytesRead[index] >= frameSize[index] + 4) {\n // has read all data\n sChannel.close();\n stats.incNumReadCompletedServers();\n long t2 = System.currentTimeMillis();\n stats.setReadTime(t2 - t1);\n }\n }\n } catch (Exception e) {\n LOGGER.error(\"Socket {} reads from server {} error\", index, servers.get(index), e);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "56a4b034a30a27885d3a2dbae3f47e83", "score": "0.506218", "text": "public T read(){\n\t\tT data = null;\n\t\ttry{\n\t\t\tdata = allData.get(pos);\n\t\t}catch(IndexOutOfBoundsException e){\n\t\t\t//nothing to do here\n\t\t}\n\t\treturn data;\n\t}", "title": "" }, { "docid": "351b514acc3747b98f1c9dda8c43148b", "score": "0.50620836", "text": "List<UserInfo> read(int startIndex, int endIndex);", "title": "" }, { "docid": "37c99609ddd47e8c44954d089976a1b2", "score": "0.5052352", "text": "private void readItems(){\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n dataSet = (ArrayList<Item>) mDatabase.itemDao().getAllItems();\n } catch (Exception e){\n Log.e(\"MainActivity\", \"Error Reading Data: \" + e);\n dataSet = new ArrayList<Item>();\n }\n }\n });\n try{\n t.start();\n t.join();\n }catch(Exception e){\n Log.e(\"MainActivity\", \"Error Joining: \" + e);\n }\n\n }", "title": "" }, { "docid": "6499a2f16183114a5436d5e66f0a4819", "score": "0.50509876", "text": "public List<Question> load(){\n\t\tList<Question> questionList;\n\t\tif(remoteDataStore.hasAccess()){\n\t\t\tquestionList = remoteDataStore.getQuestionList();\n\t\t}\n\t\telse{\n\t\t\tquestionList = localDataStore.getQuestionList();\t\n\t\t}\n\t\treturn questionList;\n\t}", "title": "" }, { "docid": "affd3a9800de8288349e1b4642519fce", "score": "0.5050697", "text": "private void doRead() {\n long pos = position;\n ByteBuffer innerBuf = ByteBuffer.allocate(Math.min(chunkSize, maxRequired(pos)));\n fileChannel.read(innerBuf, pos, innerBuf, this);\n }", "title": "" }, { "docid": "ff16e37e52a32f2db9079f19af9db73e", "score": "0.5047189", "text": "private List<ICommand> fetchCommands()\n {\n ClientCommunicator communicator = ClientCommunicator.getInstance(); // get communicator instance\n String playerID = ClientModel.getInstance().getUser().getId();\n int historyPos = ClientModel.getInstance().getUser().getHistoryPosition();\n Class resultClass = ICommand[].class;\n\n ICommand[] commandArray = (ICommand[]) communicator.get(Endpoints.POLL_ENDPOINT, \"\", playerID + \"\\n\" + historyPos, resultClass); // send command, get results\n ClientModel.getInstance().getUser().setHistoryPosition(historyPos + commandArray.length);\n return Arrays.asList(commandArray);\n }", "title": "" }, { "docid": "383bc293f22b898954c9ad341f216048", "score": "0.50428855", "text": "public void read(BufferedReader bufInput, List resultList) throws Exception;", "title": "" }, { "docid": "87631866f0ea5ae13f642b7f91fec253", "score": "0.50246364", "text": "public void requestAllGossipData(){\n\t\ttry{\n\t\t\tRegistry registry = LocateRegistry.getRegistry(\"127.0.0.1\", 8043);\n\t\t\tString[] serverList = registry.list();\n\t\t\tfor(String registryServerName : serverList){\n\t\t\t\tif(!(registryServerName.equals(serverName)) && !(registryServerName.contains(\"front\"))){\n\t\t\t\t\tBackEndServerInterface stub = (BackEndServerInterface) registry.lookup(registryServerName);\n\t\t\t\t\tif(!(stub.getServerStatus().equals(\"offline\"))){\n\t\t\t\t\t\tArrayList<logRecord> temp_Record = stub.getLogRecord();\n\t\t\t\t\t\tint[] temp_replica = stub.getReplice_Timestamp();\n\t\t\t\t\t\tint temp_serverNumber = stub.getServerNumber();\n\t\t\t\t\t\ttableTS[temp_serverNumber] = temp_replica.clone();\n\t\t\t\t\t\tupdateLogs(temp_Record, temp_replica);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tSystem.err.println(\"Exception in locating server: \" + e.toString());\n\t\t\te.printStackTrace();\n\t\t}\n\t\torderLogs();\n\t\taddStableUpdates();\n\t\tremoveRedundantLogs();\n\t}", "title": "" }, { "docid": "854e150df3a009f04d027b7171da2b31", "score": "0.5022895", "text": "public abstract void onReadComplete();", "title": "" }, { "docid": "6e3892cad437b74107f1748810752d82", "score": "0.50228906", "text": "boolean getIsRead();", "title": "" }, { "docid": "f87442c2a22f07753db077b0bcdbeb5c", "score": "0.50227195", "text": "public boolean isOneTimeReader() {\r\n return false;\r\n }", "title": "" }, { "docid": "fc32be9c56852a14640aa6aded080316", "score": "0.50196916", "text": "@Override\n public boolean isSyncOnWrite()\n {\n return false;\n }", "title": "" }, { "docid": "f1c8d9e84fc2dafbdc1eadc63c220577", "score": "0.50185835", "text": "public void asyncReadFromSocket() {\n new Thread(() -> {\n try {\n while (isActiveFlag) {\n Object temp = inputStream.readObject();\n Answer answer = (Answer) temp;\n answer.setInitial(playerInitial);\n if (temp instanceof AnswerPing) {\n pinged = true;\n }\n else\n updateObservers(answer);\n }\n } catch (IOException | ClassNotFoundException e) {\n closeServerSocket();\n System.out.println(\"\\u001B[44m\" + \"Connection lost with \" + playerInitial + \" has Died. Deleted from the game\" + \"\\u001B[0m\");\n // If there are observers it means the game has started; otherwise just take away this user from the lobby\n if (getObserversSize() != 0)\n updateObservers(new AnswerKillPlayer(playerInitial));\n else {\n playingLobby.deletePlayer(playerName);\n }\n }\n }).start();\n }", "title": "" }, { "docid": "ea186e76678643363cc2635e93bdd383", "score": "0.5018106", "text": "public ArrayList<IRead<?>> getAllReadsAt(long timeSlice);", "title": "" }, { "docid": "de550419a2e0b565e3ba737effc45a8f", "score": "0.5009795", "text": "void UpdateBuffer() {\n while (true) {\n // the committed write can be the minimum one. then we need to update min_write_ts.\n long new_wts = GetMinWriteTimestamp();\n assert (new_wts >= min_write_ts_);\n if (new_wts == min_write_ts_) {\n return;\n }\n min_write_ts_ = new_wts;\n // since the min_write_ts has been updated, then probably a list of read request can be issued.\n RequestEntry read_list = DebufferReadRequest();\n if (read_list == null) {\n return;\n }\n // allow these reads to be proceeded.\n RequestEntry read_entry = read_list;\n while (read_entry != null) {\n // copy data here.\n // data has already been allocated.\n read_entry.data_ = Utils.memcpy(data);//memcpy( * (read_entry -> data_), data_ptr_, data_size_);\n\n // directly read.\n if (read_ts_ < read_entry.timestamp_) {\n read_ts_ = read_entry.timestamp_;\n }\n // inform the blocked threads.\n read_entry.is_ready_[0] = true;\n // destroy these read requests.\n RequestEntry tmp_entry = read_entry;\n read_entry = read_entry.next_;\n//\t\t\t\tdelete tmp_entry;\n//\t\t\t\ttmp_entry = null;\n }\n // read request queue has been updated. then we need to update min_read_ts.\n long new_rts = GetMinReadTimestamp();\n assert (new_rts >= min_read_ts_);\n if (new_rts == min_read_ts_) {\n return;\n }\n min_read_ts_ = new_rts;\n RequestEntry commit_list = DebufferCommitRequest();\n if (commit_list == null) {\n return;\n }\n RequestEntry win_commit = null;\n long win_ts = 0;\n RequestEntry commit_entry = commit_list;\n while (commit_entry != null) {\n RequestEntry tmp_write_entry = DebufferWriteRequest(commit_entry.timestamp_);\n assert (tmp_write_entry != null);\n if (commit_entry.timestamp_ > win_ts) {\n//\t\t\t\t\tdelete win_commit;\n win_commit = commit_entry;\n win_ts = commit_entry.timestamp_;\n } else {\n//\t\t\t\t\tdelete commit_entry;\n commit_entry = null;\n }\n commit_entry.is_ready_[0] = true;\n RequestEntry tmp_commit_entry = commit_entry;\n commit_entry = commit_entry.next_;\n//\t\t\t\tdelete tmp_commit_entry;\n tmp_commit_entry = null;\n }\n assert (win_commit != null);\n // perform write.\n // install the value_list.\n this.data = Utils.memcpy(win_commit.data_);//memcpy(data_ptr_, * win_commit -> data_, data_size_);\n // update the write ts.\n if (write_ts_ < win_commit.timestamp_) {\n write_ts_ = win_commit.timestamp_;\n }\n//\t\t\tdelete win_commit;\n//\t\t\twin_commit = null;\n }\n }", "title": "" } ]
ab7c2a036d404d53f642abb28b6973c7
This method is for initializing objects used in the activity. This method is called immediately after the onCreate() method of the activity and only called once when the activity is created. Any global objects that used inside the activity should be initialized here for the purpose of management.
[ { "docid": "96bc66e7064394c95374598165f80fbf", "score": "0.0", "text": "void onBaseCreate();", "title": "" } ]
[ { "docid": "1b99c415b530863bd365b9ce0d3d1eff", "score": "0.8036635", "text": "private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n inputValidation = new InputValidation(activity);\n\n }", "title": "" }, { "docid": "d3e88830d9d961c8d704764b9e540e77", "score": "0.774664", "text": "private void initObjects(){\n /* create the InputValidation object */\n inputValidation = new InputValidation(activity);\n /* create the dataBase object */\n databaseHelper = new DatabaseHelper(activity);\n /* create the User object */\n user = new User();\n }", "title": "" }, { "docid": "9b164990716fa5c9d8033fc82d8047a8", "score": "0.7709851", "text": "private void initObjects() {\r\n inputValidation = new InputValidation(activity);\r\n databaseHelper = new DatabaseHelper(activity);\r\n user = new User();\r\n\r\n }", "title": "" }, { "docid": "b0ada337d96963ccfd43f324f677fe33", "score": "0.76804304", "text": "@Override\n protected void onInit() {\n super.onInit();\n mCommonArgs = new CommonArgs(this);\n mDataManager = new DataManager(this);\n// mSearchHistory = new SearchHistory(this);\n// mNetTest = new NetTest(this);\n\n// if (DEBUG) {\n// }\n }", "title": "" }, { "docid": "9a647bdfa635ae2a6d9ae66c6bea6fa1", "score": "0.7449092", "text": "private void initialize () {\n\n // Initialize Activity\n thisActivity = this;\n\n userModel = new UserModel(this);\n userModel.hideStatusBar();\n\n // Initialize buttons\n this.btnLogin = findViewById(R.id.btnLogIn);\n this.btnLogin.setOnClickListener(this);\n this.btnSignUp = findViewById(R.id.btnSignUp);\n this.btnSignUp.setOnClickListener(this);\n\n }", "title": "" }, { "docid": "cdafc06a1e6709a2b614ae99cd563589", "score": "0.74087936", "text": "public void Initialize()\n\t{\n\t\tnav = new Navigation();\n\t\tobjectAvoid = new ObstacleAvoidance();\n\t\tbtComm = new BTCommunication();\n\t}", "title": "" }, { "docid": "ea23e7a3ae7eef150182a0ce8ba49127", "score": "0.7303956", "text": "public void init() {\n if (mInitialized) {\n Log.w(TAG, \"Trying to re-initialize\");\n return;\n }\n mAutoTracker.initialize();\n populateSettingsList();\n startControllersAndSettingsListeners();\n mInitialized = true;\n }", "title": "" }, { "docid": "acc1fde290e30bb7d0073f6f82843195", "score": "0.7281362", "text": "public void startInitialize() {\n\n mTextView_ScreenTitle = findViewById(R.id.textview_Title);\n mButton_Back = findViewById(R.id.button_Back);\n mButton_Contact = findViewById(R.id.button_Contact);\n mVolunteerData = new VolunteerModel();\n mCustomerData = new CustomerModel();\n mHelper = new H3GHelper();\n\n m_Customers_List = new ArrayList<>();\n mRecyclerview_CustomerList = findViewById(R.id.recyclerview_CustomerList);\n m_Customer_Adapter = new CustomerStatusAdapter(getApplicationContext(), m_Customers_List);\n }", "title": "" }, { "docid": "040779e0d9d83aa2816e8ecf3d0c9044", "score": "0.72354287", "text": "private void init(Bundle savedInstanceState) {\n photoListManager = new ActivityListManager();\n lastPositionInteger = new MutableInteger(-1);\n }", "title": "" }, { "docid": "fadec82488d1f09235309fae57f9c040", "score": "0.7150658", "text": "protected void onInit() {}", "title": "" }, { "docid": "fa5a42c7d84964bf0640465f6d8694df", "score": "0.71378535", "text": "private void init()\n\t{\n\t\t// Send Log statements to stdout\n\t\tShadowLog.stream = System.out;\n\t\t\n\t\tcontext = Robolectric.getShadowApplication().getApplicationContext();\n\t\t\n\t\t//S.init(context);\n\t\tG.init(context);\n\t\t\n\t\tdm = DataManager.create(context, \"test.db\", null, 1);\n\t\t\t\t\n\t\tinitialized = true;\n\t}", "title": "" }, { "docid": "6f5814f1c3f516b740d34a6752c89d34", "score": "0.7131972", "text": "public static void initialize() {\n setContext(null);\n\n SDLActivity.initialize();\n SDLAudioManager.initialize();\n SDLControllerManager.initialize();\n }", "title": "" }, { "docid": "d9503ee1511d287a72e7ac4ab7b3fead", "score": "0.71186876", "text": "private void initObjects() {\n inputValidation = new InputValidation(this);\n dbHelper = new DBHelper(this);\n user = new User();\n }", "title": "" }, { "docid": "1bbcf6970767f875b3cb9f51e67914ff", "score": "0.7074845", "text": "public static void init() {\r\n\t\tdrive = Drive.getInstance();\r\n\t\tshooter = Shooter.getInstance();\r\n\t\tclimber = Climber.getInstance();\r\n\t\toi = OI.getInstance();\r\n\t\tauto = LeftPosition.getInstance();\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1bb7d848c237cf10062cb96a210d4029", "score": "0.7043408", "text": "protected void onInit() {\r\n\t}", "title": "" }, { "docid": "7b02a491dbdfe471aae205dbec9698b2", "score": "0.7035395", "text": "private void init() {\n // Initialize aQuery library\n aq = new AQuery(this);\n\n // Shared Preferences\n prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n\n // Editor\n editor = prefs.edit();\n speechSupportedLangs.add(\"en\");\n\n // Connection Detector\n connectionDetectorUtil = new ConnectionDetectorUtil(this);\n\n // Database Helper\n db = new Database(this);\n\n // Media Player\n mediaPlayer = new MediaPlayer();\n\n languageDetailsChecker = new LanguageDetailsChecker();\n Intent detailsIntent = new Intent(RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS);\n sendOrderedBroadcast(detailsIntent, null,languageDetailsChecker, null, Activity.RESULT_OK, null, null);\n\n // Array list of languages to display in the spinner\n spinner_one_list = new ArrayList<String>();\n spinner_two_list = new ArrayList<String>();\n\n arrWordlist = new ArrayList<Words>();\n arrIdiomlist = new ArrayList<Idioms>();\n\n // Animations\n anim_slide_in_left = AnimationUtils.loadAnimation(this, R.anim.anim_slide_in_left);\n anim_slide_in_right = AnimationUtils.loadAnimation(this, R.anim.anim_slide_in_right);\n }", "title": "" }, { "docid": "4043ecd84a4c27bb0854994c0e5dce32", "score": "0.702376", "text": "@Override\n public void onCreate() {\n super.onCreate();\n createObj();\n }", "title": "" }, { "docid": "5e642cd5d3ad9471cd6ecb168eef93ea", "score": "0.6951329", "text": "private void initVars() {\n mLayout=findViewById(R.id.activity_main1);\n\n mImageView=findViewById(R.id.smiley_img);\n\n mHistoryImage=findViewById(R.id.btn_history);\n\n mNoteImage=findViewById(R.id.btn_note);\n }", "title": "" }, { "docid": "15e0024129739c56736bb6c0ed2ec256", "score": "0.69434845", "text": "private void init() {\n inboxFragmentListener = new InboxFragmentListener();\n msgDBHelper = new MessageDBHelper(context);\n\n // Singleton classes\n animUtils = AnimUtils.getInstance();\n imageUtils = ImageUtils.getInstance();\n\n isUnreadShown = false;\n\n findViews();\n\n setListeners();\n }", "title": "" }, { "docid": "0f088d36d4d32ffb24691ba1734104db", "score": "0.6911545", "text": "private void initObjects() {\n\n setupToolbar();\n inputValidation = new InputValidation(this);\n\n userInfos = new ArrayList<>();\n userInfosEmail = new ArrayList<>();\n\n sharedPreferences = this.getSharedPreferences(FILE, Context.MODE_PRIVATE);\n editor = sharedPreferences.edit();\n databaseReference = FirebaseDatabase.getInstance().getReference(\"UserInfo\");\n\n //Get firebase auth instance\n auth = FirebaseAuth.getInstance();\n checkUser();\n\n }", "title": "" }, { "docid": "22953dc9e1a9418ebcdc744f00cc0b40", "score": "0.6907492", "text": "public void Initialize(Context context){\n mContext = context;\n prefAuth = context.getSharedPreferences(\"auth\", 0);\n prefUser = context.getSharedPreferences(\"user\", 0);\n }", "title": "" }, { "docid": "ff318c5908b3956155027f07004b4f8d", "score": "0.6896179", "text": "private void init() {\n if (listener == null) return;\n\n res = (listener.getRes() != null) ? listener.getRes() : getActivity().getResources();\n mActivity = (listener.getInstance() != null) ? listener.getInstance() : (HomeActivity) getActivity();\n }", "title": "" }, { "docid": "20d20a708a7dc808f556c0a01fa51fa6", "score": "0.6889336", "text": "private void initialize() {\n\t\tinternalJson = new JSONObject();\n\t\t\n\t\t// setting everything to 0 or null default value.\n\t\tid = \"0\";\n\t\tsetObjectStatus(\"new\");\n\t\t\n\t\t// set the internal fields and embedded json objects for domain, customer and social network\n\t\tsetSnId(SocialNetworks.getSocialNetworkConfigElement(\"code\", \"FACEBOOK\"));\n\t\tsetDomain(new CrawlerConfiguration<String>().getDomain());\n\t\tsetCustomer(new CrawlerConfiguration<String>().getCustomer());\n\t\t\n\t\tuser_name = null;\n\t\tscreen_name = null;\n\t\tlang = null;\n\t\tgeoLocation = null;\n\t\tfollowers_count = 0;\n\t\tfriends_count = 0;\n\t\tpostings_count = 0;\n\t\tfavorites_count = 0;\n\t\tlists_and_groups_count = 0;\n\t}", "title": "" }, { "docid": "c5e9a41b4606580801bef8deb0793453", "score": "0.6872863", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }", "title": "" }, { "docid": "3dc3af4a980ec96140a1395ef1287626", "score": "0.6867905", "text": "private void init() {\n\t\tdrawerlayout=(DrawerLayout)findViewById(R.id.drawer_layout);\n\t\tlist_left=(ListView)findViewById(R.id.list_left_drawer);\n\t\tll=(LinearLayout)findViewById(R.id.ll);\n\t}", "title": "" }, { "docid": "f9633df1a27b59a16b8f5e7bc6a50166", "score": "0.68669903", "text": "@Override\n protected void init() {\n viewModel.setNavigator(this);\n subscribeToLiveData();\n setUpDate();\n setUp();\n setUpAdapter();\n setUpPager();\n setUpAds();\n setUpPagers();\n\n tmp();\n viewModel.forcastActivity(newdate);\n }", "title": "" }, { "docid": "e732c041b963cd464cdf72124e5135d3", "score": "0.68581724", "text": "private void getInit() {\n\t\talbum_art = (ImageView) findViewById(R.id.album_art);\r\n\t\talbum = (TextView) findViewById(R.id.Album);\r\n\t\tartist = (TextView) findViewById(R.id.artist);\r\n\t\tgenre = (TextView) findViewById(R.id.genre);\r\n\t\tlocation = (TextView) findViewById(R.id.file_location);\r\n\t}", "title": "" }, { "docid": "48e279bf7ebce4281039c88d0ef431b3", "score": "0.68303967", "text": "public static void init(Activity context) {\n\t\tGeneralManager.context = context;\n\t\t// load user setting from server. Also load user profile from server.\n\t\t// if necessary, also update the cache.\n\t\tsynchronized (GeneralManager.class) {\n\t\t\ttry {\n\t\t\t\t// do the loading in a synchronized block\n\t\t\t\tloadUserProfile();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7db9bb7ec3d3a9fc9a733707ff239c40", "score": "0.68297935", "text": "public void setUp() {\n\n activity = new BaseActivity();\n context = new BaseContext();\n\n }", "title": "" }, { "docid": "86ec8937e86898d8e5a8d6ef532913e1", "score": "0.682971", "text": "public void init() {\n viewPager = findViewById(R.id.viewPager);\n navigation = findViewById(R.id.navigationBottom);\n //header\n avatarUser = findViewById(R.id.avatarUser);\n btnSearch = findViewById(R.id.btnSearch);\n btnSpeach = findViewById(R.id.btnSpeach);\n\n //Phan Play Song\n imageSong = findViewById(R.id.imageSongM);\n nameSong = findViewById(R.id.nameSongM);\n singerSong = findViewById(R.id.singerSongM);\n btnFavorite = findViewById(R.id.btnFavorite);\n btnPlay = findViewById(R.id.btnPlay);\n btnNext = findViewById(R.id.btnNext);\n }", "title": "" }, { "docid": "a5c47d3d1960e6a51399a7ca8225073e", "score": "0.6808817", "text": "private void init() {\n nameView = (TextView) findViewById(R.id.cc_name);\n phoneView = (TextView) findViewById(R.id.cc_phone);\n emailView = (TextView) findViewById(R.id.cc_email);\n reportingManagerView = (TextView) findViewById(R.id.cc_reporting_manager);\n noOfSchoolsView = (TextView) findViewById(R.id.cc_no_of_schools);\n mandalView = (TextView) findViewById(R.id.cc_mandal);\n districtView = (TextView) findViewById(R.id.cc_district);\n uidView = (TextView) findViewById(R.id.cc_uid);\n }", "title": "" }, { "docid": "00f67043574d51c6205dfbc91155a782", "score": "0.68031025", "text": "protected void initAfterReady()\n\t{\n\t\tButton leftButton = myActivity.findViewById(R.id.leftButton);\n\t\tleftButton.setOnClickListener(this);\n\t\tButton rightButton = myActivity.findViewById(R.id.rightButton);\n\t\trightButton.setOnClickListener(this);\n\t\tButton palaceButton = myActivity.findViewById(R.id.PalaceButton);\n\t\tpalaceButton.setOnClickListener(this);\n\t\tButton playCardButton = myActivity.findViewById(R.id.playCardButton);\n\t\tplayCardButton.setOnClickListener(this);\n\t\tButton confirmPalace = myActivity.findViewById(R.id.confirmPalace);\n\t\tconfirmPalace.setOnClickListener(this);\n\t\tpalaceSurfaceView.setGame(game);\n\n\t}", "title": "" }, { "docid": "856798c0949a159b00e921dad8d8c6dd", "score": "0.68009436", "text": "public void initResources() {\r\n\t\tsuper.initResources();\r\n\t\tTopDownGameManager.initManager(this);\r\n\t\taddGameObjects();\r\n\t\tsetInitialGameID();\r\n\t}", "title": "" }, { "docid": "e544615cbdc1e57397d8397f97539bcd", "score": "0.6800145", "text": "public void init() {\r\n\t\tobjectsCollection = new GameObjectCollection();\r\n\t\tstopSounds();\r\n\t\tcreateBases();\r\n\t\tcreateEnergyStations();\t\r\n\t\tcreateDrones();\r\n\t\tcreateNPRs();\r\n\t\tcreateRobot();\r\n\t\tchangeNPRStrategies();\r\n\t\tbgMusic.run();\r\n\t\tnotifyObservers();\r\n\t}", "title": "" }, { "docid": "8294b46628f06a97e2985cffffc7fcb7", "score": "0.67806536", "text": "private void initializeVariables(){\n backButton = (Button) findViewById(R.id.button8);\n shortcutButton = (Button) findViewById(R.id.button9);\n resume = (Button) findViewById(R.id.button11);\n pause = (Button) findViewById(R.id.button10);\n coordinatorLayout = (CoordinatorLayout) findViewById(R.id.coordinateLayout);\n localMap = (Switch) findViewById(R.id.switch1);\n globalMap = (Switch) findViewById(R.id.switch2);\n solution = (Switch) findViewById(R.id.switch3);\n batteryBar = (ProgressBar) findViewById(R.id.progressBar2);\n gameGraphic = findViewById(R.id.gameGraphic);\n batteryNotification = (TextView) findViewById(R.id.textView4);\n\n }", "title": "" }, { "docid": "ab21f3f34794325858045accf938857b", "score": "0.67658055", "text": "public void init() {\n\t\tdr = new DR_CIR_Gyro();\r\n\t\tcm = new ChartViewManager();\r\n\t\t\r\n\t\tsensorMap = new SensorMap();\r\n\t\taccelerometerList = new ArrayList<SensorData>();\r\n\t\tgravityList = new ArrayList<SensorData>();\r\n\t\tgyroscopeList = new ArrayList<SensorData>();\r\n\t\tmagneticFieldList = new ArrayList<SensorData>();\r\n\t}", "title": "" }, { "docid": "facbe6f98d564be42e043b9c894f8e58", "score": "0.6764787", "text": "public void initializeTextObjects() {\n wordTypeTV = (TextView) findViewById(R.id.wordtype);\n wordCountTV = (TextView) findViewById(R.id.wordcount);\n stringET = (EditText) findViewById(R.id.editText);\n }", "title": "" }, { "docid": "84180afaa974b62181630e65b3df16ab", "score": "0.67635345", "text": "@Override\n public void onCreate() {\n super.onCreate();\n DLog.d(TAG, \"onCreate\");\n instance = this;\n SharedPreferencesHelper.init(this);\n SugarContext.init(this);\n }", "title": "" }, { "docid": "ac76293139ecba9eacbd898e21ac9cad", "score": "0.67633194", "text": "private void initialize() {\n\t\tbarca = (Button) findViewById(R.id.UseButton1);\n\t\treal = (Button) findViewById(R.id.UseButton2);\n\t\tathel = (Button) findViewById(R.id.UseButton3);\n\t\tathel.setVisibility(View.GONE);\n\t\tbarca.setText(\"F.C.Barcelona\");\n\t\treal.setText(\"Real Madrid\");\n\t\tathel.setText(\"Atheletico Madrid\");\n\t\tt = (TextView) findViewById(R.id.textView1);\n\t\tret = (Button) findViewById(R.id.menFB);\n\t\tret.setOnClickListener(this);\n\t\tbarca.setOnClickListener(this);\n\t\treal.setOnClickListener(this);\n\t\tathel.setOnClickListener(this);\n\t}", "title": "" }, { "docid": "6dc42193b4d7287bd126cd912c2b869f", "score": "0.67551416", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tmContext = getApplicationContext();\n\n\t\tmInstance = this;\n\t}", "title": "" }, { "docid": "939bbedb07f6fe2308f8562afc89d36c", "score": "0.67551196", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_add_music_to_playlist);\n\n //userJSONProcessor = new UserJSONProcessor(this);\n\n initAttributes();\n initUIViews();\n initRecyclerView();\n }", "title": "" }, { "docid": "0bd2ead35a3a68e6cd9893a86fc99e5b", "score": "0.6735336", "text": "private void initialize(){\n Logger.addLogAdapter(new AndroidLogAdapter());\n\n // init WebService\n WebService.init(Auth.getTokenNoException(getApplicationContext()));\n\n // listen to token changes\n Config.get(this).registerOnSharedPreferenceChangeListener(listener);\n }", "title": "" }, { "docid": "606fe61d34dd04c7e9711131d3ad6bed", "score": "0.67336977", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif(SmartZoneApplication.mContext == null){\n\t\t\tSmartZoneApplication.mContext = this;\n\t\t}\n\t\tinitImageLoader(getApplicationContext());\n\t}", "title": "" }, { "docid": "936f32b3fa5e7388c5e311f79201ec69", "score": "0.6730911", "text": "private void init() {\n\t\tsignInInsteadButton = this.findViewById(R.id.sign_in_instead_button);\n\t\tsignInInsteadButton.setOnClickListener((view) -> {\n\tthis.onSignInInsteadPressed();\n});\n\t\t\n\t\t// Configure signUpButton component\n\t\tsignupbuttonButton = this.findViewById(R.id.signupbutton_button);\n\t\tsignupbuttonButton.setOnClickListener((view) -> {\n\tthis.onSignUpButtonPressed();\n});\n\t\t\n\t\t// Configure Mobile Number component\n\t\tpasswordTextView = this.findViewById(R.id.password_text_view);\n\n\t\t// Configure Email Address component\n\t\temailAddressTextView = this.findViewById(R.id.email_address_text_view);\n\t\t\n\t\t// Configure Full Name component\n\t\tfullNameTextView = this.findViewById(R.id.full_name_text_view);\n\t\t\n\t\t// Configure title component\n\t\ttitleTextView = this.findViewById(R.id.title_text_view);\n\t}", "title": "" }, { "docid": "456b99e1d4792e1c7defb088ac987994", "score": "0.6721881", "text": "private void initialize()\n\t{\n\t\tlistview = (RecyclerView) root.findViewById(R.id.dataView);\n\t\tsyncText = (TextView) root.findViewById(R.id.synctime);\n\t\terror = (LinearLayout) root.findViewById(R.id.error);\n\t\trefresh = (SwipeRefreshLayout) root.findViewById(R.id.refresh);\n\t\t\n\t\t//Initializing and setting other objects\n\t\thandler = new UrlHandler(context);\n\t\tserviceIntent = new Intent(context,RefreshService.class);\n\t\tpref = context.getSharedPreferences(USER,Context.MODE_PRIVATE);\n\t\tisNewUser = pref.getBoolean(KEY_IS_NEW_USER,true);\n\t\tschedular = new TaskSchedular(context);\n\t\tif(isNewUser){\n\t\t\tpref.edit().putBoolean(KEY_IS_NEW_USER,false).commit();\n\t\t}\n\t\trefresh.setOnRefreshListener(this);\n\t\tlistview.setHasFixedSize(true);\n\t\tlistview.setLayoutManager(new LinearLayoutManager(context));\n\t\t\n\t}", "title": "" }, { "docid": "f77a769ee389327aa51916111fab3b7c", "score": "0.6718744", "text": "private static void init()\n {\n Keys.init();\n GameData.init();\n Bootstrap.register();\n Tags.init();\n }", "title": "" }, { "docid": "b2c8cf66029f3e3a3e1157918bfb0571", "score": "0.6710859", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinit();\n\t}", "title": "" }, { "docid": "2cfa47bd9a7350ba376e738daae12a3a", "score": "0.6710729", "text": "@Override\n\tpublic void onCreate() {\n\t\tmMainManager = new ConnectMainManager(getApplicationContext());\n\t\tPlayerNotificationManager mNotifyManger = PlayerNotificationManager.instance();\n\t\tmInfo = new BaseListInfo();\n\t\tmNotifyManger.initialize(this);\n\t\tmySelfDateBase = new MySelfDateBase(this, null);\n\t\tsuper.onCreate();\n\t}", "title": "" }, { "docid": "3dfdeca3f52e8db6ba3a4beedf0dfcd2", "score": "0.6704202", "text": "private void init(Bundle savedInstanceState) {\n }", "title": "" }, { "docid": "0e51690754b2b029ce89f2d30edbeeb8", "score": "0.67014885", "text": "private void init()\n\t{\n\t\tinitVariables();\n\t}", "title": "" }, { "docid": "159ec0682af35eeca5977040c09bfdbb", "score": "0.66922784", "text": "protected final void init() {\r\n loadMyself();\r\n loadModules();\r\n }", "title": "" }, { "docid": "ddef3ec40c7b46756b20394c171ecc51", "score": "0.6688421", "text": "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tapplication = this;\r\n\t\tWeb.init(this);\r\n\t\tinitLocation();\r\n\t}", "title": "" }, { "docid": "e9bd3a65071667c27eef9886d6e1d4bb", "score": "0.667934", "text": "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "title": "" }, { "docid": "85a8f09f03f81335fdd8f3de8b5d8a1a", "score": "0.6677642", "text": "public static void init(Context context) {\n\t\tif (cameraManager == null) {\n\t\t\tLog.d(TAG, \"init():CameraManager initialized.\");\n\t\t\tcameraManager = new CameraManager(context);\n\t\t}\n\n\t}", "title": "" }, { "docid": "af8cc223469f62822b5ddbe0670844a4", "score": "0.66751015", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tinstance=this;\n\t\tcontext=this;\n\t\tEMChat.getInstance().init(this);\n\t}", "title": "" }, { "docid": "0fe6a776080056fbda6ecaee43923040", "score": "0.66748726", "text": "private void init() {\n\t\tDatabaseHelper database=new DatabaseHelper(this); \n\t\tCrashHandler crashHandler = CrashHandler.getInstance(); \n\t crashHandler.init(getApplicationContext()); \n\t}", "title": "" }, { "docid": "1af580b24a85b7a70a07ca1a0286c549", "score": "0.6667945", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitView();\n\t\tinitData();\n\t}", "title": "" }, { "docid": "dc096af65243fb7c320dfcd3e5cd7c42", "score": "0.666493", "text": "protected void preInitialize(Bundle savedInstanceState) {}", "title": "" }, { "docid": "5039a5e0517d7ccdaa395488a6db65bc", "score": "0.6661248", "text": "protected void initialize() {\n \t\n }", "title": "" }, { "docid": "5039a5e0517d7ccdaa395488a6db65bc", "score": "0.6661248", "text": "protected void initialize() {\n \t\n }", "title": "" }, { "docid": "76833db128aa16ad82ba909ad773add3", "score": "0.6660349", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_events);\n context = this; // Set the context.\n initializeViews(); // Initialize all views.\n initializeNavigation(); // Initialize navigation logic.\n allowBannerFunctionality(); // Allow banner to change.\n loadEventUsers(); // Populate the recycler views appropriately.\n }", "title": "" }, { "docid": "b08ca7bced8fa428f67788f27bcdb17a", "score": "0.66521895", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // zjDataManager = new ZJDataManager(getActivity());\n // downLoadManager = new DLJDataDownLoadHelper(getActivity(), handler);\n executorService = Executors.newCachedThreadPool();\n if (handler == null)\n handler = new Myhandler(this);\n utils = MyUtils.getInstance();\n init();\n options = BaseApplication.options;\n pagerOptions = BaseApplication.pagerOptions;\n }", "title": "" }, { "docid": "f0a94542fe8449e548e0ba67cc070e33", "score": "0.66501695", "text": "static void init()\n\t{\n\t\t// Any needed initialization code would go here.\n\t}", "title": "" }, { "docid": "6d4285d3cacbea718a62779bee157e55", "score": "0.6642194", "text": "private void init() {\n\t\t\r\n\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1c7fbb1c27c9f900c3db73c3af7f7351", "score": "0.6640277", "text": "public void init()\r\n\t{\r\n// \t\tm_vendor = null;\r\n// \t\tm_comments = new ArrayList<String>();\r\n\t}", "title": "" }, { "docid": "0b5b3a76622c2959032aaafb9baeefcf", "score": "0.66316944", "text": "private void initObjects() {\n listTrackables = new ArrayList<>();\n recyclerAdapter = new RecyclerAdapter(listTrackables, this);\n\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerViewTrack.setLayoutManager(mLayoutManager);\n recyclerViewTrack.setItemAnimator(new DefaultItemAnimator());\n recyclerViewTrack.setHasFixedSize(true);\n recyclerViewTrack.setAdapter(recyclerAdapter);\n dbHelper = new DBHelper(activity);\n\n getDataFromSQLite();\n\n }", "title": "" }, { "docid": "3d301f8d1e9d016074f704ab943a3747", "score": "0.6620013", "text": "private void init() {\n email = (EditText) myView.findViewById(R.id.txtEmail);\n pass1 = (EditText) myView.findViewById(R.id.txtPass1);\n pass2 = (EditText) myView.findViewById(R.id.txtPass2);\n encryptionKey = (EditText) myView.findViewById(R.id.txtKey);\n encryptionKey2 = (EditText) myView.findViewById(R.id.txtKey2);\n\n btnContinue = (Button) myView.findViewById(R.id.btnContinue);\n //reference database within method\n db = new DBHelper(getContext());\n en = new Encryption();\n }", "title": "" }, { "docid": "0863d026e8495e4202f6453aeb4cac3a", "score": "0.6619007", "text": "private void init() {\n\n\t\tImageButton changepwd_back = (ImageButton) FindMoneyInfoActivity.this\n\t\t\t\t.findViewById(R.id.mon_title_back);\n\t\tchangepwd_back.setOnClickListener(this);\n\n\t\tthis.mon_title = (TextView) FindMoneyInfoActivity.this\n\t\t\t\t.findViewById(R.id.mon_title);\n\n\t\tthis.mon_address = (TextView) FindMoneyInfoActivity.this\n\t\t\t\t.findViewById(R.id.mon_address);\n\n\t}", "title": "" }, { "docid": "15ad5681cab97706ab622908ee417377", "score": "0.66162884", "text": "public void initialize() {\n this.showViewLoading();\n this.getMovies();\n }", "title": "" }, { "docid": "12c584924c74732057584ae2b83e29c8", "score": "0.6615278", "text": "private void init()\n {\n pairedDevicesStrings = new ArrayAdapter<>(getApplicationContext(),android.R.layout.simple_list_item_1);\n\n initBTAdapter();\n populatePairedDevicesList();\n setUIUpdaters();\n }", "title": "" }, { "docid": "1161e858a5b472f625c156297e1064e5", "score": "0.66061044", "text": "private void InitResource() {\n\t\t try {\n\t\t\t AdConfig.Init(mContext);\n\t\t\t PhoneManager.Init(mContext);\n\t\t\t AdFileManager.Init(mContext); \n\t\t\t AdManager.Init(mContext);\n\t\t\t DownLoadManager.Init();\n\t\t\t AdMonitorManager.Init(mContext);\n\t\t\t AdReportManager.Init(mContext);\n\t\t\t SetSDKInited();\n\t\t } catch (AdSDKManagerException e) {\n\t\t\t // TODO Auto-generated catch block\n\t\t\t e.printStackTrace();\n\t\t }\t\t \n\t }", "title": "" }, { "docid": "5f41373d444d47bd9b6566a87503d857", "score": "0.65922", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n ButterKnife.bind(this);\n\n measureToolbar(toolbar);\n ConstraintLayout.LayoutParams layoutParams = new ConstraintLayout.LayoutParams(newToolbarWidth, newToolbarHeight);\n toolbar.setLayoutParams(layoutParams);\n toolbar.setPadding(0, paddingTop, 0, 0);\n toolbar.requestLayout();\n\n instance = MainActivity.this;\n gson = WalletApplication.getGson();\n\n // Identity verify.\n initUserIdentityVerify();\n }", "title": "" }, { "docid": "1da19d1499737c618f5367530328108f", "score": "0.6591085", "text": "private void init() {\n\t\tdisplay = new Display(title, width, height);\r\n\t\tdisplay.getFrame().addKeyListener(keyManager);\r\n\t\tAssets.init();\r\n\t\t\r\n\t\tmenuState = new MenuState(this);\r\n\t\tsettingState = new SettingState(this);\r\n\t\tgameState = new GameState(this); //Dit kan als GameState class gezet worden omdat deze de State class extend.\r\n\t\t\r\n\t\tState.setState(gameState);\r\n\t}", "title": "" }, { "docid": "f62b8c01688ca89e9084833344b4898e", "score": "0.6588435", "text": "private void init() {\n\t\tuserNameTextView=(TextView) findViewById(R.id.usernametv);\n\t\toldpasswordEditText=(EditText) findViewById(R.id.oldpwdedt);\n\t\tnewpasswordEditText=(EditText) findViewById(R.id.newpwdedt);\n\t\tconfirmpasswordEditText=(EditText) findViewById(R.id.cpwdedt);\n\t\tsubmitButton=(Button) findViewById(R.id.submitbtn);\n\t\t\n\t}", "title": "" }, { "docid": "e8891b48266b98962dffe611853ab54f", "score": "0.6578309", "text": "@Override\n public void onCreate() {\n super.onCreate();\n context = getApplicationContext();\n }", "title": "" }, { "docid": "123ca6e00b685d1ce8b8190e885a11b3", "score": "0.657616", "text": "private void init() {\n getActionBar().hide();\n\n // Initialise context and reference fragments and views.\n mContext = this;\n\n mActionBarFragment = (ActionBarFragment) getFragmentManager().findFragmentById(R.id.fragment_action_bar);\n mMainFragment = (MainFragment) getFragmentManager().findFragmentById(R.id.fragment_main);\n mAddFragment = (AddFragment) getFragmentManager().findFragmentById(R.id.fragment_add);\n mFABFragment = (FABFragment) getFragmentManager().findFragmentByTag(\"FAB\");\n mNavigationDrawerFragment = (NavigationDrawerFragment) getFragmentManager().findFragmentById(R.id.fragment_navigation_drawer);\n\n mContainer = (FrameLayout) findViewById(R.id.container);\n mMainContainer = (RelativeLayout) findViewById(R.id.main_container);\n\n // Set up the navigation drawer.\n mNavigationDrawerFragment.setUp((DrawerLayout) findViewById(R.id.drawer_layout));\n }", "title": "" }, { "docid": "4cbd792ead603e34582b2ddf3c376255", "score": "0.6570522", "text": "private void initialize()\n {\n mIdTv = findViewById(R.id.id_textview);\n mNameTv = findViewById(R.id.name_textview);\n imageView = findViewById(R.id.image_view);\n mUserRecyclerView = findViewById(R.id.student_recycler_view);\n mShimmerViewContainer = findViewById(R.id.shimmer_view_container);\n mUserRecyclerView.setLayoutManager(new LinearLayoutManager(UserActivity.this));\n mUserAdapter = new UserAdapter(userList);\n mUserRecyclerView.setAdapter(mUserAdapter);\n apiInterface = ApiClient.getClient().create(ApiInterface.class);\n\n }", "title": "" }, { "docid": "db12ac20ebca05c7149677dc532f3949", "score": "0.65705067", "text": "@Override\n public void onCreate() {\n super.onCreate();\n context = this;\n paperDatabase = PaperApp.getInstance().getDatabase();\n paperPrefs = PaperPrefs.getInstance(getApplicationContext());\n autoImageCache = AutoImageCache.getInstance(getApplicationContext());\n internalStatePrefs = InternalStatePrefs.getInstance(getApplicationContext());\n houseKeeper = HouseKeeper.getInstance(getApplicationContext());\n accountBroker = AccountBroker.getInstance(getApplicationContext());\n //betaTestExpiryChecker = BetaTestExpiryChecker.getInstance(getApplicationContext());\n }", "title": "" }, { "docid": "81bc848f1a350f90f740e24e84dfd65a", "score": "0.656708", "text": "@Override\r\n\tpublic void onInitialize() {\n\r\n\t\tutil.LOGGER.debug(\"MagicSquared Main initiated\");\r\n\t\tnew ModEntities();\r\n\t\tnew ModItems();\r\n\t\tnew ModBlocks();\r\n\t\tnew BiomeHandler();\r\n\t\tnew ModBlockEntities();\r\n\t}", "title": "" }, { "docid": "df7fbb77cf8ac2552b0739bd373065ad", "score": "0.6566157", "text": "void initialization() {\n etEmail = (EditText) findViewById(R.id.etEmail);\n etPassword = (EditText) findViewById(R.id.etPassword);\n tvLogin = (TextView) findViewById(R.id.tvRegistered);\n btnRegister = (Button) findViewById(R.id.btnRegister);\n pDialog = new ProgressDialog(this);\n rgUserType = (RadioGroup) findViewById(R.id.rgUserType);\n rdoAdmin = (RadioButton) findViewById(R.id.rdoAdmin);\n rdoUser = (RadioButton) findViewById(R.id.rdoUser);\n validatorHelper = new InputValidatorHelper();\n auth = FirebaseAuth.getInstance();\n rootFB = new Firebase(FIREBASE_URL);\n }", "title": "" }, { "docid": "c8aa5b6e8c75b8b790bda288d02d585a", "score": "0.6563601", "text": "public void initialize() {\n\t\tcontext.initialize();\n\t}", "title": "" }, { "docid": "3139b0dd568577c8445fe01485e649a8", "score": "0.6559256", "text": "public void init() {\n AndroidDebugBridge.init(false);\n }", "title": "" }, { "docid": "6bd0a4c02a349516143cb23c03479686", "score": "0.65566844", "text": "@Override\n protected void onInitialize(Bundle savedInstanceState) {\n super.onInitialize(savedInstanceState);\n\n mPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n mDatabaseHelper = new DatabaseHelper(this);\n ensureFirstConfiguration(mDatabaseHelper);\n mConfigurationsAdapter = new UartConfigurationsAdapter(this, this, mDatabaseHelper.getConfigurationsNames());\n }", "title": "" }, { "docid": "25606676f5badee48ac69f8f68024c17", "score": "0.654555", "text": "protected void init() {\n }", "title": "" }, { "docid": "25606676f5badee48ac69f8f68024c17", "score": "0.654555", "text": "protected void init() {\n }", "title": "" }, { "docid": "25606676f5badee48ac69f8f68024c17", "score": "0.654555", "text": "protected void init() {\n }", "title": "" }, { "docid": "3594f03da4e5c1219df8f7a2c712d7c5", "score": "0.6541884", "text": "@Override\n public void onInit() {\n\n }", "title": "" }, { "docid": "e8d1d80af5517b237582cb5ad0ab4664", "score": "0.6539389", "text": "private void gameInit() {\n\t\tball = new Ball();\n\t\tpaddle = new Paddle();\n\t}", "title": "" }, { "docid": "c2ad86b163e23d65c91f42c219c8c587", "score": "0.65380365", "text": "private void init() {\n\t\tdisplay = new Display(title, width, height);\r\n\t\t//adding the keyManager to the frame so it can listen to the inputs\r\n\t\tdisplay.getFrame().addKeyListener(keyManager);\r\n\t\t//getting all the images from the Assets class\r\n\t\tAssets.init();\r\n\r\n\t\t//initializing the gameCamera object\r\n\t\tgameCamera = new GameCamera(this, 0, 0);\r\n\t\t//initializing the handler object\r\n\t\thandler = new Handler(this);\r\n\r\n\t\t//initializing all the states for other classes to use\r\n\t\tallStates[0] = new MenuState(handler);\r\n\t\tallStates[1] = new HelpState(handler);\r\n\t\tallStates[2] = new GameState(handler);\r\n\t\t\r\n\t\t\r\n\t\t//setting the current state to the menu state because the game needs to start with it\r\n\t\tState.setCurrentState(allStates[0]);\r\n\r\n\t}", "title": "" }, { "docid": "98122bc1bfb64c2c00a712feeccc41a2", "score": "0.65368754", "text": "private void init() {\n\n\t\tbtSearch = (ImageButton) findViewById(R.id.btsearch);\n\t\tbtSearch.setOnClickListener(this);\n\t\tbtShare = (ImageButton) findViewById(R.id.btshare);\n\t\tbtShare.setOnClickListener(this);\n\t\tbtShuffle = (ImageButton) findViewById(R.id.btshuffle);\n\t\tbtShuffle.setOnClickListener(this);\n\t\tbtArtists = (ImageButton) findViewById(R.id.btArtists);\n\t\tbtArtists.setOnClickListener(this);\n\t\tbtSongs = (ImageButton) findViewById(R.id.btSongs);\n\t\tbtSongs.setOnClickListener(this);\n\t\tbtAlbums = (ImageButton) findViewById(R.id.btAlbums);\n\t\tbtAlbums.setOnClickListener(this);\n\t\tbtGenres = (ImageButton) findViewById(R.id.btgenres);\n\t\tbtGenres.setOnClickListener(this);\n\n\t}", "title": "" }, { "docid": "2c82c2f018a833fa2e54df91fd4f4edc", "score": "0.65239584", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tinstance = this; \n\t\tinit();\n\t\tinitAliWkong();\n\t\tstartTalkingService();\n\t}", "title": "" }, { "docid": "58b626080e947f873baf898c04924835", "score": "0.6523189", "text": "private void initialise() {\n btnBackUp = (Button) findViewById(R.id.btnBackUp);\n btnCharge = (Button) findViewById(R.id.btnCharrge);\n et = (EditText) findViewById(R.id.editText2);\n tv = (TextView) findViewById(R.id.textView2);\n\n }", "title": "" }, { "docid": "66fdbd14d06171c4fb7691765087338f", "score": "0.6515962", "text": "@Override\n public void onCreate(Bundle savedInstanceState) \n {\n super.onCreate(savedInstanceState);\n \n Initialize();\n \n // on passe au chargement du songo'o\n LoadSongoo();\n }", "title": "" }, { "docid": "7443197a482e35fa23da4f8c725b884a", "score": "0.65154755", "text": "@Override\n protected void onStart(){\n super.onStart();\n initialize();\n }", "title": "" }, { "docid": "8abe781163006ca07befb65c0a75363a", "score": "0.6514235", "text": "private void initGlobalValues() {\n mainListViewItemArrayList = new ArrayList<>();\n mainListViewItemArrayList.add(\"Search\");\n\n searchListViewItemArrayList = new ArrayList<>();\n searchListViewItemArrayList.add(\"AutoCompleteTextView\");\n searchListViewItemArrayList.add(\"EditText + ListView\");\n\n initDefaultSearchItem();\n }", "title": "" }, { "docid": "d17ce30a5f5630d15589bbc34d081ac6", "score": "0.6510503", "text": "protected void commonInit() {\n \t\t// Allocate resources for managing static data\n \t\tthis.teams = new HashMap<String, EMSTeam>();\n \t\tthis.events = new ArrayList<EMSArenaEvent>();\n \n \t\t// Allocate resources for managing dynamic data\n \t\tthis.playersInLobby = new HashSet<Player>();\t//new ConcurrentSkipListSet<Player>();\n \t\tthis.playersLoc = new HashMap<Player, Location>();\n \t\tthis.protections = new HashSet<Location>();\n \t\tthis.playersDeathInv = new HashMap<Player, PlayerDeathInventory>();\n \t\tthis.readyPlayers = new HashSet<Player>();\n \t\tthis.arenaEntities = new HashSet<Entity>();\n \t\tthis.playerTimes = new HashMap<Player, EMSPlayerTimeData>();\n \t\tthis.joinQueues = new HashMap<String, ArrayList<Player>>();\n \t\tthis.fullTeams = 0;\n \t\tthis.deferredBlockUpdates = null;\n \t\tthis.timeLimit = 0;\n \t\tthis.perPeriodLimit = 0;\n \t\tthis.timerUpdate = -1;\n \t\tthis.disableTeamChat = false;\n \t\tthis.refInvLoader = null;\n \t}", "title": "" }, { "docid": "7f6fbfd914773925c45c880fbad9bdea", "score": "0.6506081", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tapp = this;\n\t\tmkdir();\n\t\tif(shouldInit()){ \n\t\t\tMiPushClient.registerPush(this, APP_ID, APP_KEY);\n\t\t}\n\t\tWindowManager manager = (WindowManager)getSystemService(Context.WINDOW_SERVICE);\n\t\tDisplay display = manager.getDefaultDisplay();\n\t\twidths = display.getWidth();\n\t\theights = display.getHeight();\n\t\tmActivityManager = MActivityManager.getInstance();\n\t\tmAppConfig = ContextConfig.getInstance();\n\t\t// mAppConfig.setEnvironmentType(EnvironmentType.PUBLISH);\n\t\t//mAppConfig.setEnvironmentType(EnvironmentType.INNER);\n\t\tmSharedPreferences = getSharedPreferences(SharedPreferenceConst.LOCK,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\t// ButterKnife.setDebug(BuildConfig.DEBUG);\n\t\t// Tools.uploadLog();\n\t\tinitImageLoader();\n\t\tUserInfo.getInstance(this).setUserType(Constants.USERTYPE);\n\t}", "title": "" }, { "docid": "867c40e974d367ddb083a75ad5246de2", "score": "0.65008813", "text": "private void initialiseOnScreenComponents() {\n tvFamousQuote = (TextView) findViewById(R.id.tvFamousQuote);\n tvAuthor = (TextView) findViewById(R.id.tvAuthor);\n btnFavourites = (Button) findViewById(R.id.btnFavourites);\n\n btnFavourites.setOnClickListener(this);\n }", "title": "" }, { "docid": "dee50a7ac32123e92753fd4b5d557444", "score": "0.6498971", "text": "private void init() {\n\t\tnaviBar = findViewById(R.id.navi_bar);\n\t\tlogView = (EditText) findViewById(R.id.logview);\n\t\tclose = (Button) findViewById(R.id.close_button);\n\t\tinitBase(logView);\n\t\tNavigationBarUtils.initNavigationBar(this, naviBar, true, ScreenContents.class, false, ScreenUseBrider.class,\n\t\t\t\tfalse, ScreenContents.class);\n\t\tclose.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tScreenUseBrider.this.finish();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "147aa61e35c8c1ce0e8539ea66047fba", "score": "0.64946544", "text": "private void initialize ()\n {\n this.addDefaultInfo();\n this.addDescription();\n }", "title": "" }, { "docid": "0f85ce4cf2392115131cc4765ab757b5", "score": "0.64925385", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tActivityList.activitys.add(this);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tmApp = BaseApplication.getInstance();\n\t\timageLoader = mApp.imageLoader;\n\t\timageLoader_group = mApp.imageLoader_group;\n defaultOptions = mApp.defaultOptions;\n defaultOptionsGroup = mApp.defaultOptionsGroup;\n defaultOptionsPhoto = mApp.defaultOptionsPhoto;\n\t}", "title": "" } ]
95b159c8fdbce43e35ede95b6cdd3425
Es kann nur ein "Administrator" erstellt werden, falls noch nicht das Maximum an "Administratoren" erreicht wurde.
[ { "docid": "6a3b45a8a3038d4c6a32971549b57023", "score": "0.0", "text": "public Administrator(String vorname, String nachname, String email, LocalDateTime geburtsDatum, String benutzerName, String passwort) throws TooMuchAngestellteException {\n super(vorname, nachname, email, geburtsDatum, benutzerName, passwort);\n if ((administratorCounter + 1) <= ADMINISTRATOR_MAX){\n this.setPID(administratorCounter++);\n }else {\n throw new TooMuchAngestellteException(\"Es kann kein Administrator mehr erstellt werden!\");\n }\n }", "title": "" } ]
[ { "docid": "9773265bebb5fb072a335e9b553d6662", "score": "0.7298827", "text": "public boolean isAdministrator()\r\n\t{\r\n\t\treturn administrator;\r\n\t}", "title": "" }, { "docid": "5e12e34cae366b060045ca82f2e08a44", "score": "0.7259667", "text": "@Override\n\tpublic boolean esAdministrador() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "743b4868af1cc8ae8c553b50e06ac543", "score": "0.7238588", "text": "boolean isAdministrator();", "title": "" }, { "docid": "ba5d3d7bf767fd3f859abe20649f14a8", "score": "0.71905315", "text": "public boolean isAdministrator() {\n return administrator;\n }", "title": "" }, { "docid": "ba5d3d7bf767fd3f859abe20649f14a8", "score": "0.71905315", "text": "public boolean isAdministrator() {\n return administrator;\n }", "title": "" }, { "docid": "a4f5d9db607c86e26866bf8647fbcc24", "score": "0.70615816", "text": "public boolean getIsAdministrator() {\n\t\treturn isAdministrator;\n\t}", "title": "" }, { "docid": "58cb1c4c3e1ada29cac09dc185ae31f2", "score": "0.69726664", "text": "public boolean isAdmin(){\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "a0cf8ced6a740f923af4a47fa4c3ac8c", "score": "0.6938029", "text": "public java.lang.String getAdministrator_Name() {\n return administrator_Name;\n }", "title": "" }, { "docid": "2e45c73f500287fd28a4698a1dadfb45", "score": "0.68618375", "text": "java.lang.String getAdmin();", "title": "" }, { "docid": "e4d11cbd01ea8640e18b1e7367698069", "score": "0.68534744", "text": "public boolean isAdmin(){\n return this.getUserType() == 'A' || this.getUserType() =='a';\n }", "title": "" }, { "docid": "5961171a5bb223e1a63dc647c22d1ae4", "score": "0.68441767", "text": "public boolean isAdministrator() {\n if (status == null) {\n return false;\n }\n \n return status.toLowerCase().trim().equals(\"admin\");\n }", "title": "" }, { "docid": "5fdb1776c7d0554f5a2efcea73fc6f52", "score": "0.6788059", "text": "public boolean isAdministrator() {\n\t\tif (isLoggedIn()) {\n\t\t\treturn user.isAdministrator();\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8333f661245aea69bf871d038a7bff9d", "score": "0.6754221", "text": "public boolean isAdmin() {\r\n\t\treturn roles.contains(RoleEnum.ROLE_ADMINISTRATOR.getLabel());\r\n\t}", "title": "" }, { "docid": "273e49436bfb689465f6838325c2a9fa", "score": "0.6708185", "text": "public java.lang.String getAdministrator_ID() {\n return administrator_ID;\n }", "title": "" }, { "docid": "4c0043168d0d267dbfea3696e0b9f872", "score": "0.6703377", "text": "public void habilitarOpcionesAdministradorLogueado(){\r\n clControladorPrincipal.getFrmPrincipal().getMnuSalir().setEnabled(true);\r\n clControladorPrincipal.getFrmPrincipal().getMnuAdministracion().setEnabled(true);\r\n clControladorPrincipal.getFrmPrincipal().getMnuIngresar().setEnabled(false);\r\n clControladorPrincipal.getInfLoginAdministrador().dispose();\r\n }", "title": "" }, { "docid": "ad3cd14867c11f3e9d143d495d6c0c81", "score": "0.67010266", "text": "public void setAdmin() {\n\t\tthis.isAdmin = true;\n\t}", "title": "" }, { "docid": "878d5b1b63caec0887b36fcada4a2060", "score": "0.66992146", "text": "@Override\n\tpublic boolean updateAdmin(User u) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6f352f861425e2ca955851335450cf78", "score": "0.6680956", "text": "public boolean isEmployeeAdmin() {\n return securityLevel >= 7;\n }", "title": "" }, { "docid": "04c9867f8448b3cc451e9348a4da2b3f", "score": "0.66653186", "text": "public boolean adminPower() {\n\t\tResultSet account=userDAO.edit(username);\n\t\ttry {\n\t\t\tif(!account.next()){\n\t\t\t\tSystem.out.println(\"whoops \"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tcurrent_user=new UserDTO(account.getString(1),account.getString(2),account.getString(8),account.getString(3),account.getString(4),account.getString(5),account.getString(6),account.getString(7),account.getString(9),account.getBoolean(10));\n\t\t\tSystem.out.println(current_user.getName());\n\t\n\t\t\tsetAdminList(userDAO.read());\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "a853a6612bf34ea7abdf7d71c32b7934", "score": "0.6592067", "text": "public Administrateur getAdministrateur() {\r\n\t\treturn a;\r\n\t}", "title": "" }, { "docid": "e05c9f5adf5689a7354cd78bf532f0cb", "score": "0.65886796", "text": "@Override\n\tpublic int createAdmin() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "3a0186ef14aea8cdfc1636c2d2212dec", "score": "0.65578634", "text": "public int getAdminLevel() {\n\t\treturn adminLevel;\n\t}", "title": "" }, { "docid": "cc1d1c3a6031052c89494e4d2276c9f6", "score": "0.65353584", "text": "@Override\n public boolean getIsInitialAdmin(){return false;}", "title": "" }, { "docid": "ed2069192349047f97a0cdc4dafd0f7c", "score": "0.65351784", "text": "public boolean checkPrivilegesAdmin()\n\t{\n\t\tCommonProfile profile = getUserProfile();\n\t\t//if you don't have admin role then redirect back to dashboard\n\t\tif(User.findById(profile.getId()).role == User.Role.Admin || User.findById(profile.getId()).role == User.Role.SuperAdmin)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "335e21e6c8d823277662828ef6759175", "score": "0.65326023", "text": "public boolean isAdmin() {\n\t\treturn this.isAdmin;\n\t}", "title": "" }, { "docid": "f545c02c767826e12d4632fbf6fc280d", "score": "0.65200317", "text": "public boolean isFirstAdmin() { return firstAdmin; }", "title": "" }, { "docid": "99d057fbb3ff1f8dd8b8790e7ebe96d8", "score": "0.64769256", "text": "public void setAdministrator_Name(java.lang.String administrator_Name) {\n this.administrator_Name = administrator_Name;\n }", "title": "" }, { "docid": "b2a45fd7b90fad13bb342fe6b626206b", "score": "0.64727736", "text": "boolean isSystemAdmin();", "title": "" }, { "docid": "50cc499306030f079b14c997378354b6", "score": "0.6465973", "text": "public boolean isAdmin() {\n\t\treturn StringUtils.areStringsEqual(this.role.getRoleName(), ADMIN);\n\t}", "title": "" }, { "docid": "c9ca5a3eddb9fa35d3c5d8b643bdc4e0", "score": "0.64518297", "text": "public void setOnly_admin(Integer only_admin) {\n this.only_admin = only_admin;\n }", "title": "" }, { "docid": "3172a4b058dca3cc70487b857c74659d", "score": "0.6451516", "text": "void lanzar_menu_admin(){\n\t\tSystem.out.println(\"Bienvenido señor Admin:\");\n\t\tSystem.out.println(\"(1) Crear Jugador\"+\"\\n\"+\"(2) Crear Jugada Compleja\"+\"\\n\"+\"(3) Consultar estadísticas\"+\"\\n\"+\n\t\t\t\t\"(4) Consultar lista de jugadores\"+\"\\n\"+\"(5) Consultar info sobre juagadores\"+\"\\n\"+\n\t\t\t\t\"(6) Consultar jugadas de un jugador\"+\"\\n\"+\"(7) Consultar jugada especifica de un jugador\"+\n\t\t\t\t\"\\n\"+\"(8) Consultar jugadas disponibles para un jugador\"+\"\\n\"+\"(t) Salir\");\n\t}", "title": "" }, { "docid": "f17ab079d6ccd609c3ae595da98b1886", "score": "0.64438653", "text": "final public boolean isAdmin()\n {\n try\n {\n return getUser().isAdmin();\n }\n catch ( final RaplaException ex )\n {\n }\n return false;\n }", "title": "" }, { "docid": "1b2bf1ccbfd9159de184661138227d71", "score": "0.6443793", "text": "public boolean isAdmin() {\n\t\treturn RoleEnum.ROLE_ADMIN.toString().equals(this.role.toString());\n\t}", "title": "" }, { "docid": "41be13c5fb478c10633d69235d4b9439", "score": "0.64227283", "text": "public void listarUsuariosAdministrador() {\n\t\tSystem.out.println(\"Usuario Administrador: \");\n\t\tfor (int i = 0; i < AdministrarUsuarios.getUsuarioAdministrador().size(); i++) {\n\t\t\tSystem.out.println(i + \" \" + AdministrarUsuarios.getUsuarioAdministrador().get(i).getNombre());\n\t\t}\n\t}", "title": "" }, { "docid": "d1094b775239d5a3e888f3a478933629", "score": "0.64090896", "text": "public void setAdministrator(boolean administrator) {\n this.administrator = administrator;\n }", "title": "" }, { "docid": "f32a1f75954876c06446672df80b5223", "score": "0.6398159", "text": "public String getIsAdmin() {\n return isAdmin;\n }", "title": "" }, { "docid": "06dbee3cbe2275fa75ff6572b86d16f6", "score": "0.6383682", "text": "public Integer getOnly_admin() {\n return only_admin;\n }", "title": "" }, { "docid": "531a8117469e3d9cd0a3b88f41a2b09d", "score": "0.6369999", "text": "@Override\n\tpublic boolean isAuthorized(User user) {\n\t\treturn user.getAdministrator();\n\t}", "title": "" }, { "docid": "6666796c6f215f83455ba766b387379e", "score": "0.63280964", "text": "public String getAdminName()\n {\n return adminName;\n }", "title": "" }, { "docid": "1d68fc2c1ce37f6ee16cd44ddbc25825", "score": "0.63230145", "text": "public String administratorLogin() {\n return this.innerProperties() == null ? null : this.innerProperties().administratorLogin();\n }", "title": "" }, { "docid": "caee4f9856dc328cd4eaad336cf2411e", "score": "0.6267661", "text": "@Override\n\tpublic int addAdmin(Admin Admin) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "eeb28de7848a5ab888e16fff40649273", "score": "0.6265522", "text": "java.lang.String getNewAdmin();", "title": "" }, { "docid": "94e14d3fbdaaaf0dc59bd4fd61ada352", "score": "0.62566376", "text": "public java.lang.String getModeOfAdminitration () {\n\t\treturn modeOfAdminitration;\n\t}", "title": "" }, { "docid": "5de2efae45254976c32aeac193a7e33e", "score": "0.62476057", "text": "public void setAdministrator_ID(java.lang.String administrator_ID) {\n this.administrator_ID = administrator_ID;\n }", "title": "" }, { "docid": "ab672156992a82c03357dc88049aafab", "score": "0.6246207", "text": "public void lastUserNotAdmin(){\n \tint a;\n \ta=userList.size();\n \tlastUser = userList.get(a-1);\n \tlastUser.setUserType(\"user\");\n }", "title": "" }, { "docid": "a559e71226efb375206e44cb0b8e069e", "score": "0.62213206", "text": "public void administration() {\n\t\tclickadmin.click();\n\t}", "title": "" }, { "docid": "7a466a007bfa6d5cd2a2a938b8136f56", "score": "0.6219332", "text": "public void iniciarLogueoAdministrador(){\r\n //if(clControladorPrincipal.estaCerrado(clControladorPrincipal.getInfLoginAdministrador())){//se crea nuevo\r\n clControladorPrincipal.setInfLoginAdministrador( new InfLogin()); \r\n clControladorPrincipal.getFrmPrincipal().getDstContenedorPrincipal().add(clControladorPrincipal.getInfLoginAdministrador());\r\n \r\n clControladorPrincipal.getInfLoginAdministrador().getBtnEntrar().addActionListener(this); \r\n centrarVentanaAdministrador(clControladorPrincipal.getInfLoginAdministrador()); \r\n iniciarInfLoginAdministrador();\r\n \r\n /* } else{\r\n JOptionPane.showMessageDialog(this.clControladorPrincipal.getFrmPrincipal(),\"La ventana de 'Login Adminitrador' ya esta abierta.\");\r\n }*/\r\n }", "title": "" }, { "docid": "e10bab92cc32298d897e16e0995a5683", "score": "0.6216838", "text": "public void setModeOfAdminitration (java.lang.String modeOfAdminitration) {\n\t\tthis.modeOfAdminitration = modeOfAdminitration;\n\t}", "title": "" }, { "docid": "c20634df20c245c79f2c07f0e3b91443", "score": "0.62129223", "text": "public void addAdmin(Administrator admin) {\n administrators.add(admin);\n noAdmin++;\n }", "title": "" }, { "docid": "df756f6b7ed29ad55d2964035f5f7632", "score": "0.6200656", "text": "@Override\r\n public boolean createAdmin() {\n return false;\r\n }", "title": "" }, { "docid": "5c7fd317fe9ec70adee7dd6429f85c4b", "score": "0.62003714", "text": "public boolean isAdmin(String usertype){\r\n\t\tif(\"Admin\".equals(usertype))\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "35a4140f0985542a671d61195ba68d13", "score": "0.6155407", "text": "public String getGroupAdmin() {\n return groupAdmin;\n }", "title": "" }, { "docid": "43fbd697676f1982533f69dd7a8d074a", "score": "0.6153025", "text": "public static boolean isCurrentUserAdmin() {\n var isAdmin = false;\n final var groups = Advapi32Util.getCurrentUserGroups();\n for(final var group : groups) {\n final var sid = new WinNT.PSIDByReference();\n Advapi32.INSTANCE.ConvertStringSidToSid(group.sidString, sid);\n if(Advapi32.INSTANCE.IsWellKnownSid(sid.getValue(),\n WinNT.WELL_KNOWN_SID_TYPE.WinBuiltinAdministratorsSid)) {\n isAdmin = true;\n break;\n }\n }\n return isAdmin;\n }", "title": "" }, { "docid": "2c97e908020a2f4e13ed537bc45ba47e", "score": "0.6137336", "text": "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn \"admin\";\n\t\t\t}", "title": "" }, { "docid": "89153414f25ead3bb62ed6e6a44856d5", "score": "0.61356574", "text": "public boolean isIsAdminUser() {\n return isAdminUser;\n }", "title": "" }, { "docid": "8cd80540eb24511f6efd8547ecc4c247", "score": "0.61292964", "text": "public Integer getIdAdministrativo() {\n\t\t\treturn idAdministrativo;\n\t}", "title": "" }, { "docid": "3e456ac68f18a95584630536cd4f1039", "score": "0.6126899", "text": "public boolean isAdminUser() {\n return isAuthority(Role.AUTHORITY_ADMIN);\n }", "title": "" }, { "docid": "eefaac8070e78e539362955a84189d18", "score": "0.61152756", "text": "public boolean isAdmin() {\n\t return roles.contains(Role.ADMIN);\n\t }", "title": "" }, { "docid": "95b14077ab222403bb05da89e0e8f914", "score": "0.6097211", "text": "@Override\n\t\t\tpublic String getUsername() {\n\t\t\t\treturn \"admin\";\n\t\t\t}", "title": "" }, { "docid": "2334c58b2d7f7a3efef50a599771d810", "score": "0.6056107", "text": "public void setIsAdministrator(boolean isAdministrator) {\n\t\tthis.isAdministrator = isAdministrator;\n\t}", "title": "" }, { "docid": "34ff7fe85b32d5e99e60d25c1d7168fa", "score": "0.605454", "text": "private void comprobarPrivilegiosUsuarioActivo() {\n if (UsuarioActivo.getInstance().getUsuario().isPermisosAdministrador() == true) {\n this.cargarUsuarios(); \n } else {\n JOptionPane.showMessageDialog(this,\n \"No tiene privilegios de Administrador para poder acceder a esta seccion.\",\n \"Error\", JOptionPane.ERROR_MESSAGE);\n this.dispose();\n }\n }", "title": "" }, { "docid": "b74f1a7a89736d63c59843c0ab20c6f5", "score": "0.60437715", "text": "public Boolean getAdmin() {\n return admin;\n }", "title": "" }, { "docid": "610783002f8c4b91613871d271a9617a", "score": "0.60229975", "text": "public Integer getAdmin()\n {\n return (Integer) getAttributeInternal(ADMIN);\n }", "title": "" }, { "docid": "ebcc98ab7c9e97848e57cce729fd0421", "score": "0.6022371", "text": "private void createAdmin() {\n try (PreparedStatement statement = this.connection.prepareStatement(this.props.getProperty(\"check_root\"));\n ResultSet set = statement.executeQuery();\n PreparedStatement rootStatement = this.connection.prepareStatement(this.props.getProperty(\"create_root\"));) {\n set.next();\n int count = set.getInt(1);\n if (count < 1) {\n rootStatement.executeUpdate();\n LOGGER.info(\"Admin user created.\");\n }\n } catch (SQLException e) {\n LOGGER.error(\"Cannot create root\", e.fillInStackTrace());\n }\n }", "title": "" }, { "docid": "4cb63aaa3183851dcfd295281ef0a272", "score": "0.60207057", "text": "public void setAdminName(String adminName)\n {\n this.adminName = adminName;\n }", "title": "" }, { "docid": "f4fe7eafea6efe6f05002d705af6f115", "score": "0.6016818", "text": "private boolean isAdmin() throws Exception {\r\n TCSubject subject = SecurityHelper.getUserSubject(getUser().getId());\r\n boolean found = false;\r\n for (Iterator it = subject.getPrincipals().iterator(); it.hasNext() && !found;) {\r\n found = ((TCPrincipal) it.next()).getId() == Constants.CONTEST_ADMIN_ROLE_ID;\r\n }\r\n return found;\r\n }", "title": "" }, { "docid": "5297e7af1b593318f5dbaa0ce82755c5", "score": "0.60112035", "text": "public int getAdminCount() {\n return adminParams.size();\n }", "title": "" }, { "docid": "34cb1132c0228cfa6c9290857f639583", "score": "0.6007892", "text": "private void createAdminIfAbsent() {\r\n\t\tString qs = \"select count(*) from User\";\r\n\t\tLong cnt = (Long) getHibernateTemplate().find(qs).get(0);\r\n\t\tif (cnt == 0) {\r\n\t\t\tUser usr = User.getInstanceAdmin();\r\n\t\t\tgetHibernateTemplate().save(usr);\r\n\t\t\tgetHibernateTemplate().flush();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "efc2e6c123fa45f876091b173002ee20", "score": "0.60042584", "text": "public void addAdministrator(Administrator A1) {\n\t\ttry (BufferedWriter bw = new BufferedWriter(new FileWriter(userDb, true))) {\n\t\t\tString administrator = A1.getUserType() + \" \" + A1.getUsername() + \" \" + A1.getPassword() + \" \" + A1.getFirstName() + \" \" + A1.getLastName() + \" \" + A1.getCpr() + \" \" + \"\\n\";\n\t\t\tbw.write(administrator);\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "099aabdb16d2cb39ab01ce653754379f", "score": "0.6003349", "text": "private String VIsAdmin(DB_user_table user){\n System.out.print(\"Administrator\\n(y/n): \" + Control.ckForAdmin(user));\n return userInput.nextLine();\n }", "title": "" }, { "docid": "7ec0cdbdcc3aac64bbfffcfa1e47c71d", "score": "0.5999482", "text": "public java.lang.String getAdmin() {\n java.lang.Object ref = admin_;\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 admin_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "e2daf3d1c09c4c0fe4890a09d8a4b990", "score": "0.5998276", "text": "private boolean administrationAllowed() {\n return Files.isReadable(Paths.get(ADMIN_LOCK_FILE));\n }", "title": "" }, { "docid": "1d0fb451ceffcdc63805b6f18e6dccbb", "score": "0.5985731", "text": "void makeSuperAdministrator(String userId);", "title": "" }, { "docid": "01b1f571b51487491be071efe45a9834", "score": "0.5980761", "text": "private void adminLogin() {\n Administrator admin = App.getDatabase().getAdminIfItExists(usernameTextField.getText());\n if (admin != null) {\n if ((admin.getPassword() != null) && (admin.getPassword().equals(passwordField.getText()))) {\n AccountManager.setCurrentUser(admin);\n resetFields();\n PageNav.loadNewPage(PageNav.ADMINMENU);\n } else {\n invalidLoginNotification();\n }\n } else {\n invalidLoginNotification();\n }\n }", "title": "" }, { "docid": "0810968d13d6c9333f41c71b383d88a1", "score": "0.59805614", "text": "public boolean isAdmin() {\n return !isDisabled() && adminStudiesWithAccess != null && !adminStudiesWithAccess.isEmpty();\n }", "title": "" }, { "docid": "4d65e044d8f81648b9313bef196b291b", "score": "0.5966396", "text": "@Override\r\n\tpublic AdminAccount getAdmin() {\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cf92a877815debfff4f7f50aa4dbd938", "score": "0.59517735", "text": "public void setAdmin(Integer value)\n {\n setAttributeInternal(ADMIN, value);\n }", "title": "" }, { "docid": "657fec4af6519186c6410783fa3c410b", "score": "0.5951365", "text": "private void autorizacion() {\n if (Sesion.getRol().getRol().equals(\"Administrador\")) {\n btnagregarHist.setEnabled(true);\n tblhistorialEntrega.setEnabled(true);\n }\n }", "title": "" }, { "docid": "7bd3f672f8079cea1d3001319712912d", "score": "0.595021", "text": "@Override\n public void setIsInitialAdmin(boolean isInitialAdmin) {}", "title": "" }, { "docid": "f15777d6572f8b927238c9d9a9af82cd", "score": "0.59332263", "text": "public String getAdminLogin() {\n return adminLogin;\n }", "title": "" }, { "docid": "b8da96393e66472824cc4726754afc00", "score": "0.5930124", "text": "protected boolean userIsSystemAdministrator(Request request)\n\t{\n\t\tString logMessage;\n\t\t\n\t\t/*\n\t\t * allow System Administrators access\n\t\t */\n\t\tif( this.isSystemAdministrator( request.user ) ) {\n\t\t\tlogMessage = String.format(\"USER: %s is ALLOWED access due to having System Administrator privileges\", \n\t\t\t\trequest.user.getIdentity()\n\t\t\t);\n\t\t\t\n\t\t\tlog.debug( logMessage );\n\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "9e0a157a105e345352dd902f457d468f", "score": "0.5917686", "text": "public boolean isAdmin(String nomUtilisateur)\n\t{\n\t\tResultSet r = readColumnsOfRecordBasic(\"nomUtilisateur\", nomUtilisateur, new String[] {\"admin\"});\n\t\ttry {\n\t\t\tif (r.next()) \n\t\t\t{\n\t\t\t\tif(r.getInt(1) == 1)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "06f2fe0da77efd46034d5f5c565a307b", "score": "0.5913953", "text": "protected boolean isSystemAdministrator(UserInterface user)\n\t{\n\t\tRequest request = new Request(user, \"any\", SystemAdministratorMarker.getInstance() );\n\t\t\n\t\treturn this.authorizer.authorize(request);\n\t}", "title": "" }, { "docid": "fe38407005522a509fbdb28c5617a2e5", "score": "0.5912631", "text": "private boolean isAdministrator(StorageOSUser storageOSUser) {\n for (String role : storageOSUser.getRoles()) {\n if (role.equalsIgnoreCase(Role.SYSTEM_ADMIN.toString())) {\n return true;\n }\n }\n\n Set<String> tenantRoles = _permissionsHelper.getTenantRolesForUser(storageOSUser,\n URI.create(storageOSUser.getTenantId()), false);\n for (String role : tenantRoles) {\n if (role.equalsIgnoreCase(Role.TENANT_ADMIN.toString())) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "f6bae1530c61128b9f8be4316a7be2a6", "score": "0.5906102", "text": "public boolean permissionToDeleteAnAdministratorUser() {\n Statement st = null;\n ResultSet rs = null;\n try {\n st = getConnection().createStatement();\n rs = st.executeQuery(PERMISSIONTODELETE);\n if (rs.next()) {\n if (rs.getInt(1) > 1) {\n return true;\n }\n }\n } catch (SQLException ex) {\n Logger.getLogger(UserDao.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n closeStatementAndResultSet(rs, st);\n }\n return false;\n }", "title": "" }, { "docid": "dc54566835262e632cc436efdc8aacd2", "score": "0.5886546", "text": "public Boolean getIsGroupAdministrator(){\n\t\treturn hasRole(SharedRole.ROLE_GROUP_ADMIN );\n\t}", "title": "" }, { "docid": "62654e1f10c0ba0e2c51b5aeb32a66ac", "score": "0.58801323", "text": "protected void menuAdmin() {\n\t\t\n\t\tint opcion=0;\n\t\tdo {\n\t\t\tSystem.out.println(\"0.-Salir\");\n\t\t\tSystem.out.println(\"1.-Gestionar clientes.\");\n\t\t\tSystem.out.println(\"2.-Gestionar actividades.\");\n\t\t\tSystem.out.println(\"3.-Generar recibos.\");\n\t\t\tSystem.out.println(\"4.-Pagar recibos.\");\n\t\t\tSystem.out.println(\"5.-Mostrar Recibos.\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Introduce una de las opciones anteriores: \");\n\t\t\topcion=leer.nextInt();leer.nextLine();\n\t\t\tSystem.out.println();\n\t\t\tswitch(opcion) {\n\t\t\tcase 1:\n\t\t\t\t\tgestionarClientes();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(opcion!=0);\t\n\t\t\n\t}", "title": "" }, { "docid": "85cffc3155112a49f119848c71a3c8ba", "score": "0.58788985", "text": "public int getAdmincount() {\r\n\t\tList<User> admins = new ArrayList<User>();\r\n\t\tadminsRecursive(false, admins);\r\n\t\treturn admins.size();\r\n\t}", "title": "" }, { "docid": "fa4b4dcc02cbdf00f0949d80532b4d4e", "score": "0.587365", "text": "public boolean isSystemAdmin(String modId) throws ConfigException{\n ConnectorModule cm = getConnectorModule(modId);\n String resourceType = cm.getObjectType();\n if(resourceType.startsWith(SYSTEM_ADMIN_PREFIX))\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "3656b1b7cd1c0cca8e1bf25a9272f026", "score": "0.58736205", "text": "public boolean isDisabledByAdmin() {\n return mHelper.isDisabledByAdmin();\n }", "title": "" }, { "docid": "0ec388cd8bd0c159e34d2d9878b926d8", "score": "0.58702075", "text": "public String getAdminRole() {\n return adminRole;\n }", "title": "" }, { "docid": "65401bb9c3e2377180b43ff9f32a3405", "score": "0.5867372", "text": "public List<Administrator> getAllAdmins()\n {\n return adminBll.getAllAdmins();\n }", "title": "" }, { "docid": "806969b6cc4cb971a689d76dbe93642b", "score": "0.5865778", "text": "public String addUserAdmin() {\n\t\t\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tlistUsers = serviceUser.findAll();\n\t\t\n\t\tfor(Users user : listUsers) {\n\t\t\tif(user.getLogin().equals(loginUser.getLogin())) {\n\t\t\t\tcontext.addMessage(null, new FacesMessage(\"l'utilisateur existe déjà\"));\n\t\t\t\treturn \"addUserAdmin\";\n\t\t\t}\n\t\t}\n\t\tif(loginUser.getPass().equals(confPassword)) {\n\t\t\tserviceUser.save(loginUser);\n\t\t\treturn \"listUsersAdmin\";\n\t\t}else {\n\t\t\tcontext.addMessage(null, new FacesMessage(\"Les mots de passe ne correspondent pas\") );\n\t\t\treturn \"addUserAdmin\";\n\t\t}\n\t}", "title": "" }, { "docid": "270213549c7867aefb9b6ff56519eb52", "score": "0.5860206", "text": "public void initializeAdminPermissions() {\n this.mFunDisallowedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(this.mContext, \"no_fun\", UserHandle.myUserId());\n this.mFunDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction(this.mContext, \"no_fun\", UserHandle.myUserId());\n }", "title": "" }, { "docid": "fadf63467dcdb4eda80d2d7b5e0ae1d1", "score": "0.5858475", "text": "@java.lang.Override\n public java.lang.String getAdmin() {\n java.lang.Object ref = admin_;\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 admin_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "e17d314afb6b9f3dbcb167b2ca1e7afa", "score": "0.58564144", "text": "public String getAdminId() {\r\n\t\treturn adminId;\r\n\t}", "title": "" }, { "docid": "7de1be717498edc182eb7db75ae3f78d", "score": "0.58390266", "text": "public void iniciarInfLoginAdministrador(){ \r\n clControladorPrincipal.getInfLoginAdministrador().setTitle(\"Login Administrador\"); \r\n //Se añaden las acciones a los controles\r\n clControladorPrincipal.getInfLoginAdministrador().getBtnEntrar().setActionCommand(\"EntrarAdministrador\");\r\n //centrado de formulario \r\n }", "title": "" }, { "docid": "d1bc84d2d9525719f284c1a19506e98c", "score": "0.58362687", "text": "@Test\n\tpublic void testObtenerAdministrador() {\n\t\tAdministrador administrador = null;\n\n\t\ttry {\n\t\t\t// Prueba para obtener el administrador con idadministrador=1\n\t\t\tadministrador = administradordao.obtenerAdministrador(1);\n\t\t\tSystem.out.println(\"id administrador:\" + administrador.getIdAdministrador());\n\n\t\t\tassertTrue(true);\n\n\t\t} catch (MyException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "4f81fcb2467dfb2d36e3ac680ccf05cf", "score": "0.5826462", "text": "public String administratorLoginPassword() {\n return this.innerProperties() == null ? null : this.innerProperties().administratorLoginPassword();\n }", "title": "" }, { "docid": "ec46b99531ac3bb8b0889d130c46316c", "score": "0.5824168", "text": "public void setAdministratorRole(String administratorRole) {\n this.administratorRole = administratorRole;\n }", "title": "" }, { "docid": "3a324fc6a286c289d69212d0269bb928", "score": "0.58037543", "text": "public String getAdminPassword() {\n return adminPassword;\n }", "title": "" } ]
557226fa4021eb7da4bdd60a0f7a6e4e
/ Content of the JSON file > Bytes > String
[ { "docid": "8ae3c9ba68ed805e3e66a79b988ea339", "score": "0.57697743", "text": "private String get_MockResponseFromJSON_File() {\n\n\t\tString resourcesPath = System.getProperty(\"user.dir\");\n\t\tPath path = Paths.get(resourcesPath + \"/src/test/resources/MockResponse_GetCourse.json\");\n\t\ttry {\n\t\t\tSystem.out.println(\"*******************************************\");\n\t\t\tSystem.out.println(new String(Files.readAllBytes(path)));\n\t\t\tSystem.out.println(\"*******************************************\");\n\t\t\treturn new String(Files.readAllBytes(path));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "0bdb121efef4753d052bdbe17c4bd083", "score": "0.71159714", "text": "public String generateStringFromJSON(String path) throws IOException {\n\t return new String(Files.readAllBytes(Paths.get(path)));\n\t}", "title": "" }, { "docid": "957d5041cb6df2534850cb7bf68e1bd4", "score": "0.66927445", "text": "public String json() {\n return contents.json();\n }", "title": "" }, { "docid": "8b37045df0920c425d4df2c299ea5372", "score": "0.66038954", "text": "public String loadFileToString( String jsonfile) throws FileNotFoundException {\r\n String jsonData = \"\";\r\n BufferedReader br = null;\r\n try {\r\n String line;\r\n br = new BufferedReader(new FileReader( jsonfile ));\r\n while ((line = br.readLine()) != null) {\r\n jsonData += line + \"\\n\";\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n try {\r\n if (br != null)\r\n br.close();\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n return jsonData;\r\n }", "title": "" }, { "docid": "cf20c14bfa67955947bc84836f19a82b", "score": "0.63065404", "text": "public String getAssetsJSON(String fileName) {\n String json = null;\n try {\n InputStream inputStream = this.getAssets().open(fileName);\n int size = inputStream.available();\n byte[] buffer = new byte[size];\n inputStream.read(buffer);\n inputStream.close();\n json = new String(buffer, \"UTF-8\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return json;\n }", "title": "" }, { "docid": "4dd50ee0aabf05151b8cbc336962ba25", "score": "0.6202834", "text": "public String loadVillageJSONFromAsset() {\n String villageJson = null;\n try {\n File villageJsonSDCard = new File(Environment.getExternalStorageDirectory() + \"/.POSinternal/Json/\", \"Village.json\");\n FileInputStream stream = new FileInputStream(villageJsonSDCard);\n try {\n FileChannel fc = stream.getChannel();\n MappedByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());\n\n villageJson = Charset.defaultCharset().decode(bb).toString();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n stream.close();\n }\n\n } catch (Exception e) {\n }\n\n return villageJson;\n\n }", "title": "" }, { "docid": "63f888bd9e853ec1f7b4ad66b951c78c", "score": "0.60911965", "text": "public String getJSON() {\n\n // The JSON array will be read in as a string\n String json;\n\n try {\n\n // Get the JSON file from the assests folder\n InputStream is = getAssets().open(\"paris_data.json\");\n\n // Determine the size of the file\n int size = is.available();\n\n // byte array is the size of the file\n byte[] buffer = new byte[size];\n\n // Read the file to the buffer\n is.read(buffer);\n\n // Close the stream\n is.close();\n\n // Convert buffer to string\n json = new String(buffer, \"UTF-8\");\n\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n\n // Return the JSON array from the file as a string\n return json;\n\n\n }", "title": "" }, { "docid": "a9cc5b1c628c77184bc1327f0f8a8b85", "score": "0.6037976", "text": "public String loadCrlJSONFromAsset() {\n String crlJsonStr = null;\n\n try {\n File crlJsonSDCard = new File(Environment.getExternalStorageDirectory() + \"/.POSinternal/Json/\", \"Crl.json\");\n FileInputStream stream = new FileInputStream(crlJsonSDCard);\n try {\n FileChannel fc = stream.getChannel();\n MappedByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());\n\n crlJsonStr = Charset.defaultCharset().decode(bb).toString();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n stream.close();\n }\n\n } catch (Exception e) {\n }\n\n return crlJsonStr;\n }", "title": "" }, { "docid": "9fdfe70122285fc03c69af6155d6a103", "score": "0.60155886", "text": "@Test\n public void fromJSONWithFile() throws Exception {\n Path tempFile = Files.createTempFile(\"test\", \"json\");\n\n // Serialize the instance to JSON and write it to a file.\n String json = instance.toJSON();\n Files.write(tempFile, json.getBytes(\"UTF-8\"));\n\n // Read the file back into a string.\n byte[] fileBytes = Files.readAllBytes(tempFile);\n String fileString = new String(fileBytes);\n\n assertEquals(fileString, json);\n }", "title": "" }, { "docid": "0e199ebd5994adcf642e99cee6ab82c6", "score": "0.59651434", "text": "String serializeJson();", "title": "" }, { "docid": "26bbdff49e32648be537b5c057fc42c9", "score": "0.59235406", "text": "private String getFileContent(String filename) {\r\n String content = null;\r\n try {\r\n content = new String(Files.readAllBytes(Paths.get(filename)), charset);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return content;\r\n }", "title": "" }, { "docid": "0cbad674da9780851b435a71b5c4d2e3", "score": "0.5877319", "text": "private String loadSurveyJson(String filename) {\n try {\n InputStream is = getAssets().open(filename);\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n return new String(buffer, \"UTF-8\");\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "579e4c0082548d0e00c94ef4b9633794", "score": "0.58680004", "text": "byte[] getFileContent() throws IOException\n {\n return fileBytes;\n }", "title": "" }, { "docid": "d88bd08020167ff4cf028d38f3020e1d", "score": "0.58561945", "text": "public String getJson();", "title": "" }, { "docid": "a6179d32871dae9550e06c736efd586e", "score": "0.58438516", "text": "java.lang.String getRawData();", "title": "" }, { "docid": "cdddcd40fcff5ad50032d046cb3f81d4", "score": "0.5829993", "text": "public String writeJSONString();", "title": "" }, { "docid": "055b4edf3663acb26dabb25ea5876d50", "score": "0.58078194", "text": "public byte[] getFileContent() {\n return fileContent;\n }", "title": "" }, { "docid": "a53a8a3d38b400216b5ba9e86201a9fb", "score": "0.5792249", "text": "public JSONArray readJSONFile(){\n JSONObject jobject = null;\n JSONArray jArray =null;\n String json_raw = null;\n try{\n InputStream is = mContext.getAssets().open(\"json_busstop_caa230617\");\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n json_raw = new String(buffer, \"UTF-8\");\n\n } catch(IOException ex){\n ex.printStackTrace();\n return null;\n }\n try {\n json_raw = json_raw.replace(\"//\\r//\\n\", \"\");\n JSONObject jsonraw = new JSONObject(json_raw);\n jArray = jsonraw.getJSONArray(\"value\");\n } catch (JSONException ex){\n ex.printStackTrace();\n return null;\n }\n\n return jArray;\n }", "title": "" }, { "docid": "2c7bf748ea24f647ba56ef3fd3a065f1", "score": "0.57338583", "text": "@Override\n\tpublic JSONArray readFile(String fileName) {\n \tObject obj;\n \tJSONArray logList = new JSONArray();\n JSONParser jsonParser = new JSONParser();\n \n try (FileReader reader = new FileReader(fileName))\n {\n //Read JSON file\n obj = jsonParser.parse(reader);\n \n logList =(JSONArray) obj;\n System.out.println(logList);\n System.out.println(logList.getClass());\n \n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n \n return logList;\n\t}", "title": "" }, { "docid": "8b03091281e71aef2412a8acbcc003c0", "score": "0.57297117", "text": "private JSONObject getLocalJSON(String file) {\n String dir = System.getProperty(\"user.dir\");\n String path = dir + \"/robolectric-tests/src/test/assets/\" + file + \".json\";\n\n try {\n\n // Open the file\n InputStream is = new FileInputStream(path);\n byte[] buffer = new byte[is.available()];\n is.read(buffer);\n\n\n // Read a string in\n String json = new String(buffer, \"UTF-8\");\n is.close();\n\n // Return a JSON object\n return new JSONObject(json);\n }\n catch (IOException e) {}\n catch (JSONException e) {}\n\n return null;\n }", "title": "" }, { "docid": "9445c14ab1e87f1929fc61e8b1c73e6a", "score": "0.5704542", "text": "public synchronized static JSONObject readJsonFromFile(String file) {\n String data = null;\n JSONObject json = null;\n FileReader reader = null;\n try {\n reader = new FileReader(file);\n data = IOUtils.toString(reader);\n json = new JSONObject(data);\n reader.close();\n } catch (Exception ex) {\n \tLogger.getLogger(HelperClass.class.getName()).log(Level.WARN, null, ex);\n }\n return json;\n }", "title": "" }, { "docid": "aabaac428c662759c19b2f48b59b7a6d", "score": "0.5699716", "text": "byte[] getFileAsBytes();", "title": "" }, { "docid": "406e5cec0b14ff134545ebbe69238fe1", "score": "0.56960624", "text": "public byte[] getFileContents() {\n return fileContents;\n }", "title": "" }, { "docid": "b44c583efeda92c6c018c04600144633", "score": "0.5694577", "text": "public String loadJSONFromAsset(String path) {\n String json = null;\n try {\n\n InputStream is = getAssets().open(path);\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n json = new String(buffer, \"UTF-8\");\n\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n }", "title": "" }, { "docid": "955ac4589af60ea8154540bafb2981fb", "score": "0.5692379", "text": "public String getFileContent(File file) throws IOException {\n return IOUtils.toString(new FileReader(file));\n }", "title": "" }, { "docid": "ae509005cccddc8387e81342eab26a1e", "score": "0.5665511", "text": "com.google.protobuf.ByteString getContent();", "title": "" }, { "docid": "6f3d4ad0cf4ebee754760977b4ab207a", "score": "0.5660834", "text": "byte[] getLocalFileDataData();", "title": "" }, { "docid": "34661cacf9b6b11df1d13be7c7b7a30f", "score": "0.56596094", "text": "public static String jsonAssetReader(String path, Context context) {\n AssetManager assetManager = context.getResources().getAssets();\n try {\n InputStream inputStream = assetManager.open(path);\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream,\"UTF-8\"));\n String _line;\n StringBuilder stringBuilder = new StringBuilder();\n while ((_line = reader.readLine()) != null) {\n stringBuilder.append(_line);\n }\n reader.close();\n return stringBuilder.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "57d71a66489257f30cf70d829e3ea5b3", "score": "0.5648358", "text": "public static String getMarcFromJson(File expectedFile) throws FileNotFoundException {\n InputStream inputStream = new FileInputStream(expectedFile);\n MarcReader marcReader = new MarcJsonReader(inputStream);\n OutputStream outputStream = new ByteArrayOutputStream();\n MarcWriter writer = new MarcStreamWriter(outputStream);\n while (marcReader.hasNext()) {\n Record record = marcReader.next();\n writer.write(record);\n }\n\n writer.close();\n return outputStream.toString();\n }", "title": "" }, { "docid": "2c971c351f647f99940b8560bc8fddf9", "score": "0.56448114", "text": "private String getJsonCardDescriptor(String filename) throws IOException {\n InputStream file = ResourceController.getResource(filename);\n return new String(file.readAllBytes());\n }", "title": "" }, { "docid": "c9fa3c01442b5b47bc92d097a1291079", "score": "0.5635138", "text": "public String plainJsonToString();", "title": "" }, { "docid": "e34c50b27c28b2d611ff4d27db50b627", "score": "0.56315166", "text": "public String getFileData() {\r\n return fileData;\r\n }", "title": "" }, { "docid": "68cf980cc4d1293e50fd93717df0378f", "score": "0.5630452", "text": "private String retrieveJSON(final HttpResponse response) throws IOException {\n\t\tfinal StringWriter out = new StringWriter();\n\t\tfinal BufferedReader in = new BufferedReader(new InputStreamReader(response.getEntity().getContent()), 100000);\n\t\tString l;\n\t\twhile ((l = in.readLine()) != null) {\n\t\t\tout.write(l + \"\\n\");\n\t\t}\n\t\tout.flush();\n\t\tout.close();\n\t\tin.close();\n\t\treturn out.toString();\n\t}", "title": "" }, { "docid": "3db9a1f85a6f14ddf5f174d8f72b150b", "score": "0.562846", "text": "private String readFileAsString(String pathToFile) throws URISyntaxException, IOException {\n\n Path path = Paths.get(getClass().getClassLoader().getResource(pathToFile).toURI());\n byte[] fileBytes = Files.readAllBytes(path);\n return new String(fileBytes);\n }", "title": "" }, { "docid": "fd88294701c5f2c93ef2f3d0973e2a34", "score": "0.56214076", "text": "private static JsonObject readJsonFromFile(File path) throws IOException {\n BufferedReader rd = new BufferedReader(new FileReader(path));\n String jsonText = readAll(rd);\n JsonElement jelement = new JsonParser().parse(jsonText);\n JsonObject jobject = jelement.getAsJsonObject();\n return jobject;\n }", "title": "" }, { "docid": "61ec02d7b86b6de4037c9a82371d4026", "score": "0.5603114", "text": "public String get_json_string () {\n\t\tObject json_container = root_context_write.get_json_container();\n\t\tString result;\n\t\ttry {\n\t\t\tresult = JSONValue.toJSONString(json_container);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new MarshalException (\"Exception while writing JSON string\", e);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "2913e3d3a9a8223241a9d94296adbdcc", "score": "0.55995995", "text": "public static String getContent(String fileName) throws IOException {\n byte[] encoded = Files.readAllBytes(Paths.get(fileName));\n return new String(encoded);\n }", "title": "" }, { "docid": "c9a0dfabe003c1e765cb0d94a81a2b82", "score": "0.55995333", "text": "@Test\n\tpublic void readData() throws IOException{\n\t\t\n\t\t\n\t\tString json =System.getProperty(\"user.dir\")+File.separator+\"resource.json\";\n\t\t//Object document = Configuration.defaultConfiguration().jsonProvider().parse(json);\n\t\t\n\t\tString jsonPath = \"$\";\n\n\t\tFile jsonFile = new File(json);\n\n\t\tSystem.out.println(\"Author: \"+JsonPath.read(jsonFile, jsonPath));\n\t\t\n\t}", "title": "" }, { "docid": "75b4aeeaff3b8b3c1117ef7516d117f7", "score": "0.559475", "text": "com.google.protobuf.ByteString getRawData();", "title": "" }, { "docid": "58bc025119372ca8edbe1d5ef0fb4fee", "score": "0.55937666", "text": "public String readDataFromJSON(String key) throws Throwable{\n\t\tFileReader file=new FileReader(jsonFilePath);\n\t\t//convert JSON file Into Java object\n\t\tJSONParser jsonobJ =new JSONParser();\n\t\tObject jObj =jsonobJ.parse(file);\n\t\t//typecast java object to hashmap\n\t\tHashMap map=(HashMap)jObj;\n\t\tString value = map.get(key).toString();\n\t\t//return the value\n\t\treturn value;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "47da18927d95a2b53da040d6d3ac1641", "score": "0.5588367", "text": "public String inputStreamToString(InputStream inputStream) {\n try {\n byte[] bytes = new byte[inputStream.available()];\n inputStream.read(bytes, 0, bytes.length);\n String json = new String(bytes);\n return json;\n } catch (IOException e) {\n return null;\n }\n }", "title": "" }, { "docid": "7c126150b4e0adf21f3c01adf10d7ab4", "score": "0.5556921", "text": "public String loadJSONFromRaw() throws IOException {\n InputStream is = getResources().openRawResource(R.raw.items);\n Writer writer = new StringWriter();\n char[] buffer = new char[1024];\n try {\n Reader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n int n;\n while ((n = reader.read(buffer)) != -1) {\n writer.write(buffer, 0, n);\n }\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n finally {\n is.close();\n }\n String jsonString = writer.toString();\n return jsonString;\n }", "title": "" }, { "docid": "bee3e489852dfa9ea13d534535d9a8ed", "score": "0.55556124", "text": "public String getContent() throws IOException;", "title": "" }, { "docid": "2ad5c3ec062cbd9c81525181feea7181", "score": "0.55327785", "text": "public synchronized String getJSONString() {\n\n\t\treturn getJSONObject().toString();\n\t}", "title": "" }, { "docid": "990af0eee02f21c41d63a58c7f91e3ed", "score": "0.5509506", "text": "@Override\n public String decorate(String JSONFile) {\n ObjectMapper objectMapper = new ObjectMapper();\n JsonNode jsonNode = null;\n try {\n jsonNode = objectMapper.readValue(JSONFile, JsonNode.class);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n return JSONFile;\n }\n try {\n return objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(jsonNode);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n return JSONFile;\n }\n }", "title": "" }, { "docid": "9dc8a022803b0060ba6061ec8b67ee74", "score": "0.5500204", "text": "@Override\n\tpublic byte[] getBody() throws AuthFailureError {\n\t\tString json = gson.toJson(data);\n\t\treturn json.getBytes();\n\t}", "title": "" }, { "docid": "2b9c7d4bfd6dc60f3a1d80da2779b8d6", "score": "0.54786247", "text": "public String getFileContents() {\n return _fileContents;\n }", "title": "" }, { "docid": "2e6debe9096a67937c86b827e658fd86", "score": "0.5448244", "text": "public String getContentAsString() {\r\n return m_byteArray.toString();\r\n }", "title": "" }, { "docid": "179dfe029e6d1728cfd00e9d6b6c5c8d", "score": "0.5428792", "text": "String getDataContent(String newFile) throws MalformedURLException,\n\t\t\tIOException {\n\t\tString result = \"\";\n\t\ttry {\n\t\t\tHttpURLConnection newConnection = this.connection;\n\t\t\tresult = DataRedirection.httpToJSON(newConnection);\n\t\t\tSystem.out.println(result);\n\t\t\tDataRedirection.writeTextToFile(result, newFile);\n\t\t} catch (IOException MalformedURLException) {\n\t\t\tSystem.out.println(\"problem getting data\");\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "b30b43b8fb9989bafbfbd14a7b354281", "score": "0.5420836", "text": "private String readfileFromStorage() {\n\n String result;\n File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM + \"/RecorderGPS/data.txt\");\n\n long length = file.length();\n if (length < 1 || length > Integer.MAX_VALUE) {\n result = \"\";\n Log.w(TAG, \"File is empty or huge: \" + file);\n Toast.makeText(this, \"File is empty or huge\", Toast.LENGTH_SHORT).show();\n } else {\n try (FileReader in = new FileReader(file)) {\n char[] content = new char[(int) length];\n\n int numRead = in.read(content);\n if (numRead != length) {\n Log.e(TAG, \"Incomplete read of \" + file + \". Read chars \" + numRead + \" of \" + length);\n }\n result = new String(content, 0, numRead);\n } catch (Exception ex) {\n Log.e(TAG, \"Failure reading \" + ex);\n Toast.makeText(this, \"\\\"Failure reading \\\"\", Toast.LENGTH_SHORT).show();\n result = \"\";\n }\n }\n Log.d(TAG, \"readfileFromStorage: \" + result);\n return result; //result to string z JSonObject a jak coś poszło nie tak to result =\"\"\n }", "title": "" }, { "docid": "6dcc482faebd99097ced7aab63012ba6", "score": "0.5418006", "text": "private static String convertFileToString(File file) {\n\t\tString content = \"\";\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\t\tStringBuilder stringBuffer = new StringBuilder();\n\t\t\tString line = reader.readLine();\n\t\t\twhile (line != null) {\n\t\t\t\tstringBuffer.append(line);\n\t\t\t\tline = reader.readLine();\n\t\t\t}\n\t\t\tcontent = stringBuffer.toString();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn content;\n\t}", "title": "" }, { "docid": "f68c1606fac4fdf3adc937cd1cb55381", "score": "0.53973603", "text": "private static String slurp(final InputStream inputStream) throws IOException {\n\t\t// APIv9: JsonReader isn't available :(\n\t\t//\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tfinal BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n\t\ttry {\n\t\t\tfinal char[] buf = new char[8192];\n\t\t\tfor (;;) {\n\t\t\t\tfinal int nread = reader.read(buf);\n\t\t\t\tif (nread != -1) {\n\t\t\t\t\tsb.append(buf, 0, nread);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\t\tfinally {\n\t\t\treader.close();\n\t\t}\n\t}", "title": "" }, { "docid": "6a7aa3a3e73ba6b4fc7a292eb5e8e158", "score": "0.53966194", "text": "public static String readFileContent( File file ) throws IOException {\r\n \r\n \t\tString result = null;\r\n \t\tByteArrayOutputStream os = new ByteArrayOutputStream();\r\n \t\tIoUtils.copyStream( file, os );\r\n \t\ttry {\r\n \t\t\tresult = os.toString( \"UTF-8\" );\r\n \t\t} catch( Exception e ) {\r\n \t\t\tresult = os.toString();\r\n \t\t}\r\n \r\n \t\treturn result;\r\n \t}", "title": "" }, { "docid": "50a4388cbd719a5211dc989944c1d823", "score": "0.5391022", "text": "public String getJson() {\n \treturn \"sdfsdf\";\r\n }", "title": "" }, { "docid": "b6899990248ddc3eb038d6b0e90015b5", "score": "0.5386653", "text": "com.google.protobuf.ByteString getInBytes();", "title": "" }, { "docid": "ad4ea2861d210dfa7f14b1547a3a3e13", "score": "0.5374178", "text": "private JsonObject loadJSONFile(String jsonFilePath) throws IOException {\n\tInputStream is = new FileInputStream(jsonFilePath);\n\tJsonReader jsonReader = Json.createReader(is);\n\tJsonObject json = jsonReader.readObject();\n\tjsonReader.close();\n\tis.close();\n\treturn json;\n }", "title": "" }, { "docid": "f3c21d8f520fd14475b78e450728d354", "score": "0.53729504", "text": "@SuppressWarnings(\"resource\")\n\t\tprivate String convertToJson(InputStream ins)\n\t\t{\n\t\t\tScanner\n\t\t\ts = new Scanner(ins).useDelimiter(\"\\n\");\n\t\t\treturn s.hasNext()? s.next():\"\";\n\t\t}", "title": "" }, { "docid": "a197515cf92c6a47d66b19a81de7bb25", "score": "0.5371475", "text": "public String plainJsonWithProvenanceToString();", "title": "" }, { "docid": "5a9376a56a426dd4a1b08db50a56bb1f", "score": "0.53691584", "text": "public String createJSONAndTextFileFromExcel(MultipartFile multipartFile) {\n\t\tString finalFileDataAsString = \"\";\n\t\ttry {\n\t\t\t/* First need to open the file. */\n\t\t\tInputStream fInputStream = new BufferedInputStream(multipartFile.getInputStream());\n\t\t\tWorkbook excelWorkBook = WorkbookFactory.create(fInputStream);\n\t\t\t// Get all excel sheet count.\n\t\t\tint totalSheetNumber = excelWorkBook.getNumberOfSheets();\n\n\t\t\t// Loop in all excel sheet.\n\t\t\tfor (int i = 0; i < totalSheetNumber; i++) {\n\t\t\t\t// Get current sheet.\n\t\t\t\tSheet sheet = excelWorkBook.getSheetAt(i);\n\n\t\t\t\t// Get sheet name.\n\t\t\t\tString sheetName = sheet.getSheetName();\n\n\t\t\t\tif (sheetName != null && sheetName.length() > 0) {\n\t\t\t\t\t// Get current sheet data in a list table.\n\t\t\t\t\tList<List<String>> sheetDataTable = getSheetDataList(sheet);\n\n\t\t\t\t\t// Generate JSON format of above sheet data and write to a JSON file.\n\t\t\t\t\tfinalFileDataAsString = getJSONStringFromList(sheetDataTable);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close excel work book object.\n\t\t\texcelWorkBook.close();\n\t\t} catch (Exception ex) {\n\t\t\tlogger.info(ex.getMessage());\n\t\t}\n\t\treturn finalFileDataAsString;\n\t}", "title": "" }, { "docid": "387ce7fd8ee15e2bed85a436f710078b", "score": "0.5368074", "text": "private static byte[] getFileContent(File file) {\n try (FileInputStream fis = new FileInputStream(file)) {\n byte[] buffer = new byte[1024]; // will be large enough for our tests \n int readBytes = fis.read(buffer, 0, 1024);\n return Arrays.copyOf(buffer, readBytes); // crop unnecessary elements\n } catch (IOException e) {\n System.err.println(\"Warning: Could not print file content. Continueing.\");\n return new byte[0];\n }\n }", "title": "" }, { "docid": "a8e648ac01f62d3fca0ca1632737cbc9", "score": "0.5362838", "text": "String getContent() throws IOException;", "title": "" }, { "docid": "eb87882f60742587ba1e6a24537ac109", "score": "0.53603256", "text": "public static String getJsonFile(String jsonFileName, String jsonDir) {\r\n\t\tString jsonPath = null;\r\n\t\tjsonPath = jsonDir.concat(jsonFileName);\r\n//\t\tlog4j.debug(\"path de busqueda: [\".concat(jsonPath).concat(\"]\"));\r\n\t\tString jsonFile = \"[]\";\r\n\t\ttry {\r\n\t\t\tjsonFile = StringUtily.getBuilderNoTabsFile(jsonPath, CHARSET).toString();\r\n\t\t} catch (IOException e) {\t\t\t\r\n\t\t\tSystem.err.println(\"Excepción al generar Json desde archivo: [\" + jsonPath + \"]: \");\r\n\t\t\tjsonFile = \"[]\";\r\n\t\t}\r\n\t\treturn jsonFile;\r\n\t}", "title": "" }, { "docid": "ea899d357f290ae0ce4847e46f71c63b", "score": "0.53500795", "text": "private String loadJSONfromAssets() {\n String json = null;\n try{\n Bundle bundle = getIntent().getExtras();\n String h = bundle.getString(\"key\" );\n InputStream is = getAssets().open(h);\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n json = new String(buffer, \"UTF-8\");\n }catch (IOException e){\n e.printStackTrace();\n return null;\n }\n return json;\n\n }", "title": "" }, { "docid": "1acb624a8409a2a78b7903dc96b17f59", "score": "0.5341169", "text": "private JsonObject loadJSONFile(String jsonFilePath) throws IOException {\r\n InputStream is = new FileInputStream(jsonFilePath);\r\n JsonReader jsonReader = Json.createReader(is);\r\n JsonObject json = jsonReader.readObject();\r\n jsonReader.close();\r\n is.close();\r\n return json;\r\n }", "title": "" }, { "docid": "1acb624a8409a2a78b7903dc96b17f59", "score": "0.5341169", "text": "private JsonObject loadJSONFile(String jsonFilePath) throws IOException {\r\n InputStream is = new FileInputStream(jsonFilePath);\r\n JsonReader jsonReader = Json.createReader(is);\r\n JsonObject json = jsonReader.readObject();\r\n jsonReader.close();\r\n is.close();\r\n return json;\r\n }", "title": "" }, { "docid": "3246eefe4dbd7d92defe6d6b95257cea", "score": "0.53351825", "text": "String toJson();", "title": "" }, { "docid": "3246eefe4dbd7d92defe6d6b95257cea", "score": "0.53351825", "text": "String toJson();", "title": "" }, { "docid": "4ca69d0045582e1f758aee7cd38b735f", "score": "0.5335161", "text": "public static String getFileContent(File file) {\n String readString = \"\";\n try {\n FileInputStream fileInputStream = new FileInputStream(file);\n\n BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\n\n byte[] buffer = new byte[1024];\n int bytesRead;\n\n while (bufferedInputStream.available() > 0) {\n bytesRead = bufferedInputStream.read(buffer);\n readString = readString.concat(new String(buffer, 0, bytesRead));\n }\n\n bufferedInputStream.close();\n } catch (IOException e) {}\n return readString;\n }", "title": "" }, { "docid": "86a03320b550c8efcecc3956619c8435", "score": "0.5324074", "text": "public String loadJSONFromAssets(String assetName) {\r\n String json;\r\n try {\r\n\r\n InputStream is = context.getAssets().open(assetName);\r\n\r\n int size = is.available();\r\n\r\n byte[] buffer = new byte[size];\r\n\r\n is.read(buffer);\r\n\r\n is.close();\r\n\r\n json = new String(buffer, \"UTF-8\");\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n json = null;\r\n }\r\n\r\n return json;\r\n }", "title": "" }, { "docid": "dc317ab9b556ee0fecf5071005365d0c", "score": "0.53197026", "text": "public static String readFileContent( File file ) throws IOException {\n\n\t\tString result = null;\n\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\n\t\tUtils.copyStream( file, os );\n\t\tresult = os.toString( \"UTF-8\" );\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "0725d3ea7dfd5d631528d794d9af17b4", "score": "0.5318979", "text": "public byte[] getContent()\n {\n return _contents;\n }", "title": "" }, { "docid": "2e062307238f253bd2163d1a2f71c253", "score": "0.5318118", "text": "private String getJSONString(String subPath) {\n String returnString = \"\";\n\n try {\n URL url = new URL(PATH_OF_API+subPath);\n\n // read text returned by server\n BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));\n\n String line;\n while ((line = in.readLine()) != null) {\n returnString += line;\n }\n in.close();\n\n }\n catch (MalformedURLException e) {\n System.out.println(\"Malformed URL: \" + e.getMessage());\n }\n catch (IOException e) {\n System.out.println(\"I/O Error: \" + e.getMessage());\n }\n\n return returnString;\n }", "title": "" }, { "docid": "6b8be1034d1e9da89bc7d47bf4d98ffe", "score": "0.53058046", "text": "public String stringContent() {\n return new String(this.byteArrayContent, StandardCharsets.UTF_8);\n }", "title": "" }, { "docid": "8d045127577ace525641c551e22c4d43", "score": "0.5301427", "text": "public String readFileAsString(String filePath) throws IOException {\r\n StringBuffer fileData = new StringBuffer();\r\n BufferedReader reader = new BufferedReader(\r\n new FileReader(filePath));\r\n char[] buf = new char[1024];\r\n int numRead=0;\r\n while((numRead=reader.read(buf)) != -1){\r\n String readData = String.valueOf(buf, 0, numRead);\r\n fileData.append(readData);\r\n }\r\n reader.close();\r\n return fileData.toString();\r\n }", "title": "" }, { "docid": "658985c3a7791d0bf7532521a65c1f2f", "score": "0.5297954", "text": "public JsonNode toJSON(@Nullable URI base) {\n Path basePath = null;\n if (base != null) {\n try {\n basePath = Paths.get(base).getParent();\n } catch (FileSystemNotFoundException ex) {\n /* this is ok, just means we can't resolve the base URI */\n }\n }\n\n JsonNodeFactory nf = JsonNodeFactory.instance;\n\n ObjectNode object = nf.objectNode();\n object.put(\"type\", \"textfile\");\n\n Path path = getFile();\n if (basePath != null) {\n path = basePath.relativize(path);\n }\n object.put(\"file\", path.toString().replace(File.separatorChar, '/'));\n\n object.setAll(format.toJSON());\n\n return object;\n }", "title": "" }, { "docid": "d744acca48203b7a3d7f7557e020b047", "score": "0.52892834", "text": "public static String readFileGoogleStorage(String fileName) {\r\n\t\tString content = \"\";\r\n\t\ttry {\r\n\r\n\t\t\tFileService fileService = FileServiceFactory.getFileService();\r\n\t\t\tAppEngineFile readableFile = new AppEngineFile(fileName);\r\n\t\t\tFileReadChannel readChannel = fileService.openReadChannel(\r\n\t\t\t\t\treadableFile, false);\r\n\r\n\t\t\tInputStream is = Channels.newInputStream(readChannel);\r\n\t\t\tByteArrayOutputStream tempBAOS = new ByteArrayOutputStream();\r\n\r\n\t\t\tint length;\r\n\t\t\tbyte[] buffer = new byte[10240];\r\n\t\t\twhile ((length = is.read(buffer, 0,\r\n\t\t\t\t\tbuffer.length)) != -1) {\r\n\t\t\t\ttempBAOS.write(buffer, 0, length);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcontent = new String(tempBAOS.toByteArray());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\t\t\r\n\t\treturn content;\r\n\t}", "title": "" }, { "docid": "adcc49f8131736d6108a207b15b7c76b", "score": "0.52806276", "text": "private static String fileToString(String fileName) {\n String fileAsString = \"\";\n try {\n InputStream file = MapFactory.class.getResourceAsStream(fileName);\n BufferedReader buf = new BufferedReader(new InputStreamReader(file));\n String line = buf.readLine();\n StringBuilder sb = new StringBuilder();\n while (line != null) {\n sb.append(line).append(\"\\n\");\n line = buf.readLine();\n }\n fileAsString = sb.toString();\n buf.close();\n } catch (IOException e) {\n System.out.println(\"Map file not found\");\n e.printStackTrace();\n }\n return fileAsString;\n }", "title": "" }, { "docid": "872a3779f902d2e81a81909df9d53040", "score": "0.5278588", "text": "public String devuelveJson();", "title": "" }, { "docid": "3b8a78f7f9c3eb669d96d4e0534c3fe0", "score": "0.5275001", "text": "private String GetFileContent(File file) {\n String curline = \"\";\n String content = \"\";\n boolean recordFlag = false;\n try {\n InputStreamReader read = new InputStreamReader(new FileInputStream(file),\"UTF-8\");\n BufferedReader bufferedReader = new BufferedReader(read);\n\n while((curline = bufferedReader.readLine()) != null){\n if (recordFlag) {\n content += curline;\n } else {\n if (curline.equals(\"#Content#\")) {\n recordFlag = true;\n }\n }\n }\n\n bufferedReader.close();\n read.close();\n } catch (FileNotFoundException e) {\n // if there is no such file, just ignore it\n } catch (UnsupportedEncodingException e) {\n // if cannot encode the file, just ignore it\n } catch (Exception e) {\n e.printStackTrace();\n }\n return content;\n }", "title": "" }, { "docid": "45c68b730983297c66392cb8057d4c22", "score": "0.52689046", "text": "private static byte[] getBytesFromFile(String filename) throws IOException {\n Path fileLocation = Paths.get(filename);\n return Files.readAllBytes(fileLocation);\n }", "title": "" }, { "docid": "ac0bc66343a82f475ad2a2f1c03026a0", "score": "0.52559066", "text": "private static String getFileContent(String fileName) {\r\n\t\tString s = \"\";\r\n\t\tBufferedReader br;\r\n\t\ttry {\r\n\t\t\tbr = new BufferedReader(new FileReader(fileName));\r\n\t\t\tString line;\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\ts += line + \"\\n\";\r\n\t\t\t}\r\n\t\t\tbr.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "title": "" }, { "docid": "156fd93d8c82fa43dbe2101d36f55fe5", "score": "0.52417934", "text": "private static String getFileContent(String path) throws Exception {\n File file = new File(path);\n return FileUtils.readFileToString(file);\n }", "title": "" }, { "docid": "8f48012feee1df33f27f88846828a393", "score": "0.52416676", "text": "public String getContent() throws VcsException\n {\n if (myContents == null) {\n BufferExposingByteArrayOutputStream bos = new BufferExposingByteArrayOutputStream(2048);\n try {\n myRepository.getFile(myPath, revision, null, bos);\n myRepository.closeSession();\n } catch (SVNException e) {\n throw new VcsException(e);\n }\n final byte[] bytes = bos.toByteArray();\n final Charset charset = myFilePath.getCharset();\n myContents = charset == null ? CharsetToolkit.bytesToString(bytes) : CharsetToolkit.bytesToString(bytes, charset);\n }\n return myContents;\n }", "title": "" }, { "docid": "498c319c58cf9e0a3fc78db04dd8e8b8", "score": "0.52395236", "text": "protected byte[] getByteData()\n {\n byte byteData[]=null;\n\n //String don't have setChar so we need use long run SubString();\n //Use String builder\n\n StringBuilder local=new StringBuilder(toString());\n int index1 = local.indexOf(\"{\");\n local.setCharAt(index1,' ');\n int index2 = local.lastIndexOf(\"}\");\n local.setCharAt(index2,' ');\n String byteString=local.toString().trim();\n\n byteData=byteString.getBytes();\n return byteData;\n }", "title": "" }, { "docid": "df59569d92ef440ba3eecdf535da3f05", "score": "0.52319545", "text": "public byte[] getContent()\n {\n return content;\n }", "title": "" }, { "docid": "5818dd54b1b4cdae379ed2f24962cb4c", "score": "0.52294046", "text": "private static MovieData populateContentJson() {\n\r\n\t\ttry {\r\n\t\t\t//MovieData movieData;\r\n\t\t\tObjectMapper mapper = new ObjectMapper();\r\n\t\t\tFile file = ResourceUtils.getFile(\"classpath:content.json\");\r\n\t\t\tmoviedata = mapper.readValue(file, MovieData.class);\r\n\t\t\tlogger.info(\"MovieData is \" + moviedata);\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (JsonParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (JsonMappingException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn moviedata;\r\n\t}", "title": "" }, { "docid": "bda4c2bb92c8c65a4618008f6bbadcd2", "score": "0.5224608", "text": "private void printJsonToFile(File file,JSONArray obj) {\n\t\ttry(BufferedWriter br = new BufferedWriter(new FileWriter(file))) {\n\t\t\tbr.write(obj.toString());\n\t\t\tbr.flush();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Failed to save world.\");\n\t\t}\n\t}", "title": "" }, { "docid": "9266d01e5e3f59835bf97d97c4013440", "score": "0.5224487", "text": "com.google.protobuf.ByteString\n getObjectBytes();", "title": "" }, { "docid": "637c8807d97a29eff11eb08a4425c310", "score": "0.52192336", "text": "private static String readContent(File file)\r\n/* 82: */ throws IOException\r\n/* 83: */ {\r\n/* 84:109 */ InputStream in = new FileInputStream(file);\r\n/* 85:110 */ ByteArrayOutputStream out = new ByteArrayOutputStream();\r\n/* 86: */ try\r\n/* 87: */ {\r\n/* 88:112 */ byte[] buf = new byte[8192];\r\n/* 89: */ int ret;\r\n/* 90: */ for (;;)\r\n/* 91: */ {\r\n/* 92:114 */ ret = in.read(buf);\r\n/* 93:115 */ if (ret < 0) {\r\n/* 94: */ break;\r\n/* 95: */ }\r\n/* 96:118 */ out.write(buf, 0, ret);\r\n/* 97: */ }\r\n/* 98:120 */ return out.toString(CharsetUtil.US_ASCII.name());\r\n/* 99: */ }\r\n/* 100: */ finally\r\n/* 101: */ {\r\n/* 102:122 */ safeClose(in);\r\n/* 103:123 */ safeClose(out);\r\n/* 104: */ }\r\n/* 105: */ }", "title": "" }, { "docid": "0d5e835822651dad96b018ac42398d25", "score": "0.5218572", "text": "public String toJsonString();", "title": "" }, { "docid": "081c734511d200b0d63ddf7ac3402d43", "score": "0.52172273", "text": "public static String getForecastJSON() {\n return readJSON(AppConstants.WEATHER_FORECAST_STORE_FILE);\n }", "title": "" }, { "docid": "814b4f4853a046937cced1ab30824a9d", "score": "0.52072036", "text": "private static String changeInputStream(InputStream inputStream) {\n String jsonString = \"\";\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n int length = 0;\n byte[] data = new byte[1024];\n try {\n while (-1 != (length = inputStream.read(data))) {\n outputStream.write(data, 0, length);\n }\n // inputStream流里面拿到数据写到ByteArrayOutputStream里面,\n // 然后通过outputStream.toByteArray转换字节数组,再通过new String()构建一个新的字符串。\n jsonString = new String(outputStream.toByteArray());\n } catch (Exception e) {\n // TODO: handle exception\n }\n return jsonString;\n }", "title": "" }, { "docid": "17c9277f65fd945a7277f706c6229555", "score": "0.52055943", "text": "public static JSONObject readJsonFromFile(String file) throws Exception {\n String jsonText = new String(Files.readAllBytes(Paths.get(file)));\n return new JSONObject(jsonText);\n }", "title": "" }, { "docid": "67e534ae71c6152d67873e2e86907059", "score": "0.51984406", "text": "com.google.protobuf.ByteString getEncodedData();", "title": "" }, { "docid": "93b435e5b8f69a0feabc583ca7d5bef7", "score": "0.519441", "text": "public static String getWeatherJSON() {\n return readJSON(AppConstants.WEATHER_TODAY_STORE_FILE);\n }", "title": "" }, { "docid": "879cb5b1b6de065c7f959cac0a8c763d", "score": "0.51885307", "text": "public static JsonObject getJsonFromFile (String fileName) throws JsonIOException, JsonSyntaxException, FileNotFoundException{\n JsonObject jsonObject = new JsonObject();\n \n\t\t\tJsonParser parser = new JsonParser();\n JsonElement jsonElement = parser.parse(new FileReader(\"testData/\" + fileName));\n jsonObject = jsonElement.getAsJsonObject();\n \n return jsonObject;\n }", "title": "" }, { "docid": "85390c30d23fadd56feb5e99834a9ca8", "score": "0.51851505", "text": "public JSONObject readExportData() {\n RestTemplate restTemplate = new RestTemplate();\n String dataFrom = \"https://www.energy.gov/sites/prod/files/2020/12/f81/code-12-15-2020.json\";\n ResponseEntity<String> response = restTemplate.exchange(dataFrom, HttpMethod.GET, null, String.class);\n return new JSONObject(response.getBody());\n }", "title": "" }, { "docid": "5ee2b723a4df39cac8ab48929f29eae5", "score": "0.51832545", "text": "com.google.protobuf.ByteString\n getContentBytes();", "title": "" }, { "docid": "aefd7686cfb1e5fd28fc4fb4d30d02ae", "score": "0.51829404", "text": "public String convertInputStreamToString(InputStream stream) throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n stream, \"iso-8859-1\"), 8);\n StringBuilder sb = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n\n //get json string\n String friendDataJson = sb.toString();\n Log.i(\"friendData\", friendDataJson);\n //reset string builder\n sb.setLength(0);\n\n try {\n\n JSONArray friends = new JSONArray(friendDataJson);\n\n if (friends.length() == 0) {\n sb.append(\"empty\");\n } else {\n //parse json text\n for (int friendPosition = 0; friendPosition < friends.length(); friendPosition++) {\n JSONObject friend = friends.getJSONObject(friendPosition);\n String friendName = friend.getString(\"name\");\n String friendEmail = friend.getString(\"email\");\n sb.append(friendName + \"#\" + friendEmail + \";\");\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n throw new IOException(\"JSON data invalid\");\n }\n return sb.toString();\n }", "title": "" }, { "docid": "5d6686cfe20bd28e3534a95b765d4ce7", "score": "0.5176515", "text": "private static String httpGetJSONString(final String url)\n\t\t\tthrows IOException {\n\t\tfinal HttpURLConnection httpCon = createHttpCon(url, \"GET\");\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\thttpCon.getInputStream()));\n\n\t\tfinal StringBuffer httpResponse = new StringBuffer();\n\t\tString line = \"\";\n\t\twhile (null != (line = br.readLine())) {\n\t\t\thttpResponse.append(line);\n\t\t}\n\n\t\treturn httpResponse.toString();\n\t}", "title": "" }, { "docid": "f5b19fe8e3cfa554e6f1cbec6f512a16", "score": "0.51656103", "text": "public String getEncodedData() {\n\n String filename = getFileName();\n StringBuilder encoded = new StringBuilder();\n\n try {\n // FileReader reads text files.\n FileReader fileReader = new FileReader(filename);\n\n // Always wrap FileReader in BufferedReader, because FileReader is inefficient.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n \n String line = bufferedReader.readLine();\n StringBuilder fileBuilder = new StringBuilder();\n\n while(line != null) {\n fileBuilder.append(line + '\\n');\n line = bufferedReader.readLine();\n }\n\n String lineString = fileBuilder.toString();\n\n for(char character: lineString.toCharArray()) {\n if(lookupTable.get(character) != null) {\n encoded.append(lookupTable.get(character));\n }\n }\n\n bufferedReader.close(); \n \n } catch(FileNotFoundException ex) { \n System.out.println(\"Unable to open file '\" + filename + \"'\"); \n } catch(IOException ex) {\n ex.printStackTrace(); \n }\n \n return encoded.toString();\n }", "title": "" } ]
92c3081f2683041ed375e0c113f3ee5f
Select the Speciality based on the Provider name and the speciality will be displayed for the dependent users.
[ { "docid": "35ab9997906ce4476ce1904aeee752b7", "score": "0.6743396", "text": "private void specialityBasedOnProvider(String selectedText, String key) {\r\n try {\r\n if (\"provider_type\".equalsIgnoreCase(key)) {\r\n SpecialityArrayList.clear();\r\n Map<String, String> speciality = tempmap.get(selectedText);\r\n\r\n for (Map.Entry<String, String> entry : speciality.entrySet()) {\r\n SpecialityArrayList.add(entry.getKey());\r\n }\r\n\r\n }\r\n } catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "title": "" } ]
[ { "docid": "b048c4e880c9d4c4abf0444f0be25b8e", "score": "0.6149879", "text": "public String getSpeciality() {\r\n return speciality;\r\n }", "title": "" }, { "docid": "c8368f10d3f440c5668dc4e39731f9d7", "score": "0.61407346", "text": "public String getSpeciality() {\n return speciality;\n }", "title": "" }, { "docid": "dac0447b42a29740011df0d42bad968e", "score": "0.6099468", "text": "public Specialisation getOneSpecialisation(String nameSpecialisation);", "title": "" }, { "docid": "85a26ee03e7ff84375c27c6dcff89a87", "score": "0.5933654", "text": "public void setSpeciality(String speciality) {\n this.speciality = speciality;\n }", "title": "" }, { "docid": "6cdb532e189f5836559e55c3b7830198", "score": "0.5848718", "text": "java.lang.String getSpecialty();", "title": "" }, { "docid": "6a2d9ee80e217b308368301b1377f0e0", "score": "0.5554273", "text": "public String getSpecialty() {\r\n\t\treturn specialty;\r\n\t}", "title": "" }, { "docid": "eedc895fd814bed53fd55d701cb4db23", "score": "0.5420248", "text": "java.lang.String getProvider();", "title": "" }, { "docid": "eedc895fd814bed53fd55d701cb4db23", "score": "0.5420248", "text": "java.lang.String getProvider();", "title": "" }, { "docid": "eedc895fd814bed53fd55d701cb4db23", "score": "0.5420248", "text": "java.lang.String getProvider();", "title": "" }, { "docid": "eedc895fd814bed53fd55d701cb4db23", "score": "0.5420248", "text": "java.lang.String getProvider();", "title": "" }, { "docid": "eedc895fd814bed53fd55d701cb4db23", "score": "0.5420248", "text": "java.lang.String getProvider();", "title": "" }, { "docid": "eedc895fd814bed53fd55d701cb4db23", "score": "0.5420248", "text": "java.lang.String getProvider();", "title": "" }, { "docid": "e883430c2feabe0fbc1d680d5136980e", "score": "0.534965", "text": "private void getSpecialityData(JSONObject response) throws JSONException {\r\n JSONArray provider_type_array = response.getJSONArray(\"provider_type\");\r\n\r\n\r\n for (int i = 0; i < provider_type_array.length(); i++) {\r\n JSONObject licenseObject = provider_type_array.getJSONObject(i);\r\n String str_provider_type = licenseObject.getString(\"provider_type\");\r\n String str_provider_type_id = licenseObject.getString(\"id\");\r\n LinkedHashMap<String, String> map = new LinkedHashMap<String, String>();\r\n map.put(str_provider_type_id, str_provider_type);\r\n searchArrayListProviderId.add(map);\r\n\r\n// ProviderTypeArrayList.add(str_provider_type);\r\n LinkedHashMap<String, String> specialitymap = null;\r\n JSONArray speciality_array = licenseObject.getJSONArray(\"speciality\");\r\n SpecialityArrayList.clear();\r\n specialitymap = new LinkedHashMap<String, String>();\r\n for (int j = 0; j < speciality_array.length(); j++) {\r\n JSONObject specialityObj = speciality_array.getJSONObject(j);\r\n specialitymap.put(specialityObj.getString(\"name\"), specialityObj.getString(\"id\"));\r\n SearchArrayListSpeciality.add(specialitymap);\r\n SpecialityArrayList.add(specialityObj.getString(\"name\"));\r\n }\r\n tempmap.put(str_provider_type, specialitymap);\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "f45c6f776124eb2ae30340a82b442a44", "score": "0.5334109", "text": "String getProvider();", "title": "" }, { "docid": "256bd6affb9393cff5943701f0d336bc", "score": "0.51997364", "text": "public String getProvider();", "title": "" }, { "docid": "f1911c1e4f73e46624a5f5c21990d2ed", "score": "0.51682365", "text": "String getProviderName();", "title": "" }, { "docid": "b602ef5faa7e4dc0af114ebd75e1f7b1", "score": "0.51558876", "text": "public String toString(){\n return super.toString() + \"Speciality: \" + speciality;\n }", "title": "" }, { "docid": "969d7052d8b7eeddd8287c32d1642677", "score": "0.51501507", "text": "@AutoEscape\n\tpublic String getCandidate_nationality();", "title": "" }, { "docid": "21ed8c9210b50f42442089ccdc5f0858", "score": "0.51105255", "text": "public void setSpeciality(String speciality) {\r\n this.speciality = speciality == null ? null : speciality.trim();\r\n }", "title": "" }, { "docid": "37b5f02e6ff82c39fc8d2718449e694e", "score": "0.5094133", "text": "public void listSpecialities(){\r\n for(String sp: specialities ){\r\n System.out.println(\"-\" + sp + \"\\n\");\r\n }\r\n\t}", "title": "" }, { "docid": "1747653f5e2c4d41e7e941ed6df6b8fb", "score": "0.5081752", "text": "protected String getTerritory() {\n return EntitlementStd.TERRITORY_STANDARD;\n }", "title": "" }, { "docid": "7cecc206cbbe19d344d139c7eb3d234c", "score": "0.50380385", "text": "public Specialisation getOneSpecialisation(int idSpecialisation);", "title": "" }, { "docid": "285975ed69a7d1d6756b86bd380d7769", "score": "0.4907348", "text": "public void setCandidate_nationality(String candidate_nationality);", "title": "" }, { "docid": "9b1035bb0b4f122733be092bb5c4a60a", "score": "0.48875588", "text": "public void setCandidate_sex(String candidate_sex);", "title": "" }, { "docid": "5c4ae8fe116633c906b12668c649caa4", "score": "0.4874525", "text": "public void setPrimaryInsuredNameDenorm(java.lang.String value);", "title": "" }, { "docid": "c27af2c72fafe93fe3cec267c6984d48", "score": "0.4863907", "text": "public List<Specialisation> getAllSpecialisation();", "title": "" }, { "docid": "582e319d7e12e7b750a32ad0725a96bc", "score": "0.4855879", "text": "public SearchBySpecialityPanel1() {\n initComponents();\n pnlSearchSpecialitylBase.setVisible(false);\n ctrlQuery=(QueryController) ControllerFactory.getInstance().getController(ControllerFactory.ControllerTypes.QUERY);\n loadSpecialityTypes();\n \n }", "title": "" }, { "docid": "11ee0e2aa3eede6a2c0da56d9ee4ad0b", "score": "0.4829251", "text": "java.lang.String getSuppliers();", "title": "" }, { "docid": "68cf0482a02e0c1e6c80491a80240a60", "score": "0.48040965", "text": "public void activateSpecial(int specialType);", "title": "" }, { "docid": "79365998c1976aff9930e3312ee6a457", "score": "0.479329", "text": "@Override\n protected String getSecurityProviderName() {\n return BouncyCastleProvider.PROVIDER_NAME;\n }", "title": "" }, { "docid": "8d74d7a1398fb1aa250318014e39f515", "score": "0.47905734", "text": "public void updateSpecialisation(Specialisation specialisation);", "title": "" }, { "docid": "98d779e51bf697f50ff0b1e100892926", "score": "0.47673133", "text": "public void specialityAction(View v) {\r\n showListViewDialog(SpecialityArrayList, (TextView) findViewById(R.id.SpecialityTxtView), \"speciality\", SearchArrayListSpeciality);\r\n }", "title": "" }, { "docid": "efd2795c551f662816fc166343a7723a", "score": "0.47499192", "text": "public String getSpecialties() {\n return contractor.getSpecialties();\n }", "title": "" }, { "docid": "6190f4852400ad7e836a6ec0c1eb1b92", "score": "0.47245163", "text": "public void setGender(java.lang.String param){\n \n this.localGender=param;\n \n\n }", "title": "" }, { "docid": "1026504c42e3b3c739475e02c84e9b43", "score": "0.47179326", "text": "private void showProviderSelectionView() {\n view.showProviderSelectionView();\n currentWfView = WorkflowView.PROVIDER_SELECTION;\n }", "title": "" }, { "docid": "636684b041eb7d4742473cfe14b29ce0", "score": "0.46826658", "text": "@When(\"^Insurance Provider is present or we add Insurance provider$\")\n\tpublic void insurance_Provider_is_present_or_we_add_Insurance_provider() throws Throwable {\n\t\tdriver.switchTo().defaultContent();\n\t\tString mainWindow=driver.getWindowHandle();\n\t\t//WebElement test =driver.findElement(By.xpath(\"//*[@id='fsbody']//frame[@name='RTop']\"));\n\t\t//driver.switchTo().frame(test);\n\t\t//System.out.println(driver.getPageSource());\n\t\tdriver.switchTo().frame(driver.findElement(By.xpath(\"//frameset/frameset[2]/frame[@name='RTop']\")));\n\t\tSelect select=new Select(driver.findElement(By.xpath(\"//form/table//td[2]//select\")));\n\t\tselect.selectByVisibleText(\"Mr.\");\n\t\tdriver.findElement(By.xpath(\"//form/table//td[2]//input[@name='form_fname']\")).sendKeys(\"John\");\n\t\tdriver.findElement(By.xpath(\"//form/table//td[2]//input[@name='form_lname']\")).sendKeys(\"Smith\");\n\t\t//driver.findElement(By.xpath(\"//table//table//[td1]/input[@name='form_fname']\")).sendKeys(\"Joey\");\n\t\tselect=new Select(driver.findElement(By.xpath(\".//*[@id='form_sex']\")));\n\t\tselect.selectByVisibleText(\"Male\");\n\t\tdriver.findElement(By.xpath(\".//*[@id='form_DOB']\")).sendKeys(\"1985/05/05\");\n\t\tdriver.findElement(By.xpath(\".//*[@id='form_cb_2']\")).click();\n\t\tdriver.findElement(By.xpath(\".//*[@id='form_street']\")).sendKeys(\"98th Street\");\n\t\tdriver.findElement(By.xpath(\".//*[@id='form_city']\")).sendKeys(\"Lexington\");\n\t\tdriver.findElement(By.xpath(\".//*[@id='form_postal_code']\")).sendKeys(\"40503\");\n\t\tselect=new Select(driver.findElement(By.xpath(\".//*[@id='form_state']\")));\n\t\tselect.selectByVisibleText(\"Kentucky\");\n\t\tselect=new Select(driver.findElement(By.xpath(\".//*[@id='form_country_code']\")));\n\t\tselect.selectByVisibleText(\"USA\");\n\t\tWebElement element = null;\n\t\ttry{\n\t\telement=driver.findElement(By.xpath(\"//form/table//input[@name='form_cb_ins']\"));\n\t\t}\n\t\tcatch(Exception e){\n\t\t}\n\t\tif(element.isDisplayed()){\n\t\t\telement.click();\n\t\t\tSystem.out.println(\"Inside Insurance Block\");\n\t\t\t select=new Select(driver.findElement(By.xpath(\"//form/table//div[@id='div_ins']/table//select[@name='i1provider']\")));\n\t\t\tList<WebElement> selectOptions=select.getOptions();\n\t\t\tSystem.out.println(selectOptions.size());\n\t\t\t if(selectOptions.size()==1){\n\t\t\t\t System.out.println(\"Inside adding Insurer block\");\n\t\t\t\t driver.findElement(By.xpath(\"//form/table//div[@id='div_ins']/table//a[@class='iframe medium_modal']/span\")).click();\n\t\t\t\t //driver.switchTo().defaultContent();\n\t\t\t\t WebElement fancyFrame=driver.findElement(By.xpath(\"//div[@id='fancy_outer']//iframe[@id='fancy_frame']\"));\n\t\t\t\t driver.switchTo().frame(fancyFrame);\n\t\t\t\t System.out.println(\"Frame Switched\");\n\t\t\t\tdriver.findElement(By.xpath(\"//form//table//input[@name='form_name']\")).sendKeys(\"ABC Insurance\");\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tdriver.findElement(By.xpath(\"//form//table//input[@name='form_city']\")).sendKeys(\"Kentucky\");\n\t\t\t\tdriver.findElement(By.xpath(\"//form//table//input[@name='form_attn']\")).sendKeys(\"ABC\");\n\t\t\t\tdriver.findElement(By.xpath(\"//form//table//input[@name='form_addr1']\")).sendKeys(\"99th Street\");\n\t\t\t\tdriver.findElement(By.xpath(\"//form//table//input[@name='form_addr2']\")).sendKeys(\"Straight Road\");\n\t\t\t\tdriver.findElement(By.xpath(\"//form//table//input[@name='form_state']\")).sendKeys(\"UK\");\n\t\t\t\t\n\t\t\t\tdriver.findElement(By.xpath(\"//form//table//input[@name='form_zip']\")).sendKeys(\"40503\");\n\t\t\t\tdriver.findElement(By.xpath(\"//form//input[@name='form_save']\")).click();\n\t\t\t\tSystem.out.println(\"ABC Insurance is added\");\n\t\t\t\tdriver.switchTo().defaultContent();\n\t\t\t\tdriver.switchTo().frame(driver.findElement(By.xpath(\"//frameset/frameset[2]/frame[@name='RTop']\")));\n\t\t\t\tselect.selectByVisibleText(\"ABC Insurance\");\n\t\t\t }\n\t\t\t else{\n\t\t\t\t select.selectByIndex(1);\n\t\t\t }\n\t\t\t \n\t\t\tdriver.findElement(By.xpath(\"//form/table//div[@id='div_ins']/table//table//input[@name='i1plan_name']\")).sendKeys(\"PlanA\");\n\t\t\tdriver.findElement(By.xpath(\"//form/table//div[@id='div_ins']/table//table//input[@name='i1effective_date']\")).sendKeys(\"2016/07/07\");\n\t\t\tdriver.findElement(By.xpath(\"//form/table//div[@id='div_ins']/table//table//input[@name='i1policy_number']\")).sendKeys(\"ABC12345GFC\");\n\t\t\tdriver.findElement(By.xpath(\"//form/table//div[@id='div_ins']/table//input[@name='i1subscriber_fname']\")).sendKeys(\"John\");\n\t\t\tdriver.findElement(By.xpath(\"//form/table//div[@id='div_ins']/table//input[@name='i1subscriber_lname']\")).sendKeys(\"Smith\");\n\t\t\tdriver.findElement(By.xpath(\"//form/table//div[@id='div_ins']/table//input[@name='i1subscriber_DOB']\")).sendKeys(\"1985/05/05\");\n\t\t\tdriver.findElement(By.xpath(\"//form/table//div[@id='div_ins']/table//table//input[@name='i1subscriber_employer_street']\")).sendKeys(\"BackStreet\");\n\t\t}\n\t\tdriver.findElement(By.xpath(\"//form/table//td//center//input[@id='create']\")).click();\n\t\tSet <String> windowhandles=driver.getWindowHandles();\n\t\tSystem.out.println(windowhandles.size());\n\t\tfor(String handle:windowhandles){\n\t\t\tif(!handle.equals(mainWindow)){\n\t\t\t\tdriver.switchTo().window(handle);\n\t\t\t\t//driver.manage().window().maximize();\n\t\t\t\tSystem.out.println(\"Window Switched\");\n\t\t\t}\n\t\t}\n\t\t//driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t//System.out.println(driver.getPageSource());\n\t\t//WebDriverWait wait=new WebDriverWait(driver, 10);\n\t\t//wait.until(ExpectedConditions.presenceOfElementLocated((By.xpath(\"//center/input\"))));\n\t\tdriver.findElement(By.xpath(\"//center/input\")).click();\n\t\tdriver.switchTo().window(mainWindow);\n\t\t//alerPresent();\n\t\ttry{\n\t\tWebDriverWait wait=new WebDriverWait(driver,30);\n\t\twait.until(ExpectedConditions.alertIsPresent());\n\t\tif(alerPresent()){\n\t\t\tAlert alert=driver.switchTo().alert();\n\t\t\talert.accept();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t}", "title": "" }, { "docid": "ea6dd8ff5d983498fbe93a9f6da89839", "score": "0.46813732", "text": "public void setSpecialisations(boolean b);", "title": "" }, { "docid": "b7a0057890d0d273000703871c02e3c3", "score": "0.46719688", "text": "private void setAdditionalField() {\n String type = this.radioGroup.getSelectedToggle().getUserData().toString();\n \n switch(type) {\n case \"inhouse\":\n this.lblAdditional.setText(\"Machine ID\");\n this.txtAdditional.setPromptText(\"Mach ID\");\n break;\n case \"outsourced\":\n this.lblAdditional.setText(\"Company Name\");\n this.txtAdditional.setPromptText(\"Comp Nm\");\n break;\n }\n }", "title": "" }, { "docid": "c4ef1783cec6459f6b42f225a321dd59", "score": "0.4665224", "text": "public void setProviderName(String value) {\n setAttributeInternal(PROVIDERNAME, value);\n }", "title": "" }, { "docid": "cd7f81c81b812ad0f1eb9b3b6df484ba", "score": "0.4664012", "text": "List<Specialty> selectByExample(SpecialtyExample example);", "title": "" }, { "docid": "1964d58957f7e257c55aa9084e921f52", "score": "0.4661738", "text": "private void showChooseListByName(int postion) {\n }", "title": "" }, { "docid": "7014bb2043db7b8eb780320f86ed5263", "score": "0.46595544", "text": "@GET\n\t@Path(\"speciality\")\n\t@Produces(MediaType.APPLICATION_XML)\n\tpublic Response getAllSpecialities() {\n\t\treturn Response.status(Response.Status.OK).entity(service.getAllSpecialities()).build();\n\t}", "title": "" }, { "docid": "edab2753725d6cb2322e265bfdf8c545", "score": "0.46537647", "text": "@Override\r\n\t@Transactional\r\n\tpublic void addSpeciality(Speciality p) {\n\t\tthis.SpecialityDAOobj.addSpeciality(p);\r\n\t}", "title": "" }, { "docid": "e7bb5e5a16cf3a6e0d478825bde58318", "score": "0.4624967", "text": "@Override\n\tpublic List<Speciality> findAll() {\n\t\treturn specialityRepository.findAll();\n\t}", "title": "" }, { "docid": "c1497124465947d9b9da5030f0be6ff9", "score": "0.46233717", "text": "public void setPrimaryInsuredName(java.lang.String value);", "title": "" }, { "docid": "c03e93f9f26dc0efa05bba584c71e205", "score": "0.46113306", "text": "public String getDocSpeciality() {\n return docSpeciality;\n }", "title": "" }, { "docid": "4b95f88d2db623289e0e5f767e2bedf3", "score": "0.4610469", "text": "@AutoEscape\n\tpublic String getSubsidiaryRisk();", "title": "" }, { "docid": "40b19cf20e0a2fd766d52b024511bbde", "score": "0.46060127", "text": "@Override\r\n\t@Transactional\r\n\tpublic Speciality getSpecialityById(int id) {\n\t\treturn this.SpecialityDAOobj.getSpecialityById(id);\r\n\t}", "title": "" }, { "docid": "75b8375183f649e1d3e67809ff8d2c58", "score": "0.46038288", "text": "@Override\n\tpublic int getSpecialityCount() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "989d20b230d2b7c1a7cc2c8bad5c7d83", "score": "0.4602642", "text": "public abstract String getTechnicalName();", "title": "" }, { "docid": "a1f39cfcc67a2698e90f8e6768f0ba16", "score": "0.45982167", "text": "@Override\r\n\tpublic Speciality findById(Long id) {\n\t\treturn super.findById(id);\r\n\t}", "title": "" }, { "docid": "5e5fcd152b8ac9254e1bbea2e4ec08de", "score": "0.4586803", "text": "public String getNationality() {\n return nationality;\n }", "title": "" }, { "docid": "5e5fcd152b8ac9254e1bbea2e4ec08de", "score": "0.4586803", "text": "public String getNationality() {\n return nationality;\n }", "title": "" }, { "docid": "5e5fcd152b8ac9254e1bbea2e4ec08de", "score": "0.4586803", "text": "public String getNationality() {\n return nationality;\n }", "title": "" }, { "docid": "7e50cff110ed652b8add444200a37870", "score": "0.4579122", "text": "public String nationality()\n\t{\n\t\treturn _nationality.toString();\n\t}", "title": "" }, { "docid": "1fc626caa0d968ddfbfcc404374ab5b4", "score": "0.45771283", "text": "public String getProviderName()\n {\n return providerName;\n }", "title": "" }, { "docid": "3dc17d081a210b0509bd26d28cb3a485", "score": "0.4574323", "text": "java.lang.String getGender();", "title": "" }, { "docid": "933f9ff84541f1c68bb3ae825b3fb7f6", "score": "0.45628533", "text": "String getGender();", "title": "" }, { "docid": "8738d5b8bf8228acb423b95598651f7f", "score": "0.4559119", "text": "private void loadProviderType() {\r\n showProgress();\r\n NetworkSuccessListener<JSONObject> successCallBackListener = new NetworkSuccessListener<JSONObject>() {\r\n @Override\r\n public void onResponse(JSONObject response) {\r\n hideProgress();\r\n handleproviderTypeSuccessResponse(response);\r\n }\r\n };\r\n\r\n NetworkErrorListener errorListener = new NetworkErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n Log.d(\"Response\", error.toString());\r\n hideProgress();\r\n MdliveUtils.handleVolleyErrorResponse(MDLiveSearchProvider.this, error, getProgressDialog());\r\n }\r\n };\r\n SharedPreferences settings = this.getSharedPreferences(PreferenceConstants.MDLIVE_USER_PREFERENCES, 0);\r\n String dependent_id = settings.getString(\"dependent_id\", \"\");\r\n ProviderTypeList services = new ProviderTypeList(MDLiveSearchProvider.this, null);\r\n services.getProviderType(dependent_id, successCallBackListener, errorListener);\r\n }", "title": "" }, { "docid": "0999d578ed7d4cd865d0c317565f4316", "score": "0.4559042", "text": "String getTaxCode();", "title": "" }, { "docid": "424d231e8b12fbc1fb42e001348ad47e", "score": "0.4552128", "text": "private String getPgmfType(){\n return \"Administrative\";\n }", "title": "" }, { "docid": "08135be6b450ecee664dfd7aa9268629", "score": "0.45519415", "text": "public void setCharityName(String charityName) {\r\n this.charityName = charityName;\r\n }", "title": "" }, { "docid": "86b56549fa3d1227999b6aca2f31744b", "score": "0.45435756", "text": "java.lang.String getSurveyorRegistration();", "title": "" }, { "docid": "50e972c9028e3261ce6ea1172ca3c946", "score": "0.45359465", "text": "@Override\r\n\t@Transactional\r\n\tpublic List<Speciality> listSpecialitys() {\n\t\treturn this.SpecialityDAOobj.listSpecialitys();\r\n\t}", "title": "" }, { "docid": "73cdb7b3ca34dd3fac3ad8b724472139", "score": "0.4535144", "text": "@AutoEscape\n\tpublic String getCandidate_sex();", "title": "" }, { "docid": "f5aed98aa88e5b19f20274326f68d40a", "score": "0.45261666", "text": "@Override\n\tpublic String getFortune() {\n\t\treturn fortuneService.getRandomFortune();\n\t}", "title": "" }, { "docid": "a52e6a805d11673b21eaf8fc5a2642b0", "score": "0.45250523", "text": "public String getPersonTypeName(PersonType personType, Context context, int persionCount) {\t\n\t\tString personTypeString;\n\t\t\n\t\tswitch (personType) {\n\t\tcase KID0:\n\t\t\t\n\t\t\tif (persionCount > 1) {\n\t\t\t\tpersonTypeString = context.getString(R.string.general_children_0_3);\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tpersonTypeString = context.getString(R.string.general_child_0_3);\n\t\t\t}\t\t\t\n\t\t\treturn personTypeString;\n\t\t\t\n\t\tcase KID4:\n\t\t\t\n\t\t\tif (persionCount > 1) {\n\t\t\t\tpersonTypeString = context.getString(R.string.general_children_4_5);\n\t\t\t}else {\t\t\t\t\n\t\t\t\tpersonTypeString = context.getString(R.string.general_child_4_5);\n\t\t\t}\t\t\t\t\n\t\t\treturn personTypeString;\n\t\t\t\n\t\tcase KID6:\n\t\t\t\n\t\t\tif (persionCount > 1) {\n\t\t\t\tpersonTypeString = context.getString(R.string.general_children_6_11);\n\t\t\t}else {\t\t\t\t\n\t\t\t\tpersonTypeString = context.getString(R.string.general_child_6_11);\n\t\t\t}\n\t\t\treturn personTypeString;\n\t\t\t\n\t\tcase KID12:\n\t\t\t\n\t\t\tif (persionCount > 1) {\n\t\t\t\tpersonTypeString = context.getString(R.string.general_youths_12_14);\n\t\t\t}else {\t\t\t\t\n\t\t\t\tpersonTypeString = context.getString(R.string.general_youth_12_14);\n\t\t\t}\n\t\t\treturn personTypeString;\n\t\t\t\n\t\tcase KID15:\n\t\t\t\n\t\t\t/*if (persionCount > 1) {\n\t\t\t\tpersonTypeString = context.getString(R.string.general_youths_15_17);\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\t//personTypeString = context.getString(R.string.general_youth_15_17);;\n\t\t\t}\n\t\t\treturn personTypeString;*/\n\t\tcase YOUTH:\n\t\t\t\n\t\t\tif (persionCount > 1) {\n\t\t\t\tpersonTypeString = context.getString(R.string.general_youths_15_25);\n\t\t\t}else {\t\t\t\t\n\t\t\t\tpersonTypeString = context.getString(R.string.general_youth_15_25);;\n\t\t\t}\n\t\t\treturn personTypeString;\n\t\t\t\n\t\tcase ADULT:\n\t\t\t\n\t\t\tif (persionCount > 1) {\t\t\t\t\n\t\t\t\tpersonTypeString = context.getString(R.string.general_adults_26_59);\n\t\t\t}else {\n\t\t\t\tpersonTypeString = context.getString(R.string.general_adult_26_59);;\n\t\t\t}\n\t\t\treturn personTypeString;\n\t\t\t\n\t\tcase SENIOR:\n\t\t\t\n\t\t\tif (persionCount > 1) {\t\t\t\t\n\t\t\t\tpersonTypeString = context.getString(R.string.general_seniors_60);\n\t\t\t}else {\n\t\t\t\tpersonTypeString = context.getString(R.string.general_senior_60);;\n\t\t\t}\n\t\t\treturn personTypeString;\n\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "01e0ece5a77dd5f59edbe792457e0f9c", "score": "0.4523061", "text": "public String getProviderName() {\n return providerName;\n }", "title": "" }, { "docid": "8cd741ef07c75bc49a426980f781daa3", "score": "0.45097744", "text": "public void setCitizenshipCountry(String citizenshipCountry) {\r\n\tthis.citizenshipCountry = citizenshipCountry;\r\n}", "title": "" }, { "docid": "016ce453146b292fb25ffceacf9cf7e2", "score": "0.4508739", "text": "java.lang.String getGenetic();", "title": "" }, { "docid": "394585fed6de773283b22509fa650523", "score": "0.45059833", "text": "java.lang.String getWomenFromStandard();", "title": "" }, { "docid": "fb496080b833805a2914619ef51e7b9a", "score": "0.44972986", "text": "public java.lang.String getProvider() {\n return provider;\n }", "title": "" }, { "docid": "fb496080b833805a2914619ef51e7b9a", "score": "0.44972986", "text": "public java.lang.String getProvider() {\n return provider;\n }", "title": "" }, { "docid": "fb496080b833805a2914619ef51e7b9a", "score": "0.44972986", "text": "public java.lang.String getProvider() {\n return provider;\n }", "title": "" }, { "docid": "9458b57ddf5d705026a95335ce7b0a24", "score": "0.4496435", "text": "public final String getManufacturerSpecialty() {\r\n return manufacturerSpecialty;\r\n }", "title": "" }, { "docid": "d29b43ecb18a0b74679b986675c6b2e6", "score": "0.44865075", "text": "public String getProvider() {\n return provider;\n }", "title": "" }, { "docid": "e2068fa925e089641a0b5ec8e0971413", "score": "0.44830525", "text": "public final String getName() {\n return AUTHORITY + \".\" + getProviderName();\n }", "title": "" }, { "docid": "fe96f2499b551151c74bfbf3e88b5b86", "score": "0.44820002", "text": "public QueryType getPersonalCounty(){\n return localPersonalCounty;\n }", "title": "" }, { "docid": "7477a4f2747a66566b0f91e4a414d959", "score": "0.44776872", "text": "public String getCurrentProvider()\n\t{\n IPreferenceStore ipreferencestore = PreferenceService.getPreferenceStore();\n String value = ipreferencestore.readString(SubmissionBatchObjectListWithMyBatches.PREFERENCE_MYBATCHES_COMBINED_COOKIE);\n\n\t\tif(value == null)\n\t\t{\n\t\t\tvalue = m_strDefaultProviderKey;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tvalue = readCombinedCookie(value, SubmissionBatchObjectListWithMyBatches.PREFERENCE_MYBATCHES_PROVIDER);\n\t\t}\n\n\t\treturn value;\n\t}", "title": "" }, { "docid": "051fa9e337c0c570b3a14c57273d87b8", "score": "0.44771227", "text": "private Individual doSelectionByRoulette() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0c7318b6f37dc0ebdc098843ae699038", "score": "0.44689703", "text": "public java.lang.String getPersonalCounty(){\n return localPersonalCounty;\n }", "title": "" }, { "docid": "44b4af8eee7c195433069bf1300ede2f", "score": "0.44670033", "text": "String getCountryName();", "title": "" }, { "docid": "b2e649dabf0cbb4ff098731e72d5ac34", "score": "0.44669518", "text": "private static @Nullable String getActualCountry(@NonNull PhoneNumberUtil util, @NonNull String e164Number) {\n try {\n Phonenumber.PhoneNumber phoneNumber = getPhoneNumber(util, e164Number);\n String regionCode = util.getRegionCodeForNumber(phoneNumber);\n\n if (regionCode != null) {\n return PhoneNumberFormatter.getRegionDisplayName(regionCode);\n }\n\n } catch (NumberParseException e) {\n return null;\n }\n return null;\n }", "title": "" }, { "docid": "8b1fc233bf5c6b5a96804fbfe285db1e", "score": "0.44591814", "text": "public String getProviderName() {\n return (String) getAttributeInternal(PROVIDERNAME);\n }", "title": "" }, { "docid": "e3981f0ebaac9e80eb4000c089ef3fe4", "score": "0.445816", "text": "String getProvider_network_type();", "title": "" }, { "docid": "8e881aed754a531c9d3f301ed1fe67ef", "score": "0.4457684", "text": "public void loadBonusName() {\n DefaultComboBoxModel dcbm=(DefaultComboBoxModel) comboBonusName.getModel();\n try {\n ArrayList<Bonus> allBonus = new Bonus_Controller().getallBonus();\n if (!allBonus.isEmpty()) {\n for(Bonus bonus : allBonus){\n dcbm.addElement(bonus.getName());\n }\n } else {\n System.out.println(\"jkfghdfgjkdfg\");\n }\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(AddBonusAmount.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "22498deb453a4af9ec5b43cdbf2212a5", "score": "0.445196", "text": "public void collectTax(){\n System.out.printf(\"%s's government is collecting city taxes from their citzens\", this.name);\n }", "title": "" }, { "docid": "5d5b9415650eb11a1b517a5da785a374", "score": "0.44518042", "text": "public String getLaborObjectCodeBenefitsViewer() {\n return \"View Labor Object Code Benefits\";\n }", "title": "" }, { "docid": "fe96d2c2760c68c1d2a160decb792f6d", "score": "0.4451182", "text": "private void get_Contractor_Selected_Item() {\n\t\t\tSharedPreferences category_selected_item_pref = getSharedPreferences(\"contractor_item_MyPrefs\", Context.MODE_PRIVATE);\t\t \n\t\t\tString category_selected_item = category_selected_item_pref.getString(\"contractor_item_KEY_PREF\", \"\");\n\t\t\tif(category_selected_item.equals(\"\")){\n\t\t\t\tmContractor_result_Txv.setText(\"Kranthi\");\n\t\t\t}else{\n\t\t\t\tmContractor_result_Txv.setText(category_selected_item);\n\t\t\t}\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3b0322d5c42688927a0407c975be79d7", "score": "0.44509426", "text": "void setCounty(java.lang.String county);", "title": "" }, { "docid": "8ff706391517a2c06c20e2e9a1c4562a", "score": "0.44456667", "text": "public static void m5()\n\t{\n\t\tWebDriver driver= new FirefoxDriver();\n\t\tdriver.get(\"http://www.gcrit.com/build3/create_account.php\");\n\t\t\n\t\tSelect country = new Select( driver.findElement(By.name(\"country\")) );\n\t\t\n\t\tcountry.selectByIndex(1);//start from 1\n\t\tcountry.selectByVisibleText(\"China\");\n\t\t\n\t\tSystem.out.println(country.isMultiple());\n\t\tSystem.out.println(country.getOptions().size());\n\t\tSystem.out.println(country.getFirstSelectedOption().getText());\n\t\t\n\t\tcountry.selectByIndex(0);\n\t\t\n\t\tSystem.out.println(country.getAllSelectedOptions().size());\n\t\t\n\t\tdriver.close();\n\t}", "title": "" }, { "docid": "63d4592b64ba2415d6405dcc0be25368", "score": "0.443608", "text": "public static void healthCareProvider() {\n driver.findElement(By.cssSelector(\"#health-care-providers-level-one-link\")).click();\n\n }", "title": "" }, { "docid": "522f90f552c5a212c398de2018cd1b35", "score": "0.4430806", "text": "public java.lang.String getProvider() {\n return provider_;\n }", "title": "" }, { "docid": "522f90f552c5a212c398de2018cd1b35", "score": "0.4430806", "text": "public java.lang.String getProvider() {\n return provider_;\n }", "title": "" }, { "docid": "522f90f552c5a212c398de2018cd1b35", "score": "0.4430806", "text": "public java.lang.String getProvider() {\n return provider_;\n }", "title": "" }, { "docid": "522f90f552c5a212c398de2018cd1b35", "score": "0.4430806", "text": "public java.lang.String getProvider() {\n return provider_;\n }", "title": "" }, { "docid": "522f90f552c5a212c398de2018cd1b35", "score": "0.4430806", "text": "public java.lang.String getProvider() {\n return provider_;\n }", "title": "" }, { "docid": "522f90f552c5a212c398de2018cd1b35", "score": "0.4430806", "text": "public java.lang.String getProvider() {\n return provider_;\n }", "title": "" }, { "docid": "5a51b6a03eb5de3f30504af529d81825", "score": "0.4430026", "text": "private void getProvider(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tList<Provider> list = providerService.getProvider();\n\n\t\trequest.setAttribute(\"providers\", list);\n\t\t// 查询完所有的供应商之后再去进入到添加账单的页面\n\t\tRequestDispatcher requestDispatcher = request\n\t\t\t\t.getRequestDispatcher(\"jsp/modify.jsp\");\n\t\trequestDispatcher.forward(request, response);\n\t}", "title": "" }, { "docid": "6969747284d9fba35bbb7f91a7b60d92", "score": "0.44269714", "text": "public void setDenominacionSocial(java.lang.String denominacionSocial) {\n this.denominacionSocial = denominacionSocial;\n }", "title": "" } ]
877d2d5ede4cf8ffaf96a2e871505eab
This method is to search for volunteer by last name.
[ { "docid": "79f0490c6729e81c9e64d65d7ae453d8", "score": "0.77655673", "text": "public static void searchVolunteer() {\r\n\r\n System.out.println(\"Please Enter Volunteer's Last Name: \");\r\n String lastName = keyboard.next();\r\n\r\n if (hasLastName(lastName)) {\r\n System.out.println();\r\n System.out.println(\"Volunteer Information \");\r\n System.out.println(\"=====================\");\r\n System.out.println();\r\n\r\n for (User u : userController.getUserList()) {\r\n if (u.getLastName().equals(lastName) && u.getRole().equals(\"volunteer\")) {\r\n System.out.println(\"Name: \" + u.getFirstName() + \" \" + u.getLastName());\r\n System.out.println(\"Email: \" + u.getEmail());\r\n System.out.println();\r\n }\r\n }\r\n }\r\n else {\r\n System.out.println(\"No Volunteer Found!\");\r\n System.out.println(\"Please Try Again!\");\r\n System.out.println();\r\n\r\n searchVolunteer();\r\n }\r\n System.out.println();\r\n // Go to menuScreen() again when done:\r\n displayMenu();\r\n }", "title": "" } ]
[ { "docid": "db8f139fa5e53713a415640b8ba6d30e", "score": "0.6769318", "text": "List<VeteranDto> searchVeterans(String lastName, String ssnLastFour);", "title": "" }, { "docid": "2b8573be4bfb085621318c01f236338f", "score": "0.66860443", "text": "@Override\n public Collection<Vet> findVetBylastName(String lastName) {\n return vetRepo.findByLastName(\"%\"+lastName+\"%\");\n }", "title": "" }, { "docid": "6bfd635f9d470c3e55690c8daefaa45f", "score": "0.6408565", "text": "public Vector<Person> getPersonByLastname(String lastName);", "title": "" }, { "docid": "f56ae6974ac181cf26b8e41e24b792c4", "score": "0.6184146", "text": "@Override\n public List<Doctor> searchByLname(String lastName) {\n\n String searchString = \"%\"+lastName;\n \n String sql = \"from Doctor where lastname LIKE '\" + searchString + \"'\";\n List<Doctor> docList = getSessionfactory().openSession().createQuery(sql).list();\n return docList;\n }", "title": "" }, { "docid": "d598321b0dc930dcd817e8a2067c8854", "score": "0.5859112", "text": "List<User> findByLastname(String lastname);", "title": "" }, { "docid": "b6b7192dd8f62989d2fa28f47fe498c3", "score": "0.58510673", "text": "SearchResult<VeteranSearchResult> searchVeterans(Integer veteranId, String lastName, String ssnLastFour,\r\n List<Integer> programIdList, SearchAttributes searchAttributes);", "title": "" }, { "docid": "ed5ad58a8bbb917d3f0046f27942c93c", "score": "0.5809764", "text": "List<Person> getPersonsByLastName(String lastName);", "title": "" }, { "docid": "7a2c3accb071af1777398819187a683d", "score": "0.5776395", "text": "public void getPatientsByLastnameAdmin() {\r\n\t\t// create the RESTful client to work with our FHIR server\r\n\t\tIGenericClient client = ctx.newRestfulGenericClient(serverBaseUrl);\r\n\r\n\t\ttry {\r\n\t\t\t// search for the resource created\r\n\t\t\tBundle response = client.search().forResource(Patient.class)\r\n\t\t\t\t\t.where(Patient.FAMILY.matches().values(this.lastname)).returnBundle(Bundle.class).execute();\r\n\r\n\t\t\tSystem.out.println(\"Found \" + response.getTotal() + \" patients called \" + \" : \" + this.lastname);\r\n\r\n\t\t\t// initialize the patients list\r\n\t\t\tthis.patients = new ArrayList<Patient>();\r\n\t\t\tSystem.out.println(\"Admin / Patients list initialization\");\r\n\r\n\t\t\tresponse.getEntry().forEach((entry) -> {\r\n\t\t\t\tIParser jParser = this.ctx.newJsonParser().setPrettyPrint(true);\r\n\t\t\t\tString resourceJSON = jParser.encodeResourceToString(entry.getResource());\r\n\t\t\t\tSystem.out.println(resourceJSON);\r\n\r\n\t\t\t\t// populate the list with the retrieved bundle's resources\r\n\t\t\t\tPatient p = (Patient) entry.getResource();\r\n\t\t\t\tthis.patients.add(p);\r\n\t\t\t\tSystem.out.println(\"----------------\" + p.getNameFirstRep().getFamily());\r\n\t\t\t});\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"An error occurred trying to search:\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "3e41eb3f412c9b35b7d36e0b18d9c13f", "score": "0.5727217", "text": "List<VeteranDto> searchVeteran(String division, String vpid, String duz, String appProxyName, String lastName,\r\n String ssnLastFour);", "title": "" }, { "docid": "aa6631ebfdc1b2457920f3fcb21ebbf9", "score": "0.5648078", "text": "private static boolean hasLastName(final String lastName) {\r\n for (User user : userController.getVolunteers(lastName)) {\r\n if (lastName.equalsIgnoreCase(user.getLastName())) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "17e052a5799c3352b81af445874d1470", "score": "0.5625513", "text": "public Vector<Person> getPersonByFirstname(String firstName);", "title": "" }, { "docid": "5f79b5349003902194dda2caf792482d", "score": "0.5611589", "text": "public List<Customer> findCustomersByLastNameOrPartLastName(String lastName);", "title": "" }, { "docid": "6e0e5e0e0f0675fa180033a76dc86212", "score": "0.559266", "text": "public List<User> findPeopleWhoseNamesEndWithT(){\n List<User> users = new ArrayList<>();\n try {\n Query query = new Query();\n query.addCriteria(Criteria.where(\"name\").regex(\"t$\"));\n users = mongoOperations.find(query, User.class);\n } catch (Exception e){\n MyErrorLogger.logError(e);\n }\n return users;\n }", "title": "" }, { "docid": "3a2313ff93b0ee3e72ae03c302053052", "score": "0.5534455", "text": "@Override\n\tpublic List<Employee> getByLastName(String lastName) {\n\t\tQuery query=entityManager.createQuery(\"SELECT E FROM Employee E WHERE E.lastName=:lName\",Employee.class);\n\t\tquery.setParameter(\"lName\",lastName);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Employee> list=query.getResultList();\n\t\tif(list.isEmpty())\n\t\t{\n\t\t\tthrow new EmployeeNotFoundException(\"Employee with given last name not found.\");\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "fe8cc5ac359a495c4114254c88c97417", "score": "0.55304414", "text": "List<VeteranDto> findVeterans(String division, String vpid, String duz, String appProxyName, String ssnLastFour,\r\n String lastName, Date birthDate, String middleName);", "title": "" }, { "docid": "b7416d6b3bdad51c2e3170450b21bcf0", "score": "0.5523053", "text": "public SearchResult<License> searchByLastName(ChiropracticLicenseSearchCriteria criteria) throws ParsingException,\n ServiceException {\n String signature = \"ChiropracticLicenseDataAccessImpl#searchByLastName\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"criteria\" }, new Object[] { criteria });\n\n if (criteria == null) {\n throw new ServiceException(ErrorCode.MITA10005.getDesc());\n }\n\n if (Util.isBlank(criteria.getLastName())) {\n throw new ServiceException(ErrorCode.MITA10001.getDesc());\n }\n\n SearchResult<License> results = search(criteria, \"byLname\");\n return LogUtil.traceExit(getLog(), signature, results);\n }", "title": "" }, { "docid": "c851c001d9916f03b46cc01209d6ca83", "score": "0.5521127", "text": "public List<Adherent> searchAdherent2(String lastname ) throws Exception {\n\t\tList<Adherent> list = new ArrayList<Adherent>();\n\n\t\tPreparedStatement myStmt = null;\n\t\tResultSet myRs = null;\n\n\t\ttry {\n\t\t\t\n\t\t\tlastname += \"%\";\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tmyStmt = myConn.prepareStatement(\"select * from adherents where lastname like ? order by lastname\");\n\t\t\t\n\t\t\t\n\t\t\n\t\t\tmyStmt.setString(1, lastname);\n\t\t\tmyRs = myStmt.executeQuery();\n\t\t\t\n\t\t\twhile (myRs.next()) {\n\t\t\t\tAdherent tempAdhrenet = convertRowToAdherent(myRs);\n\t\t\t\tlist.add(tempAdhrenet);\n\t\t\t}\n\t\t\t\n\t\t\treturn list;\n\t\t}\n\t\tfinally {\n\t\t\tclose(myStmt, myRs);\n\t\t}\n\t}", "title": "" }, { "docid": "f40a42045ee914c3e819d6960a931d81", "score": "0.55209494", "text": "List<T> findByLastName(String name) throws DaoException;", "title": "" }, { "docid": "e3625748174e764be3a5272869987cbd", "score": "0.5505588", "text": "public List<Person> findByLastName(String lastName) {\n\t\treturn PERSON_DATA.stream()\n\t\t\t\t.filter(p -> p.getLastName().equalsIgnoreCase(lastName))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "title": "" }, { "docid": "689c92fcff52e816c08bef930ec41514", "score": "0.54792166", "text": "public Patient existByName(String firstName,String lastName);", "title": "" }, { "docid": "25eb956ef698558dc2892661e64a7cf9", "score": "0.5474229", "text": "@GET\n\t@Path(\"/lastName\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response printName(@QueryParam(\"name\") String name) {\n\t\tList<Member> person = memberService.searchByLastName(name);\n\t\treturn Response.ok(person).build();\n\t}", "title": "" }, { "docid": "8068580442b555c043fa091cec7c1ba6", "score": "0.54724157", "text": "public List<Teacher> getTeacherByLastNameNamedParameters(String name) {\n String query = \"SELECT t FROM Teacher t \" +\n \"WHERE LOWER (t.lastName) = LOWER(:name )\" +\n \"ORDER BY t.firstName \";\n return entityManager.\n createQuery(query, Teacher.class).\n setParameter(\"name\".toLowerCase(), name).\n getResultList();\n\n\n }", "title": "" }, { "docid": "2d5730f72f5fed0b38efc023822491d4", "score": "0.5457655", "text": "private static Person findFirstPersonByLastName(String lastName, List<Person> persons) {\n Person person = null;\n for (Person item : persons\n ) {\n if (item.getLastName().equals(lastName)) {\n person = item;\n break;\n }\n }\n // you must to check : person!=null\n return person;\n }", "title": "" }, { "docid": "531262c8ab7425ff577a275c0df1a101", "score": "0.54553014", "text": "Optional<Client> findByNameAndLastname(String name, String lastname);", "title": "" }, { "docid": "6138749dcc62cf3e52067cc233c9b8c7", "score": "0.54303604", "text": "List searchPersoninfo(Personinfo personinfo);", "title": "" }, { "docid": "2cb40c169807a59f5737912f3d93b573", "score": "0.542848", "text": "@Override\n\tpublic List<Empoyee> searchByLastNameAndDob(EmployeeSearch empdto) {\n\t\treturn employeRepo.findByLastnameAndDob(empdto.getLastName(),empdto.getDob());\n\t}", "title": "" }, { "docid": "fa833f6631a39b5a486bb0106947e4bb", "score": "0.54134995", "text": "@Override\n public ResultSet searchUser(String fName, String sName) {\n try {\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/bapersdb\", \"root\", \"root\");\n System.out.println(\"Database Connection Succesful\");\n pStmt = con.prepareStatement(\"select * from user_account WHERE first_name = ? AND second_name = ?\");\n pStmt.setString(1, fName);\n pStmt.setString(2, sName);\n rs = pStmt.executeQuery();\n if (!rs.next()) {\n return null;\n } else {\n //rs.previous();\n System.out.println(\"name found: \" + rs.getString(\"first_name\"));\n rs.previous();\n return rs;\n }\n } catch (SQLException ex) {//concurrency checks\n System.out.println(ex.getMessage());\n return null;\n }\n }", "title": "" }, { "docid": "74c3a74aab260519816eb829a2c74772", "score": "0.5410756", "text": "List<User> findByLastNameContaining(String lastName);", "title": "" }, { "docid": "bdd1fdb4a01f1a9f6ce0d3557c56d108", "score": "0.5387913", "text": "public Contact searchByName(String firstName, String lastName){\n\n Contact searchResult = null;\n Contact temp = new Contact(firstName, lastName, 00000000, \"email\", \"contactType\");\n \n Node current = myContacts.head;\n Contact j;\n do{\n j = (Contact) current.getData();\n if(j.equalsName(temp)){\n \n searchResult = j;\n }\n \n current = current.next;\n }while(current != myContacts.head);\n \n return searchResult; \n }", "title": "" }, { "docid": "63e49c5596aa4eda36c6cc82da183075", "score": "0.53787774", "text": "public void setPatientLastName(String v) \n {\n \n if (!ObjectUtils.equals(this.patientLastName, v))\n {\n this.patientLastName = v;\n setModified(true);\n }\n \n \n }", "title": "" }, { "docid": "d224a3d021acb98de38ebfc815d01105", "score": "0.5370494", "text": "@Override\r\n\tpublic List<Employee> findEmployeesByName(String firstName, String lastName) {\r\n\t\tConnection conn = null;\r\n\t\tList<Employee> resultList = new ArrayList<Employee>();\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"SELECT * FROM EMPLOYEE WHERE first_name LIKE ? AND last_name LIKE ?\");\r\n\t\t\tps.setString(1, firstName+\"%\");\r\n\t\t\tps.setString(2, lastName+\"%\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tEmployee employee = setEmployee(rs.getLong(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\r\n\t\t\t\t\t\trs.getString(\"middle_initial\"),rs.getString(\"level\"),rs.getString(\"work_force\"),rs.getString(\"enterprise_id\"));\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tresultList.add(employee);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\tfinally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn resultList;\r\n\t}", "title": "" }, { "docid": "8d9645f1a28eabfa12c2d3b7df7234ae", "score": "0.5360365", "text": "public void setLastName(String value) {\n this.lastName = value;\n }", "title": "" }, { "docid": "77390ef139104c5875b057206ecb5d12", "score": "0.5359972", "text": "boolean search(String lastName) {\r\n\t\t\tboolean b = recurse(0,strArray.length-1, lastName);\r\n\t\t\treturn b;\r\n\t\t}", "title": "" }, { "docid": "a7a81447c879ebd50460d192c3fabaa1", "score": "0.53543746", "text": "@Search(type=Patient.class)\n public Bundle searchForPatients(@RequiredParam(name=Patient.SP_NAME) StringDt theName) {\n Bundle retVal = new Bundle();\n // perform search\n return retVal;\n }", "title": "" }, { "docid": "d940bc0cbae79d0008f6646119768388", "score": "0.5350189", "text": "public void findSecondName(String secondName) {\n boolean check = true;\n Set<Address> adds = this.list.keySet();\n for (Address add : adds) {\n if (this.list.get(add).getSecondName().equals(secondName)) {\n this.printSingle(add);\n check = false;\n }\n }\n if (check) {\n System.out.println(\"There is no such person\");\n }\n }", "title": "" }, { "docid": "55b93bcf4173851418c5b539e2550532", "score": "0.5331459", "text": "List<Employee> findByFullName(String s);", "title": "" }, { "docid": "ab26bef60df4a8d1fb33c7e103e54097", "score": "0.53298867", "text": "public void getPatientsByLastname() {\r\n\t\tif (session.getAttribute(\"role\").equals(\"doctor\")) {\r\n\t\t\tthis.getPatientsByLastnameDoctor(this.fhirid);\r\n\t\t}\r\n\t\tif (session.getAttribute(\"role\").equals(\"admin\")) {\r\n\t\t\tthis.getPatientsByLastnameAdmin();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b4b75e112863e27df39162a054f4d808", "score": "0.53222305", "text": "public List<Person> getPersonsByLastName(String lastName){\n\t\tICriteriumMethod critMethod = (p, criterium) -> (criterium.equals(p.getLastName()));\n\t\t\n\t\t//get personByCriterium willCheck if the lastName is null\n\t\treturn getPersonByCriterium(lastName, critMethod);\n\t}", "title": "" }, { "docid": "439d7109b5a43e488fce192ecb4c898f", "score": "0.53187716", "text": "@Test\r\n public void shouldFindPersonByLastName() {\r\n final Person person = mNameParser.findPersonWithLastName(mNames, \"Doe\");\r\n final String firstName = person.getFirstName();\r\n assertEquals(\"John\", firstName);\r\n }", "title": "" }, { "docid": "fabaccb6db86fa53b245d43c5adb802c", "score": "0.5318386", "text": "Optional<Owner> findByLastName(String lastName);", "title": "" }, { "docid": "900970e79bb03607c5760c14ece19f56", "score": "0.5314893", "text": "public void setLastName(java.lang.String value) {\n this.lastName = value;\n }", "title": "" }, { "docid": "43361667a349e9bbd5b5874178e06a6a", "score": "0.5308529", "text": "public void setLastName(String name)\r\n {\r\n this.lastName = name;\r\n }", "title": "" }, { "docid": "1cfa504f32ca0109882de458c626d769", "score": "0.5302216", "text": "User searchName(String userName) throws AppException;", "title": "" }, { "docid": "44e51d48e08ff728c839da8546ebcef6", "score": "0.52998763", "text": "public void setLastName(String value)\n {\n this.lastName = value;\n }", "title": "" }, { "docid": "4ce0f65f81e2669c96bf5fbbdd924014", "score": "0.52982897", "text": "@RequestMapping(method = RequestMethod.GET)\n @PreAuthorize(\"hasPermission('VOLUNTEER', 'READ')\")\n public String showVolunteerList(ModelMap model, VolunteerSearchCriteria searchCriteria) {\n\n model.addAttribute(\"volunteers\", volunteerDao.findVolunteers(searchCriteria));\n model.addAttribute(\"newUri\", VolunteerModelFactory.generateUri(null) + \"new\");\n\n return \"volunteers/list\";\n }", "title": "" }, { "docid": "f62a0040ccb1f04ea7f7485c0e5240a2", "score": "0.5296807", "text": "@Override\n\tpublic List<Patient> searchPatient(String theSearchName) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\tQuery<Patient> theQuery = null;\n\n\t\t// search\n\t\tif (theSearchName != null && theSearchName.trim().length() > 0) {\n\n\t\t\t// search by firstName or lastName\n\t\t\ttheQuery = currentSession.createQuery(\n\t\t\t\t\t\"from Patient where lower(firstName) like :theName or lower(lastName) like :theName\",\n\t\t\t\t\tPatient.class);\n\n\t\t\t// set parameter\n\t\t\ttheQuery.setParameter(\"theName\", \"%\" + theSearchName.toLowerCase() + \"%\");\n\n\t\t} else {\n\n\t\t\t// show all patients if theSearchName is empty\n\t\t\ttheQuery = currentSession.createQuery(\"from Patient\", Patient.class);\n\t\t}\n\n\t\t// execute\n\t\tList<Patient> patients = theQuery.getResultList();\n\n\t\treturn patients;\n\t}", "title": "" }, { "docid": "9e7185c05923c5f79e83e32107fe0dab", "score": "0.5285024", "text": "List searchPersoninfo(Status status);", "title": "" }, { "docid": "5744cefa41705cf893a393972d19ef0e", "score": "0.52635837", "text": "@Override\n\tpublic List<Emplyoee> findAllByLastName(String lastName) {\n\t\treturn EmplyoeeRepo.findAllByLastName(lastName);\n\t}", "title": "" }, { "docid": "e9a8224b4cbed6a48485174c460ee0bc", "score": "0.52516973", "text": "public void sortbyLastName(){\n\t\tSystem.out.println(\"Sorted List by Last Name\");\n\t\tCollections.sort(this.recordHolder, new SortByLastName());\n\t\tdisplayRecords();\n\t}", "title": "" }, { "docid": "a9291cba384c53c676b124e1f2511359", "score": "0.5245641", "text": "public void findCommand()\n{\n System.out.print(\"To Find Enter person full Name without Space : \");\n String listName = myScanner.nextLine();\n Name myName = addressBook.showName(listName);\n if (myName == null)\n {\n System.out.println(\"Person with name \" + listName + \" not found\");\n }\n else\n {\n System.out.println(\"\\n\"+myName.getNameData());\n }\n}", "title": "" }, { "docid": "6bd44c07b40132d9b4f8276b278f5306", "score": "0.52407736", "text": "public PlayerNode search(String firstName, String lastName) {\n\t\tif(head == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tPlayerNode current = head;\n\t\twhile(current != null) {\n\t\t\tif(current.firstName.equals(firstName) && current.lastName.equals(lastName)) {\n\t\t\t\treturn current;\n\t\t\t}\n\t\t\tcurrent = current.next;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "51d0b4e652bdcf149ba1375a8f7309fa", "score": "0.52405155", "text": "public List<Patient> searchPatientByName(String name);", "title": "" }, { "docid": "d1d06c9f311abd9cf482ccef3ade8ef9", "score": "0.5237501", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\r\n }", "title": "" }, { "docid": "d59cbf486c700c150b56f655190b07b9", "score": "0.5232988", "text": "List<User> findFirst2ByOrderByLastnameAsc();", "title": "" }, { "docid": "f354cbaad3c9a864245e2adf8bc42522", "score": "0.521693", "text": "public static String findLname(String searchName) {\n\t\tString stringResult = \"\";\n\t\tString sql = \"SELECT * FROM addrbook where lower(lname) like '\"\n\t\t\t\t+ searchName + \"%' ORDER BY 1 \";\n\t\tsqlresult = MySearch.SqlSearch(sql, searchName);\n\n\t\tint size = sqlresult.size();\n\t\tSystem.out.println(size);\n\n\t\tif (sqlresult.size() > 0) {\n\n\t\t\tfor (MySearch p : sqlresult) {\n\t\t\t\tSystem.out.println(p);\n\t\t\t\tstringResult = stringResult + p.toString() + \"\\n\";\n\t\t\t}\n\n\t\t} else\n\t\t\tstringResult = \"No Results Found\";\n\t\treturn (stringResult);\n\t}", "title": "" }, { "docid": "6f8f9d5cae3e1d515156d803cf242047", "score": "0.521084", "text": "public void setlastName(String lastName) {\n this.lastName = lastName; \n }", "title": "" }, { "docid": "4d5145c1d68703262df31d2777c5cc05", "score": "0.5208837", "text": "public Volunteer(String name) {\n\t\tthis.name = name;\n\t\tthis.nbShifts = 0;\n\t\tthis.nbPreferredShiftsLeft = 0;\n\t}", "title": "" }, { "docid": "f3e8a0e42128e34a4032a706c9a5cea6", "score": "0.52069825", "text": "java.lang.String getLastName();", "title": "" }, { "docid": "1798fff3fbb0c9d844b43b358cc0d7d8", "score": "0.52064204", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "4cd0ea004da0f48bc028de0ba6b9dac6", "score": "0.5192091", "text": "public void setLastName(String lastName) {\r\n this.lastName = lastName;\r\n }", "title": "" }, { "docid": "4cd0ea004da0f48bc028de0ba6b9dac6", "score": "0.5192091", "text": "public void setLastName(String lastName) {\r\n this.lastName = lastName;\r\n }", "title": "" }, { "docid": "4cd0ea004da0f48bc028de0ba6b9dac6", "score": "0.5192091", "text": "public void setLastName(String lastName) {\r\n this.lastName = lastName;\r\n }", "title": "" }, { "docid": "9fa6c3d8d740d4677dea79babd71107d", "score": "0.5189864", "text": "@Override\r\n\tpublic Patient findByLastName(String lastName) {\r\n\t\treturn patientRepository.findByLastName(lastName);\r\n\t}", "title": "" }, { "docid": "ccac653d5f6fb26c53b00a17805ea6f8", "score": "0.5177275", "text": "public void setLastName(String lastName)\n {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "84a09b29d8e24279dfa9f1435718f74f", "score": "0.51701427", "text": "public Person findPerson(String lastName, String firstName) {\n\t\treturn PERSON_DATA.stream()\n\t\t\t\t.filter(p -> p.getFirstName().equalsIgnoreCase(firstName) && p.getLastName().equalsIgnoreCase(lastName))\n\t\t\t\t.findFirst()\n\t\t\t\t.orElseThrow(PersonNotFoundException::new);\n\t}", "title": "" }, { "docid": "412217539bff473aaab7d2cacc2f2e4a", "score": "0.5165333", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "412217539bff473aaab7d2cacc2f2e4a", "score": "0.5165333", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "412217539bff473aaab7d2cacc2f2e4a", "score": "0.5165333", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "412217539bff473aaab7d2cacc2f2e4a", "score": "0.5165333", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "412217539bff473aaab7d2cacc2f2e4a", "score": "0.5165333", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "412217539bff473aaab7d2cacc2f2e4a", "score": "0.5165333", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "412217539bff473aaab7d2cacc2f2e4a", "score": "0.5165333", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "412217539bff473aaab7d2cacc2f2e4a", "score": "0.5165333", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "412217539bff473aaab7d2cacc2f2e4a", "score": "0.5165333", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "412217539bff473aaab7d2cacc2f2e4a", "score": "0.5165333", "text": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "9b71844b7cb6489b05c0261d526bf63a", "score": "0.51652366", "text": "public abstract ArrayList<Toy> searchToysbyName(String toyName);", "title": "" }, { "docid": "4417b28b9fbba86795ea2238d2afdcd3", "score": "0.51622087", "text": "public void setLastName(String lastName){\n\t\tthis.lastName=lastName;\n\t}", "title": "" }, { "docid": "8b954de516029d6395bb5d5033987cf0", "score": "0.5156395", "text": "public void setLastName(String lastName){\n\t\tthis.lastName = lastName;\n\t}", "title": "" }, { "docid": "c1c07706cba81c253fa97f4ac80f925f", "score": "0.5154909", "text": "Optional<Person> findByFirstNameAndLastNameAllIgnoreCase(String firstname, String lastname);", "title": "" }, { "docid": "9a911ac2c3e97c55d5aa48b91e311593", "score": "0.5129143", "text": "public String getLastName();", "title": "" }, { "docid": "fd3afdae33315abd0075707af8c02639", "score": "0.5120841", "text": "@Actions( { @Action(value = \"ajaxSearchStudentName\", results = { @Result(type = \"json\", name = \"success\", params = {\"includeProperties\", \"objectList.*\" }) }) })\r\n\t\tpublic String ajaxSearchStudentName() throws URTUniversalException {\r\n\t\t\tif (log.isDebugEnabled()) {\r\n\t\t\t\tlog.debug(\"Entering 'ajaxSearchStudentName' method\");\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tString searchword = getParamValue(\"searchword\");\r\n\t\t\t\tList playersList=new ArrayList();\r\n\t\t\t\tif (!StringFunctions.isNullOrEmpty(searchword)) {\r\n\t\t\t\t\tList<ViewStudentPersonAccountDetails> studentsList = null;\r\n\t\t\t\t\tstudentsList= sportsManager.getAllStudentList(getUserCustId(),searchword,getAnyTitle());\r\n\t\t\t\t\t//studentsList = adminManager.getAll(ViewStudentPersonAccountDetails.class,\"custId=\"+getUserCustId()+\" and (fullName like '%\"+searchword.trim()+ \"%') and accountId not in (\"+ getAnyTitle().substring(0, getAnyTitle().length() - 1)+ \") and description is null \");\r\n\t\t\t\t\tJSONArray res = new JSONArray();\r\n\t\t\t\t\tJSONObject j;\r\n\t\t\t\t\tif (!ObjectFunctions.isNullOrEmpty(studentsList)) {\r\n\t\t\t\t\t\tCollections.sort(studentsList);\r\n\t\t\t\t\t\t\tfor (ViewStudentPersonAccountDetails studentDetails : studentsList) {\r\n\t\t\t\t\t\t\t\tj = new JSONObject();\r\n\t\t\t\t\t\t\t\tj.put(\"studentId\", studentDetails.getStudentId());\r\n\t\t\t\t\t\t\t\tj.put(\"fullName\", studentDetails.getFullName());\r\n\t\t\t\t\t\t\t\tj.put(\"className\", studentDetails.getClassName());\r\n\t\t\t\t\t\t\t\tj.put(\"section\", studentDetails.getSection());\r\n\t\t\t\t\t\t\t\tres.put(j);\r\n\t\t\t\t\t\t\t\tplayersList.add(studentDetails);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tj = new JSONObject();\r\n\t\t\t\t\t\tj.put(\"studentId\", 0);\r\n\t\t\t\t\t\tj.put(\"fullName\", \"No Results Found !!\");\r\n\t\t\t\t\t\tj.put(\"className\", \"\");\r\n\t\t\t\t\t\tj.put(\"section\", \"\");\r\n\t\t\t\t\t\tres.put(j);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tj = new JSONObject();\r\n\t\t\t\t\tj.put(\"data\", res);\r\n\t\t\t\t\tgetResponse().getOutputStream().print(j.toString());\r\n\t\t\t\t\tsetObjectList(playersList);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "de393c035991d87a9863538474915206", "score": "0.51189524", "text": "public void setlastName(String lastName){\n \tthis.lastName = lastName;\n \t}", "title": "" }, { "docid": "8c6eba9e29526123b908ca2f6f756a69", "score": "0.5117213", "text": "java.lang.String getSurname();", "title": "" }, { "docid": "ff9036544589718f9a124ce775624fb7", "score": "0.51160485", "text": "public void setLastName(String lastName) {\n \tthis.lastName = lastName ;\n }", "title": "" }, { "docid": "35ff8af2f2a3d4e65701118f6c44d5bd", "score": "0.51153654", "text": "public Politician findPolitician(String lastName) {\r\n if (head == null) {\r\n System.out.println(\"Empty List\");\r\n return null;\r\n } else {\r\n PoliticianNode a = head;\r\n while ((a != null) && (!a.getPolitician().getLastName().equals(lastName))) {\r\n a = a.getNextNode();\r\n }\r\n return a.getPolitician();\r\n }\r\n }", "title": "" }, { "docid": "10d648665be6039a968dd122a49d9a5e", "score": "0.5112899", "text": "public boolean verifyResultsWithLastName(String lastName)throws Throwable{\n\t\tboolean lastNameFlag =false;\n\t\tboolean verifySearchResults = isVisibleOnly(DISearchCallsPage.txtMessageNoDataAvailableForSearchResults, \"Last Name in Search Call Window \");\n\t\tif (verifySearchResults) {\n\t\t\tassertTrue(verifySearchResults,\"No Record found for Last name Search \");\n\t\t}\n\t\telse{\n\t\t\tmemberLastName = getWebElementList(DISearchCallsPage.MemberLastNameOnSearchCallsInSearclCallWindow, \"Last Name in Search Call Window\");\n\n\t\t\tfor (int i=0; i<memberLastName.size(); i++) {\n\t\t\t\tString memberLastNameFromList = memberLastName.get(i).getText();\n\t\t\t\tString lastNameLowerCase = memberLastNameFromList.toLowerCase();\n\t\t\t\tif (lastNameLowerCase.contains(lastName)) {\n\t\t\t\t\tlastNameFlag=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//assertTrue(lastNameFlag, \"Verified the results & call(s) is returned matching the last name \"+lastName);\n\t\t}\n\t\tThread.sleep(4000);\n\t\treturn lastNameFlag;\n\t}", "title": "" }, { "docid": "f0370d5daafa2b291e5a35833ca68a6b", "score": "0.5111222", "text": "public void setLastName(java.lang.String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "f0370d5daafa2b291e5a35833ca68a6b", "score": "0.5111222", "text": "public void setLastName(java.lang.String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "f0370d5daafa2b291e5a35833ca68a6b", "score": "0.5111222", "text": "public void setLastName(java.lang.String lastName) {\n this.lastName = lastName;\n }", "title": "" }, { "docid": "b4e58593ae12918939f7cee4776a7344", "score": "0.51110786", "text": "VeteranDto add(String lastName, String ssnLastFour);", "title": "" }, { "docid": "3ed7872c907e232ef01238aae532dc3f", "score": "0.5107828", "text": "public void setLastName(String lastName){\r\n\r\n \tLName.sendKeys(lastName);\r\n }", "title": "" }, { "docid": "5bbc50ed25846da4893f2172dd699237", "score": "0.509655", "text": "public void getLastName(String lastname) {\n\t\ttry {\n\t\t\tUtility.waitForElementToBeVisible(accntName.get(1));\n\t\t\tlName = accntName.get(1).getText();\n\t\t\tAssert.assertEquals(lName, lastname,\"Last Name of the account is not matching.\");\n\t\t\tLog.addMessage(\"Last Name entered\");\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Last Name field is not visible\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Last Name field is not visible\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f79a188292e1180cd5b3058dccd2c805", "score": "0.5086006", "text": "private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {\n String sql = \"select * from employees where code like '%\" + tfSearchCode.getText() + \"%' AND fullname like '%\" + tfSearchFullName.getText() +\"%'\";\n this.SelectEmployee(sql);\n }", "title": "" }, { "docid": "c60833811a00f91231c7ce6624819023", "score": "0.5082148", "text": "String getLastName();", "title": "" }, { "docid": "c60833811a00f91231c7ce6624819023", "score": "0.5082148", "text": "String getLastName();", "title": "" }, { "docid": "c60833811a00f91231c7ce6624819023", "score": "0.5082148", "text": "String getLastName();", "title": "" }, { "docid": "7385a654c651b197b14425fe70abe5cb", "score": "0.5074804", "text": "public List<Person> findPersonas(String firstName, String LasName) {\n List<Person> result = new ArrayList<>();\n\n for (Account a:accounts\n ) { if (\n (a.getPerson().getFirstName().equals(firstName) &&\n (a.getPerson().getLastName().equals(LasName)))\n )\n {result.add(a.getPerson());\n }\n }\n return result;\n }", "title": "" }, { "docid": "4ba7b8c7c526bc26e91775719cbe4116", "score": "0.507479", "text": "public void setLastName( String strLastName )\r\n {\r\n _strLastName = strLastName;\r\n }", "title": "" }, { "docid": "c4df2340ae8cfa66cbfec9c7c8fc6c9f", "score": "0.5074098", "text": "public void setLastName(java.lang.CharSequence value) {\n this.LastName = value;\n }", "title": "" }, { "docid": "2dacc83814b49063507c08734cdee9c1", "score": "0.5044289", "text": "@Override\n\tpublic Person findByNameSurnameAndDateOfBirth(Person person) {\n\t\treturn null;\n\t}", "title": "" } ]
ad7d524ab1a1a909d15426216ede3a74
TODO(b/63064865): Test is broken on Windows. Disable for now.
[ { "docid": "48b08c7320103fbcbad1ce9fe24e52e9", "score": "0.0", "text": "@Test\n public void applyFixes() throws IOException {\n Assume.assumeFalse(StandardSystemProperty.OS_NAME.value().startsWith(\"Windows\"));\n\n Path tmp = temporaryFolder.newFolder().toPath();\n Path fileA = tmp.resolve(\"A.java\");\n Path fileB = tmp.resolve(\"B.java\");\n Files.write(\n fileA,\n ImmutableList.of(\n \"class A implements Runnable {\", //\n \" public void run() {}\",\n \"}\"),\n UTF_8);\n Files.write(\n fileB,\n ImmutableList.of(\n \"class B implements Runnable {\", //\n \" public void run() {}\",\n \"}\"),\n UTF_8);\n JavacFileManager fileManager = new JavacFileManager(new Context(), false, UTF_8);\n DiagnosticCollector<JavaFileObject> diagnosticCollector = new DiagnosticCollector<>();\n JavacTask task =\n JavacTool.create()\n .getTask(\n null,\n fileManager,\n diagnosticCollector,\n ImmutableList.of(\n \"-Xplugin:ErrorProne\"\n + \" -XepPatchChecks:MissingOverride -XepPatchLocation:IN_PLACE\",\n \"-XDcompilePolicy=byfile\"),\n ImmutableList.of(),\n fileManager.getJavaFileObjects(fileA, fileB));\n assertWithMessage(Joiner.on('\\n').join(diagnosticCollector.getDiagnostics()))\n .that(task.call())\n .isTrue();\n assertThat(Files.readAllLines(fileA, UTF_8))\n .containsExactly(\n \"class A implements Runnable {\", //\n \" @Override public void run() {}\",\n \"}\")\n .inOrder();\n assertThat(Files.readAllLines(fileB, UTF_8))\n .containsExactly(\n \"class B implements Runnable {\", //\n \" @Override public void run() {}\",\n \"}\")\n .inOrder();\n }", "title": "" } ]
[ { "docid": "704ae9c3fd2bcebe251e0a32ea48c513", "score": "0.58812946", "text": "@Test\n public void test7() {\n\t \n\t //Dine-in is currently unavailable \n\t \n\t System.out.println(\"Test (7) is currently unexecutable\");\n\t \n }", "title": "" }, { "docid": "8c7335e99a07580ab8165947bba03be1", "score": "0.5733892", "text": "@Test\n\tpublic void testGetPlatform() {\n\t\tSystem.out.println(\"getPlatform\");\n\t\tWorkingDirectory.OS expResult = null;\n\t\tWorkingDirectory.OS result = WorkingDirectory.getPlatform();\n\t\tassertTrue(!result.equals(WorkingDirectory.OS.UNKNOWN));\n\t}", "title": "" }, { "docid": "49b935390e121b372fd0920da0eccad1", "score": "0.571984", "text": "@Test\r\n public void testDetectMagic() {\n }", "title": "" }, { "docid": "71cc9a830f17b4bb3bb2a8f1b5a974a8", "score": "0.5645672", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n EncodingFactory.getEncoding(\" could not be found.\", (String) null);\n EncodingFactory.getJavaEncodingForAlias((String) null);\n int int0 = EncodingFactory.getIscEncodingSize((String) null);\n assertEquals(1, int0);\n }", "title": "" }, { "docid": "188abc9c325bb92c636f2968c54df42d", "score": "0.5643517", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n EncodingFactory.getIscEncoding(\"pbE>|OMu!T$Exe=[D\");\n // Undeclared exception!\n EncodingFactory.getTranslator((String) null);\n }", "title": "" }, { "docid": "23419691c9dc346552e6e510f22ab1b8", "score": "0.563079", "text": "@org.junit.jupiter.api.Test\n void FileTest(){\n File file=new File(\"aa\");\n assertNull(Util.getDriveType(file));\n }", "title": "" }, { "docid": "b29a32188695488b54df1ab6f358a37a", "score": "0.56041473", "text": "@Test\n public void testWin() throws Exception {\n\n }", "title": "" }, { "docid": "c29fbfda93a0151a8289d56af5f78251", "score": "0.5556004", "text": "@Test\r\n public void findNonExistingBinary() {\r\n assertTrue(FileUtils.findExecutableOnPath(\"foobar\") == null);\r\n }", "title": "" }, { "docid": "7cd76cf049cc47089db79a4fa8fb8612", "score": "0.55310255", "text": "@Test\n public void _nativeTest() {\n // TODO: test _native\n }", "title": "" }, { "docid": "2fe4d14a9eff8d619c9197611a054164", "score": "0.54968935", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n EncodingFactory.getJavaEncoding(\"WHY00\");\n EncodingFactory encodingFactory0 = new EncodingFactory();\n EncodingFactory.getEncoding(\"WHY00\");\n EncodingFactory.createEncoding(\"Cp864\");\n EncodingFactory.createEncoding(\"]3KS 1^\");\n int int0 = EncodingFactory.getCharacterSetSize((-1485492248));\n EncodingFactory.getJavaEncodingForAlias(\"Cp864\");\n EncodingFactory.getJavaEncodingForAlias(\"u.c7;0Ul]qBh5\");\n EncodingFactory.getJavaEncodingForAlias(\"WHY00\");\n EncodingFactory.getEncoding((String) null);\n EncodingFactory.getEncoding(\"ywp_]LVnx\", encodingFactory0.DEFAULT_MAPPING);\n EncodingFactory.getJavaEncodingForAlias(\"Cp864\");\n int int1 = EncodingFactory.getIscEncodingSize(\"isc_encoding_size.properties\");\n assertTrue(int1 == int0);\n }", "title": "" }, { "docid": "c5d58368c29d438bc51c89cda0dbfdf2", "score": "0.54930806", "text": "@Test(timeout = 4000)\n public void test37() throws Throwable {\n EncodingFactory.getJavaEncoding(\"HY000\");\n Encoding encoding0 = EncodingFactory.getEncoding(\"HY000\");\n EncodingFactory.getJavaEncoding(\"DOS737\");\n EncodingFactory.getIscEncodingSize((String) null);\n EncodingFactory.getEncoding(\"~4J$]b,LBAwW\", (char[]) null);\n EncodingFactory.getJavaEncoding(\"~4J$]b,LBAwW\");\n EncodingFactory.createEncoding(\"Cp737\");\n Encoding encoding1 = EncodingFactory.createEncoding(\"HY000\");\n assertNotSame(encoding1, encoding0);\n }", "title": "" }, { "docid": "b2dc21b296b8242c7a9cf67ab546d6b7", "score": "0.5484109", "text": "@SuppressWarnings(\"unused\")\n @Override\n public void testCanFormatFalse() {\n }", "title": "" }, { "docid": "894084cf167e95ef94d829d04b0ffc9a", "score": "0.54826444", "text": "@Test(timeout = 4000)\n public void test163() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\\f\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n MockPrintStream mockPrintStream0 = new MockPrintStream(javaParserTokenManager0.debugStream, false);\n javaParserTokenManager0.setDebugStream(mockPrintStream0);\n }", "title": "" }, { "docid": "aec5abb621fba88bca611d61e89b9006", "score": "0.54366934", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n StringWriter stringWriter0 = new StringWriter();\n SimpleNode simpleNode0 = new SimpleNode(47);\n String string0 = \"H=\";\n simpleNode0.setIdentifier(\"H=\");\n simpleNode0.dump(\" ,us7e;(_+iM{1+ +3-\", stringWriter0);\n EvoSuiteFile evoSuiteFile0 = null;\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n simpleNode0.setIdentifier(\"<\");\n StringWriter stringWriter1 = new StringWriter(47);\n simpleNode0.setIdentifier(\"}\");\n simpleNode0.dump(\"T\", stringWriter0);\n stringWriter1.close();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, false);\n simpleNode0.setIdentifier(\"T\");\n simpleNode0.dump(\" ,us7e;(_+iM{1+ +3-\", stringWriter1);\n Node node0 = simpleNode0.parent;\n MockRandomAccessFile mockRandomAccessFile0 = null;\n try {\n mockRandomAccessFile0 = new MockRandomAccessFile(\"1\", \"}6mwGvgq+rO\\\"56k}7o\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Illegal mode \\\"}6mwGvgq+rO\\\"56k}7o\\\" must be one of \\\"r\\\", \\\"rw\\\", \\\"rws\\\", or \\\"rwd\\\"\n //\n verifyException(\"java.io.RandomAccessFile\", e);\n }\n }", "title": "" }, { "docid": "8035636e49747895f34d2ff615cc4b58", "score": "0.54362345", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n EncodingFactory.getJavaEncoding(\"HY000\");\n EncodingFactory.getEncoding(\"HY000\");\n String string0 = EncodingFactory.getJavaEncoding(\"DOS737\");\n assertEquals(\"Cp737\", string0);\n assertNotNull(string0);\n \n int int0 = EncodingFactory.getIscEncodingSize(\"ASCII\");\n assertEquals(1, int0);\n }", "title": "" }, { "docid": "96c840a4859d287baf3e653283ee608a", "score": "0.54328686", "text": "@Test(timeout = 4000)\n public void test39() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n boolean boolean0 = fileUtil0.isAgeGood((File) null);\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "eed665da2161286ac1fd565f5b7bfdb5", "score": "0.54085517", "text": "private static void testScreenNursery() {\n\t}", "title": "" }, { "docid": "7cee07475845ce8a9048ca181f8a21bb", "score": "0.53702", "text": "@Test\n\tpublic void testinterpretAllbugs() {\n\n\t}", "title": "" }, { "docid": "05dbc7941f875f6cae3f3c90e27e25c5", "score": "0.5360086", "text": "@Test(timeout = 4000)\n public void test00() throws Throwable {\n EncodingFactory.getIscEncodingSize(\"x43Fg\");\n EncodingFactory.getJavaEncoding(\"x43Fg\");\n EncodingFactory.getJavaEncodingForAlias(\"n:W8Kh<_aH<d;IG /T\");\n EncodingFactory.getJavaEncoding(\"x43Fg\");\n EncodingFactory.getIscEncodingSize((String) null);\n EncodingFactory.getIscEncodingSize(\"\");\n EncodingFactory.getIscEncodingSize(\"\");\n EncodingFactory.getEncoding(\"x43Fg\");\n EncodingFactory.getIscEncodingSize(\"Incorrect mapping format. All properties should start with \\\"db.\\\", but \");\n String string0 = \"Cp860\";\n EncodingFactory.getIscEncodingSize(\"Cp860\");\n EncodingFactory.getIscEncoding(\"\");\n EncodingFactory.getJavaEncoding(\"Cp860\");\n // Undeclared exception!\n EncodingFactory.getEncoding((String) null, \"db.\");\n }", "title": "" }, { "docid": "0945bb76998f2aceb205a84b068df1ca", "score": "0.5349545", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n EncodingFactory.getIscEncodingSize((String) null);\n EncodingFactory.getEncoding((String) null);\n char[] charArray0 = new char[2];\n charArray0[0] = '.';\n charArray0[1] = 'Y';\n // Undeclared exception!\n try { \n EncodingFactory.getEncoding(\"Cp850\", charArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "1875a39c0970a369e86e8b4625894409", "score": "0.5342818", "text": "@Test\n public void testTmpDir() {\n String tmp = System.getProperty(\"java.io.tmpdir\");\n System.setProperty(\"java.io.tmpdir\", \"greg\");\n assertEquals(\"greg\", System.getProperty(\"java.io.tmpdir\"));\n System.setProperty(\"java.io.tmpdir\", tmp);\n assertEquals(tmp, System.getProperty(\"java.io.tmpdir\"));\n\n }", "title": "" }, { "docid": "8ae999bf201c2d8c3d50dd122e5521f1", "score": "0.5331802", "text": "@Test\n public void hasCommandSuffix_windows() {\n Assume.assumeTrue(SystemUtils.IS_OS_WINDOWS);\n assertThat(EmulatorUtils.hasCommandSuffix(\n \"path\\\\to\\\\command\",\n \"path/to/command\"),\n is(true));\n assertThat(EmulatorUtils.hasCommandSuffix(\n \"command\",\n \"path/to/command\"),\n is(false));\n assertThat(EmulatorUtils.hasCommandSuffix(\n \"path\\\\to\\\\other\",\n \"path/to/command\"),\n is(false));\n assertThat(EmulatorUtils.hasCommandSuffix(\n \"C:\\\\absolute\\\\windows\\\\path\\\\to\\\\command\",\n \"path/to/command\"),\n is(true));\n assertThat(EmulatorUtils.hasCommandSuffix(\n \"C:\\\\absolute\\\\windows\\\\path\\\\to\\\\other\",\n \"path/to/command\"),\n is(false));\n }", "title": "" }, { "docid": "b3f8bc8ff96281c7f09793ac69877ddf", "score": "0.53295636", "text": "@Test(timeout = 4000)\n public void test03() throws Throwable {\n EncodingFactory.getJavaEncodingForAlias(\"Cp737\");\n EncodingFactory.getJavaEncoding(\"Cp737\");\n EncodingFactory encodingFactory0 = new EncodingFactory();\n String string0 = EncodingFactory.getJavaEncodingForAlias(\"7N/MuXOVHk)\");\n assertNull(string0);\n }", "title": "" }, { "docid": "911bc07a7403800c3d63274ad56137dc", "score": "0.53164345", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n EncodingFactory.createEncoding(\"Cp437\");\n EncodingFactory.getJavaEncoding(\"DOS737\");\n EncodingFactory.getCharacterSetSize(50);\n EncodingFactory.getJavaEncodingForAlias(\"Cp437\");\n Encoding encoding0 = EncodingFactory.createEncoding(\"NONE\");\n EncodingFactory.getCharacterSetSize((-1725274574));\n EncodingFactory.getJavaEncodingForAlias(\"org.firebirdsql.encodings.Encoding_ISO8859_6\");\n EncodingFactory.getIscEncodingSize(\"org.firebirdsql.encodings.Encoding_ISO8859_6\");\n EncodingFactory.getIscEncodingSize(\"/[C;olG\");\n Encoding encoding1 = EncodingFactory.createEncoding(\"org.firebirdsql.encodings.Encoding_ISO8859_6\");\n assertNotSame(encoding1, encoding0);\n }", "title": "" }, { "docid": "d7decab71e9415c83cedcffd73f2c147", "score": "0.5314957", "text": "@Test(timeout = 4000)\n public void test36() throws Throwable {\n EncodingFactory.getJavaEncoding(\"T'YqCP~\\\"x~>|5%}\");\n EncodingFactory encodingFactory0 = new EncodingFactory();\n EncodingFactory.createEncoding(\"isc_encoding_size.properties\");\n EncodingFactory.getEncoding(\"isc_encoding_size.properties\", encodingFactory0.DEFAULT_MAPPING);\n EncodingFactory.createEncoding(\"Cp869\");\n EncodingFactory.getEncoding(\"Cp775\", encodingFactory0.DEFAULT_MAPPING);\n // Undeclared exception!\n EncodingFactory.getEncoding(\"Cp775\", \"u.c7;0Ul]qBh5\");\n }", "title": "" }, { "docid": "4c14ed934a6743eb80e0f4ad5156f289", "score": "0.5313873", "text": "public void testOffsetPosition() throws Exception {\n//TODO: Test goes here... \n }", "title": "" }, { "docid": "66cf38e5a4cbd83ef2c554c5868de03b", "score": "0.5304809", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n EncodingFactory.getJavaEncoding(\"T'YqCP~\\\"x~>|5%}\");\n EncodingFactory encodingFactory0 = new EncodingFactory();\n EncodingFactory.getEncoding(\"Cp869\", (String) null);\n String string0 = \"\";\n // Undeclared exception!\n EncodingFactory.getTranslator(\"isc_encoding_size.properties\");\n }", "title": "" }, { "docid": "e5276ac6bd1c5b2502c418a072b04ddb", "score": "0.53000736", "text": "@Test\r\n public void testGetBridgePrefix() {\r\n try {\r\n assertEquals(true, cnwReader.getBridgePrefix().equals(\"Bridge \"));\r\n assertEquals(true, icReader.getBridgePrefix().equals(\"V-\"));\r\n } catch (Exception e) {\r\n fail(\"This test should not throw any exceptions\");\r\n }\r\n }", "title": "" }, { "docid": "b315090d308f0d50be3aa032c3ad90bb", "score": "0.5299248", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getBrowseNodeFile(\"cDjkt/T+PPs\", \"\", \"1??5|rq\");\n assertNull(file0);\n }", "title": "" }, { "docid": "e9800d509fc9102471fdc45aa27c484d", "score": "0.5298296", "text": "public void testFindAssemblerRoots()\r\n {\n }", "title": "" }, { "docid": "e377fd5b0c347191ce466e8c1850adb7", "score": "0.52972823", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getASINFile(\"\", \"+<<u\", \"+<<u\", (String) null);\n assertNull(file0);\n }", "title": "" }, { "docid": "397a9db099a1ea382e1880be77d4b86f", "score": "0.52912074", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n StringWriter stringWriter0 = new StringWriter();\n SimpleNode simpleNode0 = new SimpleNode(47);\n String string0 = \"H=\";\n simpleNode0.setIdentifier(\"H=\");\n simpleNode0.dump(\" ,us7e;(_+iM{1+ +3-\", stringWriter0);\n EvoSuiteFile evoSuiteFile0 = null;\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n simpleNode0.setIdentifier(\"{\");\n StringWriter stringWriter1 = new StringWriter(47);\n simpleNode0.setIdentifier(\"}\");\n simpleNode0.dump(\"T\", stringWriter0);\n stringWriter1.close();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, false);\n simpleNode0.setIdentifier(\"T\");\n simpleNode0.dump(\" ,us7e;(_+iM{1+ +3-\", stringWriter1);\n SimpleNode simpleNode1 = new SimpleNode(47);\n MockRandomAccessFile mockRandomAccessFile0 = null;\n try {\n mockRandomAccessFile0 = new MockRandomAccessFile(\"1\", \"}6mwGvgq+rO\\\"56k}7o\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Illegal mode \\\"}6mwGvgq+rO\\\"56k}7o\\\" must be one of \\\"r\\\", \\\"rw\\\", \\\"rws\\\", or \\\"rwd\\\"\n //\n verifyException(\"java.io.RandomAccessFile\", e);\n }\n }", "title": "" }, { "docid": "191a3975d88cd7b3566eb7964dbc5102", "score": "0.5287311", "text": "private static boolean initWindowsOs()\n {\n String osName= System.getProperty( \"os.name\").toLowerCase( Locale.ENGLISH);\n return osName.contains( \"windows\");\n }", "title": "" }, { "docid": "8c9360bea869c08e4161ca3351a5894b", "score": "0.5267034", "text": "@Test\r\n public void testOpen() throws Exception {\r\n }", "title": "" }, { "docid": "94de6a5acfb7d707fa310386a0e01058", "score": "0.52639735", "text": "@Ignore\n\tpublic void testBufferFileReader() {\n\t}", "title": "" }, { "docid": "9dc3e792d0674969ab1d1596281b4909", "score": "0.52632433", "text": "@Test\n public void testGetLongOfString() throws Exception {\n //TODO: Test goes here...\n }", "title": "" }, { "docid": "6689d63daea909b1a6c50d2a410ef7a9", "score": "0.5253337", "text": "@Test\npublic void testSeekAlphabeticPosition() {\n\tFileSystem SomeOtherFiles = new FileSystem(\"varia\", MyDirectory, true); \n\tassertEquals(3, SomeOtherFiles.seekAlphabeticPosition(SomeOtherFiles.getName())); \n}", "title": "" }, { "docid": "41b0f53cae7ac45323926e73de8cc845", "score": "0.5238022", "text": "@Test\npublic void testForIsDeleted_LegalCaseB() {\n\tFileSystem MyOSPrevious = new FileSystem(\"MyOSVersion0\", null, false); \n\tMyOSPrevious.setDelete(true);\n\tassertTrue(MyOSPrevious.isDeleted()); \n\t\n}", "title": "" }, { "docid": "7277cf766bea225aa8573ff16c268eb7", "score": "0.52363473", "text": "@Test(timeout = 4000)\n public void test33() throws Throwable {\n char[] charArray0 = new char[3];\n charArray0[0] = '_';\n charArray0[1] = 's';\n charArray0[2] = 's';\n EncodingFactory.createEncoding(\"Cp866\");\n EncodingFactory.getCharacterSetSize(2344);\n EncodingFactory.getJavaEncodingForAlias(\"Cp866\");\n EncodingFactory.getEncoding(\"Cp866\", (String) null);\n // Undeclared exception!\n EncodingFactory.getEncoding(\"01S00\", \"Cp866\");\n }", "title": "" }, { "docid": "e415e31b3a70ef3ea095ec0a9eacc717", "score": "0.52280116", "text": "@Test(timeout = 4000)\n public void test168() throws Throwable {\n StringReader stringReader0 = new StringReader(\"assert\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.ReInit(javaCharStream0);\n assertEquals(0, javaCharStream0.getBeginLine());\n }", "title": "" }, { "docid": "4f883f4bb23106eae597b7e23a2cd557", "score": "0.5217721", "text": "@Override\n\tpublic boolean test4() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "35b2df07e793ac7e452ef8b92e0ebb96", "score": "0.5215051", "text": "@Override\r\n protected boolean getTestInvalid() {\r\n return false;\r\n }", "title": "" }, { "docid": "35b2df07e793ac7e452ef8b92e0ebb96", "score": "0.5215051", "text": "@Override\r\n protected boolean getTestInvalid() {\r\n return false;\r\n }", "title": "" }, { "docid": "35b2df07e793ac7e452ef8b92e0ebb96", "score": "0.5215051", "text": "@Override\r\n protected boolean getTestInvalid() {\r\n return false;\r\n }", "title": "" }, { "docid": "35b2df07e793ac7e452ef8b92e0ebb96", "score": "0.5215051", "text": "@Override\r\n protected boolean getTestInvalid() {\r\n return false;\r\n }", "title": "" }, { "docid": "35b2df07e793ac7e452ef8b92e0ebb96", "score": "0.5215051", "text": "@Override\r\n protected boolean getTestInvalid() {\r\n return false;\r\n }", "title": "" }, { "docid": "693402d0a3e0a189c68fdf5f7469f6a5", "score": "0.5212494", "text": "@Test(timeout = 4000)\n public void test112() throws Throwable {\n StringReader stringReader0 = new StringReader(\"O`=xcDl.BRg\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(74, token0.kind);\n assertEquals(\"O\", token0.toString());\n }", "title": "" }, { "docid": "660193c71cd3067292cf34481f4ece04", "score": "0.5205945", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n ApplicationFiles applicationFiles0 = new ApplicationFiles();\n File file0 = applicationFiles0.getQuickStartGuideFile();\n URI uRI0 = file0.toURI();\n File file1 = file0.getAbsoluteFile();\n file0.getCanonicalPath();\n File file2 = MockFile.createTempFile(\"G:7kFK6x4#]\", \"G:7kFK6x4#]\", file0);\n file2.toURL();\n MockFile mockFile0 = new MockFile(uRI0);\n File file3 = file2.getAbsoluteFile();\n file2.mkdirs();\n file2.getCanonicalPath();\n file0.setExecutable(false, true);\n MockFile mockFile1 = new MockFile(\"/home/ubuntu/replication/scripts/projects/102_squirrel-sql/doc/quick_start.html\");\n file2.getCanonicalPath();\n MockFile mockFile2 = new MockFile(\"G:7kFK6x4#]\");\n file3.setExecutable(true, true);\n MockFile mockFile3 = new MockFile(file1, \"b/'+/9\");\n mockFile3.mkdirs();\n file1.getCanonicalPath();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"/home/ubuntu/replication/scripts/projects/102_squirrel-sql/doc/quick_start.html\");\n LinkedHashSet<String> linkedHashSet0 = new LinkedHashSet<String>();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n // Undeclared exception!\n try { \n DBUtil.getColumnTypes((ISQLConnection) null, (ITableInfo) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"net.sourceforge.squirrel_sql.plugins.dbcopy.util.DBUtil\", e);\n }\n }", "title": "" }, { "docid": "30528d073fb20203bf9fd27e7666485a", "score": "0.52039", "text": "public static void utilTest() throws UnsupportedEncodingException {\n\t}", "title": "" }, { "docid": "fcd6a9fc67417f3bdd429bfe87931e34", "score": "0.5202625", "text": "@Test\n void exportedFileExists() {\n }", "title": "" }, { "docid": "babba7b870bbd8c0ebdb2ad18c5df624", "score": "0.5202097", "text": "@Override\n\t\t\tpublic void test() {\n\n\t\t\t}", "title": "" }, { "docid": "94c6c9c02790d1ce80374feda9f545a5", "score": "0.52009916", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n EncodingFactory.getIscEncoding((String) null);\n EncodingFactory.createEncoding(\"Cp43(7\");\n String string0 = \"Cp865\";\n char[] charArray0 = new char[4];\n charArray0[0] = '1';\n // Undeclared exception!\n try { \n EncodingFactory.getEncoding(\"Cp1252\", charArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "a298fa356027214205e72e8810de684b", "score": "0.51950514", "text": "@Test\n public void testIsCompatible() {\n }", "title": "" }, { "docid": "5b6cb31bcbebb6c3ee38068430dc0105", "score": "0.51882505", "text": "@Test\n public void testGetStringOfLong() throws Exception {\n //TODO: Test goes here...\n }", "title": "" }, { "docid": "e6da2404038376cd989c76a3b1f8ef32", "score": "0.5183862", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n EncodingFactory.getJavaEncodingForAlias(\"\");\n EncodingFactory.getEncoding(\"ISO8859_5\");\n EncodingFactory.getIscEncoding(\"|9:suS\");\n String string0 = EncodingFactory.getJavaEncodingForAlias(\"=kn\");\n assertNull(string0);\n }", "title": "" }, { "docid": "456a25c713d5169d7b1ae9054626de9e", "score": "0.5183835", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n SimpleNode simpleNode0 = new SimpleNode(18);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"|\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"&&\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n simpleNode0.setIdentifier(\"&&\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n StringWriter stringWriter0 = new StringWriter();\n stringWriter0.flush();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n simpleNode0.setIdentifier(\">\");\n String string0 = \"*ge\";\n simpleNode0.dump(\"*ge\", stringWriter0);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileDescriptor fileDescriptor0 = new FileDescriptor();\n try { \n fileDescriptor0.sync();\n fail(\"Expecting exception: SyncFailedException\");\n \n } catch(SyncFailedException e) {\n //\n // sync failed\n //\n verifyException(\"java.io.FileDescriptor\", e);\n }\n }", "title": "" }, { "docid": "fd41bcfe30988ecb7fe2a8f894662488", "score": "0.5180612", "text": "@Test(timeout = 4000)\n public void test053() throws Throwable {\n StringReader stringReader0 = new StringReader(\"/S:t!-7e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 461, (-1993), 843);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"/\", token0.toString());\n }", "title": "" }, { "docid": "85e7e8f3c84d309ce2b42d1b81e4faac", "score": "0.51799935", "text": "public void testFailingtestIsMacOSSnowLeopardOrNewer() {\n if (!OSUtil.isMacOS()) {\n return;\n }\n boolean isMacOS = OSUtil.isMacOSSnowLeopardOrNewer();\n assertEquals(true, isMacOS);\n }", "title": "" }, { "docid": "367e9fc2c5f74d63d47c4ed0c337bc28", "score": "0.51792294", "text": "@Test(timeout = 4000)\n public void test061() throws Throwable {\n StringReader stringReader0 = new StringReader(\".Wv/IgkWK\\\"Sd\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2743, 102);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(85, token0.kind);\n }", "title": "" }, { "docid": "627f21704b62c13a1e307e6e11e6fbcc", "score": "0.51710206", "text": "@Test\r\n public void testRead() throws Exception {\r\n }", "title": "" }, { "docid": "f85c0da5667ab78ea0cd3d4aa0bf6a16", "score": "0.5168272", "text": "private static boolean m38709b(String str) {\n try {\n if (new File(str).exists()) {\n return true;\n }\n return false;\n } catch (Throwable th) {\n C6271e.m38794a(th);\n return false;\n }\n }", "title": "" }, { "docid": "1afe4101e774f61100659491702ec3c1", "score": "0.5168196", "text": "@Test\n public void testGetLastPulledFor() {\n }", "title": "" }, { "docid": "77a948d05b118c50dc3e0885c4067107", "score": "0.51618004", "text": "@Test(timeout = 4000)\n public void test070() throws Throwable {\n StringReader stringReader0 = new StringReader(\"/Eb#vUqWK`x$RefoVq(\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1812, (-1329));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"/\", token0.toString());\n }", "title": "" }, { "docid": "55f6822e634371eabae21e7b0d80701f", "score": "0.5160484", "text": "public void testParseWithWindowsNetworkStart() {\n ResourcePath path = ResourcePath.parse(\"\\\\\\\\\");\n assertEquals(\"\\\\\\\\\", path.getPathString(\"\\\\\"));\n assertPathMatches(path, \"\\\\\\\\\");\n }", "title": "" }, { "docid": "69598735dc8e70dd425bb8ceac90d8ae", "score": "0.5156316", "text": "@Test\n public void whenHaveIncorrectMaskThenDontChangePath() {\n Shell shell = new Shell(this.entry);\n shell.cd(\"usr/..\");\n assertThat(shell.path(), is(\"/\"));\n }", "title": "" }, { "docid": "ac03e2e9861e2d34796249c0b890ff12", "score": "0.5156189", "text": "@Test(timeout = 4000)\n public void test074() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s8J_T.I1\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 103, 103);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(4, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }", "title": "" }, { "docid": "89253ffca7f3c408947da68fd7e38698", "score": "0.51551175", "text": "@Test\n public void testGetFileDescription() throws Exception {\n }", "title": "" }, { "docid": "0fb3325f975851070d3e7b8c52e64ae7", "score": "0.5152086", "text": "@Test(timeout = 4000)\n public void test077() throws Throwable {\n StringReader stringReader0 = new StringReader(\"=2Pu\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(87, token0.kind);\n }", "title": "" }, { "docid": "fe4d0b500266d8fe812197873c7d2b97", "score": "0.51494616", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n FileSystemHandling.shouldAllThrowIOExceptions();\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_MakeBinary = true;\n discretize0.toString();\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "23a05d228e89ab2bfa3c09d8843ad73e", "score": "0.5148746", "text": "public void testOnSeekTargetStep() throws Exception {\n//TODO: Test goes here... \n }", "title": "" }, { "docid": "5237a03eb985c08250818773ab5e92cf", "score": "0.51461273", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n EncodingFactory.getEncoding(\"Y000\");\n EncodingFactory.getJavaEncoding(\"Y000\");\n EncodingFactory encodingFactory0 = new EncodingFactory();\n Encoding encoding0 = EncodingFactory.getEncoding(\"Cp863\", encodingFactory0.DEFAULT_MAPPING);\n assertNotNull(encoding0);\n }", "title": "" }, { "docid": "38199094b2b73965a85f799c815a394e", "score": "0.513371", "text": "public static void skipOnWindows() {\n if (OS.contains(\"win\")) {\n throw new SkipException(\"Skipping the test case on Windows\");\n }\n }", "title": "" }, { "docid": "cf829cfd0eec434e939433a4f66fbf11", "score": "0.5132611", "text": "@Test\n public void testExportFont() {\n }", "title": "" }, { "docid": "81ebc87d46621b5d854ea333ca633e1e", "score": "0.5129157", "text": "public void testGetBrowserExecutable () {\n if (testObject.getBrowserExecutable () == null)\n fail (\"SimpleExtBrowser.getBrowserExecutable () returns <null>.\");\n }", "title": "" }, { "docid": "315af36d234b0a498df775f40beb757e", "score": "0.51265216", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n JavaCharStream javaCharStream0 = null;\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager((JavaCharStream) null, 0);\n StringBuffer stringBuffer0 = new StringBuffer(2439);\n javaParserTokenManager0.jjimageLen = 64;\n javaParserTokenManager0.image = stringBuffer0;\n javaParserTokenManager0.MoreLexicalActions();\n Token.GTToken token_GTToken0 = new Token.GTToken();\n token_GTToken0.realKind = 0;\n javaParserTokenManager0.SkipLexicalActions(token_GTToken0);\n javaParserTokenManager0.ReInit((JavaCharStream) null, 0);\n // Undeclared exception!\n try { \n MockFile.createTempFile((String) null, \"\", (File) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.vfs.VirtualFileSystem\", e);\n }\n }", "title": "" }, { "docid": "f114aa4d7f376a98615fb9f9d6bdd6cd", "score": "0.51242876", "text": "public void testFlagRemovedAndOffsetPosition() throws Exception {\n//TODO: Test goes here... \n }", "title": "" }, { "docid": "7d98bded9dabc397aa07e343a0f03029", "score": "0.5123864", "text": "@Ignore\n\tpublic void testBufferFileWriter() {\n\t}", "title": "" }, { "docid": "0a7a196fd00f9f60e57fb73737161e19", "score": "0.51218957", "text": "@Test\n public void isCliTest() {\n // TODO: test isCli\n }", "title": "" }, { "docid": "5834c84b1b49e4b355c30acf5169cc8a", "score": "0.5120564", "text": "@Test @Disabled\n public void byteSizeTracking() {\n }", "title": "" }, { "docid": "b82a337b36f4acb9ba4ea2b3cde0d6b0", "score": "0.5120275", "text": "@Test(timeout = 4000)\n public void test049() throws Throwable {\n StringReader stringReader0 = new StringReader(\"/ZX|5Od\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"/\", token0.toString());\n }", "title": "" }, { "docid": "34dcb967b83fd3e0118a58ab183b9991", "score": "0.5119072", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n EncodingFactory.getIscEncoding(\"P|Dd\");\n EncodingFactory.getEncoding(\"Bi#A\\\"\");\n EncodingFactory.createEncoding(\"Cp437\");\n char[] charArray0 = new char[4];\n charArray0[0] = '1';\n EncodingFactory.createEncoding(\"Cp437\");\n EncodingFactory.getCharacterSetSize((-2465));\n EncodingFactory.getJavaEncodingForAlias((String) null);\n EncodingFactory.getJavaEncodingForAlias(\"Cp437\");\n EncodingFactory.getJavaEncodingForAlias((String) null);\n EncodingFactory.getEncoding(\"Cp437\");\n // Undeclared exception!\n try { \n EncodingFactory.getEncoding(\"Cp437\", charArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "fe2ed88ae2e05db8f252e9dad5cfa8be", "score": "0.51158017", "text": "@Test\n public void testGetFontName() {\n }", "title": "" }, { "docid": "5fa01f7ef77e090604c63f3d68a62783", "score": "0.51141405", "text": "@Test\n public void testRead() throws Exception {\n }", "title": "" }, { "docid": "3086fc8f8c205c75f4261b6fff79470e", "score": "0.5107464", "text": "@Test\n public void testGetWindow() {\n }", "title": "" }, { "docid": "0e827baf4b35cb136f798ed84d98bf37", "score": "0.51069784", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n boolean boolean0 = FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n SimpleNode simpleNode0 = new SimpleNode(18);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"|\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"|\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n simpleNode0.setIdentifier(\"|\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n simpleNode0.setIdentifier(\"1\");\n simpleNode0.dump(\";\", stringWriter0);\n simpleNode0.toString(\"1\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileDescriptor fileDescriptor0 = new FileDescriptor();\n FileSystemHandling fileSystemHandling2 = new FileSystemHandling();\n FileSystemHandling fileSystemHandling3 = new FileSystemHandling();\n FileSystemHandling fileSystemHandling4 = new FileSystemHandling();\n boolean boolean1 = FileSystemHandling.appendStringToFile((EvoSuiteFile) null, (String) null);\n assertTrue(boolean1 == boolean0);\n }", "title": "" }, { "docid": "0ba1fb3a3b17614de7c27b0244266fb5", "score": "0.5104744", "text": "@Test\r\n public void testGetMask() {\r\n }", "title": "" }, { "docid": "dbeae156cadd44430754fc88a1ef7eaf", "score": "0.51035506", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n EncodingFactory.getJavaEncoding(\"1\");\n EncodingFactory.getJavaEncoding(\"n|LEEGV\");\n EncodingFactory.getJavaEncodingForAlias((String) null);\n EncodingFactory encodingFactory0 = new EncodingFactory();\n // Undeclared exception!\n EncodingFactory.getTranslator(\"isc_encodings.properties\");\n }", "title": "" }, { "docid": "389878a57659a6acf3b6bc1d72fa944f", "score": "0.5100219", "text": "@Test(timeout = 4000)\n public void test144() throws Throwable {\n StringReader stringReader0 = new StringReader(\"9$8ua44du\\\\?Cc\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n // fail(\"Expecting exception: Error\");\n // Unstable assertion\n } catch(Error e) {\n //\n // Lexical error at line 1, column 10. Encountered: \\\"\\\\\\\\\\\" (92), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "title": "" }, { "docid": "f10558181cc9cec8fa9d6deb918e4d14", "score": "0.5096817", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = null;\n String string0 = null;\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n SimpleNode simpleNode0 = new SimpleNode(18);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"|\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n simpleNode0.setIdentifier(\"<\");\n simpleNode0.dump(\";\", stringWriter0);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileDescriptor fileDescriptor0 = new FileDescriptor();\n try { \n fileDescriptor0.sync();\n fail(\"Expecting exception: SyncFailedException\");\n \n } catch(SyncFailedException e) {\n //\n // sync failed\n //\n verifyException(\"java.io.FileDescriptor\", e);\n }\n }", "title": "" }, { "docid": "ecddefe44f9607db8253eaab34222040", "score": "0.50957066", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n String string0 = null;\n EncodingFactory.getJavaEncoding((String) null);\n EncodingFactory.getIscEncodingSize((String) null);\n EncodingFactory.getEncoding((String) null, (String) null);\n EncodingFactory.getIscEncoding((String) null);\n EncodingFactory.getJavaEncodingForAlias((String) null);\n EncodingFactory.getJavaEncoding((String) null);\n EncodingFactory.getJavaEncoding(\"\");\n char[] charArray0 = new char[4];\n charArray0[0] = '(';\n charArray0[1] = '~';\n charArray0[2] = '|';\n charArray0[3] = '+';\n EncodingFactory.getEncoding(\"\", charArray0);\n // Undeclared exception!\n EncodingFactory.getTranslator(\"Cp862\");\n }", "title": "" }, { "docid": "d6709930bf88d34c94ca366ded709b51", "score": "0.5094076", "text": "@Test(timeout = 4000)\n public void test37() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.renameFile(\"|)\\\"Hv\", \"\");\n }", "title": "" }, { "docid": "4a7eaefc394335f151d8d8f50b64aa0e", "score": "0.5090118", "text": "@Test\n public void testGetStringOfString() throws Exception {\n //TODO: Test goes here...\n }", "title": "" }, { "docid": "17b4057e039c23b243498b14bbc6f90c", "score": "0.50886613", "text": "@Override\n public boolean\n hasPreCheckInTest() \n {\n return true;\n }", "title": "" }, { "docid": "e429b75b55415ba5da3a6e4bfb9075e2", "score": "0.5088561", "text": "public void testGetCvsInfo() throws Exception {\n }", "title": "" }, { "docid": "6fe748c21a327d045452203671a72fa7", "score": "0.5085267", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"<\");\n byte[] byteArray0 = new byte[2];\n byteArray0[0] = (byte) (-54);\n byteArray0[1] = (byte) (-1);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n SimpleNode simpleNode0 = new SimpleNode(18);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"|\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n char[] charArray0 = new char[3];\n charArray0[0] = 'p';\n charArray0[1] = 'j';\n charArray0[2] = 'B';\n stringWriter0.write(charArray0);\n simpleNode0.setIdentifier(\"<\");\n simpleNode0.dump(\";\", stringWriter0);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileDescriptor fileDescriptor0 = new FileDescriptor();\n try { \n fileDescriptor0.sync();\n fail(\"Expecting exception: SyncFailedException\");\n \n } catch(SyncFailedException e) {\n //\n // sync failed\n //\n verifyException(\"java.io.FileDescriptor\", e);\n }\n }", "title": "" }, { "docid": "6a2075f226c79b99c69c59aa08ef6a96", "score": "0.50848866", "text": "@Test(timeout = 4000)\n public void test00() throws Throwable {\n TableColumnInfo tableColumnInfo0 = new TableColumnInfo(\"net.sourceforge.squirrel_sql.plugins.dbcopy.dbcopy\", \"lx_GM$>\", \"lx_GM$>\", \"i2|WQR$\", (-263), \"/home/ubuntu/replication/scripts/projects/102_squirrel-sql/plugins/dbcopy.jar\", (-226), (-226), (-226), (-263), \"net.sourceforge.squirrel_sql.plugins.dbcopy.dbcopy\", \"i2|WQR$\", (-263), (-483), \"/home/ubuntu/replication/scripts/projects/102_squirrel-sql/plugins/dbcopy.jar\");\n boolean boolean0 = DBUtil.isBinaryType(tableColumnInfo0);\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "1ca652c377975d6619c8c2426eddb08e", "score": "0.50828326", "text": "@Test(timeout = 4000)\n public void test000() throws Throwable {\n FileDescriptor fileDescriptor0 = new FileDescriptor();\n MockFileInputStream mockFileInputStream0 = new MockFileInputStream(fileDescriptor0);\n JavaCharStream javaCharStream0 = new JavaCharStream(mockFileInputStream0, 0, (-1394), 0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0, 0);\n }", "title": "" }, { "docid": "2ba552dae6598ed5e4ec46c1010c79b7", "score": "0.5082076", "text": "@Test(timeout = 4000)\n public void test050() throws Throwable {\n boolean boolean0 = SQLUtil.isDDL(\"\");\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "2570cf0821940272a7366c6b49c0f26b", "score": "0.5077274", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n String string0 = \"Cp1257\";\n char[] charArray0 = new char[3];\n charArray0[0] = '_';\n charArray0[1] = 's';\n charArray0[2] = 'S';\n // Undeclared exception!\n try { \n EncodingFactory.getEncoding(\"Cp1257\", charArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "1893bbff23a1683ef9bcdb0b35b2137a", "score": "0.507022", "text": "@Test(timeout = 4000)\n public void test10() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = null;\n String string0 = null;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n SimpleNode simpleNode0 = new SimpleNode(18);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"|\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"p-k8AAh7\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n simpleNode0.setIdentifier(\"|\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n StringWriter stringWriter0 = new StringWriter();\n Node[] nodeArray0 = new Node[0];\n simpleNode0.children = nodeArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n String string1 = \"1\";\n simpleNode0.setIdentifier(\"1\");\n simpleNode0.dump(\";\", stringWriter0);\n MockRandomAccessFile mockRandomAccessFile0 = null;\n try {\n mockRandomAccessFile0 = new MockRandomAccessFile(\"|\", \"kyAdIzC'K.3<H`\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Illegal mode \\\"kyAdIzC'K.3<H`\\\" must be one of \\\"r\\\", \\\"rw\\\", \\\"rws\\\", or \\\"rwd\\\"\n //\n verifyException(\"java.io.RandomAccessFile\", e);\n }\n }", "title": "" }, { "docid": "887c520ae45c0489b09838d7be6c9baa", "score": "0.50635755", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n MockFile mockFile0 = new MockFile(\"%^\\\"78,UTI<v^.\");\n FileUtil fileUtil0 = new FileUtil();\n boolean boolean0 = fileUtil0.isAgeGood(mockFile0);\n assertFalse(boolean0);\n }", "title": "" } ]
818630a75ba9b6e6f60ac0d06b3d7a3d
repeated .com.github.smartbuf.model.Receiver receivers = 7;
[ { "docid": "77d729746e8cf4e3eb774bf80fed5d8c", "score": "0.5819269", "text": "public java.util.List<? extends com.github.smartbuf.model.MessageOuterClass.ReceiverOrBuilder> \n getReceiversOrBuilderList() {\n if (receiversBuilder_ != null) {\n return receiversBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(receivers_);\n }\n }", "title": "" } ]
[ { "docid": "89c0fd5aedec44a635682eca4e20b4e6", "score": "0.6510545", "text": "com.github.smartbuf.model.MessageOuterClass.Receiver getReceivers(int index);", "title": "" }, { "docid": "3a6f8724cdb47824ddd2b9664be9be19", "score": "0.61296666", "text": "java.util.List<? extends com.github.smartbuf.model.MessageOuterClass.ReceiverOrBuilder> \n getReceiversOrBuilderList();", "title": "" }, { "docid": "30b75934d6ca8547e6f857e6f8c8e817", "score": "0.6093696", "text": "public void setReceiver(Receiver receiver){\n this.receiver = receiver;\n }", "title": "" }, { "docid": "2ecb6d02c40c0493a4d7f88a7f85f36f", "score": "0.6057781", "text": "public synchronized int getReceiverCount() {\n return receiverCount;\n }", "title": "" }, { "docid": "64b0e0f5315b0f7d8e5dd623251e60a6", "score": "0.60359174", "text": "int getReceiversCount();", "title": "" }, { "docid": "f9124f18e4cdb699dd3730d2026ee768", "score": "0.59874386", "text": "com.github.smartbuf.model.MessageOuterClass.ReceiverOrBuilder getReceiversOrBuilder(\n int index);", "title": "" }, { "docid": "395d91d12e8ac35d94ff7899d4d50148", "score": "0.5959846", "text": "public java.util.List<? extends com.github.smartbuf.model.MessageOuterClass.ReceiverOrBuilder> \n getReceiversOrBuilderList() {\n return receivers_;\n }", "title": "" }, { "docid": "f3a885647d891f89aaf2fd9b10813e52", "score": "0.5893282", "text": "private void registerReceiver() {\n\n }", "title": "" }, { "docid": "9f23ef7a4fa6e2838391b138116e93ee", "score": "0.58669025", "text": "java.util.List<com.github.smartbuf.model.MessageOuterClass.Receiver> \n getReceiversList();", "title": "" }, { "docid": "79a622bef95c955191e0080f6396daf7", "score": "0.5839772", "text": "@Override\r\n\tprotected void regReceiver() {\n\t\r\n\t}", "title": "" }, { "docid": "657731731f6e2c55fea19e193708e716", "score": "0.58273184", "text": "public interface Receiver {\n}", "title": "" }, { "docid": "dbde11c1bfd02b5f1071a5209864fb3e", "score": "0.5787288", "text": "public int getReceiversCount() {\n return receivers_.size();\n }", "title": "" }, { "docid": "272698c9c4f27dbf3b50ce5c35e6ee08", "score": "0.5786536", "text": "public void setReceiver(Receiver receiver) {\n this.receiver = receiver;\n }", "title": "" }, { "docid": "230f5419d0f785db66c38bb8847479f6", "score": "0.5728668", "text": "public void addReceiver(Receiver receiver)\n {\n receivers.add(receiver);\n }", "title": "" }, { "docid": "56f499d413ad4f6de0c3ff0c076bfb97", "score": "0.5710173", "text": "public com.github.smartbuf.model.MessageOuterClass.Receiver.Builder addReceiversBuilder() {\n return getReceiversFieldBuilder().addBuilder(\n com.github.smartbuf.model.MessageOuterClass.Receiver.getDefaultInstance());\n }", "title": "" }, { "docid": "bb7e19d9ec429e6276057dc7a72393a6", "score": "0.5697057", "text": "public com.github.smartbuf.model.MessageOuterClass.ReceiverOrBuilder getReceiversOrBuilder(\n int index) {\n return receivers_.get(index);\n }", "title": "" }, { "docid": "a93cc1721b64528242e1b62279e63fc8", "score": "0.5610665", "text": "public synchronized void incReceiverCount() {\n receiverCount++;\n if (flowController != null)\n flowController.setReceiverCount(receiverCount);\n if (queueReceiverListener != null)\n queueReceiverListener.receiverCountChanged(this, receiverCount);\n }", "title": "" }, { "docid": "4f976342d8d1b85435a254565dea8c7f", "score": "0.56059426", "text": "public java.util.List<com.github.smartbuf.model.MessageOuterClass.Receiver> getReceiversList() {\n return receivers_;\n }", "title": "" }, { "docid": "443b64652d3881f5f47272cee4958e17", "score": "0.5594676", "text": "public void setReceiver(Receiver receiver) {\n mReceiver = receiver;\n }", "title": "" }, { "docid": "09ba44598e9fade477493ee876534b53", "score": "0.55470794", "text": "public Builder addAllReceivers(\n java.lang.Iterable<? extends com.github.smartbuf.model.MessageOuterClass.Receiver> values) {\n if (receiversBuilder_ == null) {\n ensureReceiversIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, receivers_);\n onChanged();\n } else {\n receiversBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "63318370f1848a473cd2f8190c3bc811", "score": "0.55249465", "text": "public com.github.smartbuf.model.MessageOuterClass.ReceiverOrBuilder getReceiversOrBuilder(\n int index) {\n if (receiversBuilder_ == null) {\n return receivers_.get(index); } else {\n return receiversBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "080f63ee50bd56081168da0b0d56b847", "score": "0.55074316", "text": "@Override\n @listener(MsgType=10, PushType = 2)\n public void onRec() {\n \n }", "title": "" }, { "docid": "64074d9619073329f00187365ae9fcca", "score": "0.54550236", "text": "@Test\r\n public void testAddGetAllGetCount() {\r\n\t\tReceiver receiver1 = new Receiver(\"Teo KH\");\r\n\t\tReceiver receiver2 = new Receiver(\"Francis Ho\");\r\n\t\ttestInvariant();\r\n\t\treceiverList.add(receiver1);\r\n\t\ttestInvariant();\r\n\t\treceiverList.add(receiver2);\r\n\t\ttestInvariant();\r\n\t\tList<Receiver> receivers = receiverList.getAll();\r\n\t\tassertTrue(\"receiver1 missing\", receivers.contains(receiver1));\r\n\t\tassertTrue(\"receiver2 missing\", receivers.contains(receiver2));\r\n\t\tassertTrue(\"count error\", receiverList.getCount() == 2);\r\n }", "title": "" }, { "docid": "b8ea846ac3e83f20cca7389cb06d35ed", "score": "0.54459083", "text": "public void receive(ReceiveRequest messages[])\n throws Exception;", "title": "" }, { "docid": "b18bd510460de94076cb87ca88635ae9", "score": "0.5420145", "text": "public com.github.smartbuf.model.MessageOuterClass.Receiver getReceivers(int index) {\n return receivers_.get(index);\n }", "title": "" }, { "docid": "1c5f456108fab82861828a8c9cfc4700", "score": "0.53173506", "text": "public java.util.List<com.github.smartbuf.model.MessageOuterClass.Receiver> getReceiversList() {\n if (receiversBuilder_ == null) {\n return java.util.Collections.unmodifiableList(receivers_);\n } else {\n return receiversBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "89e8f2f3f6598a3c0393243f0d8ea8d1", "score": "0.5294726", "text": "public Receiver() {\n\t}", "title": "" }, { "docid": "179e438aacae6ce4f14a0359542acec9", "score": "0.52916634", "text": "@Override\n public void receive() {\n \tpairs.forEach( p -> {\n \t\tBitstampConnectorEndpoint.onOrderBook(p, new LiveOrderBookDataProcessor());\n\n \t});\n }", "title": "" }, { "docid": "3569b025aaba019a8dffed9e3c4b69dc", "score": "0.5272872", "text": "public com.github.smartbuf.model.MessageOuterClass.Receiver.Builder addReceiversBuilder(\n int index) {\n return getReceiversFieldBuilder().addBuilder(\n index, com.github.smartbuf.model.MessageOuterClass.Receiver.getDefaultInstance());\n }", "title": "" }, { "docid": "6ae9aace8b6a1029d7ac337f35025d11", "score": "0.525559", "text": "public boolean hasReceiver() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ebe4557701bd2362248b94112ed44fcb", "score": "0.5253186", "text": "public com.github.smartbuf.model.MessageOuterClass.Receiver getReceivers(int index) {\n if (receiversBuilder_ == null) {\n return receivers_.get(index);\n } else {\n return receiversBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "9a65a46b392e686bba119cbc76b03350", "score": "0.5249819", "text": "public String getReceiver() {\n return receiver;\n }", "title": "" }, { "docid": "9a65a46b392e686bba119cbc76b03350", "score": "0.5249819", "text": "public String getReceiver() {\n return receiver;\n }", "title": "" }, { "docid": "9a65a46b392e686bba119cbc76b03350", "score": "0.5249819", "text": "public String getReceiver() {\n return receiver;\n }", "title": "" }, { "docid": "847e957af002a1b5c4a0c39298c0ad1b", "score": "0.52386266", "text": "@Test\npublic void repeatTest1() {\n List<SubscriberDatabase.OnlineRecord> onlines = new LinkedList<SubscriberDatabase.OnlineRecord>();\n long su1 = 10;\n long su2 = 20;\n long su3 = 30;\n long grp = 100;\n InetSocketAddress addr1 = new InetSocketAddress(\"host1\", 100);\n InetSocketAddress addr2 = new InetSocketAddress(\"host2\", 200);\n InetSocketAddress addr3= new InetSocketAddress(\"host2\", 300);\n\n SubscriberDatabase.OnlineRecord record1 = new SubscriberDatabase.OnlineRecord(su1, addr1);\n onlines.add(record1);\n\n SubscriberDatabase.OnlineRecord record2 = new SubscriberDatabase.OnlineRecord(su2, addr2);\n onlines.add(record2);\n\n SubscriberDatabase.OnlineRecord record3 = new SubscriberDatabase.OnlineRecord(su3, addr3);\n onlines.add(record3);\n\n //\n Repeator rptr = new Repeator(udpSvcMock);\n CallInformation callInfo = new CallInformation();\n callInfo.mSourceId = su2;\n\n short seq = 1100;\n // test CallInit/CallTerm\n CallInit callInit = new CallInit(grp, su2, seq);\n rptr.repeat(onlines, callInfo, callInit);\n\n Mockito.verify(udpSvcMock, times(1)).send(eq(addr1), any(ByteBuffer.class));\n Mockito.verify(udpSvcMock, times(1)).send(eq(addr2), any(ByteBuffer.class));\n Mockito.verify(udpSvcMock, times(1)).send(eq(addr3), any(ByteBuffer.class));\n\n // test CallInit/CallTerm\n // code smell\n Mockito.reset(udpSvcMock);\n\n CallTerm callTerm = new CallTerm(grp, su2, (short)0, (short)20);\n rptr.repeat(onlines, callInfo, callTerm);\n Mockito.verify(udpSvcMock, times(1)).send(eq(addr1), any(ByteBuffer.class));\n Mockito.verify(udpSvcMock, times(1)).send(eq(addr2), any(ByteBuffer.class));\n Mockito.verify(udpSvcMock, times(1)).send(eq(addr3), any(ByteBuffer.class));\n\n // test CallData\n Mockito.reset(udpSvcMock);\n ByteBuffer buf = ByteBuffer.allocate(1);\n CallData callData = new CallData(grp, su2, (short)0, buf);\n rptr.repeat(onlines, callInfo, callData);\n\n Mockito.verify(udpSvcMock, times(1)).send(eq(addr1), isA(ByteBuffer.class));\n Mockito.verify(udpSvcMock, times(0)).send(eq(addr2), isA(ByteBuffer.class));\n Mockito.verify(udpSvcMock, times(1)).send(eq(addr3), isA(ByteBuffer.class));\n\n}", "title": "" }, { "docid": "fca75e7f897ef2ea5b511351a94aac12", "score": "0.5220841", "text": "public boolean hasReceiver() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "c541b9e92455872b474d99f04238d62f", "score": "0.5205744", "text": "public PhoneUnlockedReceiver() {\n }", "title": "" }, { "docid": "779830be4329907fccccc299c30fea69", "score": "0.5204786", "text": "public Builder addReceivers(com.github.smartbuf.model.MessageOuterClass.Receiver value) {\n if (receiversBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureReceiversIsMutable();\n receivers_.add(value);\n onChanged();\n } else {\n receiversBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "fac3675f6260752f8aaeb27aa737baf9", "score": "0.51929057", "text": "private void receive(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "48af4f2ee330a479d17b5ed2dca26f3c", "score": "0.5192369", "text": "public Builder addReceivers(\n int index, com.github.smartbuf.model.MessageOuterClass.Receiver value) {\n if (receiversBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureReceiversIsMutable();\n receivers_.add(index, value);\n onChanged();\n } else {\n receiversBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "27ca25b81a00f168a0e77304bf478325", "score": "0.51892704", "text": "@Override\npublic void receiveCloud(Cloud cloud) {\n\t\n}", "title": "" }, { "docid": "8b1b8f3f23803ceee8af31ce2461fe50", "score": "0.5185179", "text": "private void unRegisterReceiver() {\n\n }", "title": "" }, { "docid": "fde72b103df11138f2a5d7a056440991", "score": "0.5183213", "text": "public int getReceiversCount() {\n if (receiversBuilder_ == null) {\n return receivers_.size();\n } else {\n return receiversBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "4e1c73e2a2847ca70e2c4fdc5573a6f5", "score": "0.5181617", "text": "public interface Receiver {\n public void readingsChanged(Farm farm);\n}", "title": "" }, { "docid": "231f7a7e7ea68211c6c2135a5213dc22", "score": "0.5177207", "text": "private void receiveMessages() {\n\t\t\r\n\t\tList<SimulationEvent> events = eventList.getEvents(time);\r\n\r\n\t\tfor (int i = 0; i < events.size(); i++) {\r\n\t\t\t\r\n\t\t\tSimulationEvent event = events.get(i);\r\n\t\t\tif (event.isReceive()) {\r\n\r\n\t\t\t\tevent.getMessage().receiver.receiveMessage(event.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "5cdf6284b8901ccc4fb173fba6d9ff66", "score": "0.5176225", "text": "public AddReceiverData(IReceiver stub) {\n\t\tthis.receiverStub = stub;\n\t}", "title": "" }, { "docid": "ef93490facab7b8c93c1157ea418b124", "score": "0.51536614", "text": "FriendsOfFriendsProcessor() {\n }", "title": "" }, { "docid": "272249d3902d58292eb3ec61c96f05a6", "score": "0.5149994", "text": "public ChannelsListInteractorImpl(@org.jetbrains.annotations.NotNull com.avito.android.util.SchedulersFactory r24, @org.jetbrains.annotations.NotNull com.avito.android.Features r25, @org.jetbrains.annotations.NotNull com.avito.android.account.AccountStateProvider r26, @org.jetbrains.annotations.NotNull ru.avito.messenger.MessengerClient<ru.avito.messenger.api.AvitoMessengerApi> r27, @org.jetbrains.annotations.NotNull com.avito.android.messenger.channels.mvi.sync.ChannelSyncAgent r28, @org.jetbrains.annotations.NotNull com.avito.android.messenger.channels.mvi.data.ChannelRepoReader r29, @org.jetbrains.annotations.NotNull com.avito.android.messenger.service.user_last_activity.UserLastActivitySyncAgent r30, @org.jetbrains.annotations.NotNull com.avito.android.analytics.timer.AnalyticsTimer<com.avito.android.messenger.analytics.graphite_counter.ChatListLoadingResult> r31, @org.jetbrains.annotations.NotNull com.avito.android.analytics.timer.AnalyticsTimer<com.avito.android.messenger.analytics.graphite_counter.ChatListRefreshResult> r32, @org.jetbrains.annotations.NotNull com.avito.android.messenger.analytics.graphite_counter.MessengerGraphiteCounter r33, @org.jetbrains.annotations.NotNull com.avito.android.messenger.channels.analytics.ChannelsTracker r34, @org.jetbrains.annotations.NotNull com.avito.android.analytics.Analytics r35, @org.jetbrains.annotations.NotNull com.avito.android.messenger.service.OpenErrorTrackerScheduler r36, @org.jetbrains.annotations.NotNull com.avito.android.messenger.channels.mvi.interactor.ChannelsErrorInteractor r37, @org.jetbrains.annotations.NotNull kotlin.Pair<? extends java.util.SortedSet<java.lang.String>, ? extends java.util.SortedSet<java.lang.String>> r38, @javax.annotation.Nullable @org.jetbrains.annotations.Nullable kotlin.Pair<? extends java.util.SortedSet<java.lang.String>, ? extends java.util.SortedSet<java.lang.String>> r39, @org.jetbrains.annotations.NotNull kotlin.Pair<? extends java.util.SortedSet<java.lang.String>, ? extends java.util.SortedSet<java.lang.String>> r40, @org.jetbrains.annotations.NotNull com.avito.android.ab_tests.models.ManuallyExposedAbTestGroup<com.avito.android.ab_tests.groups.MessengerFolderTabsTestGroup> r41, @org.jetbrains.annotations.NotNull com.avito.android.messenger.channels.mvi.common.v4.ReducerQueue<com.avito.android.messenger.channels.mvi.interactor.ChannelsListInteractor.State> r42) {\n /*\n // Method dump skipped, instructions count: 776\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avito.android.messenger.channels.mvi.interactor.ChannelsListInteractorImpl.<init>(com.avito.android.util.SchedulersFactory, com.avito.android.Features, com.avito.android.account.AccountStateProvider, ru.avito.messenger.MessengerClient, com.avito.android.messenger.channels.mvi.sync.ChannelSyncAgent, com.avito.android.messenger.channels.mvi.data.ChannelRepoReader, com.avito.android.messenger.service.user_last_activity.UserLastActivitySyncAgent, com.avito.android.analytics.timer.AnalyticsTimer, com.avito.android.analytics.timer.AnalyticsTimer, com.avito.android.messenger.analytics.graphite_counter.MessengerGraphiteCounter, com.avito.android.messenger.channels.analytics.ChannelsTracker, com.avito.android.analytics.Analytics, com.avito.android.messenger.service.OpenErrorTrackerScheduler, com.avito.android.messenger.channels.mvi.interactor.ChannelsErrorInteractor, kotlin.Pair, kotlin.Pair, kotlin.Pair, com.avito.android.ab_tests.models.ManuallyExposedAbTestGroup, com.avito.android.messenger.channels.mvi.common.v4.ReducerQueue):void\");\n }", "title": "" }, { "docid": "f155a27af005d380c009ce9cf384c739", "score": "0.5137154", "text": "public interface IReceiverListener {\n \n\t/**\n\t * This method gets called every time a new frame is available.\n\t * \n\t * @param data contains the raw frame data\n\t * @param frameIndex is the frame index of the frame\n\t * @param sourceFrameIndex is the source state of the encoding\n\t */\n\tvoid receiveFrame(byte[] data, int frameIndex, int sourceFrameIndex);\n\t\n}", "title": "" }, { "docid": "af58564905ae9c832926c964db7acf22", "score": "0.51368374", "text": "@Override\n\tpublic void doReceive() {\n\t}", "title": "" }, { "docid": "d9bf9841b6fa3e9a80ea0cd80b17f8a9", "score": "0.5132384", "text": "com.google.protobuf.ByteString\n getReceiverBytes();", "title": "" }, { "docid": "e85808296128f16938fc4b881d0355fc", "score": "0.51046646", "text": "public List<AudioDataReceiver> getAudioOutputReceivers();", "title": "" }, { "docid": "19d23f9b44aef25b7c4db3165321d0f8", "score": "0.5093378", "text": "public Builder setReceivers(\n int index, com.github.smartbuf.model.MessageOuterClass.Receiver value) {\n if (receiversBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureReceiversIsMutable();\n receivers_.set(index, value);\n onChanged();\n } else {\n receiversBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "ee67cca01b41125937e8dab561ff5bf0", "score": "0.50865734", "text": "java.lang.String getReceiver();", "title": "" }, { "docid": "1e16992286854017790ee18f2a93d79e", "score": "0.506542", "text": "private void printSenders(){\n System.out.println(\"All senders:\");\n if(senders.size() > 0){\n senders.forEach((sender, count) -> System.out.println(sender + \" (\" + count + \")\"));\n }\n }", "title": "" }, { "docid": "0f29e92fe2caa113ea01f3a5ed3eedee", "score": "0.5055589", "text": "@Override\n\tpublic void broadcast() {\n\n\t}", "title": "" }, { "docid": "009ab825fa0219cf1a07af5d10ef571e", "score": "0.50550604", "text": "public void repeatValidation() {\r\n onBroadcast(new ArrayList<Mesg>());\r\n }", "title": "" }, { "docid": "80266a894461d5c8152598053db25bf9", "score": "0.50480247", "text": "YOUMEServiceProtocol.YoumeGetmsg.YoumeMsg getMsgList(int index);", "title": "" }, { "docid": "4bfd963a0362f641da278ade730d86e4", "score": "0.50451005", "text": "public int getReceiverSessionIdCount() {\n return receiverSessionId_.size();\n }", "title": "" }, { "docid": "735b4a93cb8c75b8a9bc274d8a73f3e9", "score": "0.5043772", "text": "public interface CommonReceiver {\n public void onReceiver(Intent intent);\n}", "title": "" }, { "docid": "2382fba8a69bbbebadc8c0585cd9259b", "score": "0.5035723", "text": "java.util.List<? extends MessageAll.SoftwareOrBuilder> \n getSoftwareOrBuilderList();", "title": "" }, { "docid": "2382fba8a69bbbebadc8c0585cd9259b", "score": "0.5035512", "text": "java.util.List<? extends MessageAll.SoftwareOrBuilder> \n getSoftwareOrBuilderList();", "title": "" }, { "docid": "8cb56c4851b02f7bed477e7f66a0fdbb", "score": "0.50352097", "text": "@SuppressWarnings(\"unused\")\n public NetworkReceiver() {}", "title": "" }, { "docid": "24cc5d72db85c83801a0af8a7382d78e", "score": "0.5028958", "text": "public java.util.List<com.github.smartbuf.model.MessageOuterClass.Receiver.Builder> \n getReceiversBuilderList() {\n return getReceiversFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "cbe6f8bab9e737564e41cb4718adb57a", "score": "0.5026458", "text": "public interface GlobalReceptionStats{\n /**\n * The total number of RTP and RTCP packets received on the RTP\n * Session socket before any packet validation\n */\n public int\n getPacketsRecd();\n /**\n * The total number of bytes received on the RTP session socket\n * before any validation of packets.\n */\n public int\n getBytesRecd();\n /**\n * The total number of RTP data packets that failed the RTP header\n * validation check such as RTP version number or length consistency\n */\n public int\n getBadRTPkts();\n /**\n * The total number of local collisions as seen by the RTPSM\n */\n public int\n getLocalColls();\n /**\n * The total number of remote collisions as seen by the RTPPSM\n */\n public int\n getRemoteColls();\n /**\n * The total number of packets looped as seen by the RTPSM\n */\n public int\n getPacketsLooped();\n /**\n * The number of packets that failed to get transmitted. In the\n * current implementation, this implies RTCP packets that failed\n * transmission\n */\n public int\n getTransmitFailed();\n /**\n * The total number of RTCP packets received on the RTP Session\n * control socket before any header validation\n */\n public int\n getRTCPRecd();\n /**\n * The total number of Sender Reports received on the RTCP socket\n */\n public int\n getSRRecd();\n /**\n * The total number of RTCP packets that failed the RTCP header\n * validity check such as RTP version number or length consistency\n */\n public int\n getBadRTCPPkts();\n /**\n * The total number of individual RTCP packets types that were not\n * implemented or not recognized by the RTPSM.\n */\n public int\n getUnknownTypes();\n /**\n * The total number of invalid ReceiverReports received by the\n * RTPSM. Invalidity is due to length inconsistency\n */\n public int\n getMalformedRR();\n /**\n * The total number of invalid SDES packets received by the\n * RTPSM. Invalidity is due to length inconsistency\n */\n public int\n getMalformedSDES();\n /**\n * The total number of invalid BYE RTCP packets received by the\n * RTPSM. Invalidity is due to length inconsistency\n */\n public int\n getMalformedBye();\n /**\n * The total number of invalid Sender Reports received by the\n * RTPSM. Invalidity is due to length inconsistency\n */\n public int\n getMalformedSR();\n}", "title": "" }, { "docid": "1f6ae6588e6f11487b8eec016c52b945", "score": "0.5016483", "text": "void received();", "title": "" }, { "docid": "cb5813b7e13aae574f41746dd8249509", "score": "0.50144255", "text": "private Receiver(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "37e37952ff9d5c0390bda03579eb9676", "score": "0.501119", "text": "public com.google.protobuf.ByteString\n getReceiverBytes() {\n java.lang.Object ref = receiver_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n receiver_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "00abb7cbc79748cb9d28fcee5e0c77e3", "score": "0.5004907", "text": "java.util.List<? extends org.apache.ratis.shaded.proto.RaftProtos.RaftPeerProtoOrBuilder> \n getPeersOrBuilderList();", "title": "" }, { "docid": "00abb7cbc79748cb9d28fcee5e0c77e3", "score": "0.5004907", "text": "java.util.List<? extends org.apache.ratis.shaded.proto.RaftProtos.RaftPeerProtoOrBuilder> \n getPeersOrBuilderList();", "title": "" }, { "docid": "00abb7cbc79748cb9d28fcee5e0c77e3", "score": "0.5004907", "text": "java.util.List<? extends org.apache.ratis.shaded.proto.RaftProtos.RaftPeerProtoOrBuilder> \n getPeersOrBuilderList();", "title": "" }, { "docid": "109d2b30f0a3b79afd2cb007af836765", "score": "0.49907738", "text": "public Builder clearReceivers() {\n if (receiversBuilder_ == null) {\n receivers_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n receiversBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "41069ccc88426124ca1cf062a7c12878", "score": "0.49854887", "text": "Set<Channel> getSubscribers();", "title": "" }, { "docid": "308bad46db0f69f8bb725c1438227244", "score": "0.49739236", "text": "java.util.List<? extends org.roylance.yaorm.NestedEnumTest.ReceivedDataSetOrBuilder> \n getReceivedDatasetsOrBuilderList();", "title": "" }, { "docid": "f569f4ba5e8240f01bbd08c5083bff17", "score": "0.4970425", "text": "public com.github.smartbuf.model.MessageOuterClass.Receiver.Builder getReceiversBuilder(\n int index) {\n return getReceiversFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "6236b30054f3a3463df1b27d3cf7834e", "score": "0.49696353", "text": "boolean hasReceiver();", "title": "" }, { "docid": "35458eead2cec6ee8a07650c2398ad68", "score": "0.4962782", "text": "public int getCountReceived() {\r\n\t\treturn countReceived;\r\n\t}", "title": "" }, { "docid": "67d973cca0be2eeb4648e251ff2f0898", "score": "0.4961414", "text": "org.apache.ratis.shaded.proto.RaftProtos.RaftPeerProto getPeers(int index);", "title": "" }, { "docid": "67d973cca0be2eeb4648e251ff2f0898", "score": "0.4961414", "text": "org.apache.ratis.shaded.proto.RaftProtos.RaftPeerProto getPeers(int index);", "title": "" }, { "docid": "67d973cca0be2eeb4648e251ff2f0898", "score": "0.4961414", "text": "org.apache.ratis.shaded.proto.RaftProtos.RaftPeerProto getPeers(int index);", "title": "" }, { "docid": "d38dfb1668de26977b735ceda5525f98", "score": "0.4960107", "text": "List<Sendable> getSendables();", "title": "" }, { "docid": "54fe85debbcb88fa899424f46c10697f", "score": "0.49520838", "text": "public com.google.protobuf.ByteString\n getReceiverBytes() {\n java.lang.Object ref = receiver_;\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 receiver_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "e3310c6d1b548c3ab2238eb5742503a3", "score": "0.4944735", "text": "public void RegisterReactionReceiver (IReactionReceiver rec)\n {\n reactants.add(rec);\n }", "title": "" }, { "docid": "1b58fb04e68ffd29952a2bce13f61bb3", "score": "0.49422318", "text": "public int getReceiverID() {\n return receiverID;\n }", "title": "" }, { "docid": "5f49d3ac32ee9d0e4532ffd1e0f76e1f", "score": "0.49308065", "text": "public interface MessageReceiveService<T> {\n\n /**\n * Retrieves all messages\n *\n * @return received messages\n */\n List<T> receiveAll();\n}", "title": "" }, { "docid": "76e71e0f388d77060a5b9b444dbd3c31", "score": "0.49286118", "text": "org.roylance.yaorm.NestedEnumTest.ReceivedDataSetOrBuilder getReceivedDatasetsOrBuilder(\n int index);", "title": "" }, { "docid": "9395f525f54fdbe42888917381426844", "score": "0.49267194", "text": "public int getReceiverSessionIdCount() {\n return receiverSessionId_.size();\n }", "title": "" }, { "docid": "c78b073a8f543ea4efbcfdf3d0eb99fc", "score": "0.49216136", "text": "public RequestersCount[] getRequestersCount(){\n return localRequestersCount;\n }", "title": "" }, { "docid": "156255a24d453bb403672de323f359cc", "score": "0.4905366", "text": "public interface BatchByteArrayMessageReceiver {\n\n /**\n * Receives and processes a list of byte array messages.\n * Messages are provided in the order originally received.\n * @param messages the messages received by the underlying transport handler, not null\n */\n void messagesReceived(List<byte[]> messages);\n\n}", "title": "" }, { "docid": "3b324568eb4e43d69303ba8d0c62853e", "score": "0.4902033", "text": "private boolean addReceiver(){\n Receivers receiver = new Receivers(inputName.getText().toString(),inputPhone.getText().toString());\n\n validateName(receiver);\n validatePhone(receiver);\n if(validateName(receiver) && validatePhone(receiver)){\n mReceiversList.add( receiver );\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "9b949b64876daf3583c2098593eeee0e", "score": "0.48998055", "text": "public void setReceive() {\r\n this.receive = true;\r\n }", "title": "" }, { "docid": "bdff79fab6ba4222b43e0c47af001b03", "score": "0.48978457", "text": "@Override\r\n\tprotected void unRegReceiver() {\n\r\n\t}", "title": "" }, { "docid": "36ac4210cc902db6677f06ac73f57c6e", "score": "0.48950857", "text": "public interface BluetoothObserver {\n public void update(List<MyBluetoothDevice> devices);\n}", "title": "" }, { "docid": "c04442cf90bb5e18df7655fad54e9053", "score": "0.4892514", "text": "MessageAll.Collect getCollect();", "title": "" }, { "docid": "2e081548976eaf203728b9d064b91663", "score": "0.489235", "text": "@Override\n public void receiveList(String source, Object... args) {\n for (Object arg: args) {\n Log.i(\"receiveList atom:\", arg.toString());\n }\n }", "title": "" }, { "docid": "245b9c7f80ba38e710c4662e44777f43", "score": "0.48880625", "text": "public Receiver getReceiver() \n { \n if (receiver == null) \n try\n {\n // we use a secret Thru here so it's lockable\n if (!device.isOpen()) \n device.open();\n Thru recv = new Thru();\n recv.addReceiver(device.getReceiver());\n receiver = recv;\n }\n catch(Exception e) { e.printStackTrace(); }\n return receiver; \n }", "title": "" }, { "docid": "b9d3c9f96a6983587cbab22fcdb4e37e", "score": "0.4871948", "text": "private void executePendingBroadcasts() {\n block3 : do {\n BroadcastRecord[] arrbroadcastRecord;\n int n2;\n Object object = this.mReceivers;\n synchronized (object) {\n n2 = this.mPendingBroadcasts.size();\n if (n2 <= 0) {\n return;\n }\n arrbroadcastRecord = new BroadcastRecord[n2];\n this.mPendingBroadcasts.toArray(arrbroadcastRecord);\n this.mPendingBroadcasts.clear();\n }\n n2 = 0;\n do {\n if (n2 >= arrbroadcastRecord.length) continue block3;\n object = arrbroadcastRecord[n2];\n for (int i2 = 0; i2 < object.receivers.size(); ++i2) {\n object.receivers.get((int)i2).receiver.onReceive(this.mAppContext, object.intent);\n }\n ++n2;\n } while (true);\n break;\n } while (true);\n }", "title": "" }, { "docid": "425fb397d5c3941a79519b992a75c7cf", "score": "0.48587993", "text": "public interface StreamsReceiver {\n default public void receiveStreamA(short[] xi, short[] xq, StreamCbParamsT params, int numSamples, int reset){};\n default public void receiveStreamB(short[] xi, short[] xq, StreamCbParamsT params, int numSamples, int reset){};\n default public void receiveEvent(EventT eventId, TunerSelectT tuner, EventParameters params){};\n \n /** Consumes streams but does nothing with them */\n public static StreamsReceiver NULL_RECEIVER = new StreamsReceiver() {\n };\n}", "title": "" }, { "docid": "c9262fa98dc875c91b5dbebcb3c6ac40", "score": "0.48521662", "text": "com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevices(int index);", "title": "" }, { "docid": "327f8ce5594f1d06c5d153c2f485f140", "score": "0.48500818", "text": "public Builder setReceiverBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n receiver_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
fdb29a8fe30ee85cd6d7d93c3a59397c
method for uninstall application
[ { "docid": "87b1a0a985754084df6797d01cff2264", "score": "0.7557706", "text": "private void onUnInstallClicked(String packageName) {\n new UninstallReceiver().setOnUnstallReceiverListener(AppAdapter.this);\n Uri packageURI = Uri.parse(activity.getString(R.string.package_colon) + packageName);\n Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI);\n activity.startActivity(uninstallIntent);\n }", "title": "" } ]
[ { "docid": "cc3ace73244d132195cc6d1be0996a92", "score": "0.7872471", "text": "public void uninstall() throws Exception;", "title": "" }, { "docid": "039bc0fe065216e438961d9127f77399", "score": "0.78048104", "text": "public void uninstall(AriesApplicationContext app) throws BundleException;", "title": "" }, { "docid": "f5a4aa1849d9996431476c99ba825753", "score": "0.7712769", "text": "public void onUninstall() {\n\n }", "title": "" }, { "docid": "53a7a72869e5a56c666d6ce6ac883d1b", "score": "0.74887365", "text": "void startApplicationUninstallActivity(ShortcutInfo appInfo) {\n\t\tif (LauncherLog.DEBUG) {\n\t\t\tLauncherLog.d(TAG, \"startApplicationUninstallActivity: appInfo = \"\n\t\t\t\t\t+ appInfo);\n\t\t}\n\n\t\tif ((appInfo.flags & AppInfo.DOWNLOADED_FLAG) == 0) {\n\t\t\t// System applications cannot be installed. For now, show a toast\n\t\t\t// explaining that.\n\t\t\t// We may give them the option of disabling apps this way.\n\t\t\tint messageId = R.string.uninstall_system_app_text;\n\t\t\tToast.makeText(this, messageId, Toast.LENGTH_SHORT).show();\n\t\t} else {\n\t\t\tString packageName = appInfo.getIntent().getComponent()\n\t\t\t\t\t.getPackageName();\n\t\t\tString className = appInfo.getIntent().getComponent()\n\t\t\t\t\t.getClassName();\n\t\t\t\n\t\t\tif(UNINSTALL_SILENT) {\n\t\t\t\ttry {\n\t\t\t\t\tPackageManager pm = getPackageManager();\n//\t\t PackageDeleteObserver observer = new PackageDeleteObserver(d);\n\t\t pm.deletePackage(packageName, null, 0);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_DELETE, Uri.fromParts(\n\t\t\t\t\t\t\t\"package\", packageName, className));\n\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t\t\t\t| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_DELETE, Uri.fromParts(\n\t\t\t\t\t\t\"package\", packageName, className));\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t\t\t| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/*Intent intent = new Intent(Intent.ACTION_DELETE, Uri.fromParts(\n\t\t\t\t\t\"package\", packageName, className));\n\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t\t| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n\t\t\tstartActivity(intent);*/\n\t\t}\n\t}", "title": "" }, { "docid": "567ab328a24d56c9139ec1ad4c00136a", "score": "0.74447256", "text": "@Override\n\tpublic void unInstall() {\n\t\t\n\t}", "title": "" }, { "docid": "3a6e4b0dfb2b2b53af855524a4924aa6", "score": "0.73456466", "text": "void startApplicationUninstallActivity(AppInfo appInfo) {\n\t\tif (LauncherLog.DEBUG) {\n\t\t\tLauncherLog.d(TAG, \"startApplicationUninstallActivity: appInfo = \"\n\t\t\t\t\t+ appInfo);\n\t\t}\n\n\t\tif ((appInfo.flags & AppInfo.DOWNLOADED_FLAG) == 0) {\n\t\t\t// System applications cannot be installed. For now, show a toast\n\t\t\t// explaining that.\n\t\t\t// We may give them the option of disabling apps this way.\n\t\t\tint messageId = R.string.uninstall_system_app_text;\n\t\t\tToast.makeText(this, messageId, Toast.LENGTH_SHORT).show();\n\t\t} else {\n\t\t\tString packageName = appInfo.componentName.getPackageName();\n\t\t\tString className = appInfo.componentName.getClassName();\n\t\t\tIntent intent = new Intent(Intent.ACTION_DELETE, Uri.fromParts(\n\t\t\t\t\t\"package\", packageName, className));\n\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t\t| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n\t\t\tstartActivity(intent);\n\t\t}\n\t}", "title": "" }, { "docid": "854af8354970b18e600f2a8c189843f1", "score": "0.7342748", "text": "public void uninstallApp(View c){\n Uri packageName = Uri.parse(\"package:deviser.com.testing_project\");\n Intent uninstallIntent = new Intent(Intent.ACTION_DELETE);\n uninstallIntent.setData(packageName);\n startActivity(uninstallIntent);\n }", "title": "" }, { "docid": "710bbe0e5fbc6200289221faa31d3954", "score": "0.70846564", "text": "@Override\r\n\tpublic boolean uninstall() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c9bf54d7a898df35b7c7543ffaf5665b", "score": "0.69535166", "text": "public static void handlePackageUninstall() {\n\t\tLogger.d(TAG, \"handlePackageUninstall() changing attm status to NOT_INSTALLED\");\n\t\tModelManager.getInstance().setAttmStatus(Constants.ATTM_STATUS.NOT_INSTALLED);\n\t\tModelManager.getInstance().setSharedPreference(KEYS.DO_NOT_SHOW_LAUNCH_ATTM_SCREEN, false);\n\t}", "title": "" }, { "docid": "56416ba8e90f010607a31de2e0e1095a", "score": "0.69272393", "text": "boolean startApplicationUninstallActivity(ComponentName componentName,\n\t\t\tint flags,DragObject d) {\n\t\tif(flags ==-401) {\n\t\t\treturn false;\n\t\t}\n\t\tif ((flags & AppInfo.DOWNLOADED_FLAG) == 0) {\n\t\t\t// System applications cannot be installed. For now, show a toast\n\t\t\t// explaining that.\n\t\t\t// We may give them the option of disabling apps this way.\n\t\t\tint messageId = R.string.uninstall_system_app_text;\n\t\t\tToast.makeText(this, messageId, Toast.LENGTH_SHORT).show();\n\t\t\treturn false;\n\t\t} else {\n\t\t\tString packageName = componentName.getPackageName();\n\t\t\tString className = componentName.getClassName();\n\t\t\t/*prize-uninstall-xiaxuefeng-2015-8-3-start*/\n\t\t\tif(UNINSTALL_SILENT) {\n\t\t\t\ttry {\n\t\t\t\t\tPackageManager pm = getPackageManager();\n\t\t PackageDeleteObserver observer = new PackageDeleteObserver(d,null);\n\t\t pm.deletePackage(packageName, observer, 0);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_DELETE, Uri.fromParts(\n\t\t\t\t\t\t\t\"package\", packageName, className));\n\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t\t\t\t| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_DELETE, Uri.fromParts(\n\t\t\t\t\t\t\"package\", packageName, className));\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t\t\t| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t\t/*prize-uninstall-xiaxuefeng-2015-8-3-end*/\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "67d7a98a6c98255682c210b430cdf843", "score": "0.69212186", "text": "@Override\n\tprotected void uninstallUIImpl() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cef7620de42ef7e44b288f7767eed5", "score": "0.66884375", "text": "public static void uninstallApp(String app, String by) {\n\t\tgetQAFDriver().executeScript(\"mobile:application:uninstall\", getAppParams(app, by));\n\t}", "title": "" }, { "docid": "d815e19761848f4a9de9a5e55ea7089c", "score": "0.6632558", "text": "public void uninstall(Environment env)\n \t{}", "title": "" }, { "docid": "fb02babbf4685f3f2e700eed15d9aef6", "score": "0.6586932", "text": "public static void uninstallApk(Context cx, String packageName) {\r\n Intent intent = new Intent(Intent.ACTION_DELETE);\r\n Uri packageURI = Uri.parse(\"package:\" + packageName);\r\n intent.setData(packageURI);\r\n cx.startActivity(intent);\r\n }", "title": "" }, { "docid": "07e51e18998acc93116e43f716478802", "score": "0.6485373", "text": "public interface UninstallerInteractor {\n\n void unInstallApp(String mid);\n\n}", "title": "" }, { "docid": "213a2d0221271ae64c66bce1457e13db", "score": "0.64655787", "text": "public void destroyApp()\n {\n\t\n }", "title": "" }, { "docid": "d36429e16417d5ed16343d2311a8d710", "score": "0.644837", "text": "public static boolean unInstall() {\n if (!initialized) {\n Log.e(TAG, \"need call DefenseCrash.initialize() first\");\n return false;\n }\n if (!installed) {\n return false;\n }\n installed = false;\n hookInstrumentation.unHook();\n hookThread.unHook();\n hookHandler.unHook();\n return true;\n }", "title": "" }, { "docid": "99c2f1c13220952c6a225f187dda3894", "score": "0.6446976", "text": "public static void uninstallSnwApp(String bundleId, String udid) throws Exception {\n\t\tString str = null;\n\t\tstr = CommandRunner.executeIOSCommand(ideviceCommand + udid + \" -U\" + bundleId);\n\t\tSystem.out.println(str);\n\t\tSystem.out.println(\"Done\");\n\t}", "title": "" }, { "docid": "6388ccccab02a4202605f57746f4e43c", "score": "0.63722295", "text": "private void reinstallApplication() {\n\t\tLogger.trace(\"starts\");\n\t\tString pkgName = this.app.getPackageName();\n\t\tthis.viewDeviceExecuter.applyEvent(EventFactory.createReinstallEvent(\n\t\t\t\tpkgName, app.getInstrumentedApkPath()), false);\n\t\tthis.jdbDeviceExecuter.applyEvent(EventFactory.createReinstallEvent(\n\t\t\t\tpkgName, app.getInstrumentedApkPath()));\n\t\tthis.currentLayout = GraphicalLayout.Launcher;\n\t}", "title": "" }, { "docid": "11e5fc182609692d2f60a19d28448f8a", "score": "0.6336856", "text": "@GET\n @Path(\"/uninstall/{device}/{file}\")\n //@Produces(MediaType.APPLICATION_JSON)\n public String UnInstallApp(@PathParam(\"device\") String device, @PathParam(\"file\") String file){\n \tString command= \"adb -s \"+device+\" shell pm uninstall \"+file;\n\tSystem.out.println(\"install::::\"+command);\n\tString line1 = \"\";\n\tList<Device> dlist = new ArrayList<Device>();\n\tProcess p;\n\tStringBuffer buffer = new StringBuffer(\"output:\");\n\ttry {\n\t\tp = Runtime.getRuntime().exec(command);\n\t\tp.waitFor();\n\t\tString line=\"\"; \n\t\tList<String> deviceList = new ArrayList<String>();\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(p.getInputStream()));\n \twhile ((line1 = rd.readLine()) != null) {\n\t\t//System.out.println(\"dfjjfjfjgjj\"+line1);\n\t\tbuffer.append(line1 + \"\\n\");\n\t\t\n\t\t}\n\t} catch (Exception e) {\n\t\te.printStackTrace();\n\t}\n\treturn buffer.toString();\n }", "title": "" }, { "docid": "c5985e5f998e81288e396d6d7c0e19ae", "score": "0.6311231", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.uninstall) {\n \tUri packageURI = Uri.parse(\"package:com.example.sharmila.notesmaker\");\n \tIntent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI);\n \tstartActivity(uninstallIntent);\n }\n else if(id == R.id.addphoto){\n \tfinal Intent intent = new Intent(ViewPhotoActivity.this, AddPhotoActivity.class);\n \tstartActivity(intent);\n \treturn true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "222b485b0a6935eed38ee2149d2a8c7e", "score": "0.6243279", "text": "public void deleteApplicationData( Context context ){\n PreinstallApps[] paps = PreinstallApps.getPreinstallApps();\n //String[] apps = ( loadValidPackages().trim() ).split( \",\" );\n for( int i = 0 ; i < paps.length; i++ ){\n //if( apps[ i+2 ].equals( \"1\" ) ){\n /*Log.d(TAG, \"package : \" + paps[ i ].getPackageName() );\n Log.d(TAG, \"MD5 : \" + paps[ i ].getMD5() );\n Log.d(TAG, \"Button ID : \" + paps[ i ].getButtonID() );\n Log.d(TAG, \"Show : \" + paps[ i ].getShow() );\n Log.d(TAG, \"Wipe Cache : \" + paps[ i ].getWipeCache() );\n Log.d(TAG, \"Force kill : \" + paps[ i ].getForceKill() );*/\n\n if( paps[ i ].getWipeCache().equals( \"clear\" ) ) {\n Log.d(TAG, \"Delete data for : \" + paps[i].getPackageName());\n deleteIt(paps[i].getPackageName(), (paps[i].getForceKill().equals(\"force_kill\")) ? true : false);\n\n // Validate if the process deleted the entire package, then recreate empty package\n validatePackageExistence(paps[i].getPackageName());\n continue;\n }\n Log.d(TAG, \"Skipped : \" + paps[i].getPackageName());\n /*}\n else{\n Log.d( TAG, \"Do Not Delete data for : \"+apps[ i ] );\n }*/\n }\n }", "title": "" }, { "docid": "f229e4c4778c41bad45325d32ff8ab42", "score": "0.62326133", "text": "private void externalUninstall(final Bundle bundle, final IProject project) {\r\n\r\n\t\tfinal String symbolicName = bundle.getSymbolicName();\r\n\t\tfinal String location = bundle.getLocation();\r\n\t\t\t// After the fact\r\n\t\t\tActivator.getDisplay().syncExec(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tfinal BundleRegion bundleRegion = Activator.getBundleRegionService();\r\n\t\t\t\t\t\tfinal BundleProjectCandidates bundleProjectcandidates = Activator.getBundleProjectCandidatesService();\r\n\t\t\t\t\t\tIBundleStatus reqStatus = null;\r\n\t\t\t\t\t\tint autoDependencyAction = 1; // Default auto dependency action\r\n\t\t\t\t\t\tBoolean dependencies = false;\r\n\t\t\t\t\t\tCollection<IProject> reqProjects = Collections.<IProject> emptySet();\r\n\t\t\t\t\t\tif (bundleRegion.isBundleActivated(bundle)) {\r\n\t\t\t\t\t\t\tProjectSorter bs = new ProjectSorter();\r\n\t\t\t\t\t\t\treqProjects = bs.sortRequiringProjects(Collections.<IProject> singletonList(project),\r\n\t\t\t\t\t\t\t\t\tBoolean.TRUE);\r\n\t\t\t\t\t\t\t// Remove initial project from result set\r\n\t\t\t\t\t\t\treqProjects.remove(project);\r\n\t\t\t\t\t\t\tdependencies = reqProjects.size() > 0;\r\n\t\t\t\t\t\t\tif (dependencies) {\r\n\t\t\t\t\t\t\t\tString msg = NLS.bind(Msg.REQUIRING_BUNDLES_WARN,\r\n\t\t\t\t\t\t\t\t\t\tnew Object[] { Activator.getBundleProjectCandidatesService().formatProjectList(reqProjects), symbolicName });\r\n\t\t\t\t\t\t\t\treqStatus = new BundleStatus(StatusCode.WARNING, symbolicName, msg);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// User choice to deactivate workspace or restore uninstalled bundle\r\n\t\t\t\t\t\tif (!Activator.getCommandOptionsService().isAutoHandleExternalCommands()) {\r\n\t\t\t\t\t\t\tString question = null;\r\n\t\t\t\t\t\t\tint index = 0;\r\n\t\t\t\t\t\t\tif (dependencies) {\r\n\t\t\t\t\t\t\t\tquestion = NLS.bind(Msg.DEACTIVATE_QUESTION_REQ_DLG, new Object[] { symbolicName,\r\n\t\t\t\t\t\t\t\t\t\tlocation, bundleProjectcandidates.formatProjectList(reqProjects) });\r\n\t\t\t\t\t\t\t\tindex = 1;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tquestion = NLS.bind(Msg.DEACTIVATE_QUESTION_DLG, new Object[] { symbolicName,\r\n\t\t\t\t\t\t\t\t\t\tlocation });\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tMessageDialog dialog = new MessageDialog(null, Msg.EXTERNAL_UNINSTALL_WARN, null,\r\n\t\t\t\t\t\t\t\t\tquestion, MessageDialog.QUESTION, new String[] { \"Yes\", \"No\" }, index);\r\n\t\t\t\t\t\t\tautoDependencyAction = dialog.open();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// bundleRegion.unregisterBundle(bundle);\r\n\t\t\t\t\t\tBundleExecutor bundleJob = null;\r\n\t\t\t\t\t\t// Activate the external uninstalled bundle\r\n\t\t\t\t\t\tif (autoDependencyAction == 0) {\r\n\t\t\t\t\t\t\tif (bundleRegion.isBundleActivated(project)) {\r\n\t\t\t\t\t\t\t\tbundleJob = new ActivateBundleJob(Msg.ACTIVATE_BUNDLE_JOB, project);\r\n\t\t\t\t\t\t\t\tif (dependencies) {\r\n\t\t\t\t\t\t\t\t\t// Bring workspace back to a consistent state before restoring\r\n\t\t\t\t\t\t\t\t\tUninstall uninstallJob = new UninstallJob(Msg.UNINSTALL_JOB,\r\n\t\t\t\t\t\t\t\t\t\t\treqProjects);\r\n\t\t\t\t\t\t\t\t\tActivator.getBundleExecutorEventService().add(uninstallJob, 0);\r\n\t\t\t\t\t\t\t\t\tbundleJob.addPendingProjects(reqProjects);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tif (!bundleRegion.isRegionActivated()) {\r\n\t\t\t\t\t\t\t\t\t// External uninstall may have been issued on multiple bundles (uninstall A B)\r\n\t\t\t\t\t\t\t\t\tbundleJob = new ActivateProjectJob(Msg.ACTIVATE_PROJECT_JOB, project);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// Workspace is activated but bundle is not. Install the bundle and other uninstalled\r\n\t\t\t\t\t\t\t\t\t// bundles\r\n\t\t\t\t\t\t\t\t\tbundleJob = new InstallJob(Msg.INSTALL_JOB, project); \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\t// Deactivate workspace\r\n\t\t\t\t\t\t} else if (autoDependencyAction == 1) {\r\n\t\t\t\t\t\t\t// Deactivate workspace to obtain a consistent state between all workspace bundles\r\n\t\t\t\t\t\t\tif (bundleRegion.isRegionActivated()) {\r\n\t\t\t\t\t\t\t\tbundleJob = new DeactivateJob(Msg.DEACTIVATE_WORKSPACE_JOB);\r\n\t\t\t\t\t\t\t\tbundleJob.addPendingProjects(bundleRegion.getActivatedProjects());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (null != bundleJob) {\r\n\t\t\t\t\t\t\tIBundleStatus mStatus = new BundleStatus(StatusCode.WARNING, symbolicName,\r\n\t\t\t\t\t\t\t\t\tMsg.EXTERNAL_UNINSTALL_WARN);\r\n\t\t\t\t\t\t\tString msg = NLS.bind(Msg.EXTERNAL_BUNDLE_OP_TRACE,\r\n\t\t\t\t\t\t\t\t\tnew Object[] { symbolicName, location });\r\n\t\t\t\t\t\t\tIBundleStatus status = new BundleStatus(StatusCode.WARNING, bundle, project, msg, null);\r\n\t\t\t\t\t\t\tmStatus.add(status);\r\n\t\t\t\t\t\t\tif (null != reqStatus) {\r\n\t\t\t\t\t\t\t\tmStatus.add(reqStatus);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tStatusManager.getManager().handle(mStatus, StatusManager.LOG);\r\n\t\t\t\t\t\t\tActivator.getBundleExecutorEventService().add(bundleJob, 0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (ExtenderException e) {\r\n\t\t\t\t\t\tStatusManager.getManager().handle(\r\n\t\t\t\t\t\t\t\tnew BundleStatus(StatusCode.EXCEPTION, Activator.PLUGIN_ID, e.getMessage(), e),\r\n\t\t\t\t\t\t\t\tStatusManager.LOG);\r\n\t\t\t\t\t}\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}", "title": "" }, { "docid": "82e9f10b0069b6a4dc8bcb4caf193d05", "score": "0.62307405", "text": "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t\t\n\t\tAppInfo appInfo=dbHandler.getNotInstalledAppInfo(1);\n\t\n\t\tdbHandler.deleteAppInfo(appInfo);\n\t\t\n\t\tsuper.onBackPressed();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "83cf250731e157c56cd615e4352b447c", "score": "0.6215557", "text": "public static void silentUninstallApp(Context context, String packageName) {\n if (packageName != null && packageName.contains(PACKAGE_PREFIX)) {\n packageName = packageName.replace(PACKAGE_PREFIX, \"\");\n }\n final String _packageName = packageName;\n PackageManager pm = context.getPackageManager();\n IPackageDeleteObserver observer = new IPackageDeleteObserver() {\n @Override\n public void packageDeleted(String s, int i) throws RemoteException {\n Log.d(TAG, _packageName + \" deleted successfully.\");\n }\n\n @Override\n public IBinder asBinder() {\n return null;\n }\n };\n pm.deletePackage(packageName, observer, DELETE_ALL_USERS);\n }", "title": "" }, { "docid": "a9725328af959964f815243bd457a2de", "score": "0.6191611", "text": "void exitApp();", "title": "" }, { "docid": "45971e8f83e13c4fb3da5fc735f557f0", "score": "0.6178149", "text": "public void packageDeleted(String packageName, final int returnCode) {\n \t\n \t\n \tmHandler.post(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t if(returnCode == SUCCEEDED) {\n//\t\t Toast.makeText(Launcher.this, R.string.uninstall_success, Toast.LENGTH_SHORT).show();\n//\t\t ExplosionView.mcancel.setClickable(true);\n\t\t // for bug 18700\n\t\t if (mWorkspace!=null) {\n\t\t \tmWorkspace.mDeferDropAfterUninstall=false;\n\t\t \tmWorkspace.unInstallCompleted(mView);\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t // If we move the item to anything not on the Workspace, check if any empty\n\t\t // screens need to be removed. If we dropped back on the workspace, this will\n\t\t // be done post drop animation.\n//\t\t stripEmptyScreens();\n\t\t//add by zhouerlong\n\t\t \n\t\t } else {\n//\t\t \tToast.makeText(Launcher.this, R.string.uninstall_failed, Toast.LENGTH_SHORT).show();\n//\t\t \tExplosionView.mcancel.setClickable(true);\n\t\t \tif(getworkspace()!=null&&getworkspace().getCurrentDropLayout()!=null) {\n\t\t \t\tif(mDragObject!=null)\n\t\t \t\tgetworkspace().changeEnableIcon(mDragObject);\n\t\t // The drag failed, we need to return the item to the folder\n\t\t \t}\n\t\t \t\n\t\t \t\n\t\t }\n\t\t\t\t}\n\t\t\t});\n\t\t\n \t\n }", "title": "" }, { "docid": "3d666728d1020c7540c5ea3461d4f185", "score": "0.614164", "text": "public void exitApp(){\n Intent exitIntent = new Intent(Intent.ACTION_MAIN);\n exitIntent.addCategory(Intent.CATEGORY_HOME);\n exitIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(exitIntent);\n }", "title": "" }, { "docid": "5698954f040090d46e319219a8768491", "score": "0.6127556", "text": "void deferCompleteDropAfterUninstallActivity();", "title": "" }, { "docid": "d6e55438fb56db589e0e21d6429e18d0", "score": "0.6097038", "text": "public void destroyApp(boolean unconditional) {\n }", "title": "" }, { "docid": "d6e55438fb56db589e0e21d6429e18d0", "score": "0.6097038", "text": "public void destroyApp(boolean unconditional) {\n }", "title": "" }, { "docid": "a708b9814f5b11dbd79d361280141cc9", "score": "0.6030329", "text": "public static void startAppUninstallation(String packageName) {\n if (packageName == null || packageName.isEmpty())\n return;\n Intent intent = appUninstallationIntent(packageName);\n AppPreferences.getApplicationContext().startActivity(intent);\n }", "title": "" }, { "docid": "289720e9113a600426b3bb64d330bbc7", "score": "0.60230255", "text": "@Override\r\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tthis.cxt = context;\t\t\r\n\t\tandroid.util.Log.e(\"getdata\",\"\"+intent.getData());\r\n\t\t// uninstall the secure browser app once the persona is uninstalled\r\n\t\tif(intent.getData()!=null){\t\t\r\n\t\tandroid.util.Log.d(\"UninstallBroadCastReceiver\",\"App uninstalled\");\r\n\t\tif(intent.getData().equals(\"com.cognizant.trumobi.persona\")) {\t\t\t\r\n\t\t\tLog.d(\"persona secure browser\", \"uninstalled\");\r\n\t\t\t//delete app cache data\r\n\t\t\tdeleteLocalData();\t\t\t\r\n\t\t\t//delete the downloaded data \r\n\t\t\t String PATH = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).toString()+\"/SecureBrowser\";\r\n\t\t\t File file = new File(PATH);\t\r\n\t\t\t deleteDir(file);\r\n\t\t\t//any other action item(if required) on deletion of persona\t\t\r\n\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9fc125155e8aed3c70dc9300ece4add1", "score": "0.59972095", "text": "public void removeAppConfig(String appName);", "title": "" }, { "docid": "2e9400313ba5e6d1f458296e47de609a", "score": "0.5992566", "text": "public void onPackageRemoved(String uninstalledpackageName) {\n if(uninstalledpackageName != null) {\n Log.d(TAG, \"uninstall packageName:\"+ uninstalledpackageName);\n for(Iterator<Map.Entry<ComponentName, ApduServiceInfo>>it=mApduServices.entrySet().iterator(); it.hasNext();){\n Map.Entry<ComponentName, ApduServiceInfo> entry = it.next();\n if(uninstalledpackageName.equals(entry.getKey().getPackageName())){\n it.remove();\n Log.d(TAG, \"Removed packageName: \"+ entry.getKey().getPackageName());\n }\n }\n } else {\n Log.d(TAG, \"uninstall packageName is Null\");\n }\n }", "title": "" }, { "docid": "13a8511ba406fad6eedc9318077d8fca", "score": "0.598067", "text": "public void destroyApp(boolean unconditional) {\n }", "title": "" }, { "docid": "8f680f3f9e36138bf08ad9ad4356a717", "score": "0.59727407", "text": "protected void destroyApp(boolean unconditional) throws MIDletStateChangeException { \n }", "title": "" }, { "docid": "5d7282c80d8248c6bdcea72067dad705", "score": "0.5965466", "text": "public void exitApp() {\n Intent exitIntent = new Intent(Intent.ACTION_MAIN);\n exitIntent.addCategory(Intent.CATEGORY_HOME);\n exitIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(exitIntent);\n }", "title": "" }, { "docid": "7a1be749d457245771a6131b6569fac0", "score": "0.59505826", "text": "@Override\r\n\tpublic void deleteApplication(Application ap) {\n\r\n\t}", "title": "" }, { "docid": "6d0e5f2afe0fafb6ba570aaa2f1703de", "score": "0.591189", "text": "public void stopApp() {\n stop();\n }", "title": "" }, { "docid": "ba28cff10306b9c446c14606a7ab4f8b", "score": "0.5871262", "text": "protected void destroyApp(boolean arg0) throws MIDletStateChangeException {\n\t\ttry {\r\n\t\t\t//When the app is cliosed. Set an alarm to automatically start the app\r\n\t\t\t//1000*60 is 1 minute\r\n\t\t\tlong l = PushRegistry.registerAlarm(\"demo.AlarmDemo\", new Date().getTime()+1000*60);\r\n\t\t\t\r\n\t\t} catch (ConnectionNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "333de2f4462dd9405c299faefc998916", "score": "0.5869452", "text": "private void removeAppsInRecycleBin() {\n final Set<ProcessGroupEntity> apps = getAllAppsInRecycleBin();\n for (ProcessGroupEntity app : apps) {\n removeApp(app);\n }\n }", "title": "" }, { "docid": "dd425819a728b057e2be9222a3605958", "score": "0.5855026", "text": "public void removeFromApp(Package p) {\n appDriver.getDriversDeliveries().getAllPackages().remove(p);\n }", "title": "" }, { "docid": "48ff537a9ade0626366abb95dbea9907", "score": "0.584832", "text": "void quitApp() {\n // drop activity from memory\n finish();\n\n // kill the current activity\n int pid = android.os.Process.myPid();\n android.os.Process.killProcess(pid);\n\n System.exit(0);\n }", "title": "" }, { "docid": "33f2f3ab4354af43762d9abbc0cc48fa", "score": "0.58299226", "text": "protected final void syncUninstall() {\n\n SyncService aSyncService = (SyncService)JCSystem.getAppletShareableInterfaceObject(syncAID, (byte)0);\n aSyncService.unregister();\n\n currentInstance = null;\n\n short i = (short)0;\n while((i < maxNbDuplicatedInstances) && (duplicatedInstances[i] != null))\n duplicatedInstances[i++].instance = null;\n\n instancesLinkedList = null;\n\n }", "title": "" }, { "docid": "7cbaa3535c98c468d03db3067d741023", "score": "0.5815657", "text": "public void removeApp(int location){\r\n appList.remove(location);\r\n numApps--;\r\n }", "title": "" }, { "docid": "73735fcde23b4dc4290d203966388051", "score": "0.58155084", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\t\tcase R.id.view_log_button:\n\t\t\t\t// Show available log files\n\t\t\t\tshowAvailableLogListing();\n\t\t\t\treturn true;\n\t\t\tcase R.id.uninstall_seattle_button:\n\t\t\t\t// Uninstall seattle\n\t\t\t\tfinal ScriptActivity sa = this;\n\t\t\t\tnew AlertDialog.Builder(this)\n\t\t\t\t\t.setMessage(\"Would you really like to uninstall Seattle?\")\n\t\t\t\t\t.setCancelable(false)\n\t\t\t\t\t.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\tLog.i(Common.LOG_TAG, Common.LOG_INFO_UNINSTALL_INITIATED);\n\t\t\t\t\t\t\t// Kill service, in case it was running\n\t\t\t\t\t\t\tif(ScriptService.isServiceRunning())\n\t\t\t\t\t\t\t\tkillService();\n\t\t\t\t\t\t\t// Remove Seattle folder\n\t\t\t\t\t\t\tFileUtils.delete(new File(getSeattlePath()));\n\t\t\t\t\t\t\tif(settings.contains(AUTOSTART_ON_BOOT)){\n\t\t\t\t\t\t\t\tSharedPreferences.Editor editor = settings.edit();\n\t\t\t\t\t\t\t\teditor.remove(AUTOSTART_ON_BOOT);\n\t\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnew AlertDialog.Builder(sa)\n\t\t\t\t\t\t\t\t.setMessage(\"Seattle uninstalled successfully!\")\n\t\t\t\t\t\t\t\t.setNeutralButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.create().show();\n\t\t\t\t\t\t\tLog.i(Common.LOG_TAG, Common.LOG_INFO_UNINSTALL_SUCCESS);\n\t\t\t\t\t\t\tshowBasicInstallLayout();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t}).create().show();\n\t\t\t\treturn true;\n\t\t\tcase R.id.back:\n\t\t\t\t// Back button\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\tcase R.id.refresh:\n\t\t\t\t// Refresh\n\t\t\t\tdoRefresh();\n\t\t\t\treturn true;\n\t\t\tcase R.id.view_about_button:\n\t\t\t\tshowAboutLayout();\n\t\t\t\treturn true;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t }\n\t}", "title": "" }, { "docid": "c42197a0b0236258da531d783ffdfc49", "score": "0.5813763", "text": "void onSoftAPUnmount();", "title": "" }, { "docid": "1c23fdf4d6405a2715c80c3870e535d3", "score": "0.58077425", "text": "@Override\n\tpublic void clearApp() {\n\t\t\n\t}", "title": "" }, { "docid": "ebf4f428a6a9e6e28ed397908dd1ec38", "score": "0.5799163", "text": "public boolean uninstallActiveVersion() {\n\t\tFile file = findFile();\n\t\t// we only mark as uninstalled if\n\t\t// (1) File does not exist, probably was removed manually\n\t\t// (2) We were able to remove it (requires administrator permissions if installed globally).\n\t\tif (file != null && file.exists()) {\n\t\t\tfile.delete();\n\t\t}\n\t\tinstalledVersions.remove(selectedVersion);\n\t\tselectedVersion = null;\n\t\tactive = false;\n\t\tif (installedVersions.isEmpty()) {\n\t\t\tMANAGED_EXTENSIONS.remove(this.getPackageId());\n\t\t}\n\t\tsaveConfiguration();\n\t\treturn true;\n\t}", "title": "" }, { "docid": "458a5808db4d630e394cdd32c21af634", "score": "0.5780231", "text": "public void exitInstallation(EXIT_INSTALLER_REASON argReason) {\n\t\tLog.d(TAG, \"exitInstallation reason: \" + argReason\r\n\t\t\t\t+ \" activityManagerState: \" + activityManagerState);\r\n\t\tif (activityManagerState != ACTIVITY_MANAGER_STATE.EXITING){\r\n\t\t\tactivityManagerState = ACTIVITY_MANAGER_STATE.EXITING;\r\n\t\t\tswitch (argReason) {\r\n\t\t\r\n\t\t\tcase POWER_STATE_TO_SEMISTANDY:\r\n\t\t\tcase ON_VISIBLILITY_CANCELLED:\r\n\t\t\tcase VISIBLE_BEHIND_NOT_ALLOWED:\r\n\t\t\t\tif(delayedTask != null){\r\n\t\t\t\t\tdelayedTask.cancel();\r\n\t\t\t\t}\r\n\t\t\t\tif(delayedTimer != null){\r\n\t\t\t\t\tdelayedTimer.cancel();\r\n\t\t\t\t}\t\t\r\n\t\t\t\t// release the session\r\n\t\t\t\tnwrap.exitWithoutInstallation();\r\n\t\t\t\tLog.d(TAG,\"ifIgnoreNotification: \" + ifIgnoreNotification);\r\n\t\t\t\t// show notification to user\r\n\t\t\t\tif((nwrap.getCurrentContext() != null) && (false == ifIgnoreNotification)){\r\n\t\t\t\t\t// as per Rama needn't to show any notification to user ( Analog Installation > watchtv case)\r\n\t\t\t\t\t//nwrap.showTVNofification(nwrap.getCurrentContext(), nwrap.getCurrentContext().getString(org.droidtv.ui.strings.R.string.MAIN_MSG_SATELLITE_INSTALLATION_ABORTED));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// trigger finish of all the activities\r\n\t\t\t\tfinishActivityStack();\r\n\r\n\t\t\t\tbreak;\r\n\t\t\tcase USER_TRIGGERED_EXIT:\r\n\t\t\t\t// release the session\r\n\t\t\t\tnwrap.exitWithoutInstallation();\r\n\r\n\t\t\t\t// trigger finish of all the activities\r\n\t\t\t\tfinishActivityStack();\r\n\t\t\t\tbreak;\r\n\t\t\tcase INSTALLTION_COMPLETE:\r\n\t\t\t\tnwrap.exitOnInstallationComplete();\r\n\t\t\t\tnwrap.exitNonInteruptableMode();\r\n\t\t\t\tifIgnoreNotification = true;\r\n\r\n\t\t\t\t// delay finish activity stack \r\n\t\t\t\tdelayedTimer = new Timer();\r\n\t\t\t\tdelayedTask = new TimerTask() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tLog.d(TAG, \"delayHandler run\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (delayedTimer != null) {\r\n\t\t\t\t\t\t\tdelayedTimer.cancel();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// trigger finish of all the activities\r\n\t\t\t\t\t\tfinishActivityStack();\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\t// delay 3000ms\r\n\t\t\t\tif(activityList.isEmpty() == false){\r\n\t\t\t\t\tdelayedTimer.schedule(delayedTask, 3000);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase SESSION_CREATION_FAILED:\r\n\t\t\t\t// release the session\r\n\t\t\t\tnwrap.exitWithoutInstallation();\r\n\t\t\t\t\r\n\t\t\t\t// trigger finish of all the activities\r\n\t\t\t\tfinishActivityStack();\r\n\t\t\t\tbreak;\r\n\t\t\tcase EXIT_WIZARD_RECORDING_IN_PROGRESS:\r\n\t\t\t\t// do nothing as setdatasource is not done\r\n\t\t\t\t\r\n\t\t\t\t// trigger finish of all the activities\r\n\t\t\t\tfinishActivityStack();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tactivityManagerState = ACTIVITY_MANAGER_STATE.IDLE;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3e1360b6eae32cbf1d4be6ca30ad668d", "score": "0.5761168", "text": "@Override\n public synchronized void deleteAppVersion(AnyRpcServerContext rpc, AppInfo appInfo) {\n rpc.finishWithAppError(UPAddDelete.ERROR.FAILURE_VALUE, \"Version deletion is unimplemented\");\n }", "title": "" }, { "docid": "93488c9b2532315b09dd250892bcdff7", "score": "0.5754936", "text": "@Override\n\tprotected void shutDownApplication(ApplicationStatus finalStatus, String optionalDiagnostics) {\n\t\tFinalApplicationStatus yarnStatus = getYarnStatus(finalStatus);\n\t\tlog.info(\"Unregistering application from the YARN Resource Manager\");\n\t\ttry {\n\t\t\tresourceManagerClient.unregisterApplicationMaster(yarnStatus, optionalDiagnostics, \"\");\n\t\t} catch (Throwable t) {\n\t\t\tlog.error(\"Could not unregister the application master.\", t);\n\t\t}\n\t}", "title": "" }, { "docid": "60115767ffc0d08de2fc7c0a909e98a9", "score": "0.5752758", "text": "public static boolean inUninstaller()\n {\n return inUninstaller;\n }", "title": "" }, { "docid": "d2c0f79cf0c0248314ebaf18f47f672c", "score": "0.5735379", "text": "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tint n,i;\r\n\t\tint count=0,f=0,index=0;\r\n\t\tArrayList list=new ArrayList();\r\n\t\t\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"1.Display installed Application\\n2.Install an Application\\n3.Uninstall an Application\\n4.Quit\");\r\n\t\t\t n=s.nextInt();\r\n\t\t\t\r\n\t\tif(n==1)\r\n\t\t{\r\n\t\t\tif(list.isEmpty()==true)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"There is no application installed\\n\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tIterator Itr=list.iterator();//it is used to traverse the elements one by one\r\n\t\t\t while(Itr.hasNext())\r\n\t\t\t {\r\n\t\t\t \tSystem.out.println(Itr.next());\r\n\t\t\t \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tif(n==2)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter the Application name\");\r\n\t\t\tString name=s.next();\r\n\t\t\tIterator Itt=list.iterator();//it is used to traverse the elements one by one\r\n\t\t while(Itt.hasNext())\r\n\t\t {\r\n\t\t \tString st=(String)Itt.next();\r\n\t\t \tif(st.equals(name))\r\n\t\t \t{\r\n\t\t \t\tf=1;\r\n\t\t \t\tbreak;\r\n\t\t \t}\r\n\t\t \t//System.out.println(Itt.next());\r\n\t\t \r\n\t\t\t}\r\n\t\t\tif(f==1)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Already installed Application\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tlist.add(name);\r\n\t\t\tSystem.out.println(\"Application successfully installed\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(n==3)\r\n\t\t{\r\n\t\t\tif(list.isEmpty()==true)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"There is no application installed\\n\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\tIterator It=list.iterator();//it is used to traverse the elements one by one\r\n for(i=0;i<list.size();i++)\t\t \r\n {\t\t \t\r\n \tSystem.out.println(i+\" \"+It.next());\r\n }\r\n\t\t \tSystem.out.println(\"Enter the index no to be deleted\");\r\n\t\t \tindex=s.nextInt();\r\n\t\t \tlist.remove(index);\r\n\t\t \tSystem.out.println(\"Application uninstalled successfully\");\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(n==4)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Successfully exit\");\t\t\r\n }\r\n\t\tif(n>4)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Invalid Input\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t}while(n!=4);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "95671bff3a78cd3ee71aa5b912eb021d", "score": "0.5698122", "text": "public void stopBrokerApplication() {\n\t}", "title": "" }, { "docid": "2862c2047cfd05bdd8e62b852d57286b", "score": "0.5680437", "text": "protected void destroyApp(boolean incondicional) {\n\tSystem.out.println(\"Paso a estado Destruido\");\n }", "title": "" }, { "docid": "063a68ab732298327fd52ec647f05a42", "score": "0.5680235", "text": "public void shutDown() {\n _application.shutDown();\n }", "title": "" }, { "docid": "38c5f1d2c2280f430c1ac6c1ce3a3366", "score": "0.56557775", "text": "public void removeApplication(List<String> removalAppName) throws InterruptedException {\n\t\tcommonUtil = new CommonUtility(DriverFactory.getDriver());\n\t\tfor (int i = 0; i < removalAppName.size(); i++) {\n\t\t\tcommonUtil.doSearch(removalAppName.get(i));\n\t\t\tcommonUtil.onClick(btnOption);\n\t\t\tcommonUtil.onClick(optionRemove);\n\t\t\tThread.sleep(2000);\n\t\t\tcommonUtil.onClick(optionRemoveInPopup);\n\n\t\t}\n\t}", "title": "" }, { "docid": "eb1a4b1811ea89353c90e9c6080be2aa", "score": "0.56327903", "text": "public void releaseApplication(){\n\t}", "title": "" }, { "docid": "fbe33a3fa6ad9d9373f19c6902fae532", "score": "0.56297034", "text": "public void shutdown() throws android.os.RemoteException;", "title": "" }, { "docid": "ef269e82557efbc714b9ddb65e27e34d", "score": "0.562195", "text": "public void exitApplication() {\r\n\t}", "title": "" }, { "docid": "fde192d091ac5a780c41d8d568afa914", "score": "0.5605684", "text": "void resetApp();", "title": "" }, { "docid": "ba707288335fd73697f4498359c27160", "score": "0.56038326", "text": "private static Class uninstallOption(){\n List updatedInstalledOptions = AllOptionsFolder.getDefault().getInstalledOptions();\n synchronized (Settings.class){\n Iterator i = installedOptions.keySet().iterator();\n while (i.hasNext()){\n Object obj = i.next();\n if(obj instanceof Class){\n if (!updatedInstalledOptions.contains(obj)){\n installedOptions.remove(obj);\n return (Class)obj;\n }\n }\n }\n return null; \n }\n }", "title": "" }, { "docid": "af3a2ee23108c32fa64230c1f6c1a1b7", "score": "0.55912405", "text": "private boolean askUninstallConfirmationQuestion()\n\t\t\tthrows IOException {\n\t\treturn ShellUtils.promptUser(session, \"application_uninstall_confirmation\", applicationName);\n\t}", "title": "" }, { "docid": "15bfd7171e0a799b25c0a26dceeedc50", "score": "0.5571774", "text": "public static void exitApp(Activity activity){\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n activity.startActivity(intent);\n activity.finish();\n }", "title": "" }, { "docid": "89c61e300c30bc494f6ba8cd150494eb", "score": "0.55613816", "text": "private static void shutdown () {\n logger.warning(\"Shutting down app base...\");\n \n // Note: I tried to run this in a synchronized block, but it hung.\n LinkedList<App2D> appsCopy = (LinkedList<App2D>) apps.clone();\n for (App2D app : appsCopy) {\n logger.warning(\"Shutting down app \" + app);\n app.cleanup();\n }\n logger.warning(\"Done shutting down apps.\");\n \n apps.clear();\n logger.warning(\"Done shutting down app base.\");\n }", "title": "" }, { "docid": "4898215ce389dbb50fc021f6a67b6b53", "score": "0.5555597", "text": "public void handleRemovePackage(String packageName) {\n removePackage(packageName);\n removeSpecialModePackage(packageName);\n }", "title": "" }, { "docid": "659f6863b76f8e68b3118f3a999ce797", "score": "0.5546604", "text": "@Override \n\t public void onReceive(Context context, Intent intent) { \n\t String action=intent.getAction(); \n\t String packageName = intent.getDataString();\n\t if ((Intent.ACTION_PACKAGE_ADDED.equals(action))&&packageName!=null) { \n\t \t ApkInfo info = new ApkInfo();\n\t info.setPackName(packageName.replace(\"package:\", \"\"));\n\t if(mList!=null){\n\t\t\t\t\t\tmList.remove(info);\n\t\t\t\t\t\tPrefsUtil.getInstance().putString(Constant.UPGRADE_LIST, GjsonUtil.Object2Json(mList)).commit();\n\t\t\t }\n\t } \n\t }", "title": "" }, { "docid": "cf7ef1fe43ad864fc2592afa42ef228b", "score": "0.5543201", "text": "public static void uninstall(Activity activity, String packageName, int requestCode) {\n AppUtils.uninstallApp(activity, packageName, requestCode);\n }", "title": "" }, { "docid": "6b6c4e36f73f57105846fe40ed83aeaf", "score": "0.5537231", "text": "public void exitApplication() {\r\n\t\tif (restartAgain) {\r\n\t\t\tMain.restartApplication();\r\n\t\t} else {\r\n\t\t\tMain.exitApplication();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "27c22131a1fb6c28f1bdefd41b531b11", "score": "0.5529245", "text": "void applicationRemoved(SuperModel superModel, ApplicationId id);", "title": "" }, { "docid": "e038d57b1ca7d09b1d4ed4696612dbe1", "score": "0.55225307", "text": "public static void cleanApp(String app, String by) {\n\t\tgetQAFDriver().executeScript(\"mobile:application:clean\", getAppParams(app, by));\n\t}", "title": "" }, { "docid": "d681075ad9052ee240ef33e261fad82d", "score": "0.5503918", "text": "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tif (api != null) {\r\n\t\t\tapi.unregisterApp();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fd01769602022b72a51702ad53c0d697", "score": "0.54956156", "text": "public void uninstallUI(JComponent c) {\n\t\tsuper.uninstallUI(c);\n\t}", "title": "" }, { "docid": "a49b9b3aaed637ba9333c3c9d4cb1a39", "score": "0.5480567", "text": "public void deleteFaultyApplication(String[] faultyAppName) throws Exception {\n String tenantId = AppDeployerUtils.getTenantIdString(getAxisConfig());\n HashMap<String, Exception> faultyCarbonAppList =\n AppManagementServiceComponent.getAppManager().getFaultyCarbonApps(tenantId);\n for(String faultyCarbonApplication : faultyAppName){\n// If appName is null throw an exception\n if (faultyCarbonApplication == null) {\n handleException(\"Application name can't be null\");\n return;\n }\n // CarbonApplication instance to delete\n String currentApp=null;\n String filename =null;\n\n // Iterate all applications for this tenant and find the application to delete\n for (String carbonApp : faultyCarbonAppList.keySet()) {\n\n filename = carbonApp.substring(carbonApp.lastIndexOf('/') + 1);\n if (faultyCarbonApplication .equals(filename) || faultyCarbonApplication .equals(filename.substring(0, filename.lastIndexOf('_')))) {\n currentApp = carbonApp;\n faultyCarbonAppList.remove(currentApp);\n break;\n }\n }\n\n // If requested application not found, throw an exception\n if (currentApp == null) {\n handleException(\"No Carbon Application found of the name : \" + faultyCarbonApplication );\n return;\n }\n\n // Remove the app artifact file from repository, cApp hot undeployer will do the rest\n String appFilePath = currentApp;\n File file = new File(appFilePath);\n if (file.exists() && !file.delete()) {\n log.error(\"Artifact file couldn't be deleted for Application : \"\n + filename);\n }\n }\n }", "title": "" }, { "docid": "08453cc02079a9e4e3469a7dc9c107d4", "score": "0.5464005", "text": "public void deleteApplication(String appName) throws Exception {\n // If appName is null throw an exception\n if (appName == null) {\n handleException(\"Application name can't be null\");\n return;\n }\n\n // CarbonApplication instance to delete\n CarbonApplication currentApp = null;\n\n // Iterate all applications for this tenant and find the application to delete\n String tenantId = AppDeployerUtils.getTenantIdString(getAxisConfig());\n ArrayList<CarbonApplication> appList =\n AppManagementServiceComponent.getAppManager().getCarbonApps(tenantId);\n for (CarbonApplication carbonApp : appList) {\n if (appName.equals(carbonApp.getAppName()) || appName.equals(carbonApp.getAppNameWithVersion())) {\n currentApp = carbonApp;\n }\n }\n\n // If requested application not found, throw an exception\n if (currentApp == null) {\n // Deleting the application on faulty application list, in case the application not found\n // in the active application list\n try {\n deleteFaultyApplication(new String[]{appName});\n } catch (Exception e) {\n handleException(\"No Carbon Application found of the name : \" + appName);\n }\n return;\n }\n\n // Remove the app artifact file from repository, cApp hot undeployer will do the rest\n String appFilePath = currentApp.getAppFilePath();\n File file = new File(appFilePath);\n if (file.exists() && !file.delete()) {\n log.error(\"Artifact file couldn't be deleted for Application : \"\n + currentApp.getAppNameWithVersion());\n }\n }", "title": "" }, { "docid": "e61c8bb70d18e9b3c4f6100ce34079d9", "score": "0.5462879", "text": "private void deinit() {\n m_app.deinit();\n }", "title": "" }, { "docid": "757497a66714ea0501354187f9f24a97", "score": "0.5458021", "text": "public void cancelApplication() {\r\n\t\tTextField appid = (TextField) Main.scene.lookup(\"#appid\");\r\n\t\tint index = -1;\r\n\t\tint i = 0;\r\n\t\tfor (Application d: ((Teacher) Main.currentUser).getApplications()) {\r\n\t\t\tif (d.getAppId().equals(appid.getText())) {\r\n\t\t\t\tindex = i;\r\n\t\t\t}\r\n\t\t\ti++;\r\n }\r\n\t\tif (index != -1) {\r\n\t\t\t((Teacher) Main.currentUser).getApplications().remove(index);\r\n\t\t\tappid.setText(\"\");\r\n\t\t\tupdateApplications();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0e0f4f9cefff1a698d0f1dd8591da775", "score": "0.54413563", "text": "public void quitClicked() { // close application\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "8fd7632dd05ec4b08cd0995f6876d1f3", "score": "0.54299814", "text": "public void removeInternetAppFromCache(String packageName) {\n if (this.mCachedInternetApps == null || TextUtils.isEmpty(packageName)) {\n Log.w(TAG, \"invalid parameter\");\n return;\n }\n synchronized (this.mLock) {\n if (this.mCachedInternetApps.indexOf(packageName) != -1) {\n this.mCachedInternetApps.remove(packageName);\n Log.i(TAG, \"remove app : \" + packageName + \" success\");\n }\n }\n }", "title": "" }, { "docid": "5835395dbb82806dec031d307f279385", "score": "0.54158115", "text": "public void applicationDeleted(String appGUID, float appVersion, String handleId) throws RemoteException;", "title": "" }, { "docid": "d0da6ce59f5e962b30b48564a6514bc9", "score": "0.540572", "text": "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t// ungisterApp();\n\n\t}", "title": "" }, { "docid": "b1569342b930244b3c4572bb78f008fe", "score": "0.54055446", "text": "private void abortApp(String text) {\n\t\tstopDataChangeTimers();\n\t\tif (main_app!=null) {\n\t\t\tmain_app.disable();\n\t\t\tmain_app.hide();\n\t\t}\n\t\tMessageBox.alert(\"Chyba aplikace, zkuste obnovit stránku v prohlížeči\", text, null);\n\t}", "title": "" }, { "docid": "fc134cd1c18daa5326dea155c8d1680c", "score": "0.5390328", "text": "public void destroyApp(boolean unconditional) {\n notifyDestroyed();\n }", "title": "" }, { "docid": "f69d2e647144d3c6e0747549914951f8", "score": "0.5382926", "text": "public boolean unDeployArtifact(String stage, String applicationId, String version)\n throws AppFactoryException {\n \n String event = \"Deleting application \" + applicationId + \" in version for \" + version + \", from \" + stage + \" stage\" ;\n log.info(event);\n \n \n /*String key = AppFactoryConstants.DEPLOYMENT_STAGES + \".\" + stage + \".\" + AppFactoryConstants.DEPLOYMENT_URL;\n\n String[] deploymentServerUrls = ServiceHolder.getAppFactoryConfiguration().getProperties(key);\n\n if (deploymentServerUrls.length == 0) {\n handleException(\"No deployment paths are configured for stage:\" + stage);\n }\n */\n \n String applicationType;\n try {\n applicationType = getApplicationType(applicationId);\n } catch (RegistryException e) {\n String errorMsg = String.format(\"Unable to find the application type for application id: %s\",\n applicationId);\n log.error(errorMsg, e);\n throw new AppFactoryException(errorMsg, e);\n }\n\n /*\n if (AppFactoryConstants.FILE_TYPE_WAR.equals(applicationType)|| AppFactoryConstants.FILE_TYPE_JAXWS.equals(applicationType)|| AppFactoryConstants.FILE_TYPE_JAXRS.equals(applicationType) ) {\n // undeploy the webapp(war/jaxws/jaxrs file)\n deleteWebApp(applicationId, deploymentServerUrls,AppFactoryConstants.FILE_TYPE_WAR,version);\n } else if (AppFactoryConstants.FILE_TYPE_CAR.equals(applicationType)) {\n // un-deploy the cApp (car file)\n deleteCApp(applicationId, deploymentServerUrls,version);\n }else if(AppFactoryConstants.FILE_TYPE_JAGGERY.equals(applicationType)){\n deleteWebApp(applicationId, deploymentServerUrls,\"\",version);\n }else if(AppFactoryConstants.FILE_TYPE_ESB.equals(applicationType)){\n //deleteWebApp(applicationId, deploymentServerUrls,\"\");\n }else if(AppFactoryConstants.FILE_TYPE_DBS.equals(applicationType)){\n \tdeleteService(applicationId, deploymentServerUrls,\"\",version);\n }else if(AppFactoryConstants.FILE_TYPE_PHP.equals(applicationType)){\n //deleteWebApp(applicationId, deploymentServerUrls,\"\");\n }else if(AppFactoryConstants.FILE_TYPE_BPEL.equals(applicationType)){\n //deleteWebApp(applicationId, deploymentServerUrls,\"\");\n }else {\n handleException(\"Can not detect application type to delete the application\");\n }\n */\n \n deleteFromDepSyncGitRepo(applicationId, version, applicationType, stage);\n \n return true;\n }", "title": "" }, { "docid": "2bb0491234b339793719d83e393a85ce", "score": "0.53783286", "text": "public static void unsetDefaultIMApplication()\n {\n if (OSUtils.IS_WINDOWS)\n RegistryHandler.unsetDefaultApp();\n }", "title": "" }, { "docid": "9a951fa2dd72754e14cda1b9d45e4454", "score": "0.53756034", "text": "public void deleteUnreadSupportByPackageName(String packageName) {\n for (Iterator iter = UNREAD_SUPPORT_SHORTCUTS.iterator(); iter.hasNext(); ) {\n if(packageName.equals(\n ((UnreadSupportShortcut)iter.next()).mComponent.getPackageName())) {\n iter.remove();\n }\n }\n for (Iterator iter = mComponentNameArrayList.iterator(); iter.hasNext(); ) {\n if(packageName.equals(\n ((ComponentName)iter.next()).getPackageName())) {\n iter.remove();\n }\n }\n mBadgeSQL.deleteOne(packageName);\n\t\tIntent intent = new Intent();\n intent.setAction(BADGE_ACTION);\n mContext.sendBroadcast(intent);\n }", "title": "" }, { "docid": "8892b732ee54eed4cfdfff843e20fec4", "score": "0.5366201", "text": "public void shutDown();", "title": "" }, { "docid": "27e8725c746cae5cc3362c3f480b27fc", "score": "0.5355728", "text": "public void onAppDestroy(){\n Log.i(TAG,\"onAppDestroy \" + favSet.size());\n ApplicationBase.getEditor().remove(\"favorites\").commit();\n ApplicationBase.getEditor().putStringSet(\"favorites\",favSet).commit();\n }", "title": "" }, { "docid": "217c21ebd52f1c3986ea86ffc9744d4e", "score": "0.5350009", "text": "public void onClickDeleteButton(View v) {\n\t\tfinal AppInfo info = (AppInfo) ((PagedViewIcon) v).getTag();\n\t\tstartApplicationUninstallActivity(info);\n\t}", "title": "" }, { "docid": "7234573e45dd671ce017149511ad291f", "score": "0.5340386", "text": "@Override\n public void onRevoke(Application application) throws AppFactoryException {\n }", "title": "" }, { "docid": "fe094548be3b7f177e46a31679ae82be", "score": "0.5332036", "text": "protected void destroyApp(boolean unconditional)\n throws MIDletStateChangeException {\n leds.setOff();\n }", "title": "" }, { "docid": "98f170e3c1098dd1cefcaa681cc21bd2", "score": "0.53218216", "text": "public interface RemoveApplicationManifest_callback extends Callback {\r\n\t\tint apply(Pointer pchApplicationManifestFullPath);\r\n\t}", "title": "" }, { "docid": "2a57126249473b738a8689c347e99b0a", "score": "0.5279535", "text": "public static void quitApp()\n {\n //Send the data event to quit the app\n\n PutDataMapRequest putDataMapRequest = PutDataMapRequest.create(PATHQUIT);\n\n\n // Add data to the request (Just so it has changed and it is recieved)\n // Add data to the request\n putDataMapRequest.getDataMap().putString(KEY,\n \"Feather Wear\");\n putDataMapRequest.getDataMap().\n putLong(\"time\", new Date().getTime());\n\n //request our request\n PutDataRequest request = putDataMapRequest.asPutDataRequest();\n\n //Send to wearable\n Wearable.DataApi.putDataItem(GoogClient, request);\n }", "title": "" }, { "docid": "46dba6235e9e1d727f3859c019f695f2", "score": "0.52777", "text": "public void unInstall() {\n\tviewPort = null;\n\tview = null;\n\n\tif (camera != null) {\n\t camera.removeCameraListener(this);\n\t}\n\tif (root != null) {\n\t root.removeNodeListener(this);\n\t}\n\n\tcamera = null;\n\troot = null;\n }", "title": "" }, { "docid": "9c19bcc4583b659bfc12dc440e1fc29a", "score": "0.5273577", "text": "void exitRegistrationMode();", "title": "" }, { "docid": "ee79d7867bd58482dab6d63a4ad43a15", "score": "0.5267542", "text": "public void exitApplication() {\n System.exit(0);\n }", "title": "" }, { "docid": "76ada73cad722f62757a8ee039b98214", "score": "0.52648085", "text": "public void onRemoveCmd(final String component) {\n // check whether it is installed at all\n if (!isComponentAlreadyInstalled(component)) {\n // nope, not installed\n System.out.println(component + \" is not installed\");\n return;\n }\n // yes, it exists\n // check whether this is one of the components that's part of required components tracker map (keys only)\n Set<String> requiredComponents = mRequiredUpstreamComponents.get(component);\n if (requiredComponents != null && requiredComponents.size() > 0) {\n // yes, it is i.e. it cannot be removed\n System.out.println(component + \" is still needed\");\n return;\n }\n // no dependents exits, yay\n deepRemove(component, false); // transitive is false because this is direct remove\n }", "title": "" }, { "docid": "ee51a0248c3948a7d444825f3a6f70e7", "score": "0.52645123", "text": "protected void destroyApp(boolean unconditional) {\r\n frame.reset(); // Discard images cached in the frame\r\n }", "title": "" } ]
cd292152f9e4bc2f70f8a9a7f7348c64
Constructor to set properties/characteristics of object
[ { "docid": "cba5dc6d6bb9f3352497e6d1fb8589c5", "score": "0.0", "text": "Blackberry(String man, String os,String model, int cost){ \n super(man, os, model, cost); \n }", "title": "" } ]
[ { "docid": "b42ed1de2134d93f2e52004cc007cdee", "score": "0.6491692", "text": "@Override\r\n\tpublic void init(Properties arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "b8bcec627b830a7f391758716f2c65d3", "score": "0.6461363", "text": "protected MutableObject() {\r\n\t}", "title": "" }, { "docid": "071b1c05157e39009c403753f09d5695", "score": "0.63452864", "text": "public Student() {\r\n // name = \"\";\r\n // test1 = 0;\r\n // test2 = 0;\r\n // test3 = 0;\r\n // System.out.println(\"Student has been created\");\r\n\r\n //Call another constructor to clone properties from another student\r\n this(\"\", 0, 0, 0);\r\n //This is called CHAINING consructors\r\n //this= look elsewhere to set all properties as you make it\r\n\r\n }", "title": "" }, { "docid": "5c908e1494920838dd3aa873aa4cd236", "score": "0.63369924", "text": "public LAttributesObject() {\n objTypeList = new ArrayList<>();\n objClassList = new ArrayList<>();\n objValueList = new ArrayList<>();\n }", "title": "" }, { "docid": "983dab9a0cab91484a28974858e0d7f1", "score": "0.63129485", "text": "public PropertiesBase() {\n\t\tinitProperties(true);\n\t}", "title": "" }, { "docid": "4a30ee73405875d738d20de22ebc1ea9", "score": "0.624405", "text": "public MyProperties() {\r\n\t}", "title": "" }, { "docid": "7d53419ebeae94e9f6b76f09c417ec9e", "score": "0.62197703", "text": "public Property() {\t//default constructor\r\n\t}", "title": "" }, { "docid": "66d572b785316960f53d94523d8f0867", "score": "0.6181244", "text": "public SoftwareProperties() {\n }", "title": "" }, { "docid": "77db00d71670211b657456d392fdbca0", "score": "0.61773735", "text": "public ObjectBuilder() {\n super();\n }", "title": "" }, { "docid": "bd0779bcb47f411d6117d0c6aa2ad04c", "score": "0.61728346", "text": "public void init(Properties properties);", "title": "" }, { "docid": "e4d9bd309d10e4086c3b7d7745c10c29", "score": "0.6139825", "text": "@Override\n protected void init() {\n setFrameSrcPositions();\n setObjectSpeedX(100);\n setObjectSpeedY(0);\n }", "title": "" }, { "docid": "2ae58942fdc4bc8f99f4488436adc71a", "score": "0.6115584", "text": "private SingleObject(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4ae415e2a78ca0e3261dcc3fc6584cd8", "score": "0.61108977", "text": "private void init() {\n// System.out.println(\"INIT\");\n setModel_Agent(new Model_Agent(Id.model_Agent, this, null));\n setOkolie_Agent(new Okolie_Agent(Id.okolie_Agent, this, model_Agent()));\n setDoprava_Agent(new Doprava_Agent(Id.doprava_Agent, this, model_Agent()));\n setZastavky_Agent(new Zastavky_Agent(Id.zastavky_Agent, this, doprava_Agent()));\n setVozidla_agent(new Vozidla_agent(Id.vozidla_agent, this, doprava_Agent()));\n }", "title": "" }, { "docid": "f216228914a89e29a9ab855df499c8d9", "score": "0.60936177", "text": "public Mozzarella() {\r\n \t//call the super class that has 3 parameters\r\n super(description, cost, calories);\r\n }", "title": "" }, { "docid": "945f54a69ae1f9734d99bbbec183730a", "score": "0.6079867", "text": "@Override\n\tpublic void init() {\n\t // not needed for this object\n\t}", "title": "" }, { "docid": "945f54a69ae1f9734d99bbbec183730a", "score": "0.6079867", "text": "@Override\n\tpublic void init() {\n\t // not needed for this object\n\t}", "title": "" }, { "docid": "945f54a69ae1f9734d99bbbec183730a", "score": "0.6079867", "text": "@Override\n\tpublic void init() {\n\t // not needed for this object\n\t}", "title": "" }, { "docid": "bcc954f958a6d63c55e97d1879ab48ff", "score": "0.6066349", "text": "protected GeometricObject() {\n super();\n\t\tnew java.util.Date();\n\t}", "title": "" }, { "docid": "1a9a4d5a7acc06a2d752f6a54764c578", "score": "0.60540754", "text": "@Override\n public void init(Object o) {\n }", "title": "" }, { "docid": "848c4735f79a1e1bd44448b240fd6a3e", "score": "0.60353315", "text": "public void initNewObject() {\r\n\r\n }", "title": "" }, { "docid": "e61d0d138019d7b9c71e5bc6a44b60ec", "score": "0.6024076", "text": "public RideObject(){}", "title": "" }, { "docid": "2813ba2ad384b93e3dbf98a88cbf1bde", "score": "0.6002111", "text": "public Person(){\n\t\tthis(\"Calling another constructor\");\n\t\tfirstName = \"John\";\n\t\tlastName = \"Doe\";\n\t\tage = 0;\n\t\tbirthday = new Date();\n\t\tgender = \"Male\";\t\t\n\t}", "title": "" }, { "docid": "ce7893f10a9f5dfb621492f51efded31", "score": "0.5995557", "text": "public StudentProperties() {\n }", "title": "" }, { "docid": "90171beb7022920c6141388a634bf8fa", "score": "0.59730816", "text": "public Consumable()\n {\n // Make the necessary call to super(...)\n\n this.effect = \"\";\n this.uses = 0;\n }", "title": "" }, { "docid": "fa6532bedea3aba7730a212ce569be33", "score": "0.5949692", "text": "public Ferry(Ferry obj) {\r\n super(obj);\r\n this.build_year = obj.build_year;\r\n this.ship_name = obj.ship_name;\r\n }", "title": "" }, { "docid": "cf21aae69eb7dcf1b4094217e69c81ee", "score": "0.59495884", "text": "public DataProperties() {\n init(new String[]{}, null);\n }", "title": "" }, { "docid": "d58c74090b4f222d1ceb544d3b7e45db", "score": "0.5940772", "text": "public SuperCar (String b,String a,String e,String m,String c) {\n //assign data to class properties\n this.Carbrand = b;\n this.Carcolor = a;\n this.Carenginesize = e;\n this.Maxspeed = m;\n this.Countryoforigin = c;\n }", "title": "" }, { "docid": "4838d25f2e3f5ab45f4e982cbc53d3a7", "score": "0.5935817", "text": "public CompositeObject(){\n type_ = Object_Type_ObjectEmpty;\n movementType_ = Object_Movement_Type_MovementDynamic;\n }", "title": "" }, { "docid": "5999572d562a42542e83e69f618609c2", "score": "0.5902082", "text": "public ObjectMovementValues() { }", "title": "" }, { "docid": "55c64e52c1ac1ce00972d55acb3f6349", "score": "0.5899069", "text": "@Override public void init() {\n }", "title": "" }, { "docid": "6453dac1f34fd4f1254c6d7992a69d97", "score": "0.58947104", "text": "public ScheduleProperties() {\n }", "title": "" }, { "docid": "3a47eb62238c4076fde76f65ba7393c8", "score": "0.589429", "text": "public Property(){\r\n\t\trentAmount = 0;\r\n\t\tplot = new Plot();\r\n\t}", "title": "" }, { "docid": "6a47862135f2a09eefcf51f638ebcb30", "score": "0.5889078", "text": "public Person() {\r\n\t\tname = \"John Doe\";\r\n\t\tage = 25;\r\n\t}", "title": "" }, { "docid": "821ed5062335db6d50146f3ed03e8877", "score": "0.587391", "text": "private SingleObject3() {\n }", "title": "" }, { "docid": "20015782dc06d4608e487b0ae217e541", "score": "0.58444756", "text": "SPX(Object obj) {\n super();\n\n this.obj = obj;\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.58406174", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.58406174", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.58406174", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.58406174", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e6bf01c6c3af4c0d5f314ca53a3fab6b", "score": "0.5825835", "text": "public InvoiceSectionProperties() {\n }", "title": "" }, { "docid": "55562d1b902c135cce8766d6bc5e2835", "score": "0.5824075", "text": "public PropertyUtil() {\n\t}", "title": "" }, { "docid": "ec32440c74f7621fb77a437b0926891c", "score": "0.5819778", "text": "public GlobalReachConnectionProperties() {\n }", "title": "" }, { "docid": "3cd05298906026e0eb57cb606e8c6fa4", "score": "0.57945997", "text": "protected void constructor(){\n\t\tpreInit();\n\t\tinitWindow();\n\t\tinitToggleButtons();\n\t\tinitPanels();\n\t}", "title": "" }, { "docid": "cb13c9d2ba6e0c5a7943afa674e4915a", "score": "0.5794141", "text": "public PropertyContainer() {\r\n params_ = new HashMap<String, Parameter>();\r\n sortedKeys_ = new Vector<String>();\r\n }", "title": "" }, { "docid": "5b4e7b55bb55815e8ec9a610c275da31", "score": "0.5792046", "text": "private void initialize() {\n\t\tthis.nameProperties[Lending.LENDING_BOOK_ITEM_ID] = \"Book_Item_Id\";\n\t\tthis.nameProperties[Lending.LENDING_CODE] = \"Code\";\n\t\tthis.nameProperties[Lending.LENDING_STATUS] = \"Status\";\n\t\tthis.nameProperties[Lending.LENDING_TIME] = \"Time\";\n\t\tthis.nameProperties[Lending.LENDING_USER_ID] = \"UserId\";\n\t\t\n\t\tfor(int i = 0; i < Lending.LENDING_SIZE_PROPERTIES; i ++) {\n\t\t\tthis.valueProperties[i] = new String();\n\t\t}\n\t}", "title": "" }, { "docid": "4589d8a1e443791ef5c11a81cc3e5371", "score": "0.5784739", "text": "public Attribute(){\r\n\t}", "title": "" }, { "docid": "19452155d03f7556226aff1c0daa0e96", "score": "0.5777708", "text": "protected GeometricObject(String color, boolean filled) {\n this.color = color;\n this.filled = filled;\n}", "title": "" }, { "docid": "1288a387be7f98f89172096b8c0477ec", "score": "0.5775893", "text": "public ApiProperties() {\n }", "title": "" }, { "docid": "8139fe52692045ec2dc9a373ede3658a", "score": "0.577519", "text": "public AnswerDetailObj() {\r\n\t}", "title": "" }, { "docid": "dd5e8ac74836c60b20a233b84781ded5", "score": "0.5774496", "text": "public KmlObject(){\r\n\t\tmObjectType = UNKNOWN;\r\n\t\tmVisibility=true;\r\n\t\tmOpen=true;\r\n\t}", "title": "" }, { "docid": "d38d8273c5fc3093ab61041d1b5daeb2", "score": "0.5774002", "text": "public void construire(){\n\t\t}", "title": "" }, { "docid": "33cdc6ea8a9145eb656ee6ce59518c02", "score": "0.5771983", "text": "public Office365DatasetTypeProperties() {\n }", "title": "" }, { "docid": "95be4fdee6d995b424f0a4e840e2c875", "score": "0.57699597", "text": "@Override\r\n\tpublic void init()\r\n\t{\r\n\t}", "title": "" }, { "docid": "1e66345acccf7b01a22fdcdc8927358e", "score": "0.57547355", "text": "public ExternalNetworkPatchableProperties() {\n }", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.57545125", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.57545125", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.57495326", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4b10aa82092672a50011941e427c7e00", "score": "0.5749206", "text": "PropertySet(PropertyCard card){\n\t_rentPrice = new RentPrice(card.getCurrColor());\n }", "title": "" }, { "docid": "b6d15f4685fc5747b9722b4205df97d3", "score": "0.57461977", "text": "public Object() {\n\t}", "title": "" }, { "docid": "335554397c8420d2ab97c306b390c29f", "score": "0.5737674", "text": "public Attributes() {\n }", "title": "" }, { "docid": "f1b5e28e79e7e9c44cdb7597b2455f78", "score": "0.5734364", "text": "public JobPatchProperties() {\n }", "title": "" }, { "docid": "a7ada994943f62a4589674e89199475b", "score": "0.573233", "text": "@Override\n public void init() {}", "title": "" }, { "docid": "c0b62d1de41a9c4868c27c56391edc5a", "score": "0.57305694", "text": "public Animal(){\n\tthis.age = 1;\n\tthis.aggressionLevel = 1;\n\n}", "title": "" }, { "docid": "04109c47a16ec2f143069db000842eb1", "score": "0.57263833", "text": "protected void setupObjectList()\n {\n objectList.add(new NumberHashMap(DataTypes.OBJ_TEXT_ENCODING, this, TextEncoding.TEXT_ENCODING_FIELD_SIZE ));\n objectList.add(new StringSizeTerminated(DataTypes.OBJ_TEXT, this));\n }", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.5724507", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "f7e67a4b7a284fd279dfe3ec35420434", "score": "0.5716864", "text": "public Tent () {\n\n\t}", "title": "" }, { "docid": "f2f44db5dca8a2ce25051a36b05f1402", "score": "0.5712533", "text": "@Test\n public void Constructor() {\n Detection detectionObject =\n new Detection(\n ID,\n AGENCYID,\n AUTHOR,\n LATITUDE,\n LONGITUDE,\n TIME,\n DEPTH,\n LATITUDEERROR,\n LONGITUDEERROR,\n TIMEERROR,\n DEPTHERROR,\n DETECTIONTYPE,\n DETECTIONTIME,\n EVENTTYPE,\n CERTAINTY,\n BAYES,\n MINIMUMDISTANCE,\n RMS,\n GAP,\n DETECTOR,\n buildPickData(),\n buildCorrelationData());\n\n // check data values\n CheckData(detectionObject, \"Constructor\");\n\n // use constructor\n Detection altDetectionObject =\n new Detection(\n ID,\n new Source(AGENCYID, AUTHOR),\n new Hypocenter(\n LATITUDE,\n LONGITUDE,\n TIME,\n DEPTH,\n LATITUDEERROR,\n LONGITUDEERROR,\n TIMEERROR,\n DEPTHERROR),\n DETECTIONTYPE,\n DETECTIONTIME,\n new EventType(EVENTTYPE, CERTAINTY),\n BAYES,\n MINIMUMDISTANCE,\n RMS,\n GAP,\n DETECTOR,\n buildPickData(),\n buildCorrelationData());\n\n // check data values\n CheckData(altDetectionObject, \"Alternate Constructor 1\");\n\n // empty constructor\n JSONObject emptyJSONObject = new JSONObject();\n Detection emptyObject = new Detection(emptyJSONObject);\n\n // check the data\n CheckData(emptyObject, \"Empty Constructor\");\n }", "title": "" }, { "docid": "2e72eab15a5463d4a22f07453d657fcb", "score": "0.5711198", "text": "public ClusterProperties() {\n }", "title": "" }, { "docid": "e7f9fff993d7e2f9986f001508c76932", "score": "0.57087797", "text": "public Employee(int empId,String empFirstName,String empSecondName,double empSalary)\r\n{\r\nthis.empId=empId;//constructor\r\nthis.empFirstName=empFirstName;\r\nthis.empSecondName=empSecondName;\r\nthis.empSalary=empSalary;\r\n}", "title": "" }, { "docid": "b1717df3434a96bf0f94401d6737062a", "score": "0.57085824", "text": "@Override\n public void init() {\n // TODO\n }", "title": "" }, { "docid": "3357226546dd848354a4b5da1b5d917d", "score": "0.57025087", "text": "public ConstructSet()\n\t{\n\n\t\tsuper();\n\n\t\taddComponent(new Render(new ImageRenderObject(\n\t\t\t0, 0, GameResources.playerSpriteSheet)));\n\t\t// TODO: Construct sprite sheet\n\n\t\taddComponent(new WorldAttributes(new Vector2f(50.f, 50.f),\n\t\t\t\t\t\t GameConfig.CONSTRUCT_WIDTH,\n\t\t\t\t\t\t GameConfig.CONSTRUCT_HEIGHT));\n\n\t\t// TODO: construct animations ( idle, attacking, dying)\n\t}", "title": "" }, { "docid": "9b2127d430a65c6e06d8420d89fa2c1c", "score": "0.5699965", "text": "private Objects(NativeObject nativeObject) {\n\t\t\tsuper(nativeObject);\n\t\t}", "title": "" }, { "docid": "3bfdaf34a5c49819fae7d70e5ed7d1a6", "score": "0.56901324", "text": "public void setProperties(Properties properties);", "title": "" }, { "docid": "e34bd20bc0c83864f4514b6a2c5956d8", "score": "0.56887066", "text": "public ObjectCache()\n {\n super();\n }", "title": "" }, { "docid": "7f87703fe2bf57ba9035fc4856d4acad", "score": "0.56862795", "text": "DataStructure()\r\n\t{\r\n\t\tbyXList=new ContainerLinkedList(true);\r\n\t\tbyYList=new ContainerLinkedList(false);\r\n\t}", "title": "" }, { "docid": "526cc2cf590f3e89acf31d18b188eab4", "score": "0.5683129", "text": "public SimulatedObject(Object obj, int x, int y)\r\n\t{\r\n\t\tthis(obj,new IntegerPosition(x,y));\r\n\t}", "title": "" }, { "docid": "b2a4016f9e0b75b033d1c3be1e4d42d3", "score": "0.56816655", "text": "public PropertiesWrapper() {\n\t\tthis(new Properties());\n\t}", "title": "" }, { "docid": "3f3c78e622003a8f566e6ef6d49893e9", "score": "0.5681639", "text": "private void createProperties()\n\t{\n\t\tSupplier<String> getter = () -> getInterior();\n\t\tConsumer<String> setter = (String gas) -> setInterior(gas);\n\t\tSet<String> possibleValues = new HashSet<String>();\n\t\tsuper.addProperty(\"interior\", getter,setter,possibleValues);\n\t}", "title": "" }, { "docid": "8c3e9cadab4f5b3a88f42cb9a629f020", "score": "0.5681236", "text": "public JACKObject(Map map) {\r\n\t\tsuper(map);\r\n\t}", "title": "" }, { "docid": "4774461a3e68e18fcb8b9374964aaf2c", "score": "0.567713", "text": "private Object_Builder(Builder b) {\r\n\t\tthis.Company = b.Company;\r\n\t\tthis.Model = b.Model;\r\n\t\tthis.Price = b.Price;\r\n\t\tthis.Location = b.Location;\r\n\t}", "title": "" }, { "docid": "acc8666e275b3f065f9887064229ecb8", "score": "0.5676439", "text": "private LocalVCAPProperties() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "c92e1a8fd9cd021b480bf3f97a2939da", "score": "0.5673191", "text": "public Book() {\n this(\"Book\",\"Author\",\"Publisher\",2000,0,0);\n }", "title": "" }, { "docid": "2335632d6c9f53b16118dd658c833a46", "score": "0.56721705", "text": "public BaseProperties (java.lang.Long _oid) {\r\n\t\tthis.setOid(_oid);\r\n\t\tinitialize();\r\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.56712973", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.56712973", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.56712973", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.56712973", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.56712973", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "d2a3a698d57086ad5752f33cc64ecf7f", "score": "0.5662682", "text": "public JRProperty() {\r\n }", "title": "" }, { "docid": "cd123f3ffa13ed3e58d16a9abe4e7db9", "score": "0.5657754", "text": "public AssetProperties() {\n initComponents();\n }", "title": "" }, { "docid": "c82f30f6896ebb84f66d2da0e776566b", "score": "0.5653786", "text": "public ClassModel() {\n this(true);\n }", "title": "" }, { "docid": "bcada4f2bfba59e1325a8e22b28f7507", "score": "0.5653188", "text": "protected void init() {\n lineNr = 1;\n prefix = \"\";\n infix = \"\";\n suffix = \"\";\n enabledClasses = new LinkedList<String>();\n \n teePaths = new ArrayList<String>();\n teeWriters = new ArrayList<PrintWriter>();\n teeStreams = new ArrayList<OutputStream>();\n }", "title": "" }, { "docid": "0fc5357119599ac6ad94159e8fccc314", "score": "0.5645378", "text": "public Caregiver() {\n\n\t}", "title": "" }, { "docid": "ae391e781bd6fad11bb4642dc4bb6772", "score": "0.56448895", "text": "private Item() {\n title = \"Title\";\n producer = \"Producer\";\n country = \"Country\";\n year = 2010;\n price = 10;\n }", "title": "" }, { "docid": "7c69d5333d1a4169b99926b86c1b5b5f", "score": "0.56354445", "text": "Ant(AntObject antObject) {\n\t\tsuper(antObject);\n\t\thealth = antObject.getHealth();\n\t\tsugarCarry = antObject.getSugarCarry();\n\t\tantAIClassName = antObject.getAI().getClass().getSimpleName();\n\t\tthis.antObject = antObject;\n\t}", "title": "" }, { "docid": "a45c7c47b046d656bbb0f7efb73c1db1", "score": "0.5633681", "text": "public Property() {\n }", "title": "" }, { "docid": "7195d996cbef5323a66af5f3c55d4fbd", "score": "0.5633449", "text": "public CommonClusterProperties() {\n }", "title": "" }, { "docid": "6d1c2738efe3ca5c411d6515ef657246", "score": "0.5632639", "text": "public VOIStatisticalProperties() {\r\n data = new Hashtable<String, Object>();\r\n }", "title": "" }, { "docid": "e5cb0553646cb14d7433ac8d7c7e1b29", "score": "0.56301856", "text": "public ObjectShape() {\r\n\t\tthis.colour = Color.black;\r\n\t}", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.56251895", "text": "protected void init() {}", "title": "" }, { "docid": "8acd54611363caa1573e678e1332aa99", "score": "0.561485", "text": "public void setProperties(Properties properties) {\n\n }", "title": "" } ]
216c2f3b91755d55a92a807b87b55b6e
Iterate over all players starts at 1
[ { "docid": "9dc1b4fd7820e843b0870428869a9e4e", "score": "0.0", "text": "private void attachTextViewsToViewModel() {\n for (int i = 1; i < 6; i++) {\n // Iterate over events\n for (int j = 0; j < 7; j++) {\n // - 1 here due to i starting at 1\n playerTextViews[i - 1][j].setText(\"\" + 0);\n }\n // attach actual observer\n basketisticsViewModel.getPoints().observe(\n this, new PlayerTextViewObserver(i, 0, mockPlayerStatsDB, basketisticsViewModel, playerTextViews));\n basketisticsViewModel.getRebound().observe(\n this, new PlayerTextViewObserver(i, 1, mockPlayerStatsDB, basketisticsViewModel, playerTextViews));\n basketisticsViewModel.getAssist().observe(\n this, new PlayerTextViewObserver(i, 2, mockPlayerStatsDB, basketisticsViewModel, playerTextViews));\n basketisticsViewModel.getSteal().observe(\n this, new PlayerTextViewObserver(i, 3, mockPlayerStatsDB, basketisticsViewModel, playerTextViews));\n basketisticsViewModel.getBlock().observe(\n this, new PlayerTextViewObserver(i, 4, mockPlayerStatsDB, basketisticsViewModel, playerTextViews));\n basketisticsViewModel.getTurnover().observe(\n this, new PlayerTextViewObserver(i, 5, mockPlayerStatsDB, basketisticsViewModel, playerTextViews));\n basketisticsViewModel.getFoul().observe(\n this, new PlayerTextViewObserver(i, 6, mockPlayerStatsDB, basketisticsViewModel, playerTextViews));\n\n\n }\n }", "title": "" } ]
[ { "docid": "0cfee1ad81832af2a150dd7763b18a6e", "score": "0.7334142", "text": "private void play(){\n List<ClientHandeler> listOfPlayers = new ArrayList<>(players.keySet());\n for (int i = 0; i < listOfPlayers.size(); i++){\n int otherIndex = (i + 1) % players.size();\n System.out.println(i);\n listOfPlayers.get(i).cmdGame(listOfPlayers.get(otherIndex).getName(),\n listOfPlayers.get(otherIndex).getClientId(), board.getWidth(), board.getLength(), board.getHeigth(),\n listOfPlayers.get(0).getClientId(), board.getWinLength());\n }\n }", "title": "" }, { "docid": "2467aa17f63c067e66d33ed03938828c", "score": "0.70043045", "text": "public void setUpIterator(List<Player> players);", "title": "" }, { "docid": "109bcfa55011394d4420978d21d691c7", "score": "0.684438", "text": "public void setNextPlayer(){\n lastPlayer = currentPlayer;\n currentPlayer++;\n int counter = 0;\n for (int i = currentPlayer; ; i++,counter++) {\n if(i >= players.size()){\n i=0;\n }\n if(players.get(i) instanceof TablePlayer){continue;}\n else if(counter >= 100){throw new NoPlayerInGameException(\"method SetNextPlayer cannot set the next player, no players still in game!\");}\n //else if(getPlayerAllIn(i)){continue;}\n else if(!getStillInGame(i)){continue;}\n else{currentPlayer = i;break;}\n }\n }", "title": "" }, { "docid": "8dd69af882e087d0af284da763517c1f", "score": "0.6675862", "text": "public Iterator<Player> getAllPlayers ( )\n\t{\n\t\treturn this.players.values ( ).iterator ( );\n\t}", "title": "" }, { "docid": "72c038c69938cf1f36337e1d4d50675e", "score": "0.6635345", "text": "public Iterator getPlayers() {\n return mPlayers.iterator();\n }", "title": "" }, { "docid": "9e874a29fa7ab6e5fc9d184431b948b0", "score": "0.66162044", "text": "private void distributeCardsToPlayers() {\n for(Player player: players){\n for(int count=0; count<8;count++){\n player.getCards().add(deck.takeRandomCard());\n }\n }\n\n }", "title": "" }, { "docid": "e6726b0570daa7da99d3f442197bf233", "score": "0.65748686", "text": "private void nextPlayer() {\r\n this.playerIndex = (this.playerIndex + 1) % this.playerCount;\r\n }", "title": "" }, { "docid": "dc0676db5bae9c4754c35497b2331c6f", "score": "0.6474065", "text": "public void nextPlayer() {\n\t\tif (current != null) {\n\t\t\tgiveTiles(current);\n\t\t}\n\t\tif (current != null || players.get(player).equals(current)) {\n\t\t\tplayer += 1;\n\t\t\tplayer %= players.size();\n\t\t\tcurrent = players.get(player);\n\t\t} else if (current == null) {\n\t\t\tint random = (int) (Math.random() * players.size());\n\t\t\tcurrent = players.get(random);\n\t\t} else {\n\t\t\tfor (int i = 0; i < players.size(); i++) {\n\t\t\t\tif (players.get(i).equals(current)) {\n\t\t\t\t\ti += 1;\n\t\t\t\t\ti %= players.size();\n\t\t\t\t\tcurrent = players.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "acb02fdefb9ec01e50d2f17719d89a00", "score": "0.6434205", "text": "public void nextPlayer() {\n if(++currentPlayer >= players.length){\n currentPlayer = 0;\n }\n }", "title": "" }, { "docid": "16b773f314360706fae3b6e621baef4f", "score": "0.6394232", "text": "public void nextPlayer() {\n \t\tif (indexOfCurrentPlayer < players.size() - 1) {\n \t\t\tindexOfCurrentPlayer++;\n \t\t} else {\n \t\t\tindexOfCurrentPlayer = 0;\n \t\t}\n \t}", "title": "" }, { "docid": "6849f4839331bfe8bc2e7163230ee506", "score": "0.6391149", "text": "public void nextPlayer() {\r\n nextPlayerIndex++;\r\n if (nextPlayerIndex == TOTAL_PLAYERS) {\r\n nextPlayerIndex = 0;\r\n }\r\n }", "title": "" }, { "docid": "5062e85bb5d13bcd2c9034691ff9b8cb", "score": "0.6362933", "text": "protected void nextPlayer() {\n \t//we increment the index of the next player in the players list, also going\n \t//back at the beginning if we've reached the end\n currentPlayerIndex = (currentPlayerIndex + 1) % players.size();\n }", "title": "" }, { "docid": "6497fb1a980e6fbcedb9757d48882eaa", "score": "0.6262109", "text": "@Override\n public void start(){\n int i = 0 ;\n while (check()){\n for(player plr : playersList){\n if (plr.isStillInGame()) {\n int dice = (int) (Math.random() * (6 - 1 + 1) + 1); // int i = (int) (Math.random() * (max - min + 1) + min)\n plr.setPosition(dice, numberOfFields);\n Object field = listOfFields.get(plr.getPosition());\n update(plr, field);\n System.out.println(\"Player : \" + plr.getName() + \" | position : \" + plr.getPosition() + \" | money : \" + plr.getMoney());\n }\n }\n i++ ;\n System.out.println(\"_____________________ round : \" + i + \"___________\");\n }\n whoIsTheWinner() ;\n\n\n\n }", "title": "" }, { "docid": "c3975bc576267c60e6717dea98d5d240", "score": "0.62497646", "text": "public void nextPlayer() {\n\t\tplayerUp = (playerUp + 1) % pawns.length;\t\n\t}", "title": "" }, { "docid": "cda2d7584ba6b2e473cda634f1f81d4e", "score": "0.62494904", "text": "long getPlayers(int index);", "title": "" }, { "docid": "b561d78764478d1976f5404e18012860", "score": "0.6217148", "text": "private void printPlayers()\r\n {\r\n System.out.println(\"The game has the following players:\");\r\n \r\n for(Player player:players)\r\n {\r\n System.out.println(\"Player \" + player.name + \" is playing disc color \" + player.discolor);\r\n }\r\n \r\n }", "title": "" }, { "docid": "24ebf0fa1f854649cd448539d6c99951", "score": "0.6199832", "text": "public List<Player> getAllPlayers(){\n\t\tString query = \"SELECT * FROM Player\";\n\t\tResultSet result = DatabaseAccess.retrieve(query);\n\t\tArrayList<Player> ret = new ArrayList<Player>();\n\t\t\n\t\ttry {\n\t\t\twhile (result.next()) {\n\t\t\t\tPlayer Player = new Player(result.getInt(\"id\"), \n\t\t\t\t\t\tresult.getDouble(\"RankValue\"),\n\t\t\t\t\t\tresult.getString(\"PlayerTag\") \n\t\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\tPlayer.addPlayerPoints(Integer.parseInt((result.getString(\"Points\"))));\n\t\t\t\t\n\t\t\t\tret.add(Player);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "af46c0a0df5cc6c8db63fbd25f03b0d0", "score": "0.6166957", "text": "private void renderAllPlayers() {\n for (IActor player : players) {\n if (!player.isPermanentDead()) {\n DirVector position = player.getRobot().getPosition();\n TiledMapTileLayer.Cell playerCell = player.getPlayerCell();\n playerLayer.setCell(position.getX(), position.getY(), playerCell);\n }\n }\n }", "title": "" }, { "docid": "906a458dbd146c00aaad23cfd8cff12c", "score": "0.61591333", "text": "public int nextPlayer() {\n do {\n player = (player + 1) % numbers;\n } while (playersArray[player] < 0);\n return player;\n }", "title": "" }, { "docid": "874ad8914b93dcbf3374e26a1f4f3b93", "score": "0.61574453", "text": "@Override\r\n public void addPlayers(int numberOfPlayers) {\r\n for (int i = 0; i < numberOfPlayers; i++) {\r\n this.addPlayer();\r\n }\r\n }", "title": "" }, { "docid": "33e6fdf429f5c0421c1127a449e2d5dc", "score": "0.6133232", "text": "private List<Player> getPlayers() {return gameInfoPresenter.getPlayers();}", "title": "" }, { "docid": "58c3335e92007a4ce0bcc10fd01e995b", "score": "0.6132582", "text": "@Test\n\tpublic void testPlayers() {\n\t\tSet<Player> players = board.getPlayers();\n\t\t\n\t\tPlayer green = board.getPlayer(Color.GREEN);\n\t\tPlayer yellow = board.getPlayer(Color.YELLOW);\n\t\tPlayer red = board.getPlayer(Color.RED);\n\t\t\n\t\tassertEquals(players.size(),6);\n\t\tassertTrue(players.contains(green));\n\t\tassertTrue(players.contains(yellow));\n\t\tassertTrue(players.contains(red));\n\t}", "title": "" }, { "docid": "5a6963a2382f6eb888a999024d642aa5", "score": "0.61241645", "text": "private void updatePlayerNames() {\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tupdatePlayerName(i);\n\t\t}\n\t}", "title": "" }, { "docid": "aef8cfeb4538a0173099f7e1a0d2ffa1", "score": "0.6120837", "text": "List<Player> getPlayers();", "title": "" }, { "docid": "aef8cfeb4538a0173099f7e1a0d2ffa1", "score": "0.6120837", "text": "List<Player> getPlayers();", "title": "" }, { "docid": "f8420c47fdd479a34005fe7f8b39722a", "score": "0.61074895", "text": "private void nextIndex() {\n turnOfIndex = (turnOfIndex + 1) % players.size();\n }", "title": "" }, { "docid": "ab906dcd7f494ce7ef1005e31295e613", "score": "0.60794175", "text": "public void switchToNextPlayer() {\n currentPlayer = (currentPlayer + 1) % players.size();\n }", "title": "" }, { "docid": "20b53ebda0df5fe42ef64befc6ef57d7", "score": "0.60637784", "text": "public Collection<PlayerInstance> getAllPlayers()\n\t{\n\t\treturn _allPlayers.values();\n\t}", "title": "" }, { "docid": "60cec5d03ea63296a19c25bf78930c3e", "score": "0.604603", "text": "private void resetPlayersPoints() {\r\n\t\tfor(Competitor c : this.competitors)\r\n\t\t{\r\n\t\t\tc.resetPoints();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bda98aa7c31af72a493335a8d8d18741", "score": "0.60400355", "text": "public void nextPlayer() {\n\t\ti++;\t\t\t\t\t\t\t\t\t\t//increase the position of active player\n\t\tif (i==players.size()) {\t\t\t\t\t//if there are not any other players\n\t\t\ti=0;\t\t\t\t\t\t\t\t\t//active player is the first one\n\t\t}\n\t\tactivePlayer=seats[i];\n\t\tfor (Player player:players) {\n\t\t\tif (activePlayer==player.getID()) {\n\t\t\t\tplayer.setActive(true);\t\t\t\t//make him active\n\t\t\t}else {\n\t\t\t\tplayer.setActive(false);\t\t\t//make everyone else inactive\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a449add8de3fa5fd7b8df3345d5c6685", "score": "0.60293186", "text": "public static void players() {\n ModelPaginator<Player> players = new ModelPaginator(Player.class).orderBy(\"name asc\");\n players.setPageSize(50);\n render(players);\n\t}", "title": "" }, { "docid": "6ce8cd3e68e29bee72b222b80a62ee52", "score": "0.5981216", "text": "public void gameRound(ArrayList<CardPlayer> players, int countRound){\n for (int j = 0; j < players.size(); j++) {\n playCard(players.get(j).getPlayer(), players.get(j).getHand().get(countRound)); //SHOW-PRINT players first CARD\n }\n }", "title": "" }, { "docid": "d71f88146c6ff9faec5e8f0244d53fff", "score": "0.5980311", "text": "public void updatePlayers() {\r\n\t\tint myPlace = GA.board.getPlace(GA.user);\r\n\t\tPlayer p;\r\n\t\tfor (int i = 1; i < Board.NB_PLAYER_MAX; i++) {\r\n\t\t\tmyPlace = (myPlace >= Board.NB_PLAYER_MAX - 1) ? 0 : myPlace + 1;\r\n\t\t\tp = GA.board.getPlayers().get(myPlace);\r\n\t\t\tplayerViews.get(i).setPlayer(p, false);\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a05a042852ea11c13fe60aab2a0a8c4f", "score": "0.597674", "text": "private void nextPlayersGoPos() {\n \tif(playersGoPos == players.size()-1)\n \t\tplayersGoPos = 0;\n \telse\n \t\tplayersGoPos += 1;\n }", "title": "" }, { "docid": "f5788b62e91ea828b5fc966d8976d907", "score": "0.59516895", "text": "private int getOnlineMembers()\n\t{\n\t\tint i = 0;\n\t\tfor (Player player : GameObjectsStorage.getAllPlayersForIterate())\n\t\t{\n\t\t\ti++;\n\t\t}\n\t\ti = i + FakePlayersTable.getFakePlayersCount();\n\t\t\n\t\treturn i;\t\n\t}", "title": "" }, { "docid": "3401accc9041770be146835dbb0bdfb5", "score": "0.59503466", "text": "private void updatePlayers() {\n Iterator<Player> iterator = players.iterator();\n while(iterator.hasNext()){\n Player player = iterator.next();\n player.update();\n if (player.getExited()) {\n exitedPlayers.add(player);\n // A player is a special type of destroyable in which other members can set it as to be destroyed.\n // It cannot be set to be not destroyed.\n player.setToBeDestroyed();\n }\n if (player instanceof Destroyable && ((Destroyable) player).getToBeDestroyed()){\n System.out.println(\"Player will be removed\");\n if (!(this.pc.getPlayerCount() <= 0)) {\n this.pc.decreasePlayerCount();\n }\n System.out.println(\"Player count: \" + this.pc.getPlayerCount());\n iterator.remove();\n }\n }\n }", "title": "" }, { "docid": "d6f2deeb706e4b6388d618a8b1102b10", "score": "0.5946246", "text": "static void recap(ArrayList<Player> huntPlayers){\n for (int i = 0; i < huntPlayers.size(); i++){\n System.out.println(\"Player \" + i + \" found \" + huntPlayers.get(i).getNumEggs() + \" eggs\");\n \n huntPlayers.get(i).printBasket();\n System.out.println();\n }\n }", "title": "" }, { "docid": "79fd8e81a7b2cafb332c67c5a9210cc3", "score": "0.59423655", "text": "public void changeCurrentPlayer() {\n\t\tint nOfPlayers = players.size();\n\n\t\tcurrentPlayerIndex = (currentPlayerIndex + 1) % nOfPlayers;\n\t\tcurrentPlayer = players.get(currentPlayerIndex); // update the current player\n\t}", "title": "" }, { "docid": "d514a47dc7901999a19bbe68fc0c66fe", "score": "0.59379745", "text": "public Player getPlayers() {\n return this.players;\n }", "title": "" }, { "docid": "e360efba9937242d72766b39aead97f9", "score": "0.59355783", "text": "@Test\n public void getAllPlayersTest() {\n try {\n Device device = DatabaseTest.setupDevice();\n DatabaseTest.setupSession();\n DatabaseTest.setupPlayer();\n List<Player> list = PlayerQueries.getAllPlayers(device);\n\n assertEquals(2, list.size());\n assertTrue(list.contains(getPlayer(DatabaseTest.PLAYER_ID)));\n assertTrue(list.contains(getPlayer(DatabaseTest.PLAYER_ID_2)));\n } finally {\n DatabaseTest.cleanDatabase();\n }\n }", "title": "" }, { "docid": "07991b3222a86196bb3ce2766f24f2a8", "score": "0.593524", "text": "public void populatePlayer() {\n\n PreparedStatement pst = null;\n ResultSet result = null;\n\n try {\n pst = con.prepareStatement(\"SELECT * FROM Player\");\n result = pst.executeQuery();\n\n while (result.next()) {\n int id = result.getInt(1);\n String name = result.getString(2);\n int number = result.getInt(3);\n int numGoals = result.getInt(4);\n int numInfractions = result.getInt(5);\n int teamID = result.getInt(6);\n\n Player player = new Player(id, name, number);\n player.setNumGoals(numGoals);\n player.setNumInfractions(numInfractions);\n player.setTeamID(teamID);\n\n //Add to player global arraylist\n DatabaseManager.addPlayer(player, teamID);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0e2b68aeee28ffc19e7a928e184755d2", "score": "0.5932932", "text": "public static void progressAll() {\n\t\tif (instances.size() > 0)\n\t\t\tfor (Player p : instances.keySet())\n\t\t\t\tinstances.get(p).progress();\n\t}", "title": "" }, { "docid": "33dc22318516088f4d55029a1f42c028", "score": "0.5924334", "text": "public int[] getAllPlayersDice(int i) {\n return allPlayersDice[i];\n }", "title": "" }, { "docid": "d4413540f0abb9d8d78805a42db5c225", "score": "0.5913384", "text": "public void nextPlayer() {\r\n\t\tint i = currentPlayerID.get();\r\n\t\tfor (int j = 0; j < newSequence.size(); j++) {\r\n\t\t\tif (newSequence.get(j).getID() == i) {\r\n\t\t\t\tif(j == newSequence.size()-1) {\r\n\t\t\t\t\tcurrentPlayerID.set(newSequence.get(0).getID());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcurrentPlayerID.set(newSequence.get(j + 1).getID());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5d0ec07532be3e6fcbded1624f54e696", "score": "0.59038997", "text": "private void setPlayerSpawn() {\n for (int i = 0; i < players.size(); i++) {\n Entity player = players.get(i);\n PositionComponent pos = ECSManager.getInstance().positionMapper.get(player);\n\n // Spawn players with equal distance between them\n ECSManager.getInstance().b2dMapper.get(player).body.setTransform((50f + (Application.camera.viewportWidth / players.size()) * i) / PPM, pos.position.y / PPM, 0);\n }\n }", "title": "" }, { "docid": "dd0206943a997eeb8edaadd56f5cc136", "score": "0.58930075", "text": "Player[] getPlayers();", "title": "" }, { "docid": "ca8d6569cd1bc96cad6e8583517313b0", "score": "0.589016", "text": "public void addPlayers(int num) {\n for (int i = 0; i < num; i++) {\n game.addPlayer(\"Player\" + i, Integer.toString(i));\n }\n }", "title": "" }, { "docid": "60497fe71950d6801e00c6866ed95920", "score": "0.5882963", "text": "private void nextPlayer(){\n\t\tif(activePlayerIndex < gm.getGame().getPlayers().length - 1){\n\t\t\tactivePlayerIndex++;\n\t\t\tinitPlayerData();\n\t\t}else if(activePlayerIndex == gm.getGame().getPlayers().length - 1){\n\t\t\tgm.startGame();\n\t\t\tparent.swapContainer(new MainGamePanel(parent));\n\t\t\tDebugLog.logInfo(\"Started Game!\");\n\t\t}\n\t}", "title": "" }, { "docid": "4e3f51204a335806e6f86b6ab38dc37b", "score": "0.58796513", "text": "public List<Integer> getListPlayersT1() {\n return new ArrayList<>(listPlayersT1);\n }", "title": "" }, { "docid": "d79a87e191347f93d988ff7d61315d3b", "score": "0.5877422", "text": "public int getPlayablePlayers(){\n int result = 0;\n for (int i = 0; i < players.size(); i++) {\n if(players.get(i) instanceof TablePlayer){continue;}\n if(getPlayerAllIn(i)){continue;}\n if(!getStillInGame(i)){continue;}\n result++;\n }\n return result;\n }", "title": "" }, { "docid": "1f106e62839aa8e4a564354041be2b9f", "score": "0.5877334", "text": "public ArrayList<Player> getPlayers() {\n ArrayList<Player> players = new ArrayList<Player>();\n for (int i = 1; i < gamblers.size(); i++) {\n players.add((Player)gamblers.get(i));\n }\n return players;\n }", "title": "" }, { "docid": "117dfeb00eee8a64ef89c1b193120c30", "score": "0.58731693", "text": "public Set<Player> getAllPlayersInTeam(){\n return playersRepository.getPlayersByIdNotNull();\n }", "title": "" }, { "docid": "6248878fdb3fda1ca3842ca7fe0ec7cf", "score": "0.5846175", "text": "@Override\n public void onGameStart() {\n super.onGameStart();\n numPlayers = this.getNumPlayers();\n for (int i=1; i<=numPlayers; i++) {\n players.add(i);\n }\n round = 1;\n step = 1;\n connection.setAllTilesColor(players.get(0));\n Log.v(\"\",\"Game started: Number of Players:\" + numPlayers);\n }", "title": "" }, { "docid": "40eb5d7fff1e6374f5980cdd2417929d", "score": "0.5834777", "text": "@Test\r\n\tpublic void testGetPlayers() {\r\n\r\n\t\t// Make sure the number of players returned for the single player game\r\n\t\t// is 1\r\n\t\tPlayer[] singlePlayerGamePlayers = singlePlayerGame.getPlayers();\r\n\t\tint playerCount = 0;\r\n\t\tfor (int i = 0; i < singlePlayerGamePlayers.length; i++) {\r\n\t\t\tif (null != singlePlayerGamePlayers[i]) {\r\n\t\t\t\tplayerCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tassertEquals(1, playerCount);\r\n\r\n\t\t// Make sure that player is the current player\r\n\t\tassertTrue(singlePlayerGamePlayers[0].equals(singlePlayerGame\r\n\t\t\t\t.getCurrentPlayer()));\r\n\r\n\t\t// Make sure the number of players returned for the multi player game is\r\n\t\t// 2\r\n\t\tPlayer[] multiPlayerGamePlayers = multiPlayerGame.getPlayers();\r\n\t\tplayerCount = 0;\r\n\t\tfor (int i = 0; i < multiPlayerGamePlayers.length; i++) {\r\n\t\t\tif (null != multiPlayerGamePlayers[i]) {\r\n\t\t\t\tplayerCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tassertEquals(2, playerCount);\r\n\r\n\t\t// Make sure the current player is the first player in the\r\n\t\t// multiPlayerGamePlayers array\r\n\t\tassertTrue(multiPlayerGamePlayers[0].equals(multiPlayerGame\r\n\t\t\t\t.getCurrentPlayer()));\r\n\r\n\t\t// bank or farkle to change the current player, and check that player\r\n\t\t// against the array\r\n\t\tmultiPlayerGame.bank();\r\n\t\tassertTrue(multiPlayerGamePlayers[1].equals(multiPlayerGame\r\n\t\t\t\t.getCurrentPlayer()));\r\n\r\n\t}", "title": "" }, { "docid": "f19623ffa88dd1e37079e23a80ba6338", "score": "0.5826804", "text": "List<TeamPlayers> getAllTeamPlayers();", "title": "" }, { "docid": "ede4a7a36883250fa69def8549cc5761", "score": "0.58112407", "text": "public void iterate() {\n\t\titer++;\n\t}", "title": "" }, { "docid": "afe0c3eb2485d178228e201d152c25c8", "score": "0.5809725", "text": "public void defaultPlayer() {\n\t\tfor (int i = 0; i < numOfPlayer; i++) {\n\t\t\tif (i == 0) {\n\t\t\t\tPlayer player = new Player(\"You\");\n\t\t\t\tplayerList.add(player);\n\t\t\t} else {\n\t\t\t\tPlayer player = new Player(\"AI Player\" + i);\n\t\t\t\tplayerList.add(player);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4781f427cb5b040af4f34bede8ea72fe", "score": "0.58039045", "text": "private void ask_each_player_about_bets() {\n\t\tpos_betArray = new int[allPlayer.length];\n\t\tfor (Player p:allPlayer){\n\t\t\tp.sayHello();\n\t\t}\n\t\tfor (int i = 0;i < pos_betArray.length;i++){\n\t\t\tpos_betArray[i] = allPlayer[i].makeBet();\n\t\t}\n\t}", "title": "" }, { "docid": "9ee98a01e0de1d1594e594ca946f0a32", "score": "0.58024085", "text": "public Player[] getPlayers()\r\n\t{\r\n\t\t// Create an empty player list\r\n\t\tArrayList<Player> playerList = new ArrayList<>();\r\n\t\t\r\n\t\t// For each UUID in the players ArrayList\r\n\t\tfor (UUID u : players)\r\n\t\t{\r\n\t\t\t// Get player from UUID and add it to the player list\r\n\t\t\tPlayer p = Bukkit.getPlayer(u);\r\n\t\t\tplayerList.add(p);\r\n\t\t}\r\n\t\t\r\n\t\t// Return an array of every player in the arena\r\n\t\treturn playerList.toArray(new Player[playerList.size()]);\r\n\t}", "title": "" }, { "docid": "a0d62f07cda9f31b8f5bd353a1684d42", "score": "0.5800154", "text": "public void nextPlayer() {\n\n\t\t// System.out.println(turnCount);\n\t\tturnCount++;\n\t\t// System.out.println(turnCount);\n\t\tif (!landSelection) {\n\t\t\tif (turnCount < players.size())\n\t\t\t\tactivePlayer = roundOrder.get(turnCount);\n\t\t} else {\n\t\t\tif (startRoundAfterSkipLandSelect) {\n\t\t\t\tstartRoundAfterSkipLandSelect = false;\n\t\t\t} else {\n\t\t\t\tactivePlayer = origOrderPlayers.get(turnCount);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1119b8b2d01276d1b1f4722826e0a1e4", "score": "0.5799723", "text": "private void setHighestBetPlayerId(){\n //just for the first round, this is a special case\n highestBetPlayerId++;\n int counter = 0;\n for (int i = highestBetPlayerId; ; i++,counter++) {\n if(i >= players.size()){\n i=0;\n }\n if(players.get(i) instanceof TablePlayer){continue;}\n else if(counter >= 100){throw new NoPlayerInGameException(\"method highestBetPlayerId cannot set the next player, no players still in game!\");}\n else if(!getStillInGame(i)){continue;}\n else{highestBetPlayerId = i;break;}\n }\n }", "title": "" }, { "docid": "82293d66a1c2aee8c2569de7be0f7152", "score": "0.5797539", "text": "public int getPlayers() {\n return numeroDiGiocatori;\n }", "title": "" }, { "docid": "6632a87c25bf638318fbc9ff9d92b750", "score": "0.5785318", "text": "@Override\r\n public void allPlayersCreateValue() {\r\n // Loop through each player and create a new points value\r\n for (Player player : this.players) {\r\n player.createNewValue(0);\r\n }\r\n }", "title": "" }, { "docid": "7ce93ebd78aaa615c5c0bd690494828a", "score": "0.5785178", "text": "@Override\r\n public void allPlayersCreateDeck() {\r\n // Loop through all players and call createNewDeck\r\n for (int i = 0; i < this.players.size(); i++) {\r\n this.playerCreateNewDeck(i);\r\n }\r\n }", "title": "" }, { "docid": "b7442a682e8dbf5ec5b11ad2827fb25b", "score": "0.57838225", "text": "private void firstTiles() {\n\t\tSystem.err.println(\"Distributing tiles\");\n\t\tfor (int i = 0; i < players.size(); i++) {\n\t\t\tgiveTiles(players.get(i));\n\t\t}\n\t}", "title": "" }, { "docid": "365648ffc1b4dc4316d26eed3ecb73cc", "score": "0.57698715", "text": "private void checkPlayers() {\r\n try {\r\n for (Player p : players) {\r\n\r\n if (isIntersects(p)) {\r\n p.pickPowerUp(((PowerUp) (mortal)));\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.out.println(e.getCause().toString());\r\n }\r\n\r\n }", "title": "" }, { "docid": "54f6db923d892060d1c23fb41f7261ce", "score": "0.57638603", "text": "private void createPlayers()\r\n {\r\n players = new ArrayList<>();\r\n \r\n \r\n for(int i = 0; i < Constants.MAX_PLAYERS ; i++)\r\n {\r\n String name = JOptionPane.showInputDialog(null,\"Enter player's name\");\r\n \r\n Player player = new Player();\r\n \r\n player.setName(name);\r\n \r\n if(i == Constants.PLAYER_ONE)\r\n {\r\n player.setDiscolor(Constants.DARK);\r\n } \r\n else if(i == Constants.PLAYER_TWO)\r\n {\r\n player.setDiscolor(Constants.LIGHT);\r\n }\r\n \r\n players.add(player); \r\n \r\n }\r\n \r\n }", "title": "" }, { "docid": "018d2953635b3579e826b2ea651f8312", "score": "0.5758234", "text": "public static Collection<Player> getPlayers() {\n\t\treturn kernel.getPlayers();\n\t}", "title": "" }, { "docid": "79af92db74c8890128b5c8d45673af8b", "score": "0.5751093", "text": "public Player getPlayer(int i){\n\t\treturn _players.get(i);\n\t}", "title": "" }, { "docid": "e30eb499ddc1d3161f929e24715b530d", "score": "0.57497877", "text": "protobuf.clazz.Protocol.RoomPlayerResponse getPlayers(int index);", "title": "" }, { "docid": "e30eb499ddc1d3161f929e24715b530d", "score": "0.57497877", "text": "protobuf.clazz.Protocol.RoomPlayerResponse getPlayers(int index);", "title": "" }, { "docid": "e30eb499ddc1d3161f929e24715b530d", "score": "0.57497877", "text": "protobuf.clazz.Protocol.RoomPlayerResponse getPlayers(int index);", "title": "" }, { "docid": "e30eb499ddc1d3161f929e24715b530d", "score": "0.57497877", "text": "protobuf.clazz.Protocol.RoomPlayerResponse getPlayers(int index);", "title": "" }, { "docid": "e30eb499ddc1d3161f929e24715b530d", "score": "0.57497877", "text": "protobuf.clazz.Protocol.RoomPlayerResponse getPlayers(int index);", "title": "" }, { "docid": "e30eb499ddc1d3161f929e24715b530d", "score": "0.57497877", "text": "protobuf.clazz.Protocol.RoomPlayerResponse getPlayers(int index);", "title": "" }, { "docid": "e30eb499ddc1d3161f929e24715b530d", "score": "0.57497877", "text": "protobuf.clazz.Protocol.RoomPlayerResponse getPlayers(int index);", "title": "" }, { "docid": "8e1a18f1431d251fd0f3c035ebede923", "score": "0.5743666", "text": "@Override\n public int getNumOfPlayers() {\n return numOfPlayers;\n }", "title": "" }, { "docid": "98ae8c521fec958ef4d3b2213899bc33", "score": "0.5741757", "text": "private ArrayList<Player> getPlayers() {\r\n \r\n ArrayList<Player> players = new ArrayList();\r\n \r\n /* For each PlayerEditPane, construct player and add to list. */\r\n for(PlayerEditPane pep : playerEditPanes) {\r\n \r\n Player p = pep.getPlayer();\r\n Tooltip t = new Tooltip(p.getName());\r\n Tooltip.install(p, t);\r\n players.add(p);\r\n \r\n }\r\n \r\n return players;\r\n \r\n }", "title": "" }, { "docid": "75dd845f2819b2b995b612ec60c931fa", "score": "0.5737407", "text": "public List<iPlayer> getPlayers() {\n \t\treturn players;\n \t}", "title": "" }, { "docid": "2afb77b2d38085b2e3569751be5e8e89", "score": "0.5730875", "text": "private void rotatePlayers(){\n //rotate players one step\n for(int i = 0 ; i < players.size(); i++){\n if(players.get(i) instanceof TablePlayer){continue;}\n players.add(players.remove(i));\n break;\n }\n }", "title": "" }, { "docid": "e5ce05a07d763bda82fbe210ae432e77", "score": "0.5723443", "text": "public void operate_players(){\n LinkedList<Player> cblist = new LinkedList<>(transactionService.listPlayers());\n if(cblist.isEmpty()){\n transactionService.addPlayer(new Player(\"JANET_YELLEN\", 40));\n transactionService.addPlayer(new Player(\"WARREN_BUFFET\", 20));\n transactionService.addPlayer(new Player(\"B1LL_NYE\", 50));\n cblist = new LinkedList<>(transactionService.listPlayers());\n }\n operate(cblist.get((int)(Math.random()*cblist.size())));\n\n }", "title": "" }, { "docid": "fa40229be856b3bd96afa1e8d64a68c3", "score": "0.5722054", "text": "private void readPlayers(Packet _packet, int _numPlayers) {\n for (int i = 0; i < _numPlayers; i++) {\n // Read Basic Info\n String name = _packet.getData().readString();\n int id = _packet.getData().readByte();\n int idx = _packet.getData().readByte();\n boolean ready = _packet.getData().readBoolean();\n\n // Read ship color\n float sR = (_packet.getData().readByte() & 0xFF) / 255f;\n float sG = (_packet.getData().readByte() & 0xFF) / 255f;\n float sB = (_packet.getData().readByte() & 0xFF) / 255f;\n\n // Read trail color\n float tR = (_packet.getData().readByte() & 0xFF) / 255f;\n float tG = (_packet.getData().readByte() & 0xFF) / 255f;\n float tB = (_packet.getData().readByte() & 0xFF) / 255f;\n\n // Create a new client with the read data.\n Player player = new Player(name);\n player.setShipIndex(idx);\n player.setShipColor(new float[] { sR, sG, sB, 1 });\n player.setTrailColor(new float[] { tR, tG, tB, 1 });\n player.setReady(ready);\n\n // Add the client into the array.\n players[id] = player;\n }\n }", "title": "" }, { "docid": "7bafa078950aec596a8ab4ff91a8047d", "score": "0.57194006", "text": "public int getHumanPlayers() {\n return humanPlayers;\n }", "title": "" }, { "docid": "62706f82b3842a562cc014f3ce7abf93", "score": "0.5716714", "text": "@Override\n\tpublic int getNumPlayers() {\n\t\treturn numPlayer;\n\t}", "title": "" }, { "docid": "f85b3f0d10f870f71b09fc02df8268bf", "score": "0.57037157", "text": "public void retrieveNextPlayer() {\n\n //va avanti fino a quando trova il primo nodo attivo\n \n while(!link.nodes[((currentPlayer + 1) % players.length)].getActive()) {\n board.clearOldPlayer(currentPlayer);\n setCurrentPlayer((currentPlayer + 1) % players.length);\n }\n board.clearOldPlayer(currentPlayer);\n setCurrentPlayer((currentPlayer + 1) % players.length);\n board.setCurrentPlayer(currentPlayer);\n\n }", "title": "" }, { "docid": "c74104e0b9d154a78df9867b686091ee", "score": "0.56952345", "text": "@Override public ImmutableSet<Piece> getPlayers() {\n\t\t\treturn ImmutableSet.copyOf(\n\t\t\t\t\tthis.everyone.stream().map(Player::piece).collect(Collectors.toSet())\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "f6148065beb4119ebd3475261b253d5c", "score": "0.5688009", "text": "public int getNumPlayers() {\n return players.size();\n }", "title": "" }, { "docid": "34f0f2fe47fe708ad9db63ab95b48283", "score": "0.5665429", "text": "public static void sortPlayers() {\n int j;\n boolean flag = true;\n Player temp;\n while (flag) {\n flag = false;\n for (j = 0; j < playerCount - 1; j++) {\n if (PLAYERS[j].hashCode() < PLAYERS[j + 1].hashCode()) {\n temp = PLAYERS[j];\n PLAYERS[j] = PLAYERS[j + 1];\n PLAYERS[j + 1] = temp;\n flag = true;\n }\n }\n }\n }", "title": "" }, { "docid": "36cf1fb87f8ce26d2fe662912697fdda", "score": "0.5662898", "text": "public void startingBids() {\n ArrayList<Player> players = getPlayers();\n for (Player player : players) {\n player.startingBid();\n }\n }", "title": "" }, { "docid": "aec0cc8bad7a82e1c10c50ecf77fd855", "score": "0.56592625", "text": "@Override\n public int getNextPlayer() {\n //TODO Implement this method * DONE *\n return (currentPlayer == 0 ? 0 : 1);\n\n\n }", "title": "" }, { "docid": "fc4d555a17f2056a9cc78ec340e9afcf", "score": "0.56483585", "text": "public synchronized Player[] getPlayers() {\n \n if (players == null) {\n try{\n System.out.println(\"Waiting for other players...\");\n wait();\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }\n }\n return players;\n }", "title": "" }, { "docid": "dd26f42b79e6901967430728e6bf97e0", "score": "0.5640358", "text": "public int getPlayersCount() {\n return players_.size();\n }", "title": "" }, { "docid": "dd26f42b79e6901967430728e6bf97e0", "score": "0.5640358", "text": "public int getPlayersCount() {\n return players_.size();\n }", "title": "" }, { "docid": "dd26f42b79e6901967430728e6bf97e0", "score": "0.5640358", "text": "public int getPlayersCount() {\n return players_.size();\n }", "title": "" }, { "docid": "dd26f42b79e6901967430728e6bf97e0", "score": "0.5640358", "text": "public int getPlayersCount() {\n return players_.size();\n }", "title": "" }, { "docid": "dd26f42b79e6901967430728e6bf97e0", "score": "0.5640358", "text": "public int getPlayersCount() {\n return players_.size();\n }", "title": "" }, { "docid": "dd26f42b79e6901967430728e6bf97e0", "score": "0.5640358", "text": "public int getPlayersCount() {\n return players_.size();\n }", "title": "" }, { "docid": "dd26f42b79e6901967430728e6bf97e0", "score": "0.5640358", "text": "public int getPlayersCount() {\n return players_.size();\n }", "title": "" }, { "docid": "67ef85dbd61fa9e22e62ed645a038e65", "score": "0.5640315", "text": "public int getPlayerNumbers() {\n return numberOfPlayers;\n }", "title": "" }, { "docid": "dc2e141fa3caed50ece1700146588368", "score": "0.5630966", "text": "private void followThePlayer() {\n List<Player> players = getObjectsInRange(900, Player.class);\n int nPlayers = players.size();\n if (nPlayers >= 1) {\n Player player = ((BaseWorld) getWorld()).getPlayer();\n int playerX = player.getX();\n int playerY = player.getY();\n turnTowards(playerX, playerY);\n }\n }", "title": "" }, { "docid": "5afa7af2da4c0a00abfdcec0446a1b8c", "score": "0.56303036", "text": "public void makePlayers(){\r\n\t\tString name = \"\";\r\n\t\tfor(int i = 0; i < 10; i++){\r\n\t\t\tSystem.out.println(\"Hi what is your name?\");\r\n\t\t\tname = scanner.nextLine();\r\n\t\t\tplayerList.add(name);\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" } ]
4891500ffa56807a368e0ce9c3cf9888
only cache http(s) GET requests
[ { "docid": "3f58ca941c74f6368889ce0781eaab8a", "score": "0.5870175", "text": "@Override\n\tpublic CacheRequest put(URI uri, URLConnection conn) throws IOException\n\t{\n\t\tif (!(conn instanceof HttpURLConnection) || !(((HttpURLConnection) conn).getRequestMethod().equals(\"GET\")))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tFile localFile = getLocalFile(uri);\n\t\t\n\t\tif (localFile == null)\n\t\t{\n\t\t\t// we don't want to cache this URL \n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tnew File(localFile.getParent()).mkdirs();\n\t\treturn new LocalCacheRequest(localFile);\n\t}", "title": "" } ]
[ { "docid": "a0645b1f4c52fab18ead48b94dda2669", "score": "0.68887067", "text": "private boolean canUseCache(HttpRequest request)\n {\n Header[] cacheHeaders = request.getHeaders(\"Cache-Control\");\n for (Header h : cacheHeaders) {\n String hval = h.getValue();\n if (hval.equals(\"no-store\") || hval.equals(\"no-cache\"))\n return false;\n }\n\n return request.getRequestLine().getMethod().toUpperCase(Locale.ENGLISH).equals(\"GET\");\n }", "title": "" }, { "docid": "b5eaf69164ac32e02d10d4b523a5b162", "score": "0.6539091", "text": "protected void setCaching(HttpServletRequest request, HttpServletResponse response) {\n long now = System.currentTimeMillis();\n long oneYear = 31363200000L;\n \n String referer = request.getHeader(\"referer\");\n if (referer.indexOf(\"nocache\") != -1) {\n response.setHeader(\"Cache-Control\", \"no-cache, no-store, must-revalidate\");\n } else {\n response.setHeader(\"Cache-Control\", \"Public\");\n response.setDateHeader(\"Expires\", now + oneYear);\n }\n }", "title": "" }, { "docid": "24e86f6c64794c13e6640991d49fdfee", "score": "0.644946", "text": "boolean useCache();", "title": "" }, { "docid": "7a508900f8aeac922b32b905e0b180a5", "score": "0.63515055", "text": "AppCache getCache();", "title": "" }, { "docid": "236426d3bc9aed7779174f068bebf2e3", "score": "0.62942564", "text": "boolean getCacheHit();", "title": "" }, { "docid": "112355732802e2823147ed908e0dc4fa", "score": "0.62785554", "text": "protected void installHttpCache() {\n \t\tfinal long cacheMaxSize = 10 * 1024 * 1024;\n \t\tfinal File httpCacheDir = new File(\n \t\t\t\tEnvironment.getDownloadCacheDirectory(), \"http-cache\");\n \n \t\ttry {\n \t\t\tcom.integralblue.httpresponsecache.HttpResponseCache.install(\n \t\t\t\t\thttpCacheDir, cacheMaxSize);\n \t\t} catch (IOException ex) {\n \t\t\tLog.e(\"Unable to install Response Cache.\");\n \t\t}\n \t}", "title": "" }, { "docid": "a8cd17509c99f94c8d89f158f547ee74", "score": "0.6234382", "text": "@Override\n protected boolean isPathCacheable()\n {\n return true;\n }", "title": "" }, { "docid": "b6771bc51a9dc557f059995ce254c4f1", "score": "0.6234018", "text": "@Override\n public void trackConditionalCacheHit() {\n }", "title": "" }, { "docid": "e1ff438998404c256db34da9474e2282", "score": "0.62163687", "text": "public Cache getCache();", "title": "" }, { "docid": "bf7a83cebf85b7535f2a7362f9f1f1b4", "score": "0.6166562", "text": "void cache(CacheRequest request) throws AlluxioException, IOException;", "title": "" }, { "docid": "f70b8172779139a8d85163ec572d5200", "score": "0.61616266", "text": "@Provides\n @Singleton\n Cache provideHttpCache(Application application) {\n int cacheSize = 10 * 1024 * 1024; // 10 MB\n Cache cache = new Cache(application.getCacheDir(), cacheSize);\n return cache;\n }", "title": "" }, { "docid": "5b6ee538b2e2552f81d8d7c2651ff5a9", "score": "0.61400384", "text": "boolean getCacheValidatedWithOriginServer();", "title": "" }, { "docid": "df8faa755ff0fa32a99288a3f12caaec", "score": "0.61194336", "text": "protected boolean shouldCacheResponse()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "021a69b1244359b009a97cab91a1344f", "score": "0.61019564", "text": "public boolean isCacheable();", "title": "" }, { "docid": "cf8aea3ffa37a2fd697bfbfbb9b8e977", "score": "0.6090638", "text": "public abstract boolean useSharedCache();", "title": "" }, { "docid": "315cd6ca986802af27e147843feeee3d", "score": "0.6020856", "text": "private static boolean checkCacheForURLV2(final String targetURL,final AsyncResponse responseData,final Semaphore completionSemaphore,final long timeoutInMS,final boolean skipHTTPFetch) {\n \n try {\n final String normalizedURL = URLUtils.canonicalizeURL(targetURL,true);\n final long urlFingerprint = URLFingerprint.generate64BitURLFPrint(normalizedURL);\n \n //1. check cache for data \n CacheItem item = ProxyServer.getSingleton().getCache().checkCacheForItemInWorkerThread(normalizedURL,urlFingerprint);\n \n if (item != null) {\n // if redirected ... get redirected url ... \n if ((item.getFlags() & (CacheItem.Flags.Flag_IsPermanentRedirect|CacheItem.Flags.Flag_IsTemporaryRedirect)) != 0) {\n LOG.info(\"Redirect Detected for TargetURL:\" + targetURL + \" Checking Cache for Final URL:\" + item.getFinalURL());\n // resubmit the request to the cache \n return checkCacheForURLV2(item.getFinalURL(), responseData, completionSemaphore,timeoutInMS,skipHTTPFetch);\n }\n // otherwise no redirects detected .. \n else { \n LOG.info(\"Servicing Response for URL:\" + targetURL + \" via cache. Item Content Size is:\" + item.getContent().getCount());\n // if cached data is available ... \n // set the appropriate data member in the response object ... \n // and return to the calling thread (so that it can do the blocking io to service the request)\n responseData.setCacheItemRespone(item);\n return false;\n }\n }\n else {\n ProxyServer.getSingleton().getEventLoop().setTimer(new Timer(0,false,new Timer.Callback() {\n\n @Override\n public void timerFired(Timer timer) {\n LOG.info(\"Query Master Offline. Sending Request:\" + targetURL + \" directly to crawler\");\n // otherwise skip and go direct to crawler queue ... \n queueHighPriorityURLRequest(targetURL, urlFingerprint, responseData, completionSemaphore,timeoutInMS,skipHTTPFetch);\n } \n }));\n \n // response will complete asynchronously ... \n return true;\n }\n }\n catch(MalformedURLException e){ \n responseData.setHttpErrorResponse(400,\"Malformed Exception parsing URL:\" + targetURL);\n }\n // immdediate response \n return false;\n \n }", "title": "" }, { "docid": "80450194879c601091b046c773f3cddc", "score": "0.60201323", "text": "private static boolean checkCacheForURL(final String targetURL,final AsyncResponse responseData,final Semaphore completionSemaphore,final long timeoutInMS,final boolean skipHTTPFetch) {\n \n try {\n final String normalizedURL = URLUtils.canonicalizeURL(targetURL,true);\n final long urlFingerprint = URLFingerprint.generate64BitURLFPrint(normalizedURL);\n \n //1. check cache for data \n ProxyServer.getSingleton().getCache().checkCacheForItem(normalizedURL,urlFingerprint, new CacheItemCheckCallback() {\n\n @Override\n public void cacheItemAvailable(String url, CacheItem item) {\n \n // if redirected ... get redirected url ... \n if ((item.getFlags() & (CacheItem.Flags.Flag_IsPermanentRedirect|CacheItem.Flags.Flag_IsTemporaryRedirect)) != 0) {\n LOG.info(\"Redirect Detected for TargetURL:\" + targetURL + \" Checking Cache for Final URL:\" + item.getFinalURL());\n // resubmit the request to the cache \n if (!checkCacheForURL(item.getFinalURL(), responseData, completionSemaphore,timeoutInMS,skipHTTPFetch)) { \n // immediate failure detected ...\n responseData.setHttpErrorResponse(400,\"Malformed Exception parsing Redirect URL:\" + item.getFinalURL());\n // release completion semaphore \n completionSemaphore.release(); \n }\n }\n // otherwise no redirects detected .. \n else { \n LOG.info(\"Servicing Response for URL:\" + url + \" via cache. Item Content Size is:\" + item.getContent().getCount());\n // if cached data is available ... \n // set the appropriate data member in the response object ... \n // and return to the calling thread (so that it can do the blocking io to service the request)\n responseData.setCacheItemRespone(item);\n // release completion semaphore \n completionSemaphore.release();\n }\n }\n\n @Override\n public void cacheItemNotFound(String url) {\n \n // 2. time to hit the query master server (if available)\n if (false /*ProxyServer.getSingleton().isConnectedToQueryMaster()*/) { \n LOG.info(\"Query Master Online. Sending Request:\" + targetURL + \" to queryMaster\");\n queueQueryMasterURLRequest(targetURL, urlFingerprint, responseData, completionSemaphore,timeoutInMS,skipHTTPFetch);\n }\n else {\n LOG.info(\"Query Master Offline. Sending Request:\" + targetURL + \" directly to crawler\");\n // otherwise skip and go direct to crawler queue ... \n queueHighPriorityURLRequest(targetURL, urlFingerprint, responseData, completionSemaphore,timeoutInMS,skipHTTPFetch);\n }\n // 2. ok hit the query master if available \n // \n \n } \n });\n // response will complete asynchronously ... \n return true;\n }\n catch(MalformedURLException e){ \n responseData.setHttpErrorResponse(400,\"Malformed Exception parsing URL:\" + targetURL);\n // immdediate response \n return false;\n }\n }", "title": "" }, { "docid": "7e610ae969aa7e2fa3033a40429a9306", "score": "0.60072374", "text": "boolean getCacheLookup();", "title": "" }, { "docid": "1357daac2700f6df35343052053dcdf2", "score": "0.6003176", "text": "@Override\n public void cacheItemNotFound(String url) {\n if (false /*ProxyServer.getSingleton().isConnectedToQueryMaster()*/) { \n LOG.info(\"Query Master Online. Sending Request:\" + targetURL + \" to queryMaster\");\n queueQueryMasterURLRequest(targetURL, urlFingerprint, responseData, completionSemaphore,timeoutInMS,skipHTTPFetch);\n }\n else {\n LOG.info(\"Query Master Offline. Sending Request:\" + targetURL + \" directly to crawler\");\n // otherwise skip and go direct to crawler queue ... \n queueHighPriorityURLRequest(targetURL, urlFingerprint, responseData, completionSemaphore,timeoutInMS,skipHTTPFetch);\n }\n // 2. ok hit the query master if available \n // \n \n }", "title": "" }, { "docid": "d9356d7e2c19710c5b1e10ed9e05c741", "score": "0.5990182", "text": "@Override\n public void cacheItemAvailable(String url, CacheItem item) {\n if ((item.getFlags() & (CacheItem.Flags.Flag_IsPermanentRedirect|CacheItem.Flags.Flag_IsTemporaryRedirect)) != 0) {\n LOG.info(\"Redirect Detected for TargetURL:\" + targetURL + \" Checking Cache for Final URL:\" + item.getFinalURL());\n // resubmit the request to the cache \n if (!checkCacheForURL(item.getFinalURL(), responseData, completionSemaphore,timeoutInMS,skipHTTPFetch)) { \n // immediate failure detected ...\n responseData.setHttpErrorResponse(400,\"Malformed Exception parsing Redirect URL:\" + item.getFinalURL());\n // release completion semaphore \n completionSemaphore.release(); \n }\n }\n // otherwise no redirects detected .. \n else { \n LOG.info(\"Servicing Response for URL:\" + url + \" via cache. Item Content Size is:\" + item.getContent().getCount());\n // if cached data is available ... \n // set the appropriate data member in the response object ... \n // and return to the calling thread (so that it can do the blocking io to service the request)\n responseData.setCacheItemRespone(item);\n // release completion semaphore \n completionSemaphore.release();\n }\n }", "title": "" }, { "docid": "987d5777860aabac29224e21f4d4b2b4", "score": "0.59793645", "text": "public boolean shallUseCache() {\n \t if (isPOST(nomalizedURLString)) return false;\r\n \t if (isCGI(nomalizedURLString)) return false;\r\n \t \r\n \t // -authorization cases in request\r\n \t if (requestHeader.containsKey(\"AUTHORIZATION\")) return false;\r\n \t \r\n \t // -ranges in request\r\n \t // we do not cache partial content\r\n \t if ((requestHeader != null) && (requestHeader.containsKey(\"RANGE\"))) return false;\r\n \t \r\n \t //Date d1, d2;\r\n \r\n \t // -if-modified-since in request\r\n \t // The entity has to be transferred only if it has\r\n \t // been modified since the date given by the If-Modified-Since header.\r\n \t if (requestHeader.containsKey(\"IF-MODIFIED-SINCE\")) {\r\n \t\t// checking this makes only sense if the cached response contains\r\n \t\t// a Last-Modified field. If the field does not exist, we go the safe way\r\n \t\tif (!(responseHeader.containsKey(\"Last-Modified\"))) return false;\r\n \t\t// parse date\r\n Date d1, d2;\r\n \t\td2 = responseHeader.lastModified(); if (d2 == null) d2 = new Date();\r\n \t\td1 = requestHeader.ifModifiedSince(); if (d1 == null) d1 = new Date();\r\n \t\t// finally, we shall treat the cache as stale if the modification time is after the if-.. time\r\n \t\tif (d2.after(d1)) return false;\r\n \t }\r\n \t \r\n \t boolean isNotPicture = !isPicture(responseHeader);\r\n \r\n \t // -cookies in request\r\n \t // unfortunately, we should reload in case of a cookie\r\n \t // but we think that pictures can still be considered as fresh\r\n \t if ((requestHeader.containsKey(\"COOKIE\")) && (isNotPicture)) return false;\r\n \t \r\n \t // -set-cookie in cached response\r\n \t // this is a similar case as for COOKIE.\r\n \t if ((responseHeader.containsKey(\"SET-COOKIE\")) && (isNotPicture)) return false; // too strong\r\n \t if ((responseHeader.containsKey(\"SET-COOKIE2\")) && (isNotPicture)) return false; // too strong\r\n \t \r\n \t // -pragma in cached response\r\n \t // logically, we would not need to care about no-cache pragmas in cached response headers,\r\n \t // because they cannot exist since they are not written to the cache.\r\n \t // So this IF should always fail..\r\n \t if ((responseHeader.containsKey(\"PRAGMA\")) &&\r\n \t\t(((String) responseHeader.get(\"Pragma\")).toUpperCase().equals(\"NO-CACHE\"))) return false;\r\n \t \r\n \t // calculate often needed values for freshness attributes\r\n \t Date date = responseHeader.date();\r\n \t Date expires = responseHeader.expires();\r\n \t Date lastModified = responseHeader.lastModified();\r\n \t String cacheControl = (String) responseHeader.get(\"Cache-Control\");\r\n \t \r\n \t \r\n \t // see for documentation also:\r\n \t // http://www.web-caching.com/cacheability.html\r\n \t // http://vancouver-webpages.com/CacheNow/\r\n \r\n \t // look for freshnes information\r\n \t // if we don't have any freshnes indication, we treat the file as stale.\r\n \t // no handle for freshness control:\r\n \t if ((expires == null) && (cacheControl == null) && (lastModified == null)) return false;\r\n \t \r\n \t // -expires in cached response\r\n \t // the expires value gives us a very easy hint when the cache is stale\r\n \t if (expires != null) {\r\n \t\tDate yesterday = new Date((new Date()).getTime() - oneday);\r\n \t\tif (expires.before(yesterday)) return false;\r\n \t }\r\n \t \r\n \t // -lastModified in cached response\r\n \t // we can apply a TTL (Time To Live) heuristic here. We call the time delta between the last read\r\n \t // of the file and the last modified date as the age of the file. If we consider the file as\r\n \t // middel-aged then, the maximum TTL would be cache-creation plus age.\r\n \t // This would be a TTL factor of 100% we want no more than 10% TTL, so that a 10 month old cache\r\n \t // file may only be treated as fresh for one more month, not more.\r\n \t if (lastModified != null) {\r\n \t\tif (date == null) date = new Date();\r\n \t\tlong age = date.getTime() - lastModified.getTime();\r\n \t\tif (age < 0) return false;\r\n \t\t// TTL (Time-To-Live) is age/10 = (d2.getTime() - d1.getTime()) / 10\r\n \t\t// the actual living-time is new Date().getTime() - d2.getTime()\r\n \t\t// therefore the cache is stale, if Date().getTime() - d2.getTime() > age/10\r\n \t\tif ((new Date()).getTime() - date.getTime() > age / 10) return false;\r\n \t }\r\n \t \r\n \t // -cache-control in cached response\r\n \t // the cache-control has many value options.\r\n \t if (cacheControl != null) {\r\n cacheControl = cacheControl.trim().toUpperCase();\r\n if (cacheControl.startsWith(\"PUBLIC\")) {\r\n // ok, do nothing\r\n } else if ((cacheControl.startsWith(\"PRIVATE\")) ||\r\n (cacheControl.startsWith(\"NO-CACHE\")) ||\r\n (cacheControl.startsWith(\"NO-STORE\"))) {\r\n // easy case\r\n return false;\r\n } else if (cacheControl.startsWith(\"MAX-AGE=\")) {\r\n // we need also the load date\r\n if (date == null) return false;\r\n try {\r\n long ttl = 1000 * Long.parseLong(cacheControl.substring(8)); // milliseconds to live\r\n if ((new Date()).getTime() - date.getTime() > ttl) {\r\n return false;\r\n }\r\n } catch (Exception e) {\r\n return false;\r\n }\r\n }\r\n \t }\r\n \t \r\n \t return true;\r\n \t}", "title": "" }, { "docid": "25cf1556a7925be00738d2ff61d29dbd", "score": "0.5945302", "text": "@Override\n\tpublic void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)\n\t\t\tthrows IOException, ServletException {\n\t\tif (null != expiry) {\n\t\t\t((HttpServletResponse) res).setHeader(CACHE_CONTROL, \"max-age=\" + expiry + \", public\");\n\t\t}\n\t\tchain.doFilter(req, res);\n\t}", "title": "" }, { "docid": "1b12c671536adc504b617742df5b64c9", "score": "0.5944047", "text": "File cache();", "title": "" }, { "docid": "b40b44130f516b009d5fa59f04d6dd5b", "score": "0.59438634", "text": "public ListenableFuture<V> get(final K request) {\n ListenableFuture<V> cacheLookUp = EXECUTOR.submit(() -> cache.getIfPresent(request));\n return Futures.transformAsync(cacheLookUp, fromCache -> {\n if (fromCache != null) {\n return Futures.immediateFuture(fromCache);\n }\n return Futures.transform(fetch(request), fromServer -> {\n if (isSuccessful(fromServer)) {\n cache.put(request, fromServer);\n }\n return fromServer;\n });\n });\n }", "title": "" }, { "docid": "d6c32d7bdca9779f321b89062f8ebff3", "score": "0.59416926", "text": "public boolean shouldCachePage ()\n {\n return !_isSelfRedirect;\n }", "title": "" }, { "docid": "a978b711c00c156f3d6e8d9ec41d9852", "score": "0.59388524", "text": "public Search requestCache(boolean requestCache){\n\t\taddParams(\"requestCache\", requestCache);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "9dc4303715345d007deff0a724a73dbe", "score": "0.5867583", "text": "T queryCache();", "title": "" }, { "docid": "ab6c546f4daee15cdbc27ad77efeb684", "score": "0.5839816", "text": "@Provides\n @Singleton\n Cache provideCache(Application application) {\n long cacheSize = 10 * 1024 * 1024; // 10 MB\n File httpCacheDirectory = new File(application.getCacheDir(), \"http-cache\");\n return new Cache(httpCacheDirectory, cacheSize);\n }", "title": "" }, { "docid": "29970f3a44b14c198c4bffdbb8032fc3", "score": "0.58292687", "text": "public String shallIndexCacheForProxy() {\n if (!(profile.localIndexing())) return \"Indexing_Not_Allowed\";\r\n \r\n \t // -CGI access in request\r\n \t // CGI access makes the page very individual, and therefore not usable in caches\r\n \t if ((isPOST(nomalizedURLString)) && (!(profile.crawlingQ()))) return \"Dynamic_(POST)\";\r\n if ((isCGI(nomalizedURLString)) && (!(profile.crawlingQ()))) return \"Dynamic_(CGI)\";\r\n \t \r\n \t // -authorization cases in request\r\n \t // we checked that in shallStoreCache\r\n \t \r\n \t // -ranges in request\r\n \t // we checked that in shallStoreCache\r\n \t \r\n \t // a picture cannot be indexed\r\n \t if (isPicture(responseHeader)) return \"Media_Content_(Picture)\";\r\n \t if (!(isText(responseHeader))) return \"Media_Content_(not_text)\";\r\n \t if (noIndexingURL(nomalizedURLString)) return \"Media_Content_(forbidden)\";\r\n \r\n \t \r\n \t // -if-modified-since in request\r\n \t // if the page is fresh at the very moment we can index it\r\n \t if ((requestHeader != null) &&\r\n (requestHeader.containsKey(\"IF-MODIFIED-SINCE\")) &&\r\n (responseHeader.containsKey(\"Last-Modified\"))) {\r\n \t\t// parse date\r\n Date d1, d2;\r\n \t\td2 = responseHeader.lastModified(); if (d2 == null) d2 = new Date();\r\n \t\td1 = requestHeader.ifModifiedSince(); if (d1 == null) d1 = new Date();\r\n \t\t// finally, we shall treat the cache as stale if the modification time is after the if-.. time\r\n \t\tif (d2.after(d1)) {\r\n \t\t //System.out.println(\"***not indexed because if-modified-since\");\r\n \t\t return \"Stale_(Last-Modified>Modified-Since)\";\r\n \t\t}\r\n \t }\r\n \t \r\n \t // -cookies in request\r\n \t // unfortunately, we cannot index pages which have been requested with a cookie\r\n \t // because the returned content may be special for the client\r\n \t if ((requestHeader != null) && (requestHeader.containsKey(\"COOKIE\"))) {\r\n \t\t//System.out.println(\"***not indexed because cookie\");\r\n \t\treturn \"Dynamic_(Requested_With_Cookie)\";\r\n \t }\r\n \r\n \t // -set-cookie in response\r\n \t // the set-cookie from the server does not indicate that the content is special\r\n \t // thus we do not care about it here for indexing\r\n \r\n \t // -pragma in cached response\r\n \t if ((responseHeader.containsKey(\"PRAGMA\")) &&\r\n \t\t(((String) responseHeader.get(\"Pragma\")).toUpperCase().equals(\"NO-CACHE\"))) return \"Denied_(pragma_no_cache)\";\r\n \r\n \t // see for documentation also:\r\n \t // http://www.web-caching.com/cacheability.html\r\n \t \r\n \t // calculate often needed values for freshness attributes\r\n \t Date date = responseHeader.date();\r\n \t Date expires = responseHeader.expires();\r\n \t Date lastModified = responseHeader.lastModified();\r\n \t String cacheControl = (String) responseHeader.get(\"Cache-Control\");\r\n \t \r\n \t // look for freshnes information\r\n \t \r\n \t // -expires in cached response\r\n \t // the expires value gives us a very easy hint when the cache is stale\r\n \t // sometimes, the expires date is set to the past to prevent that a page is cached\r\n \t // we use that information to see if we should index it\r\n \t if (expires != null) {\r\n \t\tDate yesterday = new Date((new Date()).getTime() - oneday);\r\n \t\tif (expires.before(yesterday)) return \"Stale_(Expired)\";\r\n \t }\r\n \t \r\n \t // -lastModified in cached response\r\n \t // this information is too weak to use it to prevent indexing\r\n \t // even if we can apply a TTL heuristic for cache usage\r\n \t \r\n \t // -cache-control in cached response\r\n \t // the cache-control has many value options.\r\n \t if (cacheControl != null) {\r\n cacheControl = cacheControl.trim().toUpperCase();\r\n /* we have the following cases for cache-control:\r\n \"public\" -- can be indexed\r\n \"private\", \"no-cache\", \"no-store\" -- cannot be indexed\r\n \"max-age=<delta-seconds>\" -- stale/fresh dependent on date\r\n */\r\n if (cacheControl.startsWith(\"PUBLIC\")) {\r\n // ok, do nothing\r\n } else if ((cacheControl.startsWith(\"PRIVATE\")) ||\r\n (cacheControl.startsWith(\"NO-CACHE\")) ||\r\n (cacheControl.startsWith(\"NO-STORE\"))) {\r\n // easy case\r\n return \"Stale_(denied_by_cache-control=\" + cacheControl+ \")\";\r\n } else if (cacheControl.startsWith(\"MAX-AGE=\")) {\r\n // we need also the load date\r\n if (date == null) return \"Stale_(no_date_given_in_response)\";\r\n try {\r\n long ttl = 1000 * Long.parseLong(cacheControl.substring(8)); // milliseconds to live\r\n if ((new Date()).getTime() - date.getTime() > ttl) {\r\n //System.out.println(\"***not indexed because cache-control\");\r\n return \"Stale_(expired_by_cache-control)\";\r\n }\r\n } catch (Exception e) {\r\n return \"Error_(\" + e.getMessage() + \")\";\r\n }\r\n }\r\n \t }\r\n \t \r\n \t return null;\r\n \t}", "title": "" }, { "docid": "aabb9c83f17a5da9c698ec842ce048e0", "score": "0.5815173", "text": "public Cache getCache()\n/* */ {\n/* 60 */ return this.cache;\n/* */ }", "title": "" }, { "docid": "6e4aad180d1cbeba2f9d6c3259c6c02c", "score": "0.5797866", "text": "String getCacheBust();", "title": "" }, { "docid": "bbd28a969ad7433c4f516b3db636e92d", "score": "0.57746875", "text": "@Override\r\n\tpublic boolean isCache() {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "59cc5c38eb34ad5b45560b707cf15b01", "score": "0.57706076", "text": "public String GetIfExists(String url, Optional<Long> timeout){\n url = url.replaceAll(\"/$\", \"\");\n\n // Time of request\n Date currentDate = new Date();\n\n if(cache.containsKey(url)){\n CacheEntry cacheEntry = cache.get(url);\n\n // If the user has specified a new timeout use it else use existing one.\n if(timeout.isPresent()){\n cacheEntry.TimeToLive = timeout.get();\n }\n else {\n // no change use the existing timeout.\n }\n\n long timeDiff = currentDate.getTime() - cacheEntry.TimeOfEntry.getTime();\n\n\n // See if we can use the cached data.\n if(timeDiff < cacheEntry.TimeToLive){\n System.out.println(\"Retrieved from cache.\");\n return cacheEntry.WebsiteBody;\n }\n }\n\n // Not found in cache.\n System.out.println(\"Not present in cache or expired.\");\n return null;\n }", "title": "" }, { "docid": "248d4d9d8c58c9ea05df87796ca0e343", "score": "0.5744499", "text": "public String shallStoreCache() {\r\n // returns NULL if the answer is TRUE\r\n // in case of FALSE, the reason as String is returned\r\n \t \r\n // check profile\r\n if (!(profile.storeHTCache())) return \"storage_not_wanted\";\r\n \r\n \t // decide upon header information if a specific file should be stored to the cache or not\r\n \t // if the storage was requested by prefetching, the request map is null\r\n \t \r\n \t // check status code\r\n \t if (!((responseStatus.startsWith(\"200\")) || (responseStatus.startsWith(\"203\")))) return \"bad_status_\" + responseStatus.substring(0,3);\r\n \t \r\n \t // check storage location\r\n \t // sometimes a file name is equal to a path name in the same directory;\r\n \t // or sometimes a file name is equal a directory name created earlier;\r\n \t // we cannot match that here in the cache file path and therefore omit writing into the cache\r\n \t if ((cacheFile.getParentFile().isFile()) || (cacheFile.isDirectory())) return \"path_ambiguous\";\r\n \t if (cacheFile.toString().indexOf(\"..\") >= 0) return \"path_dangerous\";\r\n \r\n \t // -CGI access in request\r\n \t // CGI access makes the page very individual, and therefore not usable in caches\r\n \t if ((isPOST(nomalizedURLString)) && (!(profile.crawlingQ()))) return \"dynamic_post\";\r\n if (isCGI(nomalizedURLString)) return \"dynamic_cgi\";\r\n \t \r\n \t // -authorization cases in request\r\n \t // authorization makes pages very individual, and therefore we cannot use the\r\n \t // content in the cache\r\n \t if ((requestHeader != null) && (requestHeader.containsKey(\"AUTHORIZATION\"))) return \"personalized\";\r\n \t \r\n \t // -ranges in request and response\r\n \t // we do not cache partial content\r\n \t if ((requestHeader != null) && (requestHeader.containsKey(\"RANGE\"))) return \"partial\";\r\n \t if ((responseHeader != null) && (responseHeader.containsKey(\"CONTENT-RANGE\"))) return \"partial\";\r\n \t \r\n \t // -if-modified-since in request\r\n \t // we do not care about if-modified-since, because this case only occurres if the\r\n \t // cache file does not exist, and we need as much info as possible for the indexing\r\n \t \r\n \t // -cookies in request\r\n \t // we do not care about cookies, because that would prevent loading more pages\r\n \t // from one domain once a request resulted in a client-side stored cookie\r\n \t \r\n \t // -set-cookie in response\r\n \t // we do not care about cookies in responses, because that info comes along\r\n \t // any/many pages from a server and does not express the validity of the page\r\n \t // in modes of life-time/expiration or individuality\r\n \t \r\n \t // -pragma in response\r\n \t // if we have a pragma non-cache, we don't cache. usually if this is wanted from\r\n \t // the server, it makes sense\r\n \t if ((responseHeader.containsKey(\"PRAGMA\")) &&\r\n \t\t(((String) responseHeader.get(\"Pragma\")).toUpperCase().equals(\"NO-CACHE\"))) return \"controlled_no_cache\";\r\n \t \r\n \t // -expires in response\r\n \t // we do not care about expires, because at the time this is called the data is\r\n \t // obvious valid and that header info is used in the indexing later on\r\n \t \r\n \t // -cache-control in response\r\n \t // the cache-control has many value options.\r\n \t String cacheControl = (String) responseHeader.get(\"Cache-Control\");\r\n \t if (cacheControl != null) {\r\n cacheControl = cacheControl.trim().toUpperCase();\r\n if (cacheControl.startsWith(\"MAX-AGE=\")) {\r\n // we need also the load date\r\n Date date = responseHeader.date();\r\n if (date == null) return \"stale_no_date_given_in_response\";\r\n try {\r\n long ttl = 1000 * Long.parseLong(cacheControl.substring(8)); // milliseconds to live\r\n if ((new Date()).getTime() - date.getTime() > ttl) {\r\n //System.out.println(\"***not indexed because cache-control\");\r\n return \"stale_expired\";\r\n }\r\n } catch (Exception e) {\r\n return \"stale_error_\" + e.getMessage() + \")\";\r\n }\r\n }\r\n \t }\r\n \r\n \t \r\n \t return null;\r\n \t}", "title": "" }, { "docid": "72f9d02953715b24bb286b1190539442", "score": "0.5740165", "text": "protected static final void setNoCaching(HttpServletResponse res) {\r\n res.setHeader(\"Expires\", \"0\");\r\n res.setHeader(\"Pragma\", \"no-cache\");\r\n res.setHeader(\"Cache-Control\", \"no-cache\");\r\n }", "title": "" }, { "docid": "c9cc5eb97ffb208d860247bd33e08edd", "score": "0.5736703", "text": "public boolean isNoCache()\n {\n return _isNoCache;\n }", "title": "" }, { "docid": "cf2f93360cb9b34d1bc70d86e7705558", "score": "0.57304156", "text": "private boolean handleNotModified(boolean isTop)\n throws IOException\n {\n if (_statusCode != SC_NOT_MODIFIED) {\n return false;\n }\n else if (_cacheEntry != null) {\n if (_originalResponseStream.isCommitted())\n return false;\n \n // need to unclose because the not modified might be detected only\n // when flushing the data\n _originalResponseStream.clearClosed();\n _isClosed = false;\n \n /* XXX: complications with filters */\n if (_cacheInvocation != null &&\n _cacheInvocation.fillFromCache((CauchoRequest) _originalRequest,\n this, _cacheEntry, isTop)) {\n _cacheEntry.updateExpiresDate();\n _cacheInvocation = null;\n _cacheEntry = null;\n \n finish(); // Don't force a flush to avoid extra TCP packet\n \n return true;\n }\n }\n // server/13dh\n else if (_cacheInvocation != null) {\n CauchoRequest req = (CauchoRequest) _originalRequest;\n Application app = req.getApplication();\n \n long maxAge = app.getCacheTime(req.getRequestURI());\n \n if (maxAge > 0 && ! containsHeader(\"Expires\")) {\n \tsetDateHeader(\"Expires\", maxAge + Alarm.getCurrentTime());\n }\n }\n \n return false;\n }", "title": "" }, { "docid": "cbe17ce8ce7129cb7b0aa5afac36308a", "score": "0.5709208", "text": "public static void cacheCrawlURLResult(CrawlURL urlResult,Semaphore optionalCompletionSempahore) { \n try { \n // first check to see this was a redirect ... \n if ((urlResult.getFlags() & CrawlURL.Flags.IsRedirected) != 0) {\n \n // check to see if canonical urls are the same \n String originalCanonicalURL = URLUtils.canonicalizeURL(urlResult.getUrl(),true);\n String redirectCanonicalURL = URLUtils.canonicalizeURL(urlResult.getRedirectURL(),true);\n \n if (!originalCanonicalURL.equals(redirectCanonicalURL)) { \n // try to cache the redirect ... \n CacheItem cacheItem = new CacheItem();\n \n cacheItem.setUrlFingerprint(urlResult.getFingerprint());\n cacheItem.setUrl(URLUtils.canonicalizeURL(urlResult.getUrl(),true));\n cacheItem.setFinalURL(urlResult.getRedirectURL());\n cacheItem.setSource((byte)CacheItem.Source.WebRequest);\n cacheItem.setHeaderItems(populateHeaders(urlResult.getOriginalHeaders()));\n cacheItem.setFieldDirty(CacheItem.Field_HEADERITEMS);\n \n switch (urlResult.getOriginalResultCode()) { \n case 301: cacheItem.setFlags((byte)CacheItem.Flags.Flag_IsPermanentRedirect);break;\n default: cacheItem.setFlags((byte)CacheItem.Flags.Flag_IsTemporaryRedirect);break;\n }\n \n if ((urlResult.getFlags() & CrawlURL.Flags.TruncatedDuringDownload) !=0) { \n cacheItem.setFlags(cacheItem.getFlags() | CacheItem.Flags.Flag_WasTruncatedDuringDownload);\n }\n \n //LOG.info(\"### CACHING Item:\" + cacheItem.getUrl());\n ProxyServer.getSingleton().getCache().cacheItem(cacheItem,optionalCompletionSempahore);\n }\n }\n \n if (urlResult.getLastAttemptResult() == CrawlURL.CrawlResult.SUCCESS) { \n \n CacheItem cacheItem = new CacheItem();\n \n boolean isRedirect = (urlResult.getFlags() & CrawlURL.Flags.IsRedirected) != 0;\n \n String cannonicalURL = URLUtils.canonicalizeURL((isRedirect) ? urlResult.getRedirectURL() : urlResult.getUrl(),true);\n \n cacheItem.setUrl(cannonicalURL);\n cacheItem.setUrlFingerprint(URLFingerprint.generate64BitURLFPrint(cannonicalURL));\n cacheItem.setSource((byte)CacheItem.Source.WebRequest);\n cacheItem.setFieldDirty(CacheItem.Field_HEADERITEMS);\n cacheItem.setHeaderItems(populateHeaders(urlResult.getHeaders()));\n \n // detect content encoding \n for (ArcFileHeaderItem headerItem : cacheItem.getHeaderItems()) { \n if (headerItem.getItemKey().equalsIgnoreCase(\"content-encoding\")) { \n if (headerItem.getItemValue().equalsIgnoreCase(\"gzip\") || headerItem.getItemValue().equalsIgnoreCase(\"deflate\")) { \n // set compressed flag\n cacheItem.setFlags((byte)(cacheItem.getFlags() | CacheItem.Flags.Flag_IsCompressed));\n }\n break;\n }\n }\n cacheItem.setContent(new FlexBuffer(urlResult.getContentRaw().getReadOnlyBytes(),0,urlResult.getContentRaw().getCount()));\n \n //LOG.info(\"### CACHING Item:\" + cacheItem.getUrl());\n ProxyServer.getSingleton().getCache().cacheItem(cacheItem,optionalCompletionSempahore);\n }\n }\n catch (MalformedURLException e) { \n LOG.error(CCStringUtils.stringifyException(e));\n }\n }", "title": "" }, { "docid": "a30dac2b35667359b9ae94cd80d38bfb", "score": "0.57056385", "text": "@Nullable\n @Generated\n @Selector(\"cachedResponse\")\n public native NSCachedURLResponse cachedResponse();", "title": "" }, { "docid": "49c64d9b39ba73c0b1eb15731d34c191", "score": "0.5703062", "text": "@java.lang.Override\n public com.google.cloud.compute.v1.BackendServiceCdnPolicyBypassCacheOnRequestHeader\n getBypassCacheOnRequestHeaders(int index) {\n return bypassCacheOnRequestHeaders_.get(index);\n }", "title": "" }, { "docid": "d813d7a2081464e5276924a8ef950584", "score": "0.57008135", "text": "private static Interceptor offlineInterceptor() {\n return new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Log.d(TAG, \"offline interceptor: called.\");\n Request request = chain.request();\n\n if (!NetworkConnection.isConnected(GlobalApplication.getAppContext())) {\n CacheControl cacheControl = new CacheControl.Builder()\n .maxStale(7, TimeUnit.DAYS)\n .build();\n\n request = request.newBuilder()\n .removeHeader(HEADER_PRAGMA)\n .removeHeader(HEADER_CACHE_CONTROL)\n .cacheControl(cacheControl)\n .build();\n }\n\n return chain.proceed(request);\n }\n };\n }", "title": "" }, { "docid": "aa1767863a91713c573087ec76d674a3", "score": "0.56983083", "text": "@Test\n public void cache() {\n\n HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();\n loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient.Builder builder = new OkHttpClient.Builder();\n\n\n OkHttpClient client = builder.\n retryOnConnectionFailure(true).\n connectTimeout(15, TimeUnit.SECONDS).\n readTimeout(DEFAULT_READ_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS).\n writeTimeout(DEFAULT_WRITE_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS).\n connectTimeout(DEFAULT_CONNECT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS).\n addInterceptor(loggingInterceptor).\n build();\n\n\n Retrofit retrofit = new Retrofit.Builder().\n baseUrl(baseUrl).\n client(client).\n addCallAdapterFactory(RxJava2CallAdapterFactory.create()).\n addConverterFactory(GsonConverterFactory.create()).build();\n\n Api api = retrofit.create(Api.class);\n api.getRepos(\"gepriniusce\").\n //subscribeOn(Schedulers.io()).\n // observeOn(AndroidSchedulers.mainThread()).\n subscribe(new SingleObserver<List<Repos>>() {\n @Override\n public void onSubscribe(Disposable d) {\n System.out.println(\"正在请求\");\n }\n\n @Override\n public void onSuccess(List<Repos> repos) {\n System.out.println(\"onSuccess\");\n System.out.println(repos.get(0).getName());\n }\n\n @Override\n public void onError(Throwable e) {\n System.out.println(\"onError\");\n System.out.println(e.getMessage());\n }\n });\n\n }", "title": "" }, { "docid": "6e75abf2c9a57a5cc02a3da6a842579b", "score": "0.5684797", "text": "public HttpResponse get(String url) throws HttpException;", "title": "" }, { "docid": "cb0e3ad5a557218b8a509f59a139d31f", "score": "0.5684538", "text": "public HttpGetter(final String key) {\n super(key);\n\n duplicateTaskWeShouldJoinInsteadOfReGetting = checkForDuplicateNetworkTasks();\n }", "title": "" }, { "docid": "eac0c5e8ed558da56ae1f44dfea47a2f", "score": "0.56824374", "text": "boolean cached(File file);", "title": "" }, { "docid": "6979e099e8b203a8ba41a8fbdf2963ef", "score": "0.56699234", "text": "private static Interceptor networkInterceptor() {\n return new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Log.d(TAG, \"network interceptor: called.\");\n\n Response response = chain.proceed(chain.request());\n\n CacheControl cacheControl = new CacheControl.Builder()\n .maxAge(5, TimeUnit.SECONDS)\n .build();\n\n return response.newBuilder()\n .removeHeader(HEADER_PRAGMA)\n .removeHeader(HEADER_CACHE_CONTROL)\n .header(HEADER_CACHE_CONTROL, cacheControl.toString())\n .build();\n }\n };\n }", "title": "" }, { "docid": "6979e099e8b203a8ba41a8fbdf2963ef", "score": "0.56699234", "text": "private static Interceptor networkInterceptor() {\n return new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Log.d(TAG, \"network interceptor: called.\");\n\n Response response = chain.proceed(chain.request());\n\n CacheControl cacheControl = new CacheControl.Builder()\n .maxAge(5, TimeUnit.SECONDS)\n .build();\n\n return response.newBuilder()\n .removeHeader(HEADER_PRAGMA)\n .removeHeader(HEADER_CACHE_CONTROL)\n .header(HEADER_CACHE_CONTROL, cacheControl.toString())\n .build();\n }\n };\n }", "title": "" }, { "docid": "7a59f946a270b6cc1cb449ce5a37b4c2", "score": "0.566264", "text": "@Inject\n private ImageCache() {\n images = CacheBuilder.newBuilder()\n .maximumSize(1000)\n .expireAfterAccess(10, TimeUnit.MINUTES)\n .build(new CacheLoader<String, BufferedImage>() {\n @Override\n public BufferedImage load(final String url) throws Exception {\n return imageRetriever.getImage(url);\n }\n });\n }", "title": "" }, { "docid": "496857c365d945e789a44104d5ba5952", "score": "0.56437224", "text": "boolean getIgnoreCache();", "title": "" }, { "docid": "3b6e50b4e30db2d78036959880932bb5", "score": "0.5627232", "text": "@Test\n public void testConcurrentRequests()\n {\n CacheService service1 = (CacheService) getFactory().ensureService(\"ExtendTcpCacheService1\");\n CacheService service2 = (CacheService) getFactory().ensureService(\"ExtendTcpCacheService2\");\n\n try\n {\n NamedCache cache1 = service1.ensureCache(LOCAL_CACHE_NAME, null);\n NamedCache cache2 = service2.ensureCache(LOCAL_CACHE_NAME, null);\n\n cache1.clear();\n cache1.put(\"key1\", \"value1\");\n assertEquals(1, cache1.size());\n assertEquals(1, cache2.size());\n\n cache2.clear();\n\n assertEquals(0, cache1.size());\n assertEquals(0, cache2.size());\n }\n finally\n {\n service1.shutdown();\n service2.shutdown();\n }\n }", "title": "" }, { "docid": "3fca1eede00da2f5638624515af7ec5b", "score": "0.5615486", "text": "public abstract void cache(ServiceSupportInfo info);", "title": "" }, { "docid": "8fdfe5d3819182ac1bf6e0df4d51f7f3", "score": "0.56149364", "text": "public String shallIndexCacheForCrawler() {\n if (!(profile.localIndexing())) return \"Indexing_Not_Allowed\";\r\n \r\n \t // -CGI access in request\r\n \t // CGI access makes the page very individual, and therefore not usable in caches\r\n \t if ((isPOST(nomalizedURLString)) && (!(profile.crawlingQ()))) return \"Dynamic_(POST)\";\r\n if ((isCGI(nomalizedURLString)) && (!(profile.crawlingQ()))) return \"Dynamic_(CGI)\";\r\n \t \r\n \t // -authorization cases in request\r\n \t // we checked that in shallStoreCache\r\n \t \r\n \t // -ranges in request\r\n \t // we checked that in shallStoreCache\r\n \t \r\n \t // a picture cannot be indexed\r\n \t if (isPicture(responseHeader)) return \"Media_Content_(Picture)\";\r\n \t if (!(isText(responseHeader))) return \"Media_Content_(not_text)\";\r\n \t if (noIndexingURL(nomalizedURLString)) return \"Media_Content_(forbidden)\";\r\n \r\n \t // -if-modified-since in request\r\n \t // if the page is fresh at the very moment we can index it\r\n // -> this does not apply for the crawler\r\n \t \r\n \t // -cookies in request\r\n \t // unfortunately, we cannot index pages which have been requested with a cookie\r\n \t // because the returned content may be special for the client\r\n // -> this does not apply for a crawler\r\n \r\n \t // -set-cookie in response\r\n \t // the set-cookie from the server does not indicate that the content is special\r\n \t // thus we do not care about it here for indexing\r\n // -> this does not apply for a crawler\r\n \r\n \t // -pragma in cached response\r\n // -> in the crawler we ignore this\r\n \r\n \t // look for freshnes information\r\n \t \r\n \t // -expires in cached response\r\n \t // the expires value gives us a very easy hint when the cache is stale\r\n \t // sometimes, the expires date is set to the past to prevent that a page is cached\r\n \t // we use that information to see if we should index it\r\n \t // -> this does not apply for a crawler\r\n \t \r\n \t // -lastModified in cached response\r\n \t // this information is too weak to use it to prevent indexing\r\n \t // even if we can apply a TTL heuristic for cache usage\r\n \t \r\n \t // -cache-control in cached response\r\n \t // the cache-control has many value options.\r\n \t // -> in the crawler we ignore this\r\n \t \r\n \t return null;\r\n \t}", "title": "" }, { "docid": "6718129bec036300a36372a63c1123fb", "score": "0.5603727", "text": "@Provides\n @Singleton\n OkHttpClient provideOkhttpClient(Cache cache) {\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient.Builder httpClient = new OkHttpClient.Builder();\n httpClient.cache(cache);\n httpClient.addInterceptor(logging);\n httpClient.addNetworkInterceptor(new RequestInterceptor());\n httpClient.connectTimeout(30, TimeUnit.SECONDS);\n httpClient.readTimeout(30, TimeUnit.SECONDS);\n return httpClient.build();\n }", "title": "" }, { "docid": "614a75596e8433d7f9f7f778909e5638", "score": "0.5597324", "text": "boolean inCache(HttpRequest request) throws DbException {\r\n\t\treturn db.contains(request.getRequestLine().getUri());\r\n\t}", "title": "" }, { "docid": "cd4232d4abcfad306380eff2da11a066", "score": "0.559016", "text": "public static void enableManagerGetCacheBlockingCheck() {\n DefaultCacheManager.enableGetCacheBlockingCheck();\n }", "title": "" }, { "docid": "5bfa0264649bd596307784aa3f7adb26", "score": "0.5588127", "text": "@Override\n public void update(Response cached, Response network) throws IOException {\n }", "title": "" }, { "docid": "1a197d6901439c8fe3d5e26d749cdb1f", "score": "0.5587037", "text": "public interface IRemoteHttpCacheClient<K, V>\n extends ICacheServiceNonLocal<K, V>\n{\n /**\n * The provides an extension point. If you want to extend this and use a special dispatcher,\n * here is the place to do it.\n * <p>\n * @param attributes\n */\n void initialize( RemoteHttpCacheAttributes attributes );\n\n /**\n * Make and alive request.\n * <p>\n * @return true if we make a successful alive request.\n * @throws IOException\n */\n boolean isAlive()\n throws IOException;\n}", "title": "" }, { "docid": "bb2246122cd422e6ea923dad81105bf1", "score": "0.5586072", "text": "@Override\n public Bitmap getBitmap(String url) {\n return cache.get(url);\n }", "title": "" }, { "docid": "20de284f69e59598a4e45fdb0bef6f8e", "score": "0.5580536", "text": "public static void initializeCache() {\n// QueryUtils.hostedFiles = hostedFiles;\n try {\n QueryUtils.hostedFiles = TextFileUtils.readFileContent(FILE_LIST);\n QueryUtils.queries = TextFileUtils.readFileContent(QUERY_LIST);\n } catch (IOException e) {\n e.printStackTrace();\n System.err.println(QUERY_LIST + \" file is missing\");\n }\n }", "title": "" }, { "docid": "03b472db00f979cf5150f99f4b17aa22", "score": "0.55684125", "text": "public void test2() {\n String myKey = \"myKey\";\n String myValue;\n int myRefreshPeriod = 1000;\n try {\n // Get from the cache\n myValue = (String) admin.getFromCache(myKey, myRefreshPeriod);\n } catch (NeedsRefreshException nre) {\n try {\n // Get the value (probably from the database)\n myValue = \"This is the content retrieved.\";\n // Store in the cache\n admin.putInCache(myKey, myValue);\n updated = true;\n } finally {\n if (!updated) {\n // It is essential that cancelUpdate is called if the\n // cached content could not be rebuilt\n admin.cancelUpdate(myKey);\n }\n }\n }\n }", "title": "" }, { "docid": "13805144f0533af74e262fe30cedf203", "score": "0.5567317", "text": "public static Interceptor getOnlineInterceptor(final Context context){\n Interceptor interceptor = new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Response response = chain.proceed(chain.request());\n String headers = response.header(\"Cache-Control\");\n System.out.println(headers+\"abc1\");\n if(NetworkUtils.isConnected(context) &&\n (headers == null || headers.contains(\"no-store\") || headers.contains(\"must-revalidate\") || headers.contains(\"no-cache\") || headers.contains(\"max-age=0\"))){\n\n\n return response.newBuilder()\n .header(\"Cache-Control\", \"public, max-age=600\")\n .build();\n } else{\n\n return response;\n }\n }\n };\n\n return interceptor;\n }", "title": "" }, { "docid": "6293c6ffaff0f3bd6fa5a8e3496774ee", "score": "0.5555414", "text": "boolean isCacheAvailable();", "title": "" }, { "docid": "aec910013145cb30dad53c0a7e8df7ed", "score": "0.5546543", "text": "void IgnoreCache(HttpRequest request, HttpResponse response) {\r\n\t\ttry {\r\n\t\t\tsendRequest(request, response);\r\n\t\t\taddToCache(request, response);\r\n\t\t} catch (Internal500Exception e) {\r\n\t\t\tHttpProxy.printErr(\"500 Internal Error\");\r\n\t\t\tHttpProxy.set500Response(response);\r\n\t\t} catch (DbException e) { }\r\n\t}", "title": "" }, { "docid": "51f4b7da2fc4aefc0c4a86a44843ed72", "score": "0.554466", "text": "public interface CachePolicyService {\r\n /**\r\n *\r\n * @param r - the resource being requested\r\n * @param auth - represents the currently logged in user\r\n * @return - null to indicate no caching, or else the number of seconds the\r\n * resource should remain cached for\r\n */\r\n public Long getMaxAgeSeconds( Resource r, Auth auth );\r\n}", "title": "" }, { "docid": "9be906d54ef9d698be43590b420919bb", "score": "0.55418545", "text": "protected boolean isPrivateCache()\n {\n return ! _hasCacheControl && _isPrivateCache;\n }", "title": "" }, { "docid": "bf2e4add3eae04d166ff29ca094da73d", "score": "0.55133665", "text": "long beforeCacheClear();", "title": "" }, { "docid": "22515def3de5c4b26f682dcfab4dd024", "score": "0.5498177", "text": "public void killCache()\n {\n _allowCache = false;\n \n // server/1b15\n // setNoCache(true);\n }", "title": "" }, { "docid": "bf3bd1333acf0de5bd962e3ac9afb6c6", "score": "0.5497681", "text": "public interface ImageCache {\r\n\r\n public Bitmap get(String url);\r\n\r\n public void put(String url, Bitmap bitmap);\r\n}", "title": "" }, { "docid": "c4349ed603d1b160927e7394af5b3b86", "score": "0.54925567", "text": "private void addAssetToCache(HttpServletResponse response) {\n response.setHeader(\"Cache-Control\", \"maxage=604800, private\");\n\n DateTime expiresDate = new DateTime().plusYears(2);\n String expires = new SimpleDateFormat(\"EEE, d MMM yyyy HH:mm:ss zzz\", Locale.ENGLISH).format(expiresDate.toDate()); // HTTP header date format: Thu, 01 Dec 1994 16:00:00 GMT\n response.setHeader(\"Expires\", expires);\n }", "title": "" }, { "docid": "926535622d5b836ab8c1395dab86121c", "score": "0.5488989", "text": "public void getDontCache(String endpoint, HashMap<String, String> params, String tag,\n VolleyResponseListener<?, JSONObject> responseListener) {\n\n\n getDontCache(endpoint, null, params, tag, responseListener);\n }", "title": "" }, { "docid": "e009c9bd04c8e496c63d03a424ab4e50", "score": "0.54787433", "text": "public static void enableHttpResponseCache(Context context) throws Exception {\n\t\tlong httpCacheSize = 10 * 1024 * 1024; // 10 MiB\n\t\tFile httpCacheDir = new File(context.getCacheDir(), \"http\");\n\t\tClass.forName(\"android.net.http.HttpResponseCache\")\n\t\t.getMethod(\"install\", File.class, long.class)\n\t\t.invoke(null, httpCacheDir, httpCacheSize);\n\t}", "title": "" }, { "docid": "8ae841b0f729af7a328b3320886418dc", "score": "0.5477409", "text": "@Override\n\tpublic void carregaCache() {\n\n\t}", "title": "" }, { "docid": "ad3c599bc66656c73f1d1424a8fcef39", "score": "0.5457303", "text": "public Boolean getCachingEnabled() {\n return this.cachingEnabled;\n }", "title": "" }, { "docid": "264567e9f8f92563521375f6d9519869", "score": "0.5447154", "text": "protected Image forceCaching(Image img) throws IOException {\n if (img instanceof ImageRawStream) {\n ImageRawStream raw = (ImageRawStream)img;\n if (log.isDebugEnabled()) {\n log.debug(\"Image is made cacheable: \" + img.getInfo());\n }\n\n //Read the whole stream and hold it in memory so the image can be cached\n ByteArrayOutputStream baout = new ByteArrayOutputStream();\n InputStream in = raw.createInputStream();\n try {\n IOUtils.copy(in, baout);\n } finally {\n IOUtils.closeQuietly(in);\n }\n final byte[] data = baout.toByteArray();\n raw.setInputStreamFactory(new ImageRawStream.ByteArrayStreamFactory(data));\n return raw;\n }\n return null;\n }", "title": "" }, { "docid": "ac1416d90d72db52f831e2e7bad9a69b", "score": "0.54321784", "text": "public void cache() throws IOException {\r\n clearCache();\r\n\r\n cacheVersion();\r\n }", "title": "" }, { "docid": "7a199ff6c63691dbe55d898e90ab5356", "score": "0.54291534", "text": "public static Cache initCache(Context context) {\n File baseDir = context.getCacheDir();\n if (baseDir != null) {\n File cacheDir = new File(baseDir, \"HttpResponseCache\");\n return new Cache(cacheDir, 10 * 1024 * 1024);\n }\n return null;\n }", "title": "" }, { "docid": "5fa2e2a52244292d5e15023e7228dc8c", "score": "0.54285526", "text": "public void forceCacheExpiration() {\r\n\t\ttsCache = 0;\r\n\t}", "title": "" }, { "docid": "24e13683c796f58ad1db713fa49e4882", "score": "0.5417503", "text": "@Cacheable(value=\"first-cache\")\n// @CacheEvict(value=\"first-cache\", allEntries=true)\n// @Transactional \n public List<ExchangeList> showAllExchangesandStocks() {\n LOG.debug(\"making a call to repo...\");\n return exchangeListRepo.findAll();\n }", "title": "" }, { "docid": "3afe64daef126e964f499825ec12adf6", "score": "0.5405137", "text": "public Object get(Object key) throws CacheException;", "title": "" }, { "docid": "856d8033c2567950f70714d158835a30", "score": "0.5399808", "text": "public boolean cache() {\n return cache;\n }", "title": "" }, { "docid": "cfed7b9bcf8291f37844664fee818f39", "score": "0.53993446", "text": "public CachedResponse get(RequestToProxy requestToProxy) {\n CachedResponse responseToReturn = null;\n for (CachedResponse response : cache.values()) {\n if (response.getRequestToProxy().toString().equals(requestToProxy.toString())) {\n responseToReturn = response;\n break;\n }\n }\n if (responseToReturn != null && hasNotExpired(responseToReturn)) {\n return responseToReturn;\n }\n return null;\n }", "title": "" }, { "docid": "5eb0eb02987d1695d5f29b1afe91d5d3", "score": "0.5397856", "text": "@Override\n\tpublic void cache(T o) {\n\t}", "title": "" }, { "docid": "d3b110b41c5aff04e778cb004959fedb", "score": "0.5388599", "text": "private Observable<Bitmap> loadFromCache(String imageUrl, BitmapCache whichBitmapCache) {\n final Bitmap imageBitmap = whichBitmapCache.get(imageUrl);\n return Observable\n .just(imageBitmap)\n .compose(logCacheSource(whichBitmapCache));\n }", "title": "" }, { "docid": "a633e6fdfa55306cb82961466088ce14", "score": "0.5369998", "text": "void get(String url);", "title": "" }, { "docid": "1d44011a749ac93cbe02787e5cbf54ae", "score": "0.5361213", "text": "private void setNoCacheParameters(HttpServletResponse response) {\n response.setHeader(\"Expires\", \"-1\");\r\n\r\n // Set standard HTTP/1.1 no-cache headers.\r\n response.setHeader(\"Cache-Control\", \"no-store, no-cache, must-revalidate\");\r\n\r\n // Set IE extended HTTP/1.1 no-cache headers (use addHeader).\r\n response.addHeader(\"Cache-Control\", \"post-check=0, pre-check=0\");\r\n\r\n // Set standard HTTP/1.0 no-cache header.\r\n response.setHeader(\"Pragma\", \"no-cache\");\r\n }", "title": "" }, { "docid": "6b887b8dfe198b866e0ff50eab84bf31", "score": "0.5354954", "text": "public void test1() {\n String myKey = \"myKey\";\n String myValue;\n int myRefreshPeriod = 1000;\n try {\n // Get from the cache\n myValue = (String) admin.getFromCache(myKey, myRefreshPeriod);\n System.out.println(\"get from cache!\");\n } catch (NeedsRefreshException nre) {\n try {\n // Get the value (probably from the database)\n myValue = \"This is the content retrieved.\";\n // Store in the cache\n admin.putInCache(myKey, myValue);\n System.out.println(\"put in cache\");\n } catch (Exception ex) {\n // We have the current content if we want fail-over.\n myValue = (String) nre.getCacheContent();\n // It is essential that cancelUpdate is called if the\n // cached content is not rebuilt\n admin.cancelUpdate(myKey);\n }\n }\n }", "title": "" }, { "docid": "180161df725d5b8cdd0b719202887309", "score": "0.5332931", "text": "@Experimental\n void addCompilationCache(@Param(\"url\") String url, @Param(\"data\") String data);", "title": "" }, { "docid": "879f78a9905d3a2ad96d0921bb3a474d", "score": "0.533179", "text": "@java.lang.Override\n public boolean hasSignedUrlCacheMaxAgeSec() {\n return ((bitField0_ & 0x00000100) != 0);\n }", "title": "" }, { "docid": "c934edab7e73d2d0a6f435acace4b7d7", "score": "0.5325021", "text": "public boolean getPrivateCache()\n {\n return _isPrivateCache;\n }", "title": "" }, { "docid": "062a4980e7501a24f6eaeb09ff5dd6f5", "score": "0.53237915", "text": "public ResponseCache() {\n super();\n }", "title": "" }, { "docid": "a5284df55b8611d40e88265f9fdf61a6", "score": "0.5321293", "text": "@java.lang.Override\n public int getBypassCacheOnRequestHeadersCount() {\n return bypassCacheOnRequestHeaders_.size();\n }", "title": "" }, { "docid": "c3011ea50cf94b8c95f72749b8b4803f", "score": "0.53179675", "text": "public boolean isCacheEnabled()\n {\n return m_caching;\n }", "title": "" }, { "docid": "4db33276f15c65db87856b034d6c4471", "score": "0.5315107", "text": "@Override\n public InputStream getInputStream() throws IOException {\n InputStream stream = null;\n\n if (protocolUtils.doesAssetExist(getURI()) && GET_METHOD.equals(method) && !protocolUtils.\n checkFreshness()) {\n stream = protocolUtils.retrieveAsset(getURI());\n } else {\n\n if (!connected) {\n connect();\n }\n\n int resp = getResponseCode();\n if (resp == HTTP_NOT_MODIFIED) {\n if (protocolUtils.doesAssetExist(getURI())) {\n stream = protocolUtils.retrieveAsset(getURI());\n } else {\n throw new IOException(\"Resource Not Modified \" + getURI() + \"\\n\" +\n \"But local copy not found in cache!\");\n }\n } else if (resp != HTTP_OK) {\n throw new IOException(\"File not found. \" + getURI() + \"\\n\" +\n \"Response code: \" + resp);\n } else {\n\n try {\n stream = response.getInputStream();\n // If this is a cachable url, store the url in the cache\n // and return the inputstream from there\n if (protocolUtils.isCachableURI(getURI())) {\n protocolUtils.storeAsset(getURI(), stream);\n stream.close();\n stream = protocolUtils.retrieveAsset(getURI());\n }\n String enc = getContentEncoding();\n if ((enc != null) && enc.equals(\"x-gzip\")) {\n stream = new GZIPInputStream(stream);\n }\n } catch (ModuleException e) {\n throw new IOException(e.toString());\n }\n if (stream == null) {\n throw new IOException(\"Unable to get inpustream from connection!\");\n }\n }\n }\n return stream;\n }", "title": "" }, { "docid": "80e2e1a854483335e7a7fa5cd22b1339", "score": "0.5302681", "text": "public boolean isResponseCached(String key) {\n\t\t\treturn map.containsKey(key);\n\t\t}", "title": "" }, { "docid": "7d45c91146797243f06c224b77a9cf39", "score": "0.5287706", "text": "@ManagedOperation\n public V get(K key) {\n\n // 1. Try the L1 cache first\n if(l1_cache != null) {\n V val=l1_cache.get(key);\n if(val != null) {\n if(log.isTraceEnabled())\n log.trace(\"returned value \" + val + \" for \" + key + \" from L1 cache\");\n return val;\n }\n }\n\n // 2. Try the local cache\n Cache.Value<Value<V>> val=l2_cache.getEntry(key);\n Value<V> tmp;\n if(val != null) {\n tmp=val.getValue();\n if(tmp !=null) {\n V real_value=tmp.getVal();\n if(real_value != null && l1_cache != null && val.getTimeout() >= 0)\n l1_cache.put(key, real_value, val.getTimeout());\n return tmp.getVal();\n }\n }\n\n // 3. Execute a cluster wide GET\n try {\n RspList<Object> rsps=disp.callRemoteMethods(null,\n new MethodCall(GET, key),\n new RequestOptions(ResponseMode.GET_ALL, call_timeout));\n for(Rsp rsp: rsps.values()) {\n Object obj=rsp.getValue();\n if(obj == null || obj instanceof Throwable)\n continue;\n val=(Cache.Value<Value<V>>)rsp.getValue();\n if(val != null) {\n tmp=val.getValue();\n if(tmp != null) {\n V real_value=tmp.getVal();\n if(real_value != null && l1_cache != null && val.getTimeout() >= 0)\n l1_cache.put(key, real_value, val.getTimeout());\n return real_value;\n }\n }\n }\n return null;\n }\n catch(Throwable t) {\n if(log.isWarnEnabled())\n log.warn(\"get() failed\", t);\n return null;\n }\n }", "title": "" }, { "docid": "531534a7388e5e6d19a4b4ae0d41e937", "score": "0.5283097", "text": "private static URL getFinalUrl (URL urlToolInstance){\n \n\t\t URL finalUrl = null;\n \t if (finalUrlCache == null){\n \t\t finalUrlCache = new HashMap<String,Pair<Long, URL>>();\n\t\t }\t\t \n\n\t\t if (finalUrlCache.containsKey(urlToolInstance.toString())){\n\t\t\t finalUrl = finalUrlCache.get(urlToolInstance.toString()).getValue();\n\t\t\t finalUrlTimestamp = finalUrlCache.get(urlToolInstance.toString()).getKey();\n\n\t\t\t //checking bucket timestamp of the cache and obtaining the remote url if necessary\n\t long bucketExpirationTime = 10000; //final urls are obtained from cache during 10s\n\t long cacheExpirationTime = 3600000; //cache is cleared after 1h without being used\n\t long currentTime = new Date().getTime();\n\t if (finalUrlTimestamp != null){\n\t \t if (currentTime >(finalUrlTimestamp + bucketExpirationTime)){\n\t \t\t \tSystem.out.println(\"Final URL of toolinstance \" + urlToolInstance.toString() + \" expired in cache. Obtaining the remote URL\");\n\t \t\t \tfinalUrl = getFinalUrlFromRemote(urlToolInstance);\t\n\t \t\t\t if (finalUrl != null){\n\t \t\t\t \tfinalUrlCache.put(urlToolInstance.toString(), Pair.of(new Date().getTime(), finalUrl));\n\t \t\t \tSystem.out.println(\"Final URL of toolinstance \" + urlToolInstance.toString() + \" renewed in cache\");\n\t \t\t\t }\t\n\t \t }\n\t \t if (currentTime >(finalUrlTimestamp + cacheExpirationTime)){\n\t \t\t finalUrlCache.clear();\n\t \t\t System.out.println(\"Final URL cache cleared\");\n\t \t }\n\t }\n\n\t\t } else {\n\t\t\t finalUrl = getFinalUrlFromRemote(urlToolInstance);\t\n\t\t\t if (finalUrl != null){\n\t\t\t\t finalUrlCache.put(urlToolInstance.toString(), Pair.of(new Date().getTime(), finalUrl));\n\t\t\t\t System.out.println(\"Final URL of toolinstance \" + urlToolInstance.toString() + \" included in cache\");\n\t\t\t }\t\t \n\t\t }\n\t\t finalUrlTimestamp = new Date().getTime();\n\t\t return finalUrl;\n }", "title": "" }, { "docid": "3b845f63e9f015a5b9b90b5bc64448b1", "score": "0.52773845", "text": "public int cacheCount() {\n return 2;\n }", "title": "" }, { "docid": "2f4a2bc258396437e06767320388fe95", "score": "0.52771014", "text": "@Override\n public ImageListing requestImages(String keyword, boolean loadFromCache) {\n return loadFromCache ? requestImagesFromDb(keyword) : requestImagesFromServer(keyword);\n }", "title": "" }, { "docid": "ec1e4d5e7ce96f193260c4a4dc30af53", "score": "0.5275345", "text": "public Boolean isCachingEnabled() {\n return this.cachingEnabled;\n }", "title": "" }, { "docid": "37f2e2ea9bd3724fcd5e325cde093bf3", "score": "0.5269538", "text": "@GetMapping(\"/patient/profile\") //added in catalog\n @Cacheable(value = \"Patient\", key = \"\")\n public PatientRegistrationDto getPatientById(){\n return patientService.getPatientDetailsById();\n\n }", "title": "" } ]
6a2ab00f66c0bddff1f22dcd6c656633
This method was generated by MyBatis Generator. This method sets the value of the database column WST_CASHSWEEP.CURRENCYMONEYBALANCE
[ { "docid": "95b28f0f22a17aa254015a804d1201fc", "score": "0.6199379", "text": "public void setCurrencymoneybalance(BigDecimal currencymoneybalance) {\n this.currencymoneybalance = currencymoneybalance;\n }", "title": "" } ]
[ { "docid": "297a3d0a5831de892d6a36bfb3d93ef2", "score": "0.58823013", "text": "public BigDecimal getCurrencymoneybalance() {\n return currencymoneybalance;\n }", "title": "" }, { "docid": "154bdd8ab8a86b9f8153b7dc7f08df09", "score": "0.5780024", "text": "public BigDecimal getTotalcurrencymoneybalance() {\n return totalcurrencymoneybalance;\n }", "title": "" }, { "docid": "608479c2fad7d152fb61f8291418ec4c", "score": "0.5352003", "text": "BigDecimal getCUR_OrderValueUSD();", "title": "" }, { "docid": "f3cd087662610e1390cab352727a7c21", "score": "0.5326059", "text": "public void setTotalcurrencymoneybalance(BigDecimal totalcurrencymoneybalance) {\n this.totalcurrencymoneybalance = totalcurrencymoneybalance;\n }", "title": "" }, { "docid": "ed0e39f63cfcbdf08759f81222afd1d3", "score": "0.5225007", "text": "public void accrue(){\n long amount = balance.getAmount();\n amount = amount * interestRate;\n \n }", "title": "" }, { "docid": "ea623cf5547bdabe4847d6b79539d1a0", "score": "0.5221661", "text": "public void changeBalance(double accountBal){\r\n\t\tthis.accountBal = accountBal;\r\n\t}", "title": "" }, { "docid": "a57df059f0b7d6d72ff2df2c946e7b67", "score": "0.52079874", "text": "@Override\n public double getProposedBidCash(double lastBid, double lastCompatitorBid) {\n if (compatitorCurrentCash < 0.1d) {\n return 0.1d;\n }\n if (lastCompatitorBid >= lastBid) {\n int halfOfBids = this.numberOfBids / 2;\n this.compatitorWinningBid++;\n this.compatitorCurrentCash -= lastCompatitorBid;\n if (this.compatitorWinningBid < halfOfBids) {\n this.currentBidCash = compatitorCurrentCash / (halfOfBids - this.compatitorWinningBid);\n }\n }\n\n return this.currentBidCash;\n }", "title": "" }, { "docid": "0b8db50de4291db7f266f643fa55dce5", "score": "0.5189599", "text": "BigDecimal getBalance();", "title": "" }, { "docid": "54a9771f0acbb8f5eabb532c3b9e1750", "score": "0.5126803", "text": "boolean raiseBalance(final Long accountId, final BigDecimal value, final boolean keepPositive) throws SQLException;", "title": "" }, { "docid": "f91a25fc7ad4211c3e7a31210de4e9fc", "score": "0.5085816", "text": "public SDbSysCurrency() {\n super(SModConsts.AS_CUR);\n }", "title": "" }, { "docid": "a1c691b4a0c6a8c6362447461d3fd055", "score": "0.5082969", "text": "public double getBalance(){\r\n\t\treturn accountBal;\r\n\t}", "title": "" }, { "docid": "a04b95813c4e72bd18d1901713e29f45", "score": "0.50794894", "text": "public void setCurPrice(Integer curPrice) {\n this.curPrice = curPrice;\n }", "title": "" }, { "docid": "b5b34af32c65208aa547c6f3d59bf0b8", "score": "0.50662315", "text": "ResultSet getCurrentBalance(Account account, UserDao userDao);", "title": "" }, { "docid": "1be407ed54222a79f9af74af477271c5", "score": "0.5052753", "text": "BigDecimal getCUR_ExchangeRate();", "title": "" }, { "docid": "fa33685c86d26768217928393c7f7c85", "score": "0.50423276", "text": "public void setAccountedMoney(BigDecimal accountedMoney);", "title": "" }, { "docid": "d5bee75a2bc10d633c415dfb60a4d7b7", "score": "0.5020829", "text": "public void setBalance () {\n balance = 100.00;\n }", "title": "" }, { "docid": "c0310de441f9986012a911969c44ca27", "score": "0.5020095", "text": "public void setCurrAcctChgAmt(long currAcctChgAmt) {\r\n this.currAcctChgAmt = currAcctChgAmt;\r\n }", "title": "" }, { "docid": "39e88c958156f280cd4bccef42db9552", "score": "0.5007474", "text": "public abstract BigDecimal getAccountBalance(Long accountNum);", "title": "" }, { "docid": "bcdcdff3ac1a2ea26174b40815d7cf95", "score": "0.5001308", "text": "void updateBalanaceIntoDB(double currentBalance) {\n\t\tSystem.out.println(\"assume here balance is updated in the database\");\n\t\t\n\t}", "title": "" }, { "docid": "aacc0e2350512c7d45a4ef48bb9aea21", "score": "0.49982247", "text": "public void setFinalWithdrawAmount(double withdrawAmount, double accBalance) {\n afterWithdraw = accBalance - withdrawAmount;\n }", "title": "" }, { "docid": "4d3266dd9b774beba3b91c90007b1496", "score": "0.49661836", "text": "public int getCurrAmount() {\n synchronized (key) {\n return amountOfMoney;\n }\n }", "title": "" }, { "docid": "1ae852602153c858fe6eb70f503afb69", "score": "0.49589324", "text": "public Long getBalance() {\n\t\treturn balance;\n\t}", "title": "" }, { "docid": "8a21f98e904172f9d74af59027230959", "score": "0.49034947", "text": "private BigDecimal getKemidCurrentCash(KEMID kemid, boolean isIncome) {\n KemidCurrentCash kemidCurrentCash = businessObjectService.findBySinglePrimaryKey(KemidCurrentCash.class, kemid.getKemid());\n\n if (kemidCurrentCash == null) {\n writeExceptionTableReason(\"Unable to calculate current cash amount: END_CRNT_CSH_T is \\'null\\' for KEMID \\'\" + kemid.getKemid() + \"\\'\");\n return null;\n }\n\n return !isIncome ? kemidCurrentCash.getCurrentPrincipalCash().bigDecimalValue() : kemidCurrentCash.getCurrentIncomeCash().bigDecimalValue();\n }", "title": "" }, { "docid": "7e1b600a3c5e4c690beba4f4e6401c38", "score": "0.48990732", "text": "BigDecimal getOutstandingBalance() throws Exception;", "title": "" }, { "docid": "a2e915628e1204a14ec75f8b04977d0a", "score": "0.48911867", "text": "public static void checkBalanceMoney() {\n printMenuTemplate(\"VIEW BALANCE\", chooseAccountMenu());\n }", "title": "" }, { "docid": "301b17a26f8a02afbf6442616c844c48", "score": "0.48683047", "text": "@Override\r\n public synchronized double readBalance() throws RemoteException\r\n {\n return money;\r\n }", "title": "" }, { "docid": "f0bd28385293204e78b3417bc6a93422", "score": "0.4861063", "text": "public void testCurrency() {\n Account a = new Account();\n final int startValue = a.getActiveCurrency();\n int testValue = startValue;\n while (testValue == startValue) {\n testValue = random.nextInt();\n }\n try {\n a.setActiveCurrency(testValue);\n assertEquals(\n \"Active Currency was not changed\",\n testValue,\n a.getActiveCurrency()\n );\n }\n finally {\n a.setActiveCurrency(startValue);\n }\n }", "title": "" }, { "docid": "eb6c821d6ffaae5b127d5121cbe0c3e5", "score": "0.48589462", "text": "public void setAcctBal(double newAcctBal){\n\t\t\n\t\t//Verify that newAcctBal is a legal argument\n\t\tif (newAcctBal > 0){\n\t\t\tacctBalance = newAcctBal;\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\"Account balance must be greater than 0!\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "2c021c6bc301ffae59fd1f7397e2faf0", "score": "0.48583212", "text": "private void setBalance() {\n \tthis.balance = 0;\n }", "title": "" }, { "docid": "f9b4d88b9b1e3650b54ed14da7b35e66", "score": "0.4846724", "text": "public void setAddonBalance(java.lang.String param){\n localAddonBalanceTracker = param != null;\n \n this.localAddonBalance=param;\n \n\n }", "title": "" }, { "docid": "9d6d1da1e11b392bc477477280ba21e4", "score": "0.48412198", "text": "public long getBalance() {\n return this.balance;\n }", "title": "" }, { "docid": "71153b2d4a12948893587e8983a0129b", "score": "0.48387602", "text": "public void setDrawmoney(BigDecimal drawmoney) {\r\n this.drawmoney = drawmoney;\r\n }", "title": "" }, { "docid": "a21e735b6a8404ce73c09da052415b53", "score": "0.48366743", "text": "public void setCUR_UNIT(BigDecimal CUR_UNIT) {\r\n this.CUR_UNIT = CUR_UNIT;\r\n }", "title": "" }, { "docid": "b253a7e38ba85289e88b8657af94300e", "score": "0.4827566", "text": "public void setCheckingsBalance(double balance){\r\n cAccount.setBalance(balance);\r\n }", "title": "" }, { "docid": "d3264e3b6b0f44029d6044809c1d2034", "score": "0.482668", "text": "public long getBalance() {\n return balance;\n }", "title": "" }, { "docid": "3eeb9041fb6c7b6b97d84a369ff90048", "score": "0.48168737", "text": "public double budgetBalance() \r\n\t\t\t{\r\n\t\t\t\tdouble remaining;\r\n\t\t\t\tdouble totalPrice = roomCost + airFare + meals;\r\n\t\t\t\tremaining = getBudget() - totalPrice;\r\n\t\t\t\treturn remaining;\r\n\t\t\t}", "title": "" }, { "docid": "662ab45682ca3468e85e2155b551fe9b", "score": "0.48164442", "text": "public BigDecimal getChangeMoney() {\n return changeMoney;\n }", "title": "" }, { "docid": "318acb821a0c0dbccbe297d204c83927", "score": "0.47994292", "text": "org.qsn.api.rpc.grpc.proto.entity.common.BInteger getBalance();", "title": "" }, { "docid": "e3f92fbae5200c2c6d4b15835e6b5bc8", "score": "0.47991794", "text": "public void retrieveMoneyFromAccount() throws SQLException {\n RetrieveFundsTransaction transaction = null;\n System.out.println(\"Retrieving money from account. Please enter following info: \");\n System.out.println(\"Client id: \");\n String clientId = scanner.next();\n System.out.println(\"Account id: \");\n String accountId = scanner.next();\n System.out.println(\"Amount to retrieve: \");\n double amount = Double.parseDouble(scanner.next());\n\n Client client = clients.get(clientId);\n for (Account account : client.getAccounts()) {\n if (account.getAccountId().equals(accountId)) {\n if (account.getBalance() > amount) {\n transaction = new RetrieveFundsTransaction(amount, account);\n transaction.executeTransaction();\n transactions.put(transaction.getDate(), transaction);\n System.out.println(\"Succesfully executed retrieve funds transaction.\" + \"Client id: \" + clientId + \"account id: \" + accountId + \" account balance: \" + account.getBalance() + '\\n');\n break;\n } else {\n System.out.println(\"Retrieve funds transaction failed . Not enough funds. Client id: \" + clientId + \" Account id: \" + accountId + \" Current account balance:\" + account.getBalance() + \". Tried to send + \" + amount + '\\n');\n }\n }\n }\n auditService.writeActionToAudit(\"retrieve money from account\");\n\n String transactionId = \"null\";\n String date = \"'\" + transaction.getDate() + \"'\";\n String _amount = String.valueOf(amount);\n accountId = \"'\" + accountId + \"'\";\n\n String query = \"insert into Transaction (date, amount, accountId) values (\" + date + \", \" + amount + \", \" + accountId + \")\";\n databaseService.executeUpdate(query);\n }", "title": "" }, { "docid": "9175d5702d6eb020d925531a8484cd37", "score": "0.4796797", "text": "public void updateMoney() {\n if (transfer_accountSelectBox.getItemCount() > 0 && accountBoxUnformatted.size() > 0) {\n activePayerAccount = connection.getAccount(login.getLogin(), login.getPasswordHash(), accountBoxUnformatted.get(transfer_accountSelectBox.getSelectedIndex()));\n if (transfer_accountSelectBox.getItemCount() > 0) {\n activePayerAccount = connection.getAccount(login.getLogin(), login.getPasswordHash(), accountBoxUnformatted.get(transfer_accountSelectBox.getSelectedIndex()));\n String activeCurrencyShortcut = currencies.get(\"\" + activePayerAccount.getCurrencyID());\n long totalBalance = connection.getTotalSavings(login.getLogin(), login.getPasswordHash(), activePayerAccount.getCurrencyID());\n\n transfer_currentBalance.setText(String.format(\"%.2f %s\", totalBalance / 100.0, activeCurrencyShortcut));\n transfer_payerBalance.setText(String.format(\"%.2f %s\", activePayerAccount.getValue() / 100.0, activeCurrencyShortcut));\n transfer_currencyLabel.setText(activeCurrencyShortcut);\n }\n }\n }", "title": "" }, { "docid": "7a2e35f4a0127a5fed0b8829ced7cc73", "score": "0.4784895", "text": "public double getProjectedCashBalance();", "title": "" }, { "docid": "7c39ce29de74bc80ad402c40b4a95079", "score": "0.47569883", "text": "public double getCheckingsBalance(){\r\n return cAccount.getBalance();\r\n }", "title": "" }, { "docid": "3de15c841606c4337b41e072d16098aa", "score": "0.4746945", "text": "private static double checkBalance() {\n\t\treturn currentAccount.getBalance();\n\t}", "title": "" }, { "docid": "e15a957c3c040c5ac6f94c9b1372328d", "score": "0.47451213", "text": "long getBalance() {\r\n\t\treturn balance;\r\n\t}", "title": "" }, { "docid": "fc80ea0beaa1bfaea81391c6fe0483fe", "score": "0.4741516", "text": "static void sellBitcoin() {\n MyJsoup.getBitValue();\n bitcoinInput = BabyCrypto.bitNum;\n currencyBTC -= bitcoinInput;\n currencyUSD += bitcoinInput * MyJsoup.valueBTC;\n if (currencyUSD > 20000) {\n currencyBTC += bitcoinInput;\n currencyUSD -= bitcoinInput * MyJsoup.valueBTC;\n JOptionPane.showMessageDialog(null, \"You don't have enough\" + currency1Ticker, \"No Money\", JOptionPane.PLAIN_MESSAGE);\n soldHist = 0;\n } else {\n JOptionPane.showMessageDialog(null, \"Sold \" + bitcoinInput + currency1Ticker + \"\\n\" + \"Thank You!\", \"Transaction Complete\", JOptionPane.PLAIN_MESSAGE);\n soldHist = bitcoinInput;\n }\n \n }", "title": "" }, { "docid": "f939e0ac9bd0bbcc467c4a9521caa466", "score": "0.47401994", "text": "private void UpdateBalanceDue(){\n float principal = LoanOffice.getInstance(getActivity()).\n getAmountDue(mBorrower.getLoanAmount(),mBorrower.getInterestRate(),numberOfweeks);\n //calculate amount due by subtracting what is paid from the principal amount\n float amountDue = principal - mBorrower.getAmountPaid();\n\n /*float principal = mBorrower.getLoanAmount() - mBorrower.getAmountPaid();\n float amountDue = LoanOffice.getInstance(getActivity()).\n getAmountDue(principal,mBorrower.getInterestRate(),numberOfweeks);//number of periods*/\n\n if (amountDue <= 0){\n paid = true;\n }else {\n paid = false;\n }\n amountDueEditText.setText(\"$\"+Float.toString(amountDue));\n }", "title": "" }, { "docid": "bc80f5b278bb11b3a9a419aae7f41fa9", "score": "0.4735495", "text": "public double getCash(){ return cashBalance;}", "title": "" }, { "docid": "98a930e81e4f520d2f61ed133eccc03c", "score": "0.47309598", "text": "public void setAmtAcctCr (BigDecimal AmtAcctCr);", "title": "" }, { "docid": "88f0c6b4bccddda97b7bd23652672642", "score": "0.47137195", "text": "private KualiDecimal calculateCashAvailable(BigDecimal cashLimit, BigDecimal currentCash, boolean isIncrease) {\n\n BigDecimal amount = null;\n\n // Subtract the current amount from the limit amount, and round up.\n if (isIncrease) {\n amount = currentCash.subtract(cashLimit);\n amount = amount.setScale(0, BigDecimal.ROUND_UP);\n }\n // Take the absolute value of the current cash, add limit amount,\n // and round down.\n else {\n amount = (currentCash.abs()).add(cashLimit);\n amount = amount.setScale(0, BigDecimal.ROUND_DOWN);\n }\n\n return new KualiDecimal(amount);\n }", "title": "" }, { "docid": "40ef1c55e688743317a4a5af772c88a7", "score": "0.47108763", "text": "public long getCurrAcctChgAmt() {\r\n return currAcctChgAmt;\r\n }", "title": "" }, { "docid": "99559f02b8288840e340da594ddcdc24", "score": "0.4703598", "text": "public BigDecimal getBalance() {\n return balance;\n }", "title": "" }, { "docid": "9089e8a5dac462dda0e40df58f596818", "score": "0.4695385", "text": "BigDecimal getReconciledAmount();", "title": "" }, { "docid": "f8d0e42f74884d7ba731be8d46f4b60e", "score": "0.46795526", "text": "public FactLine balanceAccounting()\n\t{\n\t\tBigDecimal diff = getAcctBalance();\t\t//\tDR-CR\n\t\tif (log.isLoggable(Level.FINE)) log.fine(\"Balance=\" + diff \n\t\t\t+ \", CurrBal=\" + m_acctSchema.isCurrencyBalancing() \n\t\t\t+ \" - \" + toString());\n\t\tFactLine line = null;\n\n\t\tBigDecimal BSamount = Env.ZERO;\n\t\tFactLine BSline = null;\n\t\tBigDecimal PLamount = Env.ZERO;\n\t\tFactLine PLline = null;\n\n\t\t// Find line biggest BalanceSheet or P&L line\n\t\tfor (int i = 0; i < m_lines.size(); i++)\n\t\t{\n\t\t\tFactLine l = (FactLine)m_lines.get(i);\n\t\t\tBigDecimal amt = l.getAcctBalance().abs();\n\t\t\tif (l.isBalanceSheet() && amt.compareTo(BSamount) > 0)\n\t\t\t{\n\t\t\t\tBSamount = amt;\n\t\t\t\tBSline = l;\n\t\t\t}\n\t\t\telse if (!l.isBalanceSheet() && amt.compareTo(PLamount) > 0)\n\t\t\t{\n\t\t\t\tPLamount = amt;\n\t\t\t\tPLline = l;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Create Currency Balancing Entry\n\t\tif (m_acctSchema.isCurrencyBalancing())\n\t\t{\n\t\t\tline = new FactLine (m_doc.getCtx(), m_doc.get_Table_ID(), \n\t\t\t\tm_doc.get_ID(), 0, m_trxName);\n\t\t\tline.setDocumentInfo (m_doc, null);\n\t\t\tline.setPostingType (m_postingType);\n\t\t\tline.setAD_Org_ID(m_doc.getAD_Org_ID());\n\t\t\tline.setAccount (m_acctSchema, m_acctSchema.getCurrencyBalancing_Acct());\n\t\t\t\n\t\t\t// Amount\n\t\t\tline.setAmtSource(m_doc.getC_Currency_ID(), Env.ZERO, Env.ZERO);\n\t\t\tline.convert();\n\t\t\t//\tAccounted\n\t\t\tBigDecimal drAmt = Env.ZERO;\n\t\t\tBigDecimal crAmt = Env.ZERO;\n\t\t\tboolean isDR = diff.signum() < 0;\n\t\t\tBigDecimal difference = diff.abs();\n\t\t\tif (isDR)\n\t\t\t\tdrAmt = difference;\n\t\t\telse\n\t\t\t\tcrAmt = difference;\n\t\t\t//\tSwitch sides\n\t\t\tboolean switchIt = BSline != null \n\t\t\t\t&& ((BSline.isDrSourceBalance() && isDR)\n\t\t\t\t\t|| (!BSline.isDrSourceBalance() && !isDR));\n\t\t\tif (switchIt)\n\t\t\t{\n\t\t\t\tdrAmt = Env.ZERO;\n\t\t\t\tcrAmt = Env.ZERO;\n\t\t\t\tif (isDR)\n\t\t\t\t\tcrAmt = difference.negate();\n\t\t\t\telse\n\t\t\t\t\tdrAmt = difference.negate();\n\t\t\t}\n\t\t\tline.setAmtAcct(drAmt, crAmt);\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(line.toString());\n\t\t\tm_lines.add(line);\n\t\t}\n\t\telse\t// Adjust biggest (Balance Sheet) line amount\n\t\t{\n\t\t\tif (BSline != null)\n\t\t\t\tline = BSline;\n\t\t\telse\n\t\t\t\tline = PLline;\n\t\t\tif (line == null)\n\t\t\t\tlog.severe (\"No Line found\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (log.isLoggable(Level.FINE)) log.fine(\"Adjusting Amt=\" + diff + \"; Line=\" + line);\n\t\t\t\tline.currencyCorrect(diff);\n\t\t\t\tif (log.isLoggable(Level.FINE)) log.fine(line.toString());\n\t\t\t}\n\t\t} // correct biggest amount\n\n\t\treturn line;\n\t}", "title": "" }, { "docid": "3708e7f41f6d70e4453cf278f56b5a8a", "score": "0.4678617", "text": "public void setAccountBalance(double value) {\r\n this.accountBalance = value;\r\n }", "title": "" }, { "docid": "cc5e9ebabc836c9a3e8b68b263f9bc75", "score": "0.46709102", "text": "public void setBalance(BigDecimal balance) {\n this.balance = balance;\n }", "title": "" }, { "docid": "7f11a1a21199fdfba4b484b5e9b01255", "score": "0.46665594", "text": "public void setCurrency(int curr) { currency = curr; }", "title": "" }, { "docid": "af236260c08a8dd044a6348aedf6df17", "score": "0.46608043", "text": "public void setIDLE_CHG(BigDecimal IDLE_CHG) {\r\n this.IDLE_CHG = IDLE_CHG;\r\n }", "title": "" }, { "docid": "5dec7bd454dc975acca428bc2838d644", "score": "0.46602124", "text": "public void setSavingsBalance(double balance){\r\n sAccount.setBalance(balance);\r\n }", "title": "" }, { "docid": "d75a9257a611d1686afabb172ff08880", "score": "0.46601498", "text": "double getBalance();", "title": "" }, { "docid": "d75a9257a611d1686afabb172ff08880", "score": "0.46601498", "text": "double getBalance();", "title": "" }, { "docid": "c57cc74be9c815775d19f41f7a03d4be", "score": "0.46581584", "text": "public BigDecimal getDrawmoney() {\r\n return drawmoney;\r\n }", "title": "" }, { "docid": "b1e042a6ef05726e01f71b9c55044db2", "score": "0.4650993", "text": "void checkCumulativeBalance() {\n\t\tSystem.out.println(\"Cumulative Balance in all your account is: \" + (sbiAccountBalance + iciciAccountBalance + hdfcAccountBalance + bobAccountBalance) + \"\\n\");\n\t}", "title": "" }, { "docid": "c5ffe46e4b618ac34000063bbd479f72", "score": "0.4646021", "text": "@Override\n\tpublic double queryBusinessRechargeTotalAmount(BussinessBalanceQueryReq par) throws ParseException {\n\t\tif (!StringUtils.isEmpty(par.getEndDate())) {\n\t\t\tDate finalDt = ParseHelper.ToDate(par.getEndDate(), \"yyyy-MM-dd\");\n\t\t\tfinalDt = ParseHelper.plusDate(finalDt, 2, 1);\n\t\t\tpar.setEndDate(ParseHelper.ToDateString(finalDt, \"yyyy-MM-dd\"));\n\t\t}\n\t\treturn getReadOnlySqlSessionUtil().selectOne(\n\t\t\t\t\"com.edaisong.api.dao.inter.IBusinessBalanceRecordDao.queryBusinessRechargeTotalAmount\", par);\n\t}", "title": "" }, { "docid": "844ee77f14d4329890f97855f2e814d8", "score": "0.4632097", "text": "public void setCiEconomy(String ciEconomy) {\r\n this.ciEconomy = ciEconomy;\r\n }", "title": "" }, { "docid": "a0edabf4b81cc7791605450d8b303e3c", "score": "0.4627254", "text": "public BigDecimal getAccountedMoney();", "title": "" }, { "docid": "e973e9630458004727aa1735ad5c6cde", "score": "0.4617321", "text": "public Long getAccountMoney() {\r\n\t\treturn accountMoney;\r\n\t}", "title": "" }, { "docid": "0c546c393adfdf189ecdc9a7fab72635", "score": "0.46155354", "text": "public double getCheckingBalance(CashCard currentCustomer)\n {\n return Database.getCustomer(currentCustomer.getCardId()).getChecking();\n }", "title": "" }, { "docid": "4699b9d5919c1d07c2a3f5d08e8e9f67", "score": "0.46153995", "text": "public double getbalance() {\r\n return balance; \r\n }", "title": "" }, { "docid": "8370fae6a5f84b59df64480ebc0c73b4", "score": "0.461496", "text": "@Override\n public int getBalance(String accountNo) throws ClassNotFoundException, SQLException {\n int balance = 0;\n db.open();\n String sql = \"SELECT balance FROM tbl_account WHERE account_no = ?\";\n PreparedStatement stmt = db.initStatement(sql);\n stmt.setString(1, accountNo);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n balance = rs.getInt(\"balance\");\n }\n return balance;\n }", "title": "" }, { "docid": "4eaf98271dba074c7302c590b3ea12a0", "score": "0.46123305", "text": "@Override\n\tpublic void xhKcsl(Ddcpxx cpxx) {\n\t\tDouble sjscs = cpxx.getSjscs();\n\t\tObject[] obj = null;\n\t\tString sql = \"select kc from xt_cpxx where cp_bh = ?\";\n\t\tDouble kc = this.jdbcTemplate.queryForObject(sql,\n\t\t\t\tnew Object[] { cpxx.getCpBh() }, Double.class);\n\n\t\tif (kc > sjscs) {\n\t\t\tsql = \"update xt_cpxx set kc = ? where cp_bh=?\";\n\t\t\tobj = new Object[] { kc - sjscs, cpxx.getCpBh() };\n\t\t\tthis.jdbcTemplate.update(sql, obj);\n\t\t} else {\n\t\t\tsql = \"update xt_cpxx set kc = 0 where cp_bh=?\";\n\t\t\tobj = new Object[] { cpxx.getCpBh() };\n\t\t\tthis.jdbcTemplate.update(sql, obj);\n\t\t\tDouble syscsl = sjscs - kc;\n\t\t\tsql = \"SELECT e.cl_bh,convert(((?*d.cl_sl*e.clmd*e.hd*e.lk*e.bj/1000/e.ms)*(1+e.sh/100)/1000),decimal(10,3)) cgzl\";\n\t\t\tsql += \" FROM xt_cpxx c,xt_cp_kc d,xt_kcxx e \";\n\t\t\tsql += \" WHERE c.id=d.pid AND d.cl_bh = e.cl_bh and c.cp_bh = ? \";\n\t\t\tList<Map<String, Object>> sczl = this.jdbcTemplate.queryForList(\n\t\t\t\t\tsql, new Object[] { syscsl, cpxx.getCpBh() });\n\t\t\tfor (Map<String, Object> mp : sczl) {\n\t\t\t\tsql = \"update xt_kcxx set dqkc =dqkc-? where cl_bh=?\";\n\t\t\t\tobj = new Object[] { mp.get(\"cgzl\"), mp.get(\"cl_bh\") };\n\t\t\t\tthis.jdbcTemplate.update(sql, obj);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "81c3742eeabe97a50998dc56b6f55888", "score": "0.46105343", "text": "@Path(\"/customer/withdraw\")\r\n @GET\r\n //@Path(\"/customer/{Uid}/{ACCno}/withdraw/{WAmount}\") \r\n @Produces(MediaType.APPLICATION_JSON)\r\n @SuppressWarnings(\"empty-statement\")\r\n public Response Withdraw(@QueryParam(\"Uid\") String id, @QueryParam(\"ACCno\") String ACCno,@QueryParam(\"WAmount\") double WAmount) {\r\n Gson gson = new Gson();\r\n double CB = bs.getCBalance(id,ACCno);\r\n double NCBval= 0;\r\n if(WAmount<=0||WAmount>=CB){\r\n if(WAmount<=0){\r\n String type=\"Input error\";\r\n\r\n bs.updateTransaction(id,ACCno,type,WAmount,CB);\r\n }\r\n else if(WAmount>=CB){\r\n String type=\"Your balance is not enough!\";\r\n\r\n bs.updateTransaction(id,ACCno,type,WAmount,CB);\r\n }\r\n }else{\r\n \r\n NCBval= bs.Withdraw(id,ACCno,WAmount); \r\n bs.updateTransaction(id,ACCno,\"Withdrawal\",WAmount,NCBval);\r\n } \r\n Account AccUpdate = bs.getAccount(id,ACCno);\r\n \r\n \r\n \r\n String NCBvalue = \"New Balance is: \"+ NCBval;\r\n System.out.print(\"Withdraw: \"+WAmount+\"\\b\"+ NCBvalue);\r\n Transaction Trans = AccUpdate.getListTrans().get(0);\r\n \r\n return Response.status(Response.Status.CREATED).entity(gson.toJson(Trans)).build(); \r\n \r\n \r\n }", "title": "" }, { "docid": "c4184473e84b602cd18ee7c4ab410b18", "score": "0.46055758", "text": "public ProjectBean showBalance(long acctNo) throws Exception ;", "title": "" }, { "docid": "1e60fe4a12bf69be50428ba99e28d66f", "score": "0.46049494", "text": "public void setFcurrDollar(BigDecimal fcurrDollar) {\r\n this.fcurrDollar = fcurrDollar;\r\n }", "title": "" }, { "docid": "56abb8e364972b2e972faa0bf70492a2", "score": "0.45985168", "text": "public double getBalance() {\n return accountBalance;\n }", "title": "" }, { "docid": "8f0872368557a7b280fdf3111657dc48", "score": "0.45937538", "text": "public void setBalance(final double bal) {\n accountBalance = bal;\n }", "title": "" }, { "docid": "f257c5eb0269329ed7c5412d44377aeb", "score": "0.4589753", "text": "@Override\n\tpublic String topUp( String accountId, double amount )\n\t{\n\t\t//basic functionality: check account won't close, accounts exist, $5 fee to linked account\n\t\t//POCKETBalance, linkedBalance after, deny if make balance < 0 or close if balance < 0.0\n\t\tif (checkClosed(accountId)){\n\t\t\treturn \"1\";\n\t\t}\n\t\tdouble linkedNewBalance = 0.0;\n\t\tdouble pocketNewBalance = 0.0;\n\t\tdouble l_amount = amount;\n\t\tString linkedId = \"\";\n\t\ttry {\n\t\t\tStatement stmt = _connection.createStatement();\n\n\t\t\ttry {\n\t\t\t\tif (isFirstTransactionOfMonth(accountId)) {\n\t\t\t\t\tl_amount = amount-5;\n\t\t\t\t}\n\t\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM Account WHERE a_id = \"+parse(accountId)+\" AND a_type = 'POCKET'\");\n\t\t\t\tif (rs.next()) {\n\t\t\t\t\tlinkedId = rs.getString(\"linked_id\");\n\t\t\t\t\tif (balTooLow(linkedId, l_amount)){\n\t\t\t\t\t\tSystem.out.println(\"Bal Too Low\");\n\t\t\t\t\t\treturn \"1\";\n\t\t\t\t\t}\n\t\t\t\t\tstmt.executeQuery(\"UPDATE Account SET balance = balance +\"+l_amount+\" WHERE a_id = \"+parse(accountId));\n\t\t\t\t\tstmt.executeQuery(\"UPDATE Account SET balance = balance -\"+amount+\" WHERE a_id = \"+parse(linkedId));\n\t\t\t\t\tstmt.executeQuery(\"INSERT INTO Transaction VALUES ( \"+amount+\", TO_DATE('\"+getDate()+\"', 'YYYY-MM-DD HH24:MI:SS'), 'top-up', '\"+generateRandomChars(9)+\"', \"+parse(linkedId)+\", \"+parse(accountId)+\", NULL)\");\n\t\t\t\t\tcloseAccountBalanceCheck(accountId);\n\t\t\t\t}\n\t\t\t} catch(Exception e) {\n\t\t\t\tSystem.out.println(\"Couldn't execute operations\");\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn \"1\";\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tResultSet rs = stmt.executeQuery(\"SELECT balance FROM Account WHERE a_id = \"+parse(accountId));\n\t\t\t\tif (rs.next()){\n\t\t\t\t\tpocketNewBalance = rs.getDouble(\"balance\");\n\t\t\t\t}\n\t\t\t\trs.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\tSystem.out.println(\"Couldn't select balance\");\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn \"1\";\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tResultSet rs = stmt.executeQuery(\"SELECT balance FROM Account WHERE a_id = \"+parse(linkedId));\n\t\t\t\tif (rs.next()){\n\t\t\t\t\tlinkedNewBalance = rs.getDouble(\"balance\");\n\t\t\t\t}\n\t\t\t\trs.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\tSystem.out.println(\"Couldn't select balance\");\n\t\t\t\tSystem.out.println(e);\n\t\t\t\treturn \"1\";\n\t\t\t}\n\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Couldn't connect to DB\");\n\t\t\tSystem.out.println(e);\n\t\t\treturn \"1\";\n\t\t}\n\t\treturn \"0 \"+ linkedNewBalance + \" \" + pocketNewBalance;\n\t}", "title": "" }, { "docid": "0a39a25063b5aac0ec3a9150b30eb9f6", "score": "0.45893964", "text": "public static void addBalance(int UserKey, double CoinBalance) {\r\n\t\ttry{\r\n\t\t\tconnectServer();\r\n\t\t\texecuteSQL(\"USE CoinDatabase;\", statement);\r\n\t\t\texecuteSQL(\"UPDATE users SET Balance = '\" + Double.toString(CoinBalance) + \"' WHERE PublicKey = '\" +\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tInteger.toString(UserKey) + \"';\", statement);\r\n\t\t}\r\n\t\tcatch(SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ebade14d45c42f039fb111c93ae0ebbb", "score": "0.45875874", "text": "public void changeBalance(double relativeChange) {\n\t\tthis.balance += relativeChange;\n\n\t\tthis.balance = Math.round(this.balance * 100.0) / 100.0;\n\t}", "title": "" }, { "docid": "6d65b24661ebff8e8271b9c5654b9a3c", "score": "0.45847237", "text": "public void setCurrencyRate (BigDecimal CurrencyRate);", "title": "" }, { "docid": "c1dbca770daaa2b2fa5ea572d95a7124", "score": "0.45844784", "text": "static public BigDecimal cbrt(final BigDecimal x)\n {\n if ( x.compareTo(BigDecimal.ZERO) < 0 )\n return root(3,x.negate()).negate() ;\n else\n return root(3,x) ;\n }", "title": "" }, { "docid": "959f9e72a932bcf32774ad8e6c300dc1", "score": "0.45836052", "text": "public void setRealizationDailyExpense (BigDecimal RealizationDailyExpense);", "title": "" }, { "docid": "fbfca5b569313a9b2d678916274315ad", "score": "0.45824182", "text": "public void setBalance(int bal) {\n balance = bal;\n }", "title": "" }, { "docid": "b48606095f954f1aedb15fde6fa05e8b", "score": "0.45763543", "text": "public void setBalance(Long balance) {\n\t\tthis.balance = balance;\n\t}", "title": "" }, { "docid": "c1370424f5908a29a1ec8e8b7d8b3c6a", "score": "0.45729443", "text": "public void setCV_AMOUNT(BigDecimal CV_AMOUNT) {\r\n this.CV_AMOUNT = CV_AMOUNT;\r\n }", "title": "" }, { "docid": "e9b2548841534e68484b162a7dd97568", "score": "0.45717093", "text": "public double getAccountBalance() {\r\n return accountBalance;\r\n }", "title": "" }, { "docid": "e7892cd099ccfaef3974ceb7f75489c9", "score": "0.4566676", "text": "public void updateTotalCurrencyToPrefDefault()\n {\n mTotalExpenseSign.setText(Utils.getDefaultCurrency(getActivity()));\n mTotalIncomeSign.setText(Utils.getDefaultCurrency(getActivity()));\n mTotalSavingsSign.setText(Utils.getDefaultCurrency(getActivity()));\n }", "title": "" }, { "docid": "506132b808a8f0c6fe45321e527949b0", "score": "0.45661587", "text": "public void addToCash(double amt){ cashBalance += amt;}", "title": "" }, { "docid": "e1055afd4d8050ba33153f357bcd05e2", "score": "0.45654726", "text": "public void setBalance(int Balance) {\n this.Balance = Balance;\n }", "title": "" }, { "docid": "7f2ea4080e1fca3d82e3c2a647ff2f5d", "score": "0.45628047", "text": "public double getTimeCreditBalance() {\n return timeCreditBalance;\n }", "title": "" }, { "docid": "d5838fa4a9541b4a3cbc587aa389bb24", "score": "0.45547375", "text": "public void setAfterMoney(BigDecimal afterMoney) {\n\t\tthis.afterMoney = afterMoney;\n\t}", "title": "" }, { "docid": "dd8030e8c3ee6ad406da0112baa39c5b", "score": "0.4554536", "text": "public void setCONMNT(BigDecimal newvalue) {\n fieldCONMNT.setBigDecimal(newvalue);\n }", "title": "" }, { "docid": "baf187f3d72c18f9240eab58fde29889", "score": "0.45502537", "text": "public double getBalance(){\n\t\treturn this.balance;\n\t}", "title": "" }, { "docid": "22ed255bf9ed19b8b5a9d0a87ae8985b", "score": "0.4549909", "text": "@Override\n public void withdraw(int ac_id, double money) throws SQLException, WithdrawTooMuch{\n String check = \"SELECT bal from accounts_bal WHERE ac_id = ?\";\n PreparedStatement ps = conn.prepareStatement(check);\n ps.setInt(1, ac_id);\n ResultSet rs = ps.executeQuery();\n //Ensure they have enough funds\n while(rs.next()){\n double acBal = rs.getDouble(\"bal\");\n if(acBal < money){\n //Throw the exception if they don't have enough\n throw new WithdrawTooMuch();\n }\n\n }\n String Withdraw = \"UPDATE accounts_bal SET bal = (bal - ?) WHERE ac_id = ?\";\n ps = conn.prepareStatement(Withdraw);\n ps.setDouble(1, money);\n ps.setInt(2, ac_id);\n ps.executeUpdate();\n\n }", "title": "" }, { "docid": "02298762a12f2fca0bcb79a841ff6aae", "score": "0.45446575", "text": "public Integer getCurPrice() {\n return curPrice;\n }", "title": "" }, { "docid": "1c9ad38bf7e0ad9650e189eca710a846", "score": "0.45443437", "text": "public abstract void getBalance(BigIntCallback callback);", "title": "" }, { "docid": "e25174a6fe513ca1c7aa1ed957afdd92", "score": "0.45442522", "text": "public BigDecimal getAmtAcctCr();", "title": "" }, { "docid": "1493b2cd4953963fac1cb15f6ba537b3", "score": "0.45407385", "text": "@Override\n\tpublic double calcCashPrice(double thingCashPrice) {\n\t\t\treturn thingCashPrice*priceRebate; //设置打折后的商品价格\n\t\t}", "title": "" }, { "docid": "5e3c780b55eafdd09d410677f7ca3778", "score": "0.4532823", "text": "public void setTotalDailyExpense (BigDecimal TotalDailyExpense);", "title": "" }, { "docid": "291aadc47fcfef70da138f735dc27f1c", "score": "0.4531226", "text": "public void setTotalcansweepbalance(BigDecimal totalcansweepbalance) {\n this.totalcansweepbalance = totalcansweepbalance;\n }", "title": "" }, { "docid": "03153393cd21ea74a732c702879462a8", "score": "0.4527255", "text": "public void setFinalDepositAmount(double depositAmount, double accBalance) {\n afterDeposit = depositAmount + accBalance;\n }", "title": "" } ]
df6d56a48394e4757a6be1fb2f22f391
Check that last frame accepts 3 rolls when the second roll is a spare
[ { "docid": "3757b8c9df7257b86a7d4f57e4a1ef37", "score": "0.72274715", "text": "@Test\n public void checkLastFrameTakesThreeRollsWhenSecondRollIsASpare() {\n Scorecard scorecard = bowlingScorer.createScorecard();\n\n bowlingScorer.recordFrame(scorecard, 0, 0);\n bowlingScorer.recordFrame(scorecard, 1, 9);\n bowlingScorer.recordFrame(scorecard, 2, 0);\n bowlingScorer.recordFrame(scorecard, 3, 6);\n bowlingScorer.recordFrame(scorecard, 4, 1);\n bowlingScorer.recordFrame(scorecard, 5, 2);\n bowlingScorer.recordFrame(scorecard, 6, 1);\n bowlingScorer.recordFrame(scorecard, 7, 3);\n bowlingScorer.recordFrame(scorecard, 8, 1);\n bowlingScorer.recordFrame(scorecard, 2, 8, 4);\n\n assertTrue(scorecard.playedFrames.size() == 10);\n assertTrue(bowlingScorer.isGameComplete(scorecard));\n assertTrue(bowlingScorer.getTotalScore(scorecard) > 0);\n assertTrue(bowlingScorer.getTotalScore(scorecard) < 300);\n }", "title": "" } ]
[ { "docid": "dfe5284396b8977fadf1abad937a1341", "score": "0.7130101", "text": "@Test\n public void checkLastFrameTakesThreeRollsWhenFirstRollIsAStrike() {\n Scorecard scorecard = bowlingScorer.createScorecard();\n\n bowlingScorer.recordFrame(scorecard, 0, 0);\n bowlingScorer.recordFrame(scorecard, 1, 9);\n bowlingScorer.recordFrame(scorecard, 2, 0);\n bowlingScorer.recordFrame(scorecard, 3, 6);\n bowlingScorer.recordFrame(scorecard, 4, 1);\n bowlingScorer.recordFrame(scorecard, 5, 2);\n bowlingScorer.recordFrame(scorecard, 6, 1);\n bowlingScorer.recordFrame(scorecard, 7, 3);\n bowlingScorer.recordFrame(scorecard, 8, 1);\n bowlingScorer.recordFrame(scorecard, 10, 2, 4);\n\n assertTrue(scorecard.playedFrames.size() == 10);\n assertTrue(bowlingScorer.isGameComplete(scorecard));\n assertTrue(bowlingScorer.getTotalScore(scorecard) > 0);\n assertTrue(bowlingScorer.getTotalScore(scorecard) < 300);\n }", "title": "" }, { "docid": "5b0d1ca80f5a2dd9938c86f426a46425", "score": "0.6917409", "text": "@Test\n public void checkLastFrameTakesTwoRolls() {\n Scorecard scorecard = bowlingScorer.createScorecard();\n\n bowlingScorer.recordFrame(scorecard, 0, 0);\n bowlingScorer.recordFrame(scorecard, 1, 9);\n bowlingScorer.recordFrame(scorecard, 2, 0);\n bowlingScorer.recordFrame(scorecard, 3, 6);\n bowlingScorer.recordFrame(scorecard, 4, 1);\n bowlingScorer.recordFrame(scorecard, 5, 2);\n bowlingScorer.recordFrame(scorecard, 6, 1);\n bowlingScorer.recordFrame(scorecard, 7, 3);\n bowlingScorer.recordFrame(scorecard, 8, 1);\n bowlingScorer.recordFrame(scorecard, 8, 1);\n\n assertTrue(scorecard.playedFrames.size() == 10);\n assertTrue(bowlingScorer.isGameComplete(scorecard));\n assertTrue(bowlingScorer.getTotalScore(scorecard) > 0);\n assertTrue(bowlingScorer.getTotalScore(scorecard) < 300);\n }", "title": "" }, { "docid": "b26468dd97856b1de57dea705fcea508", "score": "0.6384891", "text": "@Test\n void numberOfFallenPinsDuringCurrentRollTest3() {\n int firstRoll = 5;\n int secondRoll = 7;\n int thirdRoll = 2;\n assertEquals(0, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(firstRoll);\n assertFalse(frame.isCompleted());\n assertEquals(1, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(secondRoll);\n assertFalse(frame.isCompleted());\n assertEquals(2, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(thirdRoll);\n assertEquals(3, frame.getCurrentRoll());\n assertEquals(firstRoll + secondRoll + thirdRoll, frame.getScore());\n assertEquals(firstRoll + secondRoll + thirdRoll, frame.getPinsKnockedDown());\n assertEquals(FrameType.REGULAR, frame.getType());\n assertEquals(0, frame.getNumberOfRollsToListen());\n assertTrue(frame.isCompleted());\n }", "title": "" }, { "docid": "5b0b04d5f0f558d51acddd50689093f2", "score": "0.6306732", "text": "private void checkCooldown() {\r\n\t\t// Disable the heal button for 5 turns\r\n\t\tif (healPressed) {\r\n\t\t\thealCount++;\r\n\t\t\tif (healCount % 4 == 0)\r\n\t\t\t\thealPressed = false;\r\n\t\t}\r\n\r\n\t\tif (specialPressed) {\r\n\t\t\tspecialCount++;\r\n\t\t\tif (specialCount % 3 == 0)\r\n\t\t\t\tspecialPressed = false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "894d3f7e9e6890d6870bd5497e98314c", "score": "0.6267433", "text": "public boolean exitValidCheckPass(ArrayList<Integer> skullDice) {\n if ((treasureList.size() + skullDice.size()) > 6) { //Condition Three.\n System.out.println(\"Add too much, In each roll, you must use at least two dice to start re-roll. Please remove out some dice from treasure chest.\");\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "49a51dd25cc07492d8d326182f79cf2a", "score": "0.616027", "text": "public boolean isSenseToRoll() {\n return !(leader != null && leader.getPoints() == numOfDice * 6);\n }", "title": "" }, { "docid": "bfe966f84d75f7d70b46a39f7bf4acc0", "score": "0.6105059", "text": "public void checkRolled() {\n\n if (getRollCount() < 1) {\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.initOwner(FarkleApp.getPrimaryStage());\n alert.setTitle(\"Action Not Allowed\");\n alert.setHeaderText(\"Must Roll Dice\");\n alert.setContentText(\n \"You are not allowed to select a dice before rolling.\"\n + \" Please roll first.\");\n alert.show();\n }\n }", "title": "" }, { "docid": "177ee2247894ac07922d2194aca8d84c", "score": "0.6095445", "text": "@Test\n void numberOfFallenPinsDuringCurrentRollTest2() {\n int firstRoll = 5;\n int secondRoll = 7;\n assertEquals(0, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(firstRoll);\n assertEquals(1, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(secondRoll);\n assertFalse(frame.isCompleted());\n assertEquals(2, frame.getCurrentRoll());\n assertEquals(firstRoll + secondRoll, frame.getScore());\n assertEquals(firstRoll + secondRoll, frame.getPinsKnockedDown());\n assertEquals(FrameType.REGULAR, frame.getType());\n assertEquals(1, frame.getNumberOfRollsToListen());\n assertFalse(frame.isCompleted());\n }", "title": "" }, { "docid": "9cd8c0065b19694ad4caa80207f90371", "score": "0.608454", "text": "@Test\n void numberOfFallenPinsDuringCurrentRollTest4() {\n int firstRoll = 5;\n int secondRoll = 10;\n assertEquals(0, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(firstRoll);\n assertEquals(1, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(secondRoll);\n assertEquals(firstRoll + secondRoll, frame.getScore());\n assertEquals(firstRoll + secondRoll, frame.getPinsKnockedDown());\n assertEquals(FrameType.SPARE, frame.getType());\n assertEquals(2, frame.getNumberOfRollsToListen());\n assertTrue(frame.isCompleted());\n }", "title": "" }, { "docid": "130f8a2e4897ed8362ec3477847495a4", "score": "0.6042232", "text": "@Test\n void numberOfFallenPinsDuringCurrentRollTest7() {\n int firstRoll = 5;\n int secondRoll = 7;\n int thirdRoll = 2;\n assertEquals(0, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(firstRoll);\n assertFalse(frame.isCompleted());\n assertEquals(1, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(secondRoll);\n assertFalse(frame.isCompleted());\n assertEquals(2, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(thirdRoll);\n assertEquals(3, frame.getCurrentRoll());\n assertEquals(firstRoll + secondRoll + thirdRoll, frame.getScore());\n assertEquals(firstRoll + secondRoll + thirdRoll, frame.getPinsKnockedDown());\n assertEquals(FrameType.REGULAR, frame.getType());\n assertEquals(0, frame.getNumberOfRollsToListen());\n assertTrue(frame.isCompleted());\n frame.numberOfFallenPinsDuringCurrentRoll(thirdRoll);\n assertEquals(3, frame.getCurrentRoll());\n assertEquals(firstRoll + secondRoll + thirdRoll, frame.getScore());\n assertEquals(firstRoll + secondRoll + thirdRoll, frame.getPinsKnockedDown());\n assertEquals(FrameType.REGULAR, frame.getType());\n assertEquals(0, frame.getNumberOfRollsToListen());\n assertTrue(frame.isCompleted());\n }", "title": "" }, { "docid": "0c738e6f61f603a3a256b057eb67c667", "score": "0.6037883", "text": "boolean isDoubleRoll(){\n\t\treturn dice1 == dice2;\n\t}", "title": "" }, { "docid": "8fa5085359205da8ee6d604a3eac06e4", "score": "0.5969162", "text": "@Test\n void numberOfFallenPinsDuringCurrentRollTest1() {\n int firstRoll = 5;\n assertEquals(3, frame.getNumberOfRollsToListen());\n assertEquals(0, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(firstRoll);\n assertEquals(firstRoll, frame.getScore());\n assertEquals(firstRoll, frame.getPinsKnockedDown());\n assertEquals(FrameType.REGULAR, frame.getType());\n assertEquals(2, frame.getNumberOfRollsToListen());\n assertEquals(1, frame.getCurrentRoll());\n assertFalse(frame.isCompleted());\n }", "title": "" }, { "docid": "331760b17e081b41317fde1e273e47d8", "score": "0.5958009", "text": "public boolean gameLostCheck() {\n boolean gameLost = false;\n for (int i = 0; i < typeCounts.length; i++) {\n if (typeCounts[i] < 3 && typeCounts[i] != winCondition[i]) {\n gameLost = true;\n break;\n }\n }\n return gameLost;\n }", "title": "" }, { "docid": "5e053382c0ef9d5f78103421bceec96c", "score": "0.5956778", "text": "private boolean isCaptureOpponentStonesConditionMet(int slot)\n {\n return isActiveSlot(slot) && slots[slot - 1 ] == 1;\n }", "title": "" }, { "docid": "131ceabd9ea3a203249e246e2bff5c04", "score": "0.59559286", "text": "@Test\n void numberOfFallenPinsDuringCurrentRollTest5() {\n int firstRoll = 5;\n int secondRoll = 7;\n int thirdRoll = 3;\n assertEquals(0, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(firstRoll);\n assertEquals(1, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(secondRoll);\n assertEquals(2, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(thirdRoll);\n assertEquals(3, frame.getCurrentRoll());\n assertEquals(firstRoll + secondRoll + thirdRoll, frame.getScore());\n assertEquals(firstRoll + secondRoll + thirdRoll, frame.getPinsKnockedDown());\n assertEquals(FrameType.SPARE, frame.getType());\n assertEquals(2, frame.getNumberOfRollsToListen());\n assertTrue(frame.isCompleted());\n }", "title": "" }, { "docid": "741000f16c1e52ee73cb111a68ac392d", "score": "0.5949", "text": "public boolean checkThreefoldRepetitionRule() {\n\n\t\t// there is no need to check moves that where before last capture/en\n\t\t// passant/castling\n\t\tint lastNonAttackMoveIndex = findLastNonAttackMoveIndex();\n\t\tList<Move> omittedMoves = this.board.getMoveHistory().subList(0, lastNonAttackMoveIndex);\n\t\tBoardManager simulatedBoardManager = new BoardManager(omittedMoves);\n\n\t\tint counter = 0;\n\t\tfor (int i = lastNonAttackMoveIndex; i < this.board.getMoveHistory().size(); i++) {\n\t\t\tMove moveToAdd = this.board.getMoveHistory().get(i);\n\t\t\tsimulatedBoardManager.addMove(moveToAdd);\n\t\t\tboolean areBoardsEqual = Arrays.deepEquals(this.board.getPieces(),\n\t\t\t\t\tsimulatedBoardManager.getBoard().getPieces());\n\t\t\tif (areBoardsEqual) {\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\n\t\treturn counter >= 2;\n\t}", "title": "" }, { "docid": "054fa31d63152a12b36b213d76a5075d", "score": "0.59194595", "text": "@Test\n void numberOfFallenPinsDuringCurrentRollTest9() {\n int strike = 15;\n assertEquals(0, frame.getCurrentRoll());\n frame.numberOfFallenPinsDuringCurrentRoll(strike);\n assertEquals(1, frame.getCurrentRoll());\n assertEquals(strike, frame.getScore());\n assertEquals(strike, frame.getPinsKnockedDown());\n assertEquals(FrameType.STRIKE, frame.getType());\n assertEquals(3, frame.getNumberOfRollsToListen());\n assertTrue(frame.isCompleted());\n frame.numberOfFallenPinsDuringCurrentRoll(strike);\n frame.numberOfFallenPinsDuringCurrentRoll(strike);\n frame.numberOfFallenPinsDuringCurrentRoll(strike);\n assertEquals(4 * strike, frame.getScore());\n assertEquals(4 * strike, frame.getPinsKnockedDown());\n frame.numberOfFallenPinsDuringCurrentRoll(strike);\n assertEquals(4 * strike, frame.getScore());\n assertEquals(4 * strike, frame.getPinsKnockedDown());\n }", "title": "" }, { "docid": "44498911b706725c01ab84d2bf0c4bc7", "score": "0.59164274", "text": "boolean handlePlayerRoll(Player player){\n\t\trollDice();\t\t\t//Rolls dice\n\t\t//Checks if it is a double roll\n\t\tif (isDoubleRoll()) {\n\t\t\tduplicateRollCounter++;\t\t//Increments the counter\n\t\t\treturn !isThirdDouble(player);\t//Checks if it is the third double rolled\n\n\t\t} else {\n\t\t\tduplicateRollCounter = 0;\t\t//Resets the duplicate Roll counter\n\t\t\treturn false;\t\t\t\t\t//Returns false\n\t\t}\n\t}", "title": "" }, { "docid": "23514719d89e19ca9bc504b904800f2e", "score": "0.59088266", "text": "@Test\n public void checkGameIsNotCompleteWithOneFrame() {\n Scorecard scorecard = bowlingScorer.createScorecard();\n\n bowlingScorer.recordFrame(scorecard, 4, 4);\n\n assertTrue(scorecard.playedFrames.size() == 1);\n assertTrue(scorecard.playedFrames.get(0).score == 8);\n assertFalse(bowlingScorer.isGameComplete(scorecard));\n assertTrue(bowlingScorer.getTotalScore(scorecard) > 0);\n assertTrue(bowlingScorer.getTotalScore(scorecard) < 300);\n }", "title": "" }, { "docid": "538ceffdc7114dbcc0ebc4af75be376e", "score": "0.59009284", "text": "private void checkIfWinOrLose()\r\n\t{\r\n\t\tBoard b = ResourceManager.getInstance().getMyBoard();\r\n\t\tif(b.getCurrentRetries() == 0)\r\n\t\t{\r\n\t\t\tGameEnd e = new GameEnd(getContext(), false);\r\n\t\t\tSceneManager.getInstance().destroyCurrentScene();\r\n\t\t\tSceneManager.getInstance().setNewScene(e);\r\n\t\t\tSceneManager.getInstance().loadActiveScene();\r\n\t\t}\r\n\t\telse if(b.checkWin())\r\n\t\t{\r\n\t\t\tGameEnd e = new GameEnd(getContext(), true);\r\n\t\t\tSceneManager.getInstance().destroyCurrentScene();\r\n\t\t\tSceneManager.getInstance().setNewScene(e);\r\n\t\t\tSceneManager.getInstance().loadActiveScene();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3b1203cbc298ee99f4f86bb84d7dc1c4", "score": "0.58624184", "text": "public static int roll() {\n\t\tint events = 0;\t//No. of events it took to get a snake eyes outcome\r\n\t\tint die1, die2;\r\n\t\tdo\r\n\t\t{\r\n\t\t\tdie1 = (int)(Math.random()*6)+1;\r\n\t\t\tdie2 = (int)(Math.random()*6)+1;\r\n\t\t\tevents++;\r\n\t\t\tif(die1 == 1 && die2 == 1)\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}while(true); //continue rolling if both die are not 1\r\n\t\t\r\n\t\treturn events;\r\n\r\n\r\n\t\t}", "title": "" }, { "docid": "1018d062762f11ead43daa919a53c4cb", "score": "0.58549064", "text": "public static boolean raceWon(){\r\n return (racer1Position>=FINISHLINE || racer2Position>=FINISHLINE);\r\n }", "title": "" }, { "docid": "76cdd1e51c2b742b89aebf01f1e2a9ca", "score": "0.58545977", "text": "public boolean lastRolledOver();", "title": "" }, { "docid": "241b52189db2359e9b1a6a5448c2e0b7", "score": "0.58517784", "text": "@Test\n public void checkGameIsNotCompleteWithNineFrames() {\n Scorecard scorecard = bowlingScorer.createScorecard();\n\n bowlingScorer.recordFrame(scorecard, 0, 0);\n bowlingScorer.recordFrame(scorecard, 1, 9);\n bowlingScorer.recordFrame(scorecard, 2, 0);\n bowlingScorer.recordFrame(scorecard, 3, 6);\n bowlingScorer.recordFrame(scorecard, 4, 1);\n bowlingScorer.recordFrame(scorecard, 5, 2);\n bowlingScorer.recordFrame(scorecard, 6, 1);\n bowlingScorer.recordFrame(scorecard, 7, 3);\n bowlingScorer.recordFrame(scorecard, 8, 1);\n\n assertTrue(scorecard.playedFrames.size() == 9);\n assertFalse(bowlingScorer.isGameComplete(scorecard));\n assertTrue(bowlingScorer.getTotalScore(scorecard) > 0);\n assertTrue(bowlingScorer.getTotalScore(scorecard) < 300);\n }", "title": "" }, { "docid": "5b0cc30925bdc6b90be233eb4a7dbeac", "score": "0.58458054", "text": "public boolean endOfTurn_LosingBy_CloseCombat(){\r\n return closeCombatArea.size() == 2;\r\n }", "title": "" }, { "docid": "c3d328fca7ac578d48d053aa11590588", "score": "0.5817851", "text": "public boolean turnsOver(){\n\t\treturn this.turn_counter > MAX_TURNI;\n\t}", "title": "" }, { "docid": "a661f1e6f01179db8ba91bfd852e4606", "score": "0.57876706", "text": "protected boolean allHorseJockeyLeftThePadock(){\n return this.nHorseJockeyLeftThePadock == this.getNRunningHorses();\n }", "title": "" }, { "docid": "358c69296a3abff15c5ce29335fe6bd7", "score": "0.5779349", "text": "boolean isThirdDouble(Player player){\n\t\tif (duplicateRollCounter == 3) {\n\t\t\t//put player to jail on roll of the third double\n\t\t\tSystem.out.println(\"You have rolled doubles for the third time.\");\n\t\t\tJail.sendToJail(player);\n\t\t\tduplicateRollCounter = 0;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4066c55dfcd85673caf16f5a9fd700fe", "score": "0.5777244", "text": "public boolean checkLoose() {\n\t\tif(cardsSum() > 21) {\n\t\t\tcheckForAce();\n\t\t\tif(cardsSum() > 21) {\n\t\t\t\tSystem.out.println(\"Player busted\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cb48709485816bdbc292cd4e85fa9262", "score": "0.57761085", "text": "public boolean isRolling(int turnTotal, int opponentScore)\n {\n if (timesHeld == 4)\n {\n timesHeld--;\n }\n \n int holdValue = ((PigGame.GOAL - currentScore) / (4 - timesHeld));\n \n if (turnTotal < holdValue)\n {\n return true;\n }\n else\n {\n timesHeld++;\n return false;\n }\n }", "title": "" }, { "docid": "4436dcab1b7b33771d63555d92cf528b", "score": "0.57698506", "text": "@Test\n\tpublic void all_miss_last_roll_is_spare_equals_14() throws Exception {\n\t\tString rolls = \"------------------5/4\";\n\n\t\tint result = scoreCalculator.calculateScore(rolls);\n\n\t\tassertEquals(14, result);\n\t}", "title": "" }, { "docid": "4ba66ecc2d16b027271be032c151796a", "score": "0.5704825", "text": "public boolean hasLost() {\n\n if(getTriesLeft() == 0)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "b36ab7c0153fe6e36418b0f1ed7196f9", "score": "0.56811297", "text": "public void newAttempt()\n {\n rolls.clear();\n int oneCounter = 0;\n for (int i = 0; i < numDice; i++)\n {\n int result = dye.rollDye();\n if (result == 1)\n {\n oneCounter++;\n }\n while (result == type)\n {\n int oldResult = result;\n result = dye.rollDye() + oldResult;\n }\n rolls.add(result);\n }\n int halfRolls = rolls.size() / 2;\n if (oneCounter >= halfRolls)\n {\n System.out.println(\"Sorry, you rolled too many ones!\");\n }\n else\n {\n total = 0;\n for (int i = 0; i < numDice; i++)\n {\n int oldTotal = total;\n total = rolls.get(i) + oldTotal;\n }\n System.out.println(\"You rolled\" + total); \n }\n }", "title": "" }, { "docid": "8832843f1f15d87f3e4753da26084432", "score": "0.5674895", "text": "public int checkVictory() {\n\t\tint victory = 0;\n\t\tList<UnitÓ> p1Unit = this.player1.getUnitList();\n\t\tList<UnitÓ> p2Unit = this.player2.getUnitList();\n\t\tif (p1Unit.isEmpty() && p2Unit.isEmpty())\n\t\t\tvictory = 3;\n\t\telse if (p1Unit.isEmpty())\n\t\t\tvictory = 2;\n\t\telse if (p2Unit.isEmpty())\n\t\t\tvictory = 1;\n\n\t\treturn victory;\n\t}", "title": "" }, { "docid": "ec64dbdb11f2af811c55670407df019c", "score": "0.5664064", "text": "@Test\n public void checkScoringStrikeWithThreeFrames() {\n Scorecard scorecard = bowlingScorer.createScorecard();\n\n bowlingScorer.recordFrame(scorecard, 10);\n\n assertTrue(scorecard.playedFrames.size() == 1);\n assertTrue(scorecard.playedFrames.get(0).score == 10);\n\n bowlingScorer.recordFrame(scorecard, 4, 3);\n\n assertTrue(scorecard.playedFrames.size() == 2);\n assertTrue(scorecard.playedFrames.get(0).score == 17);\n assertTrue(scorecard.playedFrames.get(1).score == 7);\n assertTrue(scorecard.getTotalScore() == 24);\n\n bowlingScorer.recordFrame(scorecard, 2, 3);\n\n assertTrue(scorecard.playedFrames.size() == 3);\n assertTrue(scorecard.playedFrames.get(0).score == 17);\n assertTrue(scorecard.playedFrames.get(1).score == 7);\n assertTrue(scorecard.playedFrames.get(2).score == 5);\n assertTrue(scorecard.getTotalScore() == 29);\n }", "title": "" }, { "docid": "8c978822bc60c7d123910312844bcc36", "score": "0.5657512", "text": "private void checkForWin(){\n\t\tboolean check = true;\n\t\tfor (int i = 0; i<NCARDS; i++){\n\t\t\tif (!deck.isOnAceSpot(deck.getCard(i))){\n\t\t\t\tcheck = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tgameOn = !check;\n\t}", "title": "" }, { "docid": "415501ba7dcb740a79d0dd8461e946da", "score": "0.56205136", "text": "public int checkShields() {\n\n if (player.getHasShield() && shieldTurns > 0) {\n shieldTurns--;\n if (shieldTurns == 0) {\n player.setHasShield(false);\n }\n return shieldTurns;\n } else {\n shieldTurns = 6;\n return shieldTurns;\n }\n }", "title": "" }, { "docid": "bd6e42ff4bc4bc1a2bf5bfdb8391cd68", "score": "0.5608895", "text": "public void thirdroll(){\n\t\t\tdice = new Dice();\n\t\t\tdice.getDiceRoll();\n\t\t\t\n\t\t\tString msg3 = \"3rd player's point is \"+dice.showFace();\n\t\t\tJOptionPane.showMessageDialog(changePlayer,msg3);\n\t\t\tSystem.out.println(msg3);\n\t\t\t\n\t\t\tthirdPlayer = thirdPlayer+dice.showFace();\n\t\t\tcheckposition();\n\t\t}", "title": "" }, { "docid": "9eec2becf0aededbb48a8b6bb1e8bc2d", "score": "0.56057227", "text": "@Test\n public void checkScoringThreeNormalFrames() {\n Scorecard scorecard = bowlingScorer.createScorecard();\n\n bowlingScorer.recordFrame(scorecard, 4, 4);\n bowlingScorer.recordFrame(scorecard, 3, 6);\n bowlingScorer.recordFrame(scorecard, 0, 2);\n\n assertTrue(scorecard.playedFrames.size() == 3);\n assertTrue(scorecard.playedFrames.get(0).score == 8);\n assertTrue(scorecard.playedFrames.get(1).score == 9);\n assertTrue(scorecard.playedFrames.get(2).score == 2);\n assertTrue(bowlingScorer.getTotalScore(scorecard) == 19);\n }", "title": "" }, { "docid": "404e8acecb31ebfdd6fa0a6dc657c91f", "score": "0.559594", "text": "@Test\n public void checkScoringSpareWithFourFrames() {\n Scorecard scorecard = bowlingScorer.createScorecard();\n\n bowlingScorer.recordFrame(scorecard, 2, 8);\n\n assertTrue(scorecard.playedFrames.size() == 1);\n assertTrue(scorecard.playedFrames.get(0).score == 10);\n assertTrue(scorecard.getTotalScore() == 10);\n\n bowlingScorer.recordFrame(scorecard, 4, 6);\n\n assertTrue(scorecard.playedFrames.size() == 2);\n assertTrue(scorecard.playedFrames.get(0).score == 14);\n assertTrue(scorecard.playedFrames.get(1).score == 10);\n assertTrue(scorecard.getTotalScore() == 24);\n\n bowlingScorer.recordFrame(scorecard, 5, 0);\n\n assertTrue(scorecard.playedFrames.size() == 3);\n assertTrue(scorecard.playedFrames.get(0).score == 14);\n assertTrue(scorecard.playedFrames.get(1).score == 15);\n assertTrue(scorecard.playedFrames.get(2).score == 5);\n assertTrue(scorecard.getTotalScore() == 34);\n\n bowlingScorer.recordFrame(scorecard, 1, 2);\n\n assertTrue(scorecard.playedFrames.size() == 4);\n assertTrue(scorecard.playedFrames.get(0).score == 14);\n System.out.println(scorecard.playedFrames.get(1).score);\n System.out.println(scorecard.playedFrames.get(1).rolls.get(0).pins);\n System.out.println(scorecard.playedFrames.get(1).rolls.get(1).pins);\n assertTrue(scorecard.playedFrames.get(1).score == 15);\n assertTrue(scorecard.playedFrames.get(2).score == 5);\n assertTrue(scorecard.playedFrames.get(3).score == 3);\n\n assertTrue(scorecard.getTotalScore() == 37);\n }", "title": "" }, { "docid": "6193b0d35ffe4ed05ca119345ea984a3", "score": "0.55942404", "text": "public abstract boolean isRolling(int turnTotal, int opponentScore);", "title": "" }, { "docid": "8e69908723aae653e85c10cf40ec1083", "score": "0.5558859", "text": "private boolean checkForGameEnd() {\n if (Math.abs(((Supplier<Integer>) () -> {\n vt.increment();\n Tuple<VectorTimestamp, Integer> flagPosition = null;\n try {\n flagPosition = playground.getFlagPosition(vt.clone());\n } catch (RemoteException ex) {\n Logger.getLogger(Referee.class.getName()).log(Level.SEVERE, null, ex);\n }\n vt.update(flagPosition.getFirst());\n return flagPosition.getSecond();\n\n }).get()) >= Constants.KNOCK_OUT_FLAG_POSITION) {\n return true;\n } else if (((Supplier<Integer>) () -> {\n vt.increment();\n Tuple<VectorTimestamp, Integer> remainingTrials = null;\n try {\n remainingTrials = refereeSite.getRemainingTrials(vt.clone());\n } catch (RemoteException ex) {\n Logger.getLogger(Referee.class.getName()).log(Level.SEVERE, null, ex);\n }\n vt.update(remainingTrials.getFirst());\n return remainingTrials.getSecond();\n\n }).get() == 0) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "3dbc9477fbcb7da319b6d4497a322482", "score": "0.55569607", "text": "public boolean isGameOver()\n {\n return currentPeriod > numberOfPeriods;\n }", "title": "" }, { "docid": "e87be416acf62c50865a0333024ac976", "score": "0.5527202", "text": "public void checkCollisions() {\r\n\t\t\r\n\t\tRectangle r3 = drone.getBounds();\r\n\r\n\t\tfor(Airplane airplane : airplanes) {\r\n\t\t\tRectangle r2 = airplane.getBounds();\r\n\t\t\t\r\n\t\t\tif(r3.intersects(r2)) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(paused);\r\n\t\t\t\tif(!paused){\r\n\t\t\t\t\tdrone.loseLife();\r\n\t\t\t\t\tpaused = true;\r\n\t\t\t\t\tnew java.util.Timer().schedule( \r\n\t\t\t\t\t\tnew java.util.TimerTask() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\tpaused = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}, \r\n\t\t\t\t\t\t3000 \r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t\tif(drone.getLives() == 0){\r\n\t\t\t\t\tingame = false;\r\n\r\n\t\t\t\t\tdrone.setVisible(false);\r\n\t\t\t\t\tairplane.setVisible(false);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e6b12d43de46f64e7e033d17e2bffa0e", "score": "0.55266166", "text": "public abstract boolean isRolledOver();", "title": "" }, { "docid": "bcc220652b4aaedc155eeac43f6a73b7", "score": "0.5521772", "text": "private static final boolean IsDrawByThreefoldRepetition(){\n return false;\n }", "title": "" }, { "docid": "cad07b8d05b5e32703bd17ccecf5b3e7", "score": "0.5514819", "text": "public boolean checkGameOver() {\r\n\t\tfor (int i : p1) {\r\n\t\t\tif (i != 25) {\r\n\t\t\t\tfor (int j : p2) {\r\n\t\t\t\t\tif (j != 25) return false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5ea1aca0c3502fbd8c1e07c0d611d24f", "score": "0.55135846", "text": "@Override\n\tpublic boolean isFinalState(boolean quickCheck) {\n\t\treturn !isPlacesLeftToMove() || getPlayerWithLineOfThree() != 0;\n\t}", "title": "" }, { "docid": "0fafb6015a8e8a2d939b98db91e88575", "score": "0.5508634", "text": "private void checkFinalState(){\n\t\tSeat ball = player.getBall();\n\t\tif(ball.getXposition() == Table.finish_Seat_Position_X && \n\t\t\t\tball.getYposition() == Table.finish_Seat_Position_Y)\n\t\t{\n\t\t\tplayer.setScore(player.getScore() + Player.SCORE_SUCCESS_FACTOR);\n\t\t\tmainFrame.updateScoreLabel(player.getScore());\n\t\t\tspeedUp();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpunish();\n\t\t}\n\t}", "title": "" }, { "docid": "122f0e4472d680fe11d3cd9ed32cdbd2", "score": "0.55032045", "text": "public boolean threeOfAKind(){\n\n if(rolls[0]==rolls[1] && rolls[0]==rolls[2] && rolls[1] == rolls[2]){\n threeKind++;//..........................................................................Counter 3 Of a Kind\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "99a81c5f93d342a30e34c00065b45543", "score": "0.55022657", "text": "@Test\n void ifPreviousWasSpare() {\n\n DataObject dataObj = new DataObject();\n dataObj.getListOfFrameScores().add(new ScoreFrameObject(new int[]{5,2},0,1, ScoreFrameObject.ScoreType.UNKNOWN));\n dataObj.getListOfFrameScores().add(new ScoreFrameObject(new int[]{8,2},0,2, ScoreFrameObject.ScoreType.UNKNOWN));\n dataObj.getListOfFrameScores().add(new ScoreFrameObject(new int[]{5,3},0,3, ScoreFrameObject.ScoreType.UNKNOWN));\n dataObj.getListOfFrameScores().add(new ScoreFrameObject(new int[]{9,0},0,4, ScoreFrameObject.ScoreType.UNKNOWN));\n\n CalculationsVerTwo calcTwo = new CalculationsVerTwo();\n\n calcTwo.setDataObj(dataObj);\n\n calcTwo.runCalculations();\n\n assertEquals(\"[7, 22, 30, 39]\",calcTwo.getDataObj().getFinalScoreList().toString());\n }", "title": "" }, { "docid": "543c9c58466ebaba3e9c92048a67e6b1", "score": "0.5497232", "text": "private boolean stillTakingBets() {\n for(Player player : _playersInHand) {\n if(!player._hasPlayed || player._bet < _minBet) { return true; }\n }\n return false;\n }", "title": "" }, { "docid": "51a9b2ca785edcaa4a6ac32010bce6a5", "score": "0.5490479", "text": "public void checkIfValid() {\n while (!(sticks == 1) && !(sticks == 2)) {\n System.out.println(\"\\nCHEATER!!!\\n\");\n getSticks();\n }\n }", "title": "" }, { "docid": "d0eb541bb1fc761c0f35a9082328de0b", "score": "0.54881644", "text": "boolean hasRemaining();", "title": "" }, { "docid": "c95258302ebc5b7c7eff0a8e58de9987", "score": "0.54865736", "text": "private boolean canStep() {\r\n if (!isRunning() || this.frames.size() == 0) {\r\n return false;\r\n }\r\n if (getNumPlays() <= 0 || this.playCount < getNumPlays() - 1) {\r\n return true;\r\n }\r\n if (this.playCount == getNumPlays() - 1 && this.frameIndex < getFrameCount() - 1) {\r\n return true;\r\n }\r\n this.finished = true;\r\n return false;\r\n }", "title": "" }, { "docid": "39321b93fe4274bf2446360bcd188565", "score": "0.5483012", "text": "public static void main(String[] args) \n {\n boolean sameNum = false;\n boolean win = false;\n boolean lose = false;\n \n //First roll\n int sum1 = roll();\n if ( initValueEval(sum1) != 2 ) // if the initial roll results in win/lose\n {\n System.out.println(\"Thanks for playing!\");\n System.exit(0);\n }\n else // if the status is to continue\n { \n int sum2 = roll();\n int rVal = valueEval(sum1, sum2);\n \n while ( rVal == 2)\n {\n if (rVal == 1)\n System.exit(0);\n else\n {\n sum1 = sum2;\n sum2 = roll(); \n rVal = valueEval(sum1, sum2);\n \n \n }\n }\n }\n System.out.println(\"Thanks for playing!\");\n System.exit(0);\n \n \n }", "title": "" }, { "docid": "6106908c9be98c0e0a108ad8707ef69d", "score": "0.5478228", "text": "private boolean checkForMatchEnd() throws RemoteException {\n vt.increment();\n Tuple<VectorTimestamp, List<GameScore>> gamePointsT = refereeSite.getGamePoints(vt.clone());\n vt.update(gamePointsT.getFirst());\n List<GameScore> gamePoints = gamePointsT.getSecond();\n\n int team1 = 0;\n int team2 = 0;\n\n for (GameScore score : gamePoints) {\n if (score == GameScore.VICTORY_TEAM_1_BY_POINTS\n || score == GameScore.VICTORY_TEAM_1_BY_KNOCKOUT) {\n team1++;\n } else if (score == GameScore.VICTORY_TEAM_2_BY_POINTS\n || score == GameScore.VICTORY_TEAM_2_BY_KNOCKOUT) {\n team2++;\n }\n }\n\n return team1 == (Math.floor(Constants.NUMBER_OF_GAMES / 2) + 1)\n || team2 == (Math.floor(Constants.NUMBER_OF_GAMES / 2) + 1)\n || ((Supplier<Integer>) () -> {\n vt.increment();\n Tuple<VectorTimestamp, Integer> remainingTrials = null;\n try {\n remainingTrials = refereeSite.getRemainingTrials(vt.clone());\n } catch (RemoteException ex) {\n Logger.getLogger(Referee.class.getName()).log(Level.SEVERE, null, ex);\n }\n vt.update(remainingTrials.getFirst());\n return remainingTrials.getSecond();\n\n }).get() == 0;\n }", "title": "" }, { "docid": "ffc673221e86fc2febfd96847c78814e", "score": "0.5473048", "text": "public boolean isGameOver() {\r\n return (suitCount(spades)==13 && suitCount(diamonds)==13\r\n && suitCount(hearts)==13 && suitCount(clubs)==13);\r\n }", "title": "" }, { "docid": "635cc591dfc6c9776b05f4ac09509ca2", "score": "0.5469465", "text": "public static boolean gameOver(){\n\t\treturn sameLengthWds().contains(endWd);\n\t}", "title": "" }, { "docid": "c5b61ba52d2af5f5bb063759934d276a", "score": "0.5453885", "text": "public boolean gameOver() {\n return books.size() >= 13 || !isAlivePlayers();\n\n }", "title": "" }, { "docid": "cb5000faf2bb98dc1028be5667785d39", "score": "0.5447254", "text": "private boolean playingAllowed()\n {\n int start = getStart();\n int stop = getStop();\n \n if( (stop != 0 && start != stop && currentSample > stop) || (currentSample > getSampleAmount()))\n return false;\n return true;\n }", "title": "" }, { "docid": "8cb327c1e9246da65302648c580ff05c", "score": "0.5439164", "text": "@Override\n protected boolean isFinished() {\n\n return Math.abs(error) < maxAllowableError && Math.abs(errordot) < maxAllowableError || timer.get() > 3;\n \n }", "title": "" }, { "docid": "8e22547560d420b33a02c63498913bc0", "score": "0.5436155", "text": "public boolean gameOver(){\r\n if(player.currentState == Player.State.DEAD && player.getStateTimer() > 3){\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "3f68ea0412508483cad4ed0f617f9ec2", "score": "0.543442", "text": "@Override\n public boolean isGameOver() throws IllegalStateException {\n hasGameStarted();\n\n List<Card> faceUpCards = new ArrayList<Card>();\n\n // loops through the rows\n for (int row = 0; row < pyramid.size(); row += 1) {\n\n // loops through the columns\n for (int card = 0; card < pyramid.get(row).size(); card += 1) {\n if (row == pyramid.size() - 1) {\n for (Card c : pyramid.get(row)) {\n if (c != null) {\n Card currentC = new Card(c.value, c.suit, c.name);\n faceUpCards.add(currentC);\n }\n }\n }\n else if (pyramid.get(row).get(card) != null) {\n if (pyramid.get(row + 1).get(card) == null\n && pyramid.get(row + 1).get(card + 1) == null) {\n\n Card currentC = new Card(pyramid.get(row).get(card).value,\n pyramid.get(row).get(card).suit,\n pyramid.get(row).get(card).name);\n faceUpCards.add(currentC);\n }\n }\n }\n }\n\n // checks if any two cards add to thirteen\n for (Card c : faceUpCards) {\n for (int j = 0; j < faceUpCards.size(); j += 1) {\n if (c != null && c != faceUpCards.get(j)) {\n if (c.value == 13) {\n return false;\n }\n else if (c.value + faceUpCards.get(j).value == 13) {\n return false;\n }\n else {\n\n // checks if any cards in the draw pile can be removed with an exposed\n // card\n for (int dr = 0; dr < drawCards.size(); dr += 1) {\n if (c.value + drawCards.get(dr).value == 13) {\n return false;\n }\n }\n\n // checks if any cards in the stock be removed\n for (int d = 0; d < stock.size(); d += 1) {\n if (c.value + stock.get(d).value == 13) {\n return false;\n }\n }\n }\n }\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "6f9fd666c80df7ee0486d4e82bad418e", "score": "0.54341143", "text": "@Override\n public void checkCountdownExpired() {\n\n // lose a life, check if it's game over\n boolean gameover = isGameOver();\n\n // new number to double\n if (gameover == false) {\n // show result and start a new game session if allowed\n showResult(false);\n }\n\n }", "title": "" }, { "docid": "614d92e53421e69a241615468fb51a61", "score": "0.5426925", "text": "boolean hasLevelUpRewards();", "title": "" }, { "docid": "31a1a5855291c1eed243c694c6ed5af6", "score": "0.54237926", "text": "protected boolean allNHorsesInPaddock(){ \n return this.nHorsesInPaddock == this.getNRunningHorses();\n }", "title": "" }, { "docid": "d9523afe1b0b1cf44d84677c9f4ef200", "score": "0.5416007", "text": "private void checkBeeperOnLeft() {\n\t\tturnLeft();\n\t\tmove();\n\t\tif(beepersPresent()) {\n\t\t\tturnAround();\n\t\t\tmove();\n\t\t\tturnLeft();\n\t\t}\n\t\telse {\n\t\t\tturnAround();\n\t\t\tmove();\n\t\t\tturnLeft();\n\t\t\tputBeeper();\n\t\t}\n\t}", "title": "" }, { "docid": "5026dd074a5e3fdcdf9c18d0bae275b9", "score": "0.5415011", "text": "public void checkGameState() {\n\n if (player.enemyManager.hasPlayerWon()) {\n game.setScreen(new WinLoseScreen(game.getBatch(), \"YOU WIN!!\", this.isDemo));\n }\n int sabotagedCount = 0;\n for (Systems system : systems) {\n if (system.is_sabotaged()) {\n sabotagedCount++;\n }\n }\n if (sabotagedCount >= 15 || player.health <= 1) {\n game.setScreen(new WinLoseScreen(game.getBatch(), \"YOU LOSE!!\", this.isDemo));\n }\n\n }", "title": "" }, { "docid": "3724b0af5e1c26ad5710016b852e71d1", "score": "0.54105556", "text": "boolean isGameOver() {\n\t\tint count = 0;\n\t for (int i = 0; i < 10; ++i)\n\t for (int j = 0; j < 10; ++j) {\n\t if (ships[i][j].isSunk()) {\n\t ++count;\n\t }\n\t }\n\t return count == 20; \n\t}", "title": "" }, { "docid": "96122096d0c71225f91d7b9a954ae37d", "score": "0.5404206", "text": "private boolean checkGameOver() {\n if (score == MAX_SCORE) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "590eeb7f918c21669161c14e6c42cc24", "score": "0.540312", "text": "public void isShot() {\n\t\tgetInjured += 10;\n\t\tif (getInjured >= healthBar/10) {\n\t\t\terase();\n\t\t}\n\t}", "title": "" }, { "docid": "7e82d0d46edae4c8fffe886d819f8a08", "score": "0.540117", "text": "private static boolean moveDiceAndCheckIfGameIsOver(int num){\n return moveDiceByLeftOverAndCheckIfGameIsOver(num);\n }", "title": "" }, { "docid": "91bb60ea4001630cf683632cc5b87767", "score": "0.53861254", "text": "public boolean isGameOver() {\n\t\treturn newRound && waveNumber > Waves.MAX_WAVES;\n\t}", "title": "" }, { "docid": "0dab464178521e48f6ab36c03ddc43a1", "score": "0.5385865", "text": "private void checkForTeamVictory()\n\t{\n\t\t\n\t\tLMSTeamInfo lastTeam = null;\n\t\t\n\t\tfor ( LMSTeamInfo team : teams )\n\t\t\tif ( getOnlinePlayers(new PlayerFilter().team(team)).size() > 0 )\n\t\t\t{\n\t\t\t\tif ( lastTeam != null )\n\t\t\t\t\treturn; // multiple teams have players left\n\t\t\t\telse\n\t\t\t\t\tlastTeam = team;\n\t\t\t}\n\t\t\n\t\tif ( lastTeam == null )\n\t\t\tbroadcastMessage(\"All players dead, game drawn\");\n\t\telse\n\t\t\tbroadcastMessage(\"The \" + lastTeam.getChatColor() + lastTeam.getName() + ChatColor.RESET + \" is the last team standing. The \" + lastTeam.getName() + \" wins!\");\n\t\t\t\n\t\tfinishGame();\n\t}", "title": "" }, { "docid": "4319a47df24ec6d5d26383b3670be9c3", "score": "0.5366949", "text": "private void checkLostWin() {\n if (manager.lose()) {\n Toast.makeText(getContext(), \"Lose, click blank to restart\", Toast.LENGTH_SHORT).show();\n } else if (manager.win()) {\n Toast.makeText(getContext(), \"win, click blank to restart\", Toast.LENGTH_SHORT).show();\n saveScore();\n }\n }", "title": "" }, { "docid": "36a5b7c9fb1b9c9b4e46841e5fb9c65e", "score": "0.53653103", "text": "private static void checkForLoseSituation()\r\n {\n int looser = onlyOnePlayerGotCards();\r\n if( deckCards.size() == 0 && looser != -1 )\r\n {\r\n //declare him a looser\r\n Server.printToAll(\"GAME OVER!\");\r\n Server.printToAll(\"/looser \"+ Server.getNickNameByID( looser ));\r\n updateEverything();\r\n Server.stopServer();\r\n //System.out.println(\"*LOOSER*\");\r\n }\r\n }", "title": "" }, { "docid": "cfa359762a47722888785cb51a4ec6d5", "score": "0.5362692", "text": "@Override\n public boolean isFinished() {\n return m_colorWheelSubsystem.numRotations(rotationCount) > 6; // Stops the motor when the wheel is spun three and a half times \n }", "title": "" }, { "docid": "12f684a362dc5c3d2e5edd7b0f0a0132", "score": "0.53608084", "text": "boolean allowFall();", "title": "" }, { "docid": "e6801f6d0c1df6dcec21d04140d19200", "score": "0.53545284", "text": "private boolean assessWindow(List<CVParticle> window) {\n if (window.size() != windowSize) return false;\n long previous = window.get(0).getSequenceNr();\n for (int i = 1; i < window.size(); i++) {\n if (window.get(i).getSequenceNr() - previous != sequenceDelta) return false;\n previous = window.get(i).getSequenceNr();\n }\n return true;\n }", "title": "" }, { "docid": "f9c6ae7ff2ebc403de24815c38f84761", "score": "0.5347816", "text": "public void add(int roll) {\n\n if (roll <= faceCounter.length) {\n faceCounter[roll - 1]++;\n numRolls++;\n }\n\n }", "title": "" }, { "docid": "7194523281fe47e4a77a137fa6f8f68f", "score": "0.53377783", "text": "public boolean checkStatus(){\n\t\tint s =trail.size()-1; // gives you the leading point on the trail as it was added last to the Arraylist\n\t\t\n\t\t//Checks collision for Player 1 with boundary\n\t\tif(trail.get(s).getX() > 895 || trail.get(s).getX() < 95 || trail.get(s).getY() > 945 || trail.get(s).getY() < 145){\n\t\t\twinner = \"Player 2\";\n\t\t\tscore2++;\n\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t//Checks collision for Player 2 with boundary\n\t\tif(trail2.get(s).getX() > 895 || trail2.get(s).getX() < 95 || trail2.get(s).getY() > 945 || trail2.get(s).getY() < 145){\n\t\t\twinner = \"Player 1\";\n\t\t\tscore1++;\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Checks collision for Player 1 with Player 2\n\t\tfor (int i = 0; i < trail2.size()-1;i++){\n\t\t\tif(trail.get(s).equals(trail2.get(i))){\n\t\t\t\twinner = \"Player 2\";\n\t\t\t\tscore2++;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t//Checks collision for Player 2 with itself\n\t\t\tif(trail2.get(s).equals(trail2.get(i))){\n\t\t\t\twinner = \"Player 1\";\n\t\t\t\tscore1++;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Checks collision for Player 2 with Player 1\n\t\tfor (int i = 0; i < trail.size()-1;i++){\n\t\t\tif(trail2.get(s).equals(trail.get(i))){\n\t\t\t\twinner = \"Player 1\";\n\t\t\t\tscore1++;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t//Checks collision for Player 1 with itself\n\t\t\tif(trail.get(s).equals(trail.get(i))){\n\t\t\t\twinner = \"Player 2\";\n\t\t\t\tscore2++;\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn true;\t\t\n\t}", "title": "" }, { "docid": "e848fae157fc96460cd926a9d99783d6", "score": "0.5333979", "text": "private boolean canSwitch(LoopManiaWorld world) {\n int currentRound = world.getLoopCount();\n int shopCounter = world.getShopRoundCounter();\n\n if (currentRound == world.getPreviousShopRound()) {\n world.setShopRoundCounter(shopCounter + 1);\n world.setPreviousShopRound(currentRound + (shopCounter + 1));\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "35995631aeb8d0b3fd5d1b048d2fb60c", "score": "0.5333126", "text": "protected boolean doesSuck() {\n\t\tif (environment.getEvaluationInfo().distancePassedPhys == lastPos) {\n\t\t\tframesInSamePos++;\n\t\t\tif (framesInSamePos >= STAYS_STILL_THRESHOLD) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\tframesInSamePos = 0;\n\t\t}\n\n\t\tlastPos = environment.getEvaluationInfo().distancePassedPhys;\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8b2c5df32ccfba373b32d4b6b572ffd0", "score": "0.5331919", "text": "@Test\n public void checkScoringOneNormalFrame() {\n Scorecard scorecard = bowlingScorer.createScorecard();\n\n bowlingScorer.recordFrame(scorecard, 4, 4);\n\n assertTrue(scorecard.playedFrames.size() == 1);\n assertTrue(scorecard.playedFrames.get(0).score == 8);\n assertTrue(bowlingScorer.getTotalScore(scorecard) == 8);\n }", "title": "" }, { "docid": "e9738aa252a6c0e1304792d270fc5a39", "score": "0.5330047", "text": "boolean hasRewards();", "title": "" }, { "docid": "7172bf20f39db8ef6e80861082a68b2e", "score": "0.5323733", "text": "private void checkGameOver() {\n\t\t\r\n\t\tfor (int i = 0; i < handler.player.getItems().size(); i++) {\r\n\t\t\tif (handler.player.getItems().get(i).getID() == ItemID.talisman) {\r\n\t\t\t\tSystem.out.println(\"Youre'immediately greeted by the Twilight Dragon, but with a mighty snap of you mighty fingers, you bring it to the ground.\");\r\n\t\t\t\tSystem.out.println(\"You are victorious!\");\r\n\t\t\t\tgameOver();\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"You stumble over a stray skateboard and fall to your death.\");\r\n\t\tgameOver();\r\n\t}", "title": "" }, { "docid": "837b2969dd704aa7d634d667f549007f", "score": "0.53154963", "text": "public boolean checkLose() {\n for (PebbleNode node: listOfPebbleNodes)\n if (node.getPebbles() >= 2)\n return false;\n return true;\n }", "title": "" }, { "docid": "b4c6030e1a8e5fc0105dc791c8b4a1d2", "score": "0.531276", "text": "public static void checkSuccess() {\n\n\t\t/*\n\t\t * State 1 (max): max equals the total maximum value of treasure given the number of treasure objects in ArrayList treasure and \n\t\t * the capacity of the player's largest treasure bag. \n\t\t */\n\t\tint max = treasureBag(Bag.getLargestCapacity(), treasure.size());\n\n\t\t/*\n\t\t * State 2 (total value): total value = max, XOR total value < max\n\t\t */\n\t\tif (max == totalVal && totalVal !=0) {\n\t\t\t/*\n\t\t\t * State 3 (complement1): Loot successful message is printed. \n\t\t\t */\n\t\t\tSystem.out.println(\"Loot successful: Maximum total value achieved.\");\n\t\t}\n\t\telse {\n\t\t\tif(totalVal == 0) {\n\t\t\t\t/*\n\t\t\t\t * State 4 (complement2): Loot unsuccessful message is printed. \n\t\t\t\t */\n\t\t\t\tSystem.out.println(\"You have the minimum total value: 0.\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t/*\n\t\t\t\t * State 5 (complement3): Loot unsuccessful message is printed.\n\t\t\t\t */\n\t\t\t\tint difference = max - totalVal;\n\t\t\t\tSystem.out.println(\"Loot unsuccessful: you are \" + difference + \" away from the possible maximum value looted.\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3ccf1ef2830104d82dfd9666e778b1e8", "score": "0.5308885", "text": "private void checkGameOver() {\r\n gameOver = checkGameOver(board);\r\n }", "title": "" }, { "docid": "9e70ae26d087e0ab5c73c77ff4834b5c", "score": "0.5302579", "text": "private void multipleRollClicked(ActionEvent actionEvent) {\n// Verify that guess is valid\n int guess = verifyGuess();\n if (guess == -1) return;\n int diceToRoll = 0;\n \n// Validate amount of dice entered\n while (true) {\n String diceToRollRaw = JOptionPane.showInputDialog(pnlMain, \"Please enter the amount of dice that you would like to roll at once\", \"Roll Dice\", JOptionPane.QUESTION_MESSAGE);\n try {\n diceToRoll = Integer.parseInt(diceToRollRaw);\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(pnlMain, \"The amount of dice you have entered is invalid! Please try again!\", \"Dice Invalid\", JOptionPane.ERROR_MESSAGE);\n continue;\n }\n if (diceToRoll <= 0) {\n JOptionPane.showMessageDialog(pnlMain, \"The amount of dice you have entered is invalid! Please try again!\", \"Dice Invalid\", JOptionPane.ERROR_MESSAGE);\n continue;\n }\n break;\n }\n \n// Roll\n roll(diceToRoll, guess);\n }", "title": "" }, { "docid": "4639ae53b9bdad418e957e339f85d663", "score": "0.5301977", "text": "private boolean isCapture(int last_index_played) {\n\n\t\tif(isValidHouse(last_index_played)) {\n\t\t\tif(game_fields.get(last_index_played).getPlayer().getPlayerID() == player_turn && game_fields.get(last_index_played).getSeedCount() == 1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6a79ea24d7ae3343b2fc0b6005123f4d", "score": "0.53013784", "text": "public boolean gameIsOver(){\n\t\treturn noRoundsRemeaining() || hakoShita();\n\t}", "title": "" }, { "docid": "07579fa2efd067f06793e84b159c20bd", "score": "0.52987695", "text": "public void secondroll(){\n\t\t\tdice = new Dice();\n\t\t\tdice.getDiceRoll();\n\t\t\tString msg2 = \"2nd player's point is \"+dice.showFace();\n\t\t\tJOptionPane.showMessageDialog(changePlayer,msg2);\n\t\t\tSystem.out.println(msg2);\n\t\t\tsecondPlayer = secondPlayer+dice.showFace();\n\t\t\tcheckposition();\n\t\t}", "title": "" }, { "docid": "3543a117e8037e083258cbc3470c6af8", "score": "0.52981025", "text": "boolean hasLose();", "title": "" }, { "docid": "b0ed48d5d594e1a4368b9ac825c1ede6", "score": "0.5294465", "text": "@Override\n\tprotected final boolean checkLost() {\n\t\t// confirma se posi�oes adjacentes verticais e horizontais as passadas por\n\t\t// argumento (heroi) sao as do guarda\n\t\treturn Utilities.checkAdjacentCollision(hero.getPosition(), guard.getPosition());\n\t}", "title": "" }, { "docid": "ebd93e2dbcf3e50eb245ac6710af1ad4", "score": "0.5294343", "text": "public boolean checkLastArc(){\n int len = arcs.size();\n //Log.d(\"arcs\", \"checkArc: \" + arcs.size());\n return len < 3;\n }", "title": "" }, { "docid": "2444cbd67e34471f9df42dd4aba48990", "score": "0.5292835", "text": "private void numberOfDiceToRoll() {\n\n if (oneDice.isPushTriggered()) {\n numOfDice = 1;\n battle.setNumOfDiceAtt(1);\n battle.resetDice();\n }\n if (twoDice.isPushTriggered()) {\n numOfDice = 2;\n battle.setNumOfDiceAtt(2);\n battle.resetDice();\n }\n if (threeDice.isPushTriggered()) {\n numOfDice = 3;\n battle.setNumOfDiceAtt(3);\n battle.resetDice();\n }\n }", "title": "" }, { "docid": "c83563fefef3bb86863ca115a59b753a", "score": "0.52907175", "text": "private boolean moreCarsLeftThanRight(Game game) {\n\t\tint carsLeft = this.countCars(0, 300, false, game);\n\t\tint carsRight = this.countCars(0, 300, true, game);\n\t\treturn carsLeft + 1 > carsRight;\n\t}", "title": "" }, { "docid": "73158fc6ddc89dbf52550df1746c7e94", "score": "0.5289476", "text": "private boolean gameIsOver()\n {\n //check for horizontal 3 in a row\n if (horizontalWin())\n return true;\n \n //check if vertical 3 in a row\n if (verticalWin())\n return true;\n\n //check for diagnal\n if (diagnalWin())\n return true;\n\n //make sure this is checked last because full board won't set a winner\n //this is only for ties\n if (fullBoard())\n return true;\n\n //game is not over if all checks return false\n return false;\n }", "title": "" } ]
fcf0097d594a2ee3c01e1a1c1f5c76ba
Allows to set the current snapshot start sequence number.
[ { "docid": "db0473b964e022b8dbe430b8a32473d1", "score": "0.765492", "text": "public void setSnapshotStartSeqno(long snapshotStartSeqno) {\n this.snapshotStartSeqno = snapshotStartSeqno;\n }", "title": "" } ]
[ { "docid": "f057f81825ebf354077604ab4de20d91", "score": "0.71917206", "text": "public void setStartSeqno(long startSeqno) {\n this.startSeqno = startSeqno;\n }", "title": "" }, { "docid": "e156366b358a3cf20535ab123854221f", "score": "0.70939356", "text": "public long getSnapshotStartSeqno() {\n return snapshotStartSeqno;\n }", "title": "" }, { "docid": "7df2e237232f5762b047bfed7d660ae8", "score": "0.7051258", "text": "void setSequenceNumber(INT sequenceNumber);", "title": "" }, { "docid": "633f01bd34447a6ba1370cf59450c346", "score": "0.67522377", "text": "public void setStart(int aStart)\n {\n _start = aStart;\n }", "title": "" }, { "docid": "617b79031354facae4273de5bf88861c", "score": "0.66429806", "text": "public void setStart(long aStart);", "title": "" }, { "docid": "bb9a26229452d61dff1e0677d2a72c95", "score": "0.66288775", "text": "public Builder setStartVersion(long value) {\n \n startVersion_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d8f93b9390db89902339d6810a3e884a", "score": "0.6593253", "text": "public void setSequenceNumber(java.lang.String sequenceNumber);", "title": "" }, { "docid": "1ea7694ac542b8b6cbbe90522e9249a3", "score": "0.65756464", "text": "public void setSequence(int sequence) {\n this.sequence = sequence;\n }", "title": "" }, { "docid": "8e84f700029fadb076fdee2d67b34c5c", "score": "0.6560476", "text": "public void setStart(int start) {\n this.start = start;\n }", "title": "" }, { "docid": "8e84f700029fadb076fdee2d67b34c5c", "score": "0.6560476", "text": "public void setStart(int start) {\n this.start = start;\n }", "title": "" }, { "docid": "5a42438e86c606542b9b204af01f84bb", "score": "0.6548533", "text": "public long getStartSeqno() {\n return startSeqno;\n }", "title": "" }, { "docid": "59661055cb0b3a8603c280736dced9c2", "score": "0.6544892", "text": "public void setStartAt(int startAt)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTAT$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTAT$2);\n }\n target.setIntValue(startAt);\n }\n }", "title": "" }, { "docid": "053bca7179198b911ec1b883773ac4ea", "score": "0.6518107", "text": "public Builder setSequenceNumber(int value) {\n bitField0_ |= 0x00000020;\n sequenceNumber_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ab379a015b65401653bfd1f6b9a84cf6", "score": "0.65131396", "text": "@Override\n\tpublic void setSequence(BigInteger arg0) {\n\t\tsequence = arg0;\n\n\t}", "title": "" }, { "docid": "518624b789c61408f2e757a4920e7347", "score": "0.65093684", "text": "public void setSeq(Integer seq) {\r\n this.seq = seq;\r\n }", "title": "" }, { "docid": "c98380651cc762429e50fea6983c52be", "score": "0.6487133", "text": "public void setSequence(Integer sequence) {\n this.sequence = sequence;\n }", "title": "" }, { "docid": "017b2b587e2ff896394d51ddaa09b7fe", "score": "0.64496005", "text": "public void setSeq(Integer seq) {\n this.seq = seq;\n }", "title": "" }, { "docid": "017b2b587e2ff896394d51ddaa09b7fe", "score": "0.64496005", "text": "public void setSeq(Integer seq) {\n this.seq = seq;\n }", "title": "" }, { "docid": "017b2b587e2ff896394d51ddaa09b7fe", "score": "0.64496005", "text": "public void setSeq(Integer seq) {\n this.seq = seq;\n }", "title": "" }, { "docid": "9c050c41ee583eb62fac7b0a1d66a239", "score": "0.6434069", "text": "public void setSeqNbr(int value) {\n this.seqNbr = value;\n }", "title": "" }, { "docid": "fd83cadec892a5971a5aada2378274b9", "score": "0.6411354", "text": "private void setSeq() {\n\t\tbuffer[2] = (byte)((seq >> 8) & 0x00ff);\n\t\tbuffer[3] = (byte)(seq & 0x00ff);\n\t\tseq++;\n\t}", "title": "" }, { "docid": "dcb95f883d773918a1e3d017887bc330", "score": "0.6395292", "text": "public Builder setStartindex(long value) {\r\n \r\n startindex_ = value;\r\n onChanged();\r\n return this;\r\n }", "title": "" }, { "docid": "faf914cd411a13c78b06c89081369614", "score": "0.6253657", "text": "public void setSequenceNum(long param) {\n this.localSequenceNum = param;\n }", "title": "" }, { "docid": "a8b66aba9012573ec1e3b606697d1f05", "score": "0.62439305", "text": "public Builder setStart(int value) {\n bitField0_ |= 0x00000001;\n start_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "aa9194b9d29f5d178c1a71882057dc17", "score": "0.6195155", "text": "public Builder setStart(long value) {\n bitField0_ |= 0x00000001;\n start_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "aa9194b9d29f5d178c1a71882057dc17", "score": "0.6195155", "text": "public Builder setStart(long value) {\n bitField0_ |= 0x00000001;\n start_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "61bbeaa3ebda66c24d91de7456a4faef", "score": "0.6154995", "text": "public void setSequence(String aSequence);", "title": "" }, { "docid": "78b69f126d66428d56843187bba99f4b", "score": "0.61430776", "text": "private void setSequenceId(int value) {\n bitField0_ |= 0x00000100;\n sequenceId_ = value;\n }", "title": "" }, { "docid": "a115470ce02361fb01692ce2e5ff86d8", "score": "0.61181885", "text": "public void setScanSequence(long value) {\n this.scanSequence = value;\n }", "title": "" }, { "docid": "920a182fc679bf284bdce5d3d18ea04c", "score": "0.6107073", "text": "public Builder setSeqNum(long value) {\n bitField0_ |= 0x00000002;\n seqNum_ = value;\n \n return this;\n }", "title": "" }, { "docid": "fa97ef32e11ba9d1fe819bfe6320b8b9", "score": "0.60870624", "text": "private void setStartMessageIdFrom(long value) {\n \n startMessageIdFrom_ = value;\n }", "title": "" }, { "docid": "ea89223eae0d608a9bafdec5b3f5514a", "score": "0.60594857", "text": "public Builder setSeq(int value) {\n bitField0_ |= 0x00000004;\n seq_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "043d783695617a50689ffe2e16e486c5", "score": "0.60511935", "text": "public void setSeqNum (java.lang.Integer seqNum) {\r\n\t\tthis.seqNum = seqNum;\r\n\t}", "title": "" }, { "docid": "42205e6dc8a1f3b11b1c146d2a850249", "score": "0.6044034", "text": "public void setStartRowId(String startRowId);", "title": "" }, { "docid": "6f06ff53b3f7d6d5e690f0abe6c3dcf6", "score": "0.602928", "text": "public void setSelectionStart(int start);", "title": "" }, { "docid": "d7974347ee862ed622ccdc072a27224a", "score": "0.6024468", "text": "public void setStart(int param){\r\n localStartTracker = true;\r\n \r\n this.localStart=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "e34a8efcfb55f6a430a4505c4a2d3b5a", "score": "0.6004758", "text": "public void setStart(Position start) {\n this.start = start;\n }", "title": "" }, { "docid": "5f6f705c9a2364124f55579872da8596", "score": "0.59995526", "text": "public void setStartLineNumber(int foo) { startLineNumber = foo; }", "title": "" }, { "docid": "e8b7dcd0dedada4c16e5f63f874bcd77", "score": "0.5999311", "text": "public void setSeqNum(Long seqNum) {\n this.seqNum = seqNum;\n }", "title": "" }, { "docid": "69a0a83d336569e8ef2c177bf2dbf007", "score": "0.59778625", "text": "@Test\n public void testSetBaseSnapshotStart() {\n LogReplicationMetadataManager metadataManager = new LogReplicationMetadataManager(corfuRuntime, replicationContext);\n metadataManager.addSession(defaultSession, topologyConfigId, true);\n\n ReplicationMetadata metadata = metadataManager.getReplicationMetadata(defaultSession);\n Assert.assertNotNull(metadata);\n\n boolean snapshotStartTsSetWithInvalidTopConfigId = metadataManager.setBaseSnapshotStart(defaultSession,\n topologyConfigId + 1, Address.NON_ADDRESS);\n boolean snapshotStartTsSetWithValidTopConfigId = metadataManager.setBaseSnapshotStart(defaultSession,\n topologyConfigId, 6L);\n\n Assert.assertFalse(snapshotStartTsSetWithInvalidTopConfigId);\n Assert.assertTrue(snapshotStartTsSetWithValidTopConfigId);\n }", "title": "" }, { "docid": "e331f1c9fdfde6b512c30851ab5da52f", "score": "0.5972609", "text": "public Builder setSeq(long value) {\n \n seq_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6117384680603ce48e31d05fda93ac00", "score": "0.5961393", "text": "@Override\n public void setSourceStart(int sourceStart)\n {\n\n }", "title": "" }, { "docid": "be53f7aa679b8016ed6fc24feca9ae7f", "score": "0.59299", "text": "public void setSequenceNumber(long sequenceNumber) {\n\t\tthis.sequenceNumber = sequenceNumber;\n\t}", "title": "" }, { "docid": "e1866d3a94505ded2545ee72ad3b12b9", "score": "0.5925108", "text": "public void set_seqNum(int sequenceNumber)\n\t{\n\t\tthis.seqNumber = sequenceNumber;\n\t}", "title": "" }, { "docid": "ea6c1d9a248a47397d9b979686b97340", "score": "0.59237665", "text": "public void setDisplayStart(int value) {\n\t\t\tthis.displayStart = value;\n\t\t}", "title": "" }, { "docid": "eac584376b7a6522811873ae9bfa760c", "score": "0.591037", "text": "@Override\n public void setStartPageNumber(int startPageNumber) {\n this.startPageNumber = startPageNumber;\n }", "title": "" }, { "docid": "e3a129839aa6217342c0df293fc1905d", "score": "0.5890046", "text": "public void setTransactionSequence(long value) {\n this.transactionSequence = value;\n }", "title": "" }, { "docid": "c0df061105a98ded56f25bfc0ffe77b6", "score": "0.58378494", "text": "public Builder setVersionSeq(int value) {\n bitField0_ |= 0x00000001;\n versionSeq_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0ecd5e78f1c11ba4ae2b082c641b9200", "score": "0.58214337", "text": "public void setStartRow(int startRow) {\r\n\t\tthis.startRow = startRow;\r\n\t}", "title": "" }, { "docid": "59348cf80ac84ca86bdb17ae8acfa248", "score": "0.5820158", "text": "public void setStart(String start) {\n this.start = start;\n }", "title": "" }, { "docid": "2db516e8b38aa55421b6316f5b33b8da", "score": "0.5817784", "text": "public void setXStart(int value)\n\t{\n\t\txStart = value;\n\t}", "title": "" }, { "docid": "1d02e0f858790b6411de8976284c16fd", "score": "0.5812952", "text": "public void setStartID(Long startID)\n {\n this.startID = startID;\n }", "title": "" }, { "docid": "dbf8df597cb1856e3596977b29b8bbe6", "score": "0.5811166", "text": "public AlbumQueryBuilder setStart(@AllowZero int start) {\n\t\t\tsuper.built.start = start;\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "a6fe8f8eab7569addadf32090ff22cdf", "score": "0.5797415", "text": "public void setRowseqnb(int value) {\n this.rowseqnb = value;\n }", "title": "" }, { "docid": "2dc6ab24904f5e2d3fd045026653ffb5", "score": "0.57897544", "text": "public void setSequence(String sequence) {\n\t\tthis.sequence = sequence;\n\t}", "title": "" }, { "docid": "adcbf716b34371a80dca459091852237", "score": "0.5779667", "text": "public com.fretron.Model.TripPoint.Builder setSequenceId(java.lang.Double value) {\n validate(fields()[4], value);\n this.sequenceId = value;\n fieldSetFlags()[4] = true;\n return this;\n }", "title": "" }, { "docid": "20dce4005ba522b4742336721a108fd7", "score": "0.57689184", "text": "public void setStart(final Point theNewStart) {\n myStart = theNewStart;\n }", "title": "" }, { "docid": "3277b5bb1ac2888eda2d432ddd397d4d", "score": "0.57641184", "text": "public void setStart(String start) {\n\t\tthis.start = start;\n\t}", "title": "" }, { "docid": "7e5bf290ee98bee620cce1cf475f393b", "score": "0.576298", "text": "public abstract void setStartSeed(Long seed);", "title": "" }, { "docid": "6655158bec628f096402e86565afa07a", "score": "0.5755819", "text": "public void setStart()\r\n {\r\n for (int index = 0; index < getSize(); index++)\r\n {\r\n getCard(index).setStart();\r\n }\r\n }", "title": "" }, { "docid": "3624a2318d54c9b215bef88278c8e543", "score": "0.5751547", "text": "public Builder setFirstVersion(long value) {\n \n firstVersion_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9a14947cfccf35763ea703d7cdae021a", "score": "0.57507616", "text": "public void setStartPosition(int aStartPosition) {\n this.iStartPosition = aStartPosition;\n }", "title": "" }, { "docid": "8052c74540c99fa6b8dccfb889b132c8", "score": "0.575076", "text": "public void setStart(long start) {\n if (this.start != start) {\n if (start > this.end) {\n throw new IllegalArgumentException(\"start of the range should be before its end\");\n }\n this.start = start;\n }\n }", "title": "" }, { "docid": "2aef36de17e0291ab0de7ae14abc35cf", "score": "0.5734509", "text": "public final native void setStartIndex(double startIndex) /*-{\n this.setStartIndex(startIndex);\n }-*/;", "title": "" }, { "docid": "58a71f7a576693c0b2fbb7f0a575dd4f", "score": "0.5718926", "text": "public void setSequenceId(long sequence_id)\n {\n sequence_id_ = sequence_id;\n }", "title": "" }, { "docid": "b9759c233bc34be27dd1b3aa495b0a6f", "score": "0.5705589", "text": "public void setSeq(Short seq) {\r\n this.seq = seq;\r\n }", "title": "" }, { "docid": "61485cc8122f7c3a8812fef110f33de6", "score": "0.5702994", "text": "void setGroupSequence(int groupSequence);", "title": "" }, { "docid": "5ddca7b56a6cd2791a7efc13d1040c39", "score": "0.5695559", "text": "public final void setStart(Date start) {\n\t\t\tnativeSetStart(start.getTime());\n\t\t}", "title": "" }, { "docid": "08d673246664f91aba055bd2aa84e836", "score": "0.5668659", "text": "@NonNull\n public Builder setStart(long start) {\n this.start = start;\n return this;\n }", "title": "" }, { "docid": "5a817977ad8a8aa56c5aecaa040fa6e1", "score": "0.56662875", "text": "public void setGroupSequence(long value) {\n this.groupSequence = value;\n }", "title": "" }, { "docid": "5f00994a8eaa348d3cf341cb93941127", "score": "0.56629854", "text": "public void setModified_sequence(String aModified_sequence);", "title": "" }, { "docid": "b649f8b874b2309e77da19adf95f032b", "score": "0.56611174", "text": "@java.lang.Override\n public int getStart() {\n return start_;\n }", "title": "" }, { "docid": "cd0f39d0f08cb0452df7cb0e25d32eb2", "score": "0.565663", "text": "public void setSnapshotEndSeqno(long snapshotEndSeqno) {\n this.snapshotEndSeqno = snapshotEndSeqno;\n }", "title": "" }, { "docid": "8c18da3d939d58754bb487578b8d1300", "score": "0.5641695", "text": "@java.lang.Override\n public int getStart() {\n return start_;\n }", "title": "" }, { "docid": "e0df75e0daa3eed64812aef896885a08", "score": "0.5630764", "text": "public static String startNumberSequence_txtbx(){\n\t\tid = \"Dialogs_tbInvoice_StartNumber\";\n\t\treturn id;\n\t}", "title": "" }, { "docid": "5d5daaf4df9fb87c8072ad546b4d83ac", "score": "0.56288874", "text": "public void setStartingCopyNumber(KualiInteger startingCopyNumber) {\r\n this.startingCopyNumber = startingCopyNumber;\r\n }", "title": "" }, { "docid": "60f93c9923ead9b54e1334ff3fc52113", "score": "0.56189793", "text": "public void setStartX( double startX ){\r\n this.startX = startX;\r\n }", "title": "" }, { "docid": "26b27c17e82dd478223ecc2725eaac55", "score": "0.5615827", "text": "public static String setSeqNo(String SeqNo)\n\t{\n\t\tlastSeqNo = SeqNo;\n\t\treturn lastSeqNo;\n\t}", "title": "" }, { "docid": "f04a00eeeb85913f1d1dc9e49ea452f8", "score": "0.56105024", "text": "public void setX(int x) {\r\n StartX = x;\r\n }", "title": "" }, { "docid": "3135adfb8b0e243ed94c2c7b9c02b12f", "score": "0.56097317", "text": "public void setStartPortNumber(int value) {\r\n this.startPortNumber = value;\r\n }", "title": "" }, { "docid": "c40fdd630695e6478694ae632a734ea8", "score": "0.56090724", "text": "public void setStart(Point start) {\r\n\t\tthis.start = start;\r\n\t}", "title": "" }, { "docid": "a1061cbd374f35cf3dee2833d340d5ad", "score": "0.5601892", "text": "public void setSeqNo(int SeqNo) {\n\t\tset_Value(\"SeqNo\", new Integer(SeqNo));\n\t}", "title": "" }, { "docid": "a1061cbd374f35cf3dee2833d340d5ad", "score": "0.5601892", "text": "public void setSeqNo(int SeqNo) {\n\t\tset_Value(\"SeqNo\", new Integer(SeqNo));\n\t}", "title": "" }, { "docid": "a1061cbd374f35cf3dee2833d340d5ad", "score": "0.5601892", "text": "public void setSeqNo(int SeqNo) {\n\t\tset_Value(\"SeqNo\", new Integer(SeqNo));\n\t}", "title": "" }, { "docid": "8183d14430c7e30d660568f679fc2387", "score": "0.55874485", "text": "public void setStartPositionLat(Integer startPositionLat) {\r\n setFieldValue(3, 0, startPositionLat, Fit.SUBFIELD_INDEX_MAIN_FIELD);\r\n }", "title": "" }, { "docid": "91905de324a064ccde4d02fd1cc9f1b0", "score": "0.55863845", "text": "public Builder setStartMs(long value) {\n \n startMs_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "358b129c01b3198189e5fd5d61941aae", "score": "0.55829746", "text": "public void setSelectionStart(int selectionStart) {\n if (element_.getPage() instanceof HtmlPage) {\n final HtmlPage page = (HtmlPage) element_.getPage();\n final int length = element_.getText().length();\n selectionStart = Math.max(0, Math.min(selectionStart, length));\n page.getSelection().setStart(element_, selectionStart);\n if (page.getSelection().getEndContainer() != element_) {\n page.getSelection().setEnd(element_, length);\n }\n else if (page.getSelection().getEndOffset() < selectionStart) {\n page.getSelection().setEnd(element_, selectionStart);\n }\n }\n }", "title": "" }, { "docid": "96fdd93117b425ae0de57887f46f229f", "score": "0.5581074", "text": "public synchronized void setStartTime(int value) {\n this.startTime = value;\n }", "title": "" }, { "docid": "54094190ab26c1719ffa0de7a9cbf48c", "score": "0.5577562", "text": "public void setBatchSequence(long value) {\n this.batchSequence = value;\n }", "title": "" }, { "docid": "f87eaadbcefc8def37d95597f0959d93", "score": "0.55760866", "text": "public void setSEQUENCE_NO(BigDecimal SEQUENCE_NO) {\r\n this.SEQUENCE_NO = SEQUENCE_NO;\r\n }", "title": "" }, { "docid": "240edc389d98ed83e9db95465743d579", "score": "0.55748194", "text": "public void setStartMarking() {\n\t\tthis.marking = this.startMarking;\n\t\tthis.getElement().addAttribute(\"ui.label\", \"[\" + this.getID() + \"] \" + this.getName() + \" <\" + this.marking + \">\");\n\t\tsetMarkingLogo();\n\t\tSystem.out.println(\"Setzte \" + this.getID() + \" auf Startmarkierung\");\n\t}", "title": "" }, { "docid": "8035dba60f0cde7ba3c6fb834bcd14d3", "score": "0.55602825", "text": "public int getSequenceNumber() {\n return sequenceNumber;\n }", "title": "" }, { "docid": "10827c644456ef8d0aff82e537869d45", "score": "0.5551879", "text": "@Override\n\tpublic void setJobSeqNo(long jobSeqNo) {\n\t\t_simulationShare.setJobSeqNo(jobSeqNo);\n\t}", "title": "" }, { "docid": "d2aea4315b0ea372cde5c771ec750f07", "score": "0.5548877", "text": "public void setOrderSeqNo(int arg)\n\t{\n\t\tsetValue(ORDERSEQNO, new Integer(arg));\n\t}", "title": "" }, { "docid": "206604908d0b9d35e5145191d4cea08d", "score": "0.55449504", "text": "public void setSequence(byte sequence) {\n setSequence(sequence & 0xFF);\n }", "title": "" }, { "docid": "4dde2fafe7fb4ab1e9ec08157a436a0c", "score": "0.5544167", "text": "public int getSequenceNumber() {\n return sequenceNumber_;\n }", "title": "" }, { "docid": "0d4f13768bfad1fca1fdd750f2b560ad", "score": "0.5540553", "text": "public int getStart() {\n return start;\n }", "title": "" }, { "docid": "408dfa22c4fad75b2d5de55535da080f", "score": "0.5527417", "text": "public int getSequence() {\n return sequence;\n }", "title": "" }, { "docid": "5a24315512912e36e5a460ebadb40254", "score": "0.55250156", "text": "public long getStartindex() {\r\n return startindex_;\r\n }", "title": "" }, { "docid": "4e1fc00ae4240d23b683c80b991fc1c5", "score": "0.55237126", "text": "public long start() {\n return startPosition;\n }", "title": "" } ]
6e6ac07b696369918f7d9c32afd6263a
Write code here that turns the phrase above into concrete actions
[ { "docid": "d62f68a72d34bd1a3bd2432f9031c8dd", "score": "0.0", "text": "@When(\"I wait {int} hour\")\n public void i_wait_hour(Integer int1) {\n throw new io.cucumber.java.PendingException();\n }", "title": "" } ]
[ { "docid": "98cb3a488bc50004aa9d539c6ab39c93", "score": "0.67501575", "text": "public interface SemanticAction {\n\n /**\n * Semantic action to perform.\n * \n * @param lexeme\n * the text to evaluate.\n * @param tuples\n * list of tuples.\n * @param token\n * the token being evaluated.\n * @param line\n * line number.\n */\n void doAction(String lexeme, List<Tuple> tuples, Token token, int line);\n\n}", "title": "" }, { "docid": "6d33cb79b96c21829c39c9df361f298e", "score": "0.66150916", "text": "public abstract void actionPerform(String input);", "title": "" }, { "docid": "177b4620795037b08701b74253d95c60", "score": "0.6594951", "text": "void doAction(String lexeme, List<Tuple> tuples, Token token, int line);", "title": "" }, { "docid": "ede5b0bf810ac147cb2e1442fc19f7b3", "score": "0.65348786", "text": "@Override\n\tpublic void action() {\n\t\t\n\t}", "title": "" }, { "docid": "ede5b0bf810ac147cb2e1442fc19f7b3", "score": "0.65348786", "text": "@Override\n\tpublic void action() {\n\t\t\n\t}", "title": "" }, { "docid": "8e155c7ff139f3c5879fc46b8eae6c06", "score": "0.6534791", "text": "public abstract boolean otherAction(String action);", "title": "" }, { "docid": "0a060a23499f20f97ad8dc36ac6d1f57", "score": "0.640502", "text": "protected abstract void makeActions();", "title": "" }, { "docid": "c14598efc1f82ba5ad76577a8438c5a2", "score": "0.63427573", "text": "@Override\n\tpublic void action() {\n\t}", "title": "" }, { "docid": "fd3c73b7f5cc7365deaf74f8046a4df6", "score": "0.6281905", "text": "@Override\n public void action() {\n }", "title": "" }, { "docid": "067deccd7495def1a65f7e27b3301745", "score": "0.6243442", "text": "public interface Action {\n void execute(Score score, String argument) throws MalformedActionArgument;\n}", "title": "" }, { "docid": "e425dca22d72392d4f150a85ee4ac969", "score": "0.61719525", "text": "public void takeAction(String substring) { \n\t\tSystem.out.println(\"You cannot look at that.\");\n\t}", "title": "" }, { "docid": "6ee3feccccb5f7d0d04fd3f0a1423ab4", "score": "0.6166092", "text": "private void doAction() {\n\t}", "title": "" }, { "docid": "8ece58e1a156cbc56ea472a8bae83bbd", "score": "0.6138558", "text": "public abstract void act(String direction);", "title": "" }, { "docid": "036f34bdbbb041fba497299381ad1a3b", "score": "0.61380917", "text": "protected abstract void action(String command, ActionEvent e);", "title": "" }, { "docid": "aea66e3372960060bba4962223ba188a", "score": "0.6060468", "text": "protected abstract Action generateAction();", "title": "" }, { "docid": "e00d221fb476ab3017023c893ba0040e", "score": "0.60550183", "text": "public interface Action {\r\n\r\n /**\r\n * Attempt to perform an action from the given command. If the action is\r\n * capable of processing the command, then this method will return true, and\r\n * may have side effects. Otherwise, it is expected that the method should\r\n * return false.\r\n * \r\n * @param cmd\r\n * The command string to process. E.g. \"say Hello\"\r\n * @return True if the action can process the command, else false.\r\n */\r\n public boolean process(final Player p, final String cmd);\r\n\r\n /**\r\n * Return a brief help text for the given action.\r\n * \r\n * @return A string action description.\r\n */\r\n public String getHelpText();\r\n}", "title": "" }, { "docid": "f74d30070b9f39fe595f7a9f4faf4513", "score": "0.6051335", "text": "public interface Action {\n /**\n * Collect all relevant parameters for this action from user input\n */\n void collectParameters();\n\n /**\n * Method that performs the actual action\n * after insuring that all parameters for the action are set properly.\n * If parameters are invalid, then throws a relevant exception.\n */\n void performAction();\n\n /**\n * Returns a user-friendly description of this action\n *\n * @return action description\n */\n String getDescription();\n\n /**\n * Returns a shortcut key that a user needs to click to trigger the action\n *\n * @return shortcut key\n */\n String getShortcut();\n}", "title": "" }, { "docid": "a86ccfec50961580d167f79421dedfe2", "score": "0.60496604", "text": "@Override\n\t\t\tpublic void doAction() {\n\t\t\t}", "title": "" }, { "docid": "ee8270e30e2ffa2596aebfaf011a8139", "score": "0.60388076", "text": "public abstract void action();", "title": "" }, { "docid": "e824b407fc06ccfac29631941833567b", "score": "0.6029924", "text": "private void FirstActions( )\n {\n }", "title": "" }, { "docid": "9bab8bcc46c781822d021788f5b9d375", "score": "0.59906864", "text": "public interface Action {\r\n \r\n /**\r\n * Executes the action.\r\n * \r\n * @param context\r\n * The message context.\r\n * \r\n * @throws CourierException\r\n * If an error occurs during execution of the action.\r\n */\r\n\tvoid execute(Context context) throws CourierException ;\r\n\r\n}", "title": "" }, { "docid": "3fe2e38ecdfd7499369cf38ee54a713b", "score": "0.5983121", "text": "public String translateCommand(int direction) {\n switch (direction) {\n case -1:\n return CommandsLobot.STOP;\n case 0:\n return CommandsLobot.LEFTTURN;\n case 1: //new action needs to be created for this\n return CommandsLobot.LEFTTURN;\n case 2:\n return CommandsLobot.FORWARD;\n case 3:\n return CommandsLobot.RIGHTTURN;\n case 4:\n return CommandsLobot.RIGHTTURN;\n case 5:\n return CommandsLobot.RIGHTTURN;\n case 6:\n return CommandsLobot.REVERSE;\n case 7:\n return CommandsLobot.LEFTTURN;\n default:\n return CommandsLobot.STOP;\n }\n}", "title": "" }, { "docid": "7e288ff8a76935a143c7a9612a6ac1ce", "score": "0.59818935", "text": "public void doAction() {}", "title": "" }, { "docid": "885458063c8d00217c57d7886410e7f2", "score": "0.5976579", "text": "@Override\r\n\tpublic void Action() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b295c5bcc3a908f2176bf5c17b0a6e3", "score": "0.59572995", "text": "void makeAction();", "title": "" }, { "docid": "30a34c8bbe2f096db78ca3e7998ee8c6", "score": "0.5937269", "text": "public interface UserStoryAction {\n\n void doAction();\n\n}", "title": "" }, { "docid": "318cc43fa4c19926159b6146e5345905", "score": "0.59077823", "text": "@Override\n\tpublic void act() {\n\t\t\n\t}", "title": "" }, { "docid": "318cc43fa4c19926159b6146e5345905", "score": "0.59077823", "text": "@Override\n\tpublic void act() {\n\t\t\n\t}", "title": "" }, { "docid": "b52bb496b77f63f1c8037a362ec2c9d5", "score": "0.5902895", "text": "public void doSemanticAction ()\n throws\n ParserException\n {\n }", "title": "" }, { "docid": "5f3457c24e35859e6b5d239aa40688c4", "score": "0.5896534", "text": "public void action(){\n }", "title": "" }, { "docid": "63daea5819449c80c7d3598043489109", "score": "0.58950764", "text": "public void act(){\n \n }", "title": "" }, { "docid": "fecc0816605f3d8467aefd6410dc0061", "score": "0.5887666", "text": "public interface SpecialAction {\n\n /**\n *\n */\n public void execute();\n}", "title": "" }, { "docid": "adfeb635b9d540d9956934ae730380c7", "score": "0.58803093", "text": "protected abstract void performAction();", "title": "" }, { "docid": "482b3a7db72ef90e14502e84dfac2425", "score": "0.58754104", "text": "public interface CodedAction extends ParsedAction {\n String code();\n\n final class DummyCodedAction implements CodedAction {\n\n @Override\n public Action action() {\n return Action.EMPTY;\n }\n\n @Override\n public String description() {\n return \"test action description\";\n }\n\n @Override\n public String code() {\n return \"generated code\";\n }\n }\n}", "title": "" }, { "docid": "174df155c20be2cc7f7cdcf49c072f96", "score": "0.5875107", "text": "public interface UserAction {\n\n /**\n * key integer.\n *\n * @return key int\n */\n int key();\n\n /**\n * @param input Input\n * @param tracker Tracker\n */\n void execute(Input input, Tracker tracker);\n\n /**\n * menu line.\n *\n * @return menu line\n */\n String info();\n}", "title": "" }, { "docid": "d7e04db2092667457672d71276b3f2d0", "score": "0.5866673", "text": "@Override\r\n\n\tpublic void performAction() {\n\t}", "title": "" }, { "docid": "61481153c741b796fdff623c8ce4875d", "score": "0.58452106", "text": "private void run() {\n \t// Determine what to do\n \tswitch ( theAction ) {\n\t \tcase Analyze:\n\t \t\trunAnalysis();\n\t \t\tbreak;\n\t \tcase Html_Ouput:\n\t \t\trunHtmlOutput();\n\t \t\tbreak;\n\t \tcase Optimization:\n\t \t\trunOptimization();\n\t \t\tbreak;\n\t \tcase Summary:\n\t \t\trunSummary();\n\t \t\tbreak;\n\t \tcase Text_Output:\n\t \t\trunTextOutput();\n\t \t\tbreak;\n\t \tcase Sql_Output:\n\t \t\trunSqlOutput();\n\t \t\tbreak;\n\t \tcase Undefined:\n\t \t\tdisplayHelp(\"Unknown action specified\");\n\t \t\tbreak;\n \t}\n }", "title": "" }, { "docid": "b7ef0907352b8fa99c687ee75476b8ef", "score": "0.5835877", "text": "public static void main(String[] args) {\n String text = \"Hello world Avita\";\r\n System.out.println( StringActs.doAct(text));\r\n\r\n\r\n }", "title": "" }, { "docid": "eea4d2f9e1d701e36b77d8b072291704", "score": "0.5830558", "text": "public abstract String say(String text);", "title": "" }, { "docid": "537b71204249be3c3fe3180e8ab47ee3", "score": "0.58107406", "text": "public void doAction( String action) {\n\t\tcont.doAction(action);\n\t}", "title": "" }, { "docid": "89b8f5d8d13d6b758286f0ae57a5fc37", "score": "0.5807412", "text": "public interface Action {\n\n /**\n * Carries out command's logic.\n * */\n void execute();\n\n}", "title": "" }, { "docid": "18d94dc236158d3862cd33a1684e5c49", "score": "0.5805068", "text": "@Override\n\tpublic void act() {\n\n\t}", "title": "" }, { "docid": "4efc060b8fdd91f33733fc10d10522d8", "score": "0.58041835", "text": "void performAction();", "title": "" }, { "docid": "c275df6ae3ebec582bfd4fdcc291eab7", "score": "0.578552", "text": "public void act() \n { \n // Add your action code here.\n }", "title": "" }, { "docid": "ddfdcff55f37635aeb3f9efcc145f8af", "score": "0.5775522", "text": "public void takeAction(String substring) { \n\t\tSystem.out.println(\"Sorry, \" + substring + \" is currently not available in Wheaton.\");\t\t\n\t}", "title": "" }, { "docid": "a599158e7f002a224217bc00fc99e5ea", "score": "0.5768977", "text": "private int oneActions(){\n\t\tif(word >= 1 && word <= 4){\n\t\t\tword = 1;\n\t\t}\n\t\tif(word == 12 || word == 13){\n\t\t\tword = 12;\n\t\t}\n\t\tswitch(word){\n\t\tcase 1: setOutput(\"\\n\\nYou are encumbered. You cannot move!\");\n\t\t\tbreak;\n\t\tcase 5: setOutput(\"\\n\\nThe rooms starts to get black as the weight of your extra weapon\"+\n\t\t\t\t\" overloads your senses.\");\n\t\t\tbreak;\n\t\tcase 6: setOutput(\"\\n\\nYou faintly hear the fog swirling about you over the loud\"+\n\t\t\t\t\" ringing in your ears from extra weight on your body.\");\n\t\t\tbreak;\n\t\tcase 7: \n\t\t\tif(secondWord.equals(\"sword\") || secondWord.equals(\"buckler\") ||\n\t\t\t\t((secondWord.equals(\"shard\") || secondWord.equals(\"glass\")) && daggerDropped)){\n\t\t\t\t\tsetOutput(\"\\n\\nAs you pick up the \"+secondWord+\", you fall towards the\"+\n\t\t\t\t\t\" table, collapsing from the weight of too many weapons. Your head hits\"+\n\t\t\t\t\t\" hard on the table and your chest is pierced by several of the swords that\"+\n\t\t\t\t\t\" are lined up along the table.\");\n\t\t\t\t\tgetDeath();\n\t\t\t\t\treturn 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tgetDefault();\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 8: \n\t\t\tif(secondWord.equals(\"sword\")){\n\t\t\t\tsetOutput(\"\\n\\nYou feel light again as you put the short sword back on the\"+\n\t\t\t\t\" table\");\n\t\t\t\tplyr.flagItem(false, 4);\n\t\t\t}\n\t\t\tif(secondWord.equals(\"buckler\")){\n\t\t\t\tsetOutput(\"\\n\\nYou feel light again as you put the wooden buckler back on the\"+\n\t\t\t\t\" table\");\n\t\t\t\tplyr.flagItem(false, 5);\n\t\t\t}\n\t\t\tif((secondWord.equals(\"shard\") || secondWord.equals(\"glass\")) && plyr.getItem(3)){\n\t\t\t\tsetOutput(\"\\n\\nYou feel light again as you drop your shard of glass on the\"+\n\t\t\t\t\" ground. You are no longer bleeding.\");\n\t\t\t\tplyr.flagItem(false, 3);\n\t\t\t\tdaggerDropped = true;\n\t\t\t}\n\t\t\tnumberItems--;\n\t\t\tstate = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "7f1b3f82f54f8c15ff309339834d615e", "score": "0.5767101", "text": "public interface CalcAction {\n\n /**\n * Name line in menu.\n *\n * @return String name action for menu.\n */\n String name();\n\n /**\n * Executing action.\n *\n * @param input Input stream for calculation.\n * @param calculator object class calculator.\n * @param result previous result calculate.\n * @return result action.\n */\n double execute(Input input, Calculator calculator, double result);\n}", "title": "" }, { "docid": "73b5edb0607652f5977e789faffd3855", "score": "0.57663125", "text": "@Override\r\n\tpublic void performAction() {\n\t}", "title": "" }, { "docid": "ef513bad2718b657cac82a2cccedadf9", "score": "0.5760539", "text": "@Override\n\tpublic void run(IAction action) {\n\t\tIEditorPart editor = PluginElements.getActiveEditor();\n\t\tIDocumentProvider provider = ((ITextEditor) editor)\n\t\t\t\t.getDocumentProvider();\n\t\tIDocument document = provider.getDocument(editor.getEditorInput());\n\t\tITextSelection textSelection = (ITextSelection) editor.getSite()\n\t\t\t\t.getSelectionProvider().getSelection();\n\t\tint line = textSelection.getStartLine();\n\t\tString toSay = \"\";\n\t\ttry {\n\t\t\ttoSay = document.get(document.getLineOffset(line),\n\t\t\t\t\tdocument.getLineLength(line));\n\t\t} catch (BadLocationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSpeakingHandler.getInstance().addToQueue(toSay);\n\n\t}", "title": "" }, { "docid": "58620c90ad7dc6ceeaccb20703234021", "score": "0.5745817", "text": "public void act() \r\n {\r\n // Add your action code here.\r\n }", "title": "" }, { "docid": "b27108768a1246664d04a821f911aef3", "score": "0.57453066", "text": "String getAction();", "title": "" }, { "docid": "c3dd3a94e167862e8e9fb149503a087f", "score": "0.57246864", "text": "public interface Action {\n\n /**\n * it check is the space left to move before Moving\n * and then call {@link GameUtil#moveHero(Chapter, int, int)} with coordinates to move.\n *\n * @param chapter\n * @throws NoSpaceToMoveException\n * @throws LowAttributeException\n * @throws HighAttributeException\n */\n void execute(Chapter chapter) throws NoSpaceToMoveException, LowAttributeException, HighAttributeException;\n}", "title": "" }, { "docid": "80a1ea0a9c2925332d4ec6e842df1855", "score": "0.5721536", "text": "@Override\r\n\tpublic String action() {\n\t\treturn \"밤과 낮\";\r\n\t}", "title": "" }, { "docid": "39ea767b8fe5b48a9bcb47ffdc05afa8", "score": "0.57203907", "text": "public abstract java.lang.String getGerAction();", "title": "" }, { "docid": "d8f220a71c0c67f90487593bb044a369", "score": "0.57127947", "text": "public void callAction(String action, InputProvider in){\r\n\t\t//lookup action\r\n\t\tAction act = actionMap.get(action);\r\n\t\tif(act != null){\r\n\t\t\tnextActions.put(act, in);\t\t\r\nlog.fine(this+\" callAction:\"+action);\r\n\t\t} else\r\n\t\t\tlog.fine(\"callAction FAILED:\"+action);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "47149035c86608ef9fae37673dd5e20e", "score": "0.5711373", "text": "public void act() \n {\n \n \n }", "title": "" }, { "docid": "eebb11cfa55ee4cd719ced7f3d8a0d78", "score": "0.571062", "text": "Action action();", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.56929487", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.56929487", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.56929487", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.56929487", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.56929487", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.56929487", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.56929487", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.56929487", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "c90bb9507c87181ddb7f805284df0e04", "score": "0.5674366", "text": "@Override\n public Action associatedAction(String s) {\n throw new RuntimeException(\"There are no associated parameterized actions.\");\n }", "title": "" }, { "docid": "c84f35c29702cf4a96ea278558920ab1", "score": "0.5670577", "text": "java.lang.String getAction();", "title": "" }, { "docid": "c84f35c29702cf4a96ea278558920ab1", "score": "0.5670577", "text": "java.lang.String getAction();", "title": "" }, { "docid": "c4fd7b73718315a1961065a588b9f427", "score": "0.5663579", "text": "public interface ActionIntent {\n}", "title": "" }, { "docid": "9957d6910ba2f6c9400478be9f85f4c2", "score": "0.56622446", "text": "public void act()\n {\n // Add your action code here.\n }", "title": "" }, { "docid": "d2ba5ba15860ed7fa6ee035fe430fb9e", "score": "0.566193", "text": "public final java_cup.runtime.Symbol CUP$parser$do_action(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // arg ::= VARIABLE \n { parser.Tree.reduce(1,\"arg\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(11/*arg*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // arg ::= predicate \n { parser.Tree.reduce(1,\"arg\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(11/*arg*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // al ::= al CM arg \n { parser.Tree.reduce(3,\"al\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(10/*al*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // al ::= arg \n { parser.Tree.reduce(1,\"al\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(10/*al*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // functor ::= ATOM RO \n { parser.Tree.reduce(2,\"functor\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(9/*functor*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // predicate ::= functor al RC \n { parser.Tree.reduce(3,\"predicate\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(8/*predicate*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // predicate ::= ATOM \n { parser.Tree.reduce(1,\"predicate\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(8/*predicate*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // rule ::= error REND pl DOT \n { parser.Tree.reduce(4,\"rule\",0);\n Object RESULT = null;\n\t\t \n parser.report_error(\"Error in rule\\n\", parser.getToken());\n parser.error_found = true;\n \n CUP$parser$result = new java_cup.runtime.Symbol(5/*rule*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // rule ::= predicate REND pl DOT \n { parser.Tree.reduce(4,\"rule\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(5/*rule*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // fact ::= error DOT \n { parser.Tree.reduce(2,\"fact\",0);\n Object RESULT = null;\n\t\t\n parser.report_error(\"Error in fact\\n\", parser.getToken());\n parser.error_found = true;\n \n CUP$parser$result = new java_cup.runtime.Symbol(4/*fact*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // fact ::= predicate DOT \n { parser.Tree.reduce(2,\"fact\",0);\n Object RESULT = null;\n\t\t\n parser.fact_found = true;\n \n CUP$parser$result = new java_cup.runtime.Symbol(4/*fact*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // pl ::= pl CM predicate \n { parser.Tree.reduce(3,\"pl\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(7/*pl*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // pl ::= predicate \n { parser.Tree.reduce(1,\"pl\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(7/*pl*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // inter ::= ISTR error DOT \n { parser.Tree.reduce(3,\"inter\",0);\n Object RESULT = null;\n\t\t\n parser.report_error(\"Error in interrogation\\n\", parser.getToken());\n parser.error_found = true;\n \n CUP$parser$result = new java_cup.runtime.Symbol(6/*inter*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // inter ::= ISTR pl DOT \n { parser.Tree.reduce(3,\"inter\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(6/*inter*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // elem ::= rule \n { parser.Tree.reduce(1,\"elem\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(3/*elem*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // elem ::= fact \n { parser.Tree.reduce(1,\"elem\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(3/*elem*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // elems ::= \n { parser.Tree.reduce(0,\"elems\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(2/*elems*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // elems ::= elems elem \n { parser.Tree.reduce(2,\"elems\",0);\n Object RESULT = null;\n\n CUP$parser$result = new java_cup.runtime.Symbol(2/*elems*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // prog ::= elems inter elems \n { parser.Tree.reduce(3,\"prog\",1);\n Object RESULT = null;\n\t\t\n if(!parser.fact_found || parser.error_found)\n return null;\n System.out.println(\"Program correctly recognized\");\n \n CUP$parser$result = new java_cup.runtime.Symbol(1/*prog*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= prog EOF \n { \n Object RESULT = null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = new java_cup.runtime.Symbol(0/*$START*/, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-0)).right, RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number found in internal parse table\");\n\n }\n }", "title": "" }, { "docid": "42dd5659893ce1681b252dd95ce25271", "score": "0.561736", "text": "@Override\r\n public String execute(Actor actor, GameMap map){\r\n\r\n\r\n return actor + \" mates with \" + target;\r\n\r\n }", "title": "" }, { "docid": "b421ca44c0088237713c40f304bf3ee7", "score": "0.5604623", "text": "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // NT$0 ::= \n {\n String RESULT =null;\nSystem.out.println(\"<!DOCTYPE html>\");System.out.println(\"<html>\");System.out.println(\"<head>\");System.out.println(\"<title>\"+filename+\"</title>\");System.out.println(\"<style>\\n.cte {color:rgb(19,189,72);}\\n.ident {color:rgb(55,40,244);}\\n.palres {color:rgb(0,0,0);font-weight:bold;}\\n</style>\");System.out.println(\"</head>\\n\");System.out.println(\"<body>\");\n System.out.println(\"<A NAME=\\\"inicio\\\">\\n<H1>Programa: \"+filename+\"</H1>\\n<H2>Funciones</H2>\");\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$0\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // S ::= NT$0 PROGRAM \n {\n String RESULT =null;\n // propagate RESULT from NT$0\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint progleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint progright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString[] prog = (String[])((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n System.out.println(\"<UL>\");\n for(int i=0;i<headers.length;i++){\n String[] parts = headers[i].split(\" \");\n System.out.println(\"<LI><A HREF=\\\"#\"+parts[1]+\"\\\">\"+headers[i]+\"</A></LI>\");\n }\n System.out.println(\"</UL>\\n\");\n\n for(int i=0;i<prog.length;i++){\n System.out.println(prog[i]);\n }\n System.out.println(\"</body>\");System.out.println(\"</HTML>\");\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"S\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // $START ::= S EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString start_val = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // PROGRAM ::= PART PROGRAM \n {\n String[] RESULT =null;\n\t\tint partleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint partright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString part = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint programleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint programright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString[] program = (String[])((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n String[] res = new String[program.length+1];\n if(part.split(\">\")[3].equals(\"struct</SPAN\")){\n for(int i=0;i<program.length;i++){\n res[i]=program[i];\n }\n res[program.length]=part;\n }else{\n res[0]=part;\n for(int i=1;i<program.length+1;i++){\n res[i]=program[i-1];\n }\n }\n structure =\"\";\n RESULT=res;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"PROGRAM\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // PROGRAM ::= PART \n {\n String[] RESULT =null;\n\t\tint partleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint partright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString part = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tString[] res={part};\n structure =\"\"; RESULT=res;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"PROGRAM\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // NT$1 ::= \n {\n String RESULT =null;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n structure = \"<hr/>\\n\";\n structure = structure + \"<code>\\n\";structure = structure + \"<SPAN CLASS=\\\"palres\\\">\";\n switch(type){\n case \"v\": structure = structure + \"void </SPAN>\";header = \"void \"; break;\n case \"i\": structure = structure + \"int </SPAN>\";header = \"int \"; break;\n case \"f\": structure = structure + \"float </SPAN>\";header = \"float \"; break;\n }\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$1\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // PART ::= TYPE NT$1 RESTPART \n {\n String RESULT =null;\n // propagate RESULT from NT$1\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint restpartleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint restpartright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString restpart = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tstructure = structure + \"</code>\\n\";RESULT=structure;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"PART\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // NT$2 ::= \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\nstructure = \"<hr/>\\n<code>\\n\"; \n structure = structure + \"<SPAN CLASS=\\\"palres\\\">struct</SPAN><SPAN CLASS=\\\"ident\\\"> \"+ident1+\"</SPAN><BR/>\\n {\\n\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$2\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // PART ::= struct ident left_bracket NT$2 LFIELD right_bracket semicolon \n {\n String RESULT =null;\n // propagate RESULT from NT$2\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tstructure = structure + \"};\"; structure = structure + \"</code>\\n\";structure = structure + \"<BR/>\\n\";RESULT=structure; \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"PART\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // NT$3 ::= \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\n header = header + ident1;\n structure = structure + \"<SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN> (\";\n actualHeader = ident1;\n structure = structure + \"<A NAME=\\\"\"+actualHeader+\"\\\">\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$3\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // NT$4 ::= \n {\n String RESULT =(String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint listparamleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint listparamright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString listparam = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\n String[] resheaders = new String[headers.length+1]; \n header = header +\" (\"+listparam+\")\";\n \n for(int i=0;i<headers.length;i++){\n resheaders[i]=headers[i];\n }\n resheaders[headers.length]=header;\n headers = resheaders;\n structure = structure + \")<BR/>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$4\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // RESTPART ::= ident left_parenthesis NT$3 LISTPARAM right_parenthesis NT$4 BLQ \n {\n String RESULT =null;\n // propagate RESULT from NT$4\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint listparamleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint listparamright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString listparam = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint blqleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint blqright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString blq = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tstructure = structure + \"<A HREF=\\\"#\"+ident1+\"\\\">Comienzo de la función</A>\\n\";\n structure = structure + \" <A HREF=\\\"#inicio\\\">Comienzo de la página</A>\\n\"; structure = structure + \"<BR/>\\n\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"RESTPART\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // NT$5 ::= \n {\n String RESULT =null;\nstructure = structure + \"{\\n\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$5\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // BLQ ::= left_bracket NT$5 SENTLIST right_bracket \n {\n String RESULT =null;\n // propagate RESULT from NT$5\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint sentlistleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint sentlistright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString sentlist = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tstructure = structure + \"}<BR/>\\n\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"BLQ\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // NT$6 ::= \n {\n String RESULT =null;\n\t\tint listparamleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint listparamright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString listparam = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\nstructure = structure + \", \";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$6\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // LISTPARAM ::= LISTPARAM comma NT$6 TYPE ident \n {\n String RESULT =null;\n // propagate RESULT from NT$6\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint listparamleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint listparamright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString listparam = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tstructure = structure + \"<SPAN CLASS=\\\"palres\\\">\";\n switch(type){\n case \"v\": structure = structure + \"void </SPAN>\";listparam = listparam + \", void \"+ident1; break;\n case \"i\": structure = structure + \"int </SPAN>\";listparam = listparam + \", int \"+ident1; break;\n case \"f\": structure = structure + \"float </SPAN>\";listparam = listparam + \", float \"+ident1; break;\n };structure = structure + \"<SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN>\";RESULT = listparam;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LISTPARAM\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // LISTPARAM ::= TYPE ident \n {\n String RESULT =null;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tString param = \"\";structure = structure + \"<SPAN CLASS=\\\"palres\\\">\";\n switch(type){\n case \"v\": structure = structure + \"void </SPAN>\";param = param + \"void \"; break;\n case \"i\": structure = structure + \"int </SPAN>\";param = param + \"int \"; break;\n case \"f\": structure = structure + \"float </SPAN>\";param = param + \"float \"; break;\n }; structure = structure + \"<SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN>\";\n param = param + ident1; \n RESULT = param;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LISTPARAM\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // TYPE ::= void_token \n {\n String RESULT =null;\n\t\tRESULT = \"v\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TYPE\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // TYPE ::= int_token \n {\n String RESULT =null;\n\t\tRESULT = \"i\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TYPE\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // TYPE ::= float_token \n {\n String RESULT =null;\n\t\tRESULT = \"f\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TYPE\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // NT$7 ::= \n {\n String RESULT =null;\nstructure = structure + \"<DIV style=\\\"text-indent: .5cm\\\">\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$7\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // SENTLIST ::= SENTLIST NT$7 SENT \n {\n String RESULT =null;\n // propagate RESULT from NT$7\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint sentleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint sentright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString sent = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tstructure = structure + \"</DIV>\\n\";RESULT = sent;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENTLIST\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // NT$8 ::= \n {\n String RESULT =null;\nstructure = structure + \"<DIV style=\\\"text-indent: .5cm\\\">\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$8\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // SENTLIST ::= NT$8 SENT \n {\n String RESULT =null;\n // propagate RESULT from NT$8\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint sentleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint sentright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString sent = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tstructure = structure + \"</DIV>\\n\";RESULT = sent;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENTLIST\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // NT$9 ::= \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\nstructure = structure + \" = \";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$9\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // SENT ::= ID equal NT$9 EXP semicolon \n {\n String RESULT =null;\n // propagate RESULT from NT$9\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint expleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint expright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString exp = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tstructure = structure + \";\";RESULT = exp;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENT\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // NT$10 ::= \n {\n String RESULT =null;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\n switch(type){\n case \"v\": structure = structure + \"<SPAN CLASS=\\\"palres\\\">void</SPAN> \"; break;\n case \"i\": structure = structure + \"<SPAN CLASS=\\\"palres\\\">int</SPAN> \"; break;\n case \"f\": structure = structure + \"<SPAN CLASS=\\\"palres\\\">float</SPAN> \"; break;\n };\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$10\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // SENT ::= TYPE NT$10 LID semicolon \n {\n String RESULT =null;\n // propagate RESULT from NT$10\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n boolean repeated = false;\n for(int i=0;i<variables.length;i++){\n if(ident1.split(\">\")[2].split(\"<\")[0].equals(variables[i])){\n repeated=true;\n }\n }\n if(!repeated){\n String[] res = new String[variables.length+1];\n for(int i=0;i<variables.length;i++){\n res[i]=variables[i];\n }\n res[variables.length]=ident1.split(\">\")[2].split(\"<\")[0];\n variables = res;\n }\n structure = structure + ident1+\";\";\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENT\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // NT$11 ::= \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\n boolean isVariable=false;\n for(int i=0;i<variables.length;i++){\n if(variables[i].equals(ident1)){\n isVariable = true;\n structure = structure + \"<a href=\\\"#\"+actualHeader+\":\"+ident1+\"\\\"><SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN></a> = \";\n }\n }\n if (!isVariable){ \n structure = structure + \"<a href=\\\"#\"+actualHeader+\"\\\"><SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN></a> = \";\n }\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$11\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // SENT ::= ident equal NT$11 EXP semicolon \n {\n String RESULT =null;\n // propagate RESULT from NT$11\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint expleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint expright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString exp = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tstructure = structure + \";\";RESULT = exp;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENT\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // NT$12 ::= \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\n boolean isFunction=false;\n for(int i=0;i<headers.length;i++){\n if(headers[i].split(\" \")[1].equals(ident1)){\n isFunction = true;\n structure = structure + \"<A HREF=\\\"#\"+ident1+\"\\\"><SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN></A>(\";\n }\n }\n if (!isFunction){ \n structure = structure + \"<SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN>(\";\n }\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$12\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // SENT ::= ident left_parenthesis NT$12 LEXP right_parenthesis semicolon \n {\n String RESULT =null;\n // propagate RESULT from NT$12\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tint lexpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint lexpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString lexp = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tstructure = structure + \");\";RESULT = lexp;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENT\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // NT$13 ::= \n {\n String RESULT =null;\nstructure = structure + \"<SPAN CLASS=\\\"palres\\\">return</SPAN> \";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$13\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // SENT ::= return_token NT$13 EXP semicolon \n {\n String RESULT =null;\n // propagate RESULT from NT$13\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tstructure = structure + \";\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENT\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // NT$14 ::= \n {\n String RESULT =null;\nstructure = structure + \"if (\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$14\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // NT$15 ::= \n {\n String RESULT =(String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint lcondleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint lcondright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString lcond = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\nstructure = structure + \") then\";structure = structure + \"<BR/>\\n\";RESULT = lcond;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$15\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // NT$16 ::= \n {\n String RESULT =(String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint lcondleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint lcondright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString lcond = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tint blqleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint blqright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString blq = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\nstructure = structure + \"else\";structure = structure + \"<BR/>\\n\"; RESULT = blq;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$16\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // SENT ::= if_token left_parenthesis NT$14 LCOND right_parenthesis then_token NT$15 BLQ else_token NT$16 BLQ \n {\n String RESULT =null;\n // propagate RESULT from NT$16\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint lcondleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint lcondright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tString lcond = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint blqleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint blqright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString blq = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENT\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-10)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // NT$17 ::= \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\nstructure = structure + \"for(\"+\"<SPAN CLASS=\\\"ident\\\">\"+ident1+ \"</SPAN> = \";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$17\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // NT$18 ::= \n {\n String RESULT =(String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint expleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint expright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString exp = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\nstructure = structure + \";\";RESULT = exp;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$18\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // NT$19 ::= \n {\n String RESULT =(String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-9)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-9)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-9)).value;\n\t\tint expleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint expright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tString exp = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint lcondleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint lcondright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString lcond = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint ident2left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident2right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident2 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\nlcond = lcond + \"; <SPAN CLASS=\\\"ident\\\">\"+ident2+\"</SPAN> = \";RESULT = lcond;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$19\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // NT$20 ::= \n {\n String RESULT =(String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-12)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-12)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-12)).value;\n\t\tint expleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-9)).left;\n\t\tint expright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-9)).right;\n\t\tString exp = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-9)).value;\n\t\tint lcondleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint lcondright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tString lcond = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint ident2left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint ident2right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString ident2 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint exp1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint exp1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString exp1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\nexp1 = exp1 + \")\";exp1 = exp1 + \"<BR/>\\n\"; RESULT = exp1;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$20\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // SENT ::= for_token left_parenthesis ident equal NT$17 EXP semicolon NT$18 LCOND semicolon ident equal NT$19 EXP right_parenthesis NT$20 BLQ \n {\n String RESULT =null;\n // propagate RESULT from NT$20\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-14)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-14)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-14)).value;\n\t\tint expleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-11)).left;\n\t\tint expright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-11)).right;\n\t\tString exp = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-11)).value;\n\t\tint lcondleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).left;\n\t\tint lcondright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).right;\n\t\tString lcond = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-8)).value;\n\t\tint ident2left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint ident2right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tString ident2 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint exp1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint exp1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString exp1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENT\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-16)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // NT$21 ::= \n {\n String RESULT =null;\nstructure = structure + \"while (\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$21\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // NT$22 ::= \n {\n String RESULT =(String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint lcondleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint lcondright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString lcond = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\nstructure = structure + \")\";lcond = lcond + \"<BR/>\\n\";RESULT = lcond;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$22\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // SENT ::= while_token left_parenthesis NT$21 LCOND right_parenthesis NT$22 BLQ \n {\n String RESULT =null;\n // propagate RESULT from NT$22\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint lcondleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint lcondright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString lcond = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENT\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // NT$23 ::= \n {\n String RESULT =null;\nstructure = structure + \"do \";structure = structure + \"<BR/>\\n\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$23\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // NT$24 ::= \n {\n String RESULT =(String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint blqleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint blqright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString blq = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\nstructure = structure + \"until (\";RESULT = blq;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$24\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // SENT ::= do_token NT$23 BLQ until_token left_parenthesis NT$24 LCOND right_parenthesis \n {\n String RESULT =null;\n // propagate RESULT from NT$24\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint blqleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint blqright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString blq = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tint lcondleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint lcondright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString lcond = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tstructure = structure + \")\";RESULT = lcond;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENT\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // SENT ::= BLQ \n {\n String RESULT =null;\n\t\tint blqleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint blqright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString blq = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SENT\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // NT$25 ::= \n {\n String RESULT =null;\n\t\tint oplleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint oplright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString opl = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\n switch(opl){\n case \"a\": structure = structure + \" and \"; break;\n case \"o\": structure = structure + \" or \"; break;\n };\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$25\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // LCOND ::= LCOND OPL NT$25 LCOND \n {\n String RESULT =null;\n // propagate RESULT from NT$25\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint oplleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint oplright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString opl = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LCOND\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // LCOND ::= COND \n {\n String RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LCOND\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // NT$26 ::= \n {\n String RESULT =null;\nstructure = structure + \" not \";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$26\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // LCOND ::= not NT$26 COND \n {\n String RESULT =null;\n // propagate RESULT from NT$26\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LCOND\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // OPL ::= or \n {\n String RESULT =null;\n\t\tRESULT = \"o\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OPL\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // OPL ::= and \n {\n String RESULT =null;\n\t\tRESULT = \"a\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OPL\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // NT$27 ::= \n {\n String RESULT =null;\n\t\tint oprleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint oprright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString opr = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\n switch(opr){\n case \"lt\": structure = structure + \" < \"; break;\n case \"mt\": structure = structure + \" > \"; break;\n case \"mte\": structure = structure + \" >= \"; break;\n case \"lte\": structure = structure + \" <= \"; break;\n case \"de\": structure = structure + \" == \"; break;\n };\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$27\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // COND ::= EXP OPR NT$27 EXP \n {\n String RESULT =null;\n // propagate RESULT from NT$27\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint oprleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint oprright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString opr = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"COND\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // OPR ::= double_equal \n {\n String RESULT =null;\n\t\tRESULT = \"de\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OPR\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // OPR ::= less_than \n {\n String RESULT =null;\n\t\tRESULT = \"lt\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OPR\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // OPR ::= more_than \n {\n String RESULT =null;\n\t\tRESULT = \"mt\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OPR\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // OPR ::= more_than_equal_to \n {\n String RESULT =null;\n\t\tRESULT = \"mte\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OPR\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // OPR ::= less_than_equal_to \n {\n String RESULT =null;\n\t\tRESULT = \"lte\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OPR\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // LEXP ::= EXP \n {\n String RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LEXP\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // NT$28 ::= \n {\n String RESULT =null;\nstructure = structure + \", \";String s = \", \";RESULT = s;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$28\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // LEXP ::= LEXP comma NT$28 EXP \n {\n String RESULT =null;\n // propagate RESULT from NT$28\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LEXP\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // NT$29 ::= \n {\n String RESULT =null;\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString op = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\n switch(op){\n case \"as\": structure = structure + \" + \"; break;\n case \"ss\": structure = structure + \" - \"; break;\n case \"ms\": structure = structure + \" * \"; break;\n case \"s\": structure = structure + \" / \"; break;\n case \"p\": structure = structure + \" % \"; break;\n }\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$29\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // EXP ::= EXP OP NT$29 EXP \n {\n String RESULT =null;\n // propagate RESULT from NT$29\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString op = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EXP\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // EXP ::= FACTOR \n {\n String RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EXP\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // OP ::= addition_sign \n {\n String RESULT =null;\n\t\tRESULT = \"as\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OP\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // OP ::= substraction_sign \n {\n String RESULT =null;\n\t\tRESULT = \"ss\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OP\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // OP ::= multiplication_sign \n {\n String RESULT =null;\n\t\tRESULT = \"ms\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OP\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // OP ::= slash \n {\n String RESULT =null;\n\t\tRESULT = \"s\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OP\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // OP ::= percent \n {\n String RESULT =null;\n\t\tRESULT = \"p\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OP\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // NT$30 ::= \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\n structure = structure + \"<A HREF=\\\"#\"+ident1+\"\\\"><SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN></A>(\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$30\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // FACTOR ::= ident left_parenthesis NT$30 LEXP right_parenthesis \n {\n String RESULT =null;\n // propagate RESULT from NT$30\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint lexpleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint lexpright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString lexp = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tstructure = structure + \")\" ; RESULT = lexp;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"FACTOR\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // NT$31 ::= \n {\n String RESULT =null;\n\n structure = structure + \"(\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$31\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // FACTOR ::= left_parenthesis NT$31 EXP right_parenthesis \n {\n String RESULT =null;\n // propagate RESULT from NT$31\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint expleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint expright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString exp = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tstructure = structure + \")\";RESULT = exp;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"FACTOR\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // FACTOR ::= constint \n {\n String RESULT =null;\n\t\tint const1left = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint const1right = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject const1 = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n structure = structure + \"<SPAN CLASS=\\\"cte\\\">\"+const1+\"</SPAN>\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"FACTOR\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // FACTOR ::= constfloat \n {\n String RESULT =null;\n\t\tint const1left = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint const1right = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject const1 = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n structure = structure + \"<SPAN CLASS=\\\"cte\\\">\"+const1+\"</SPAN>\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"FACTOR\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // FACTOR ::= constlit \n {\n String RESULT =null;\n\t\tint const1left = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint const1right = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject const1 = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n structure = structure + \"<SPAN CLASS=\\\"cte\\\">\"+const1+\"</SPAN>\" ;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"FACTOR\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // FACTOR ::= ID \n {\n String RESULT =null;\n\t\tint idleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint idright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString id = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n boolean isVariable=false;\n for(int i=0;i<variables.length;i++){\n if(variables[i].equals(id)){\n isVariable = true;\n structure = structure + \"<a href=\\\"#\"+actualHeader+\":\"+id+\"\\\"><SPAN CLASS=\\\"id\\\">\"+id+\"</SPAN></a>\";\n }\n }\n if (!isVariable && id!=null) { \n structure = structure + \"<a href=\\\"#\"+actualHeader+\"\\\"><SPAN CLASS=\\\"ident\\\">\"+id+\"</SPAN></a>\";\n }\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"FACTOR\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // LFIELD ::= LFIELD TYPE LID semicolon \n {\n String RESULT =null;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n switch(type){\n case \"v\": structure = structure + \"<DIV style=\\\"text-indent: .5cm\\\">void \"+ident1+\";</DIV>\\n\"; break;\n case \"i\": structure = structure + \"<DIV style=\\\"text-indent: .5cm\\\">int \"+ident1+\";</DIV>\\n\"; break;\n case \"f\": structure = structure + \"<DIV style=\\\"text-indent: .5cm\\\">float \"+ident1+\";</DIV>\\n\"; break;\n };\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LFIELD\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // LFIELD ::= TYPE LID semicolon \n {\n String RESULT =null;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n switch(type){\n case \"v\": structure = structure + \"<DIV style=\\\"text-indent: .5cm\\\">void \"+ident1+\";</DIV>\\n\"; break;\n case \"i\": structure = structure + \"<DIV style=\\\"text-indent: .5cm\\\">int \"+ident1+\";</DIV>\\n\"; break;\n case \"f\": structure = structure + \"<DIV style=\\\"text-indent: .5cm\\\">float \"+ident1+\";</DIV>\\n\"; break;\n };\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LFIELD\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // ID ::= ident \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tRESULT = ident1;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ID\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // ID ::= ident dot ident \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint ident2left = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint ident2right = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString ident2 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n\nstructure = structure + \"<a href=\\\"#\"+ident1+\"\\\">\"+ident1+\"</a>.<a href=\\\"#\"+ident1+\":\"+ident2+\"\\\">\"+ident2+\"</a>\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ID\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // LID ::= ID \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tRESULT = \"<a><SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN></a>\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LID\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // LID ::= LID comma ID \n {\n String RESULT =null;\n\t\tint lid1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint lid1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString lid1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint id1left = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint id1right = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString id1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tRESULT = lid1 + \", <a><SPAN CLASS=\\\"ident\\\">\"+id1+\"</SPAN></a>\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LID\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // ID ::= ident LDIM \n {\n String RESULT =null;\n\t\tint ident1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint ident1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString ident1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint ldim1left = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint ldim1right = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString ldim1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n boolean isVariable=false;\n for(int i=0;i<variables.length-1;i++){\n if(variables[i].equals(ident1)){\n isVariable = true;\n structure = structure + \"<a href=\\\"#\"+actualHeader+\":\"+ident1+\"\\\"><SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN></a>+ldim1\";\n }\n }\n if (!isVariable){ \n structure = structure + \"<a href=\\\"#\"+actualHeader+\"\\\"><SPAN CLASS=\\\"ident\\\">\"+ident1+\"</SPAN></a>+ldim1\";\n }\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ID\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // LDIM ::= LDIM left_squarebracket constint right_squarebracket \n {\n String RESULT =null;\n\t\tint ldim1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint ldim1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString ldim1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint const1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint const1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject const1 = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tstructure = structure + \"[\"+const1+\"]\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LDIM\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // LDIM ::= left_squarebracket constint right_squarebracket \n {\n String RESULT =null;\n\t\tint const1left = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint const1right = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject const1 = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tstructure = structure + \"[\"+const1+\"]\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"LDIM\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "title": "" }, { "docid": "70ca222bd21308fcb1bf1f677ddb5ee4", "score": "0.56020916", "text": "FIRSTACTION getAction();", "title": "" }, { "docid": "80e21c275d02e489937696e3d1669e50", "score": "0.5601201", "text": "public static void commandAction(char c) \n{\n\tswitch(c) {\n\t\tcase 'g' :\n\t\tcase 'G' :\n\t\t\tcreateHashtable();\n\t\t\tbreak;\n\t\tcase 'a' :\n\t\tcase 'A' :\n\t\t\tinsertMember();\n\t\t\tbreak;\n\t\tcase 'c' :\n\t\tcase 'C' :\n\t\t\tprint();\n\t\t\tbreak;\n\t\tcase 'r' :\n\t\tcase 'R' :\n\t\t\tpromptRemove();\n\t\t\tbreak;\n\t\tcase 'f' :\n\t\tcase 'F' :\n\t\t\tfindMember();\n\t\t\tbreak;\n\t\tcase 'i' :\n\t\tcase 'I' :\n\t\t\tpromptRemoveAt();\n\t\t\tbreak;\n\t\tcase 't' :\n\t\tcase 'T' :\n\t\t\tshowTimeComplexity();\n\t\t\tbreak;\n\t\tcase 'b' :\n\t\tcase 'B' :\n\t\t\tblockInfo();\n\t\t\tbreak;\n\t\tcase 'p' :\n\t\tcase 'P' :\n\t\t\tlistParameters();\n\t\t\tbreak;\n\t\tcase 'v' :\n\t\tcase 'V' :\n\t\t\tverifyReachable();\n\t\t\tbreak;\n\t\tcase 'h' :\n\t\tcase 'H' :\n\t\tcase '?' :\n\t\t\tprintMenu();\n\t\t\tbreak;\n\t\tcase 'q' : \n\t\tcase 'Q' : \n\t\t\tprogramSentinel = false;\n\t\t\tbreak;\n\t\tdefault : \n\t\t\tgetCommand();\n\t\t\tbreak;\t\n\t}\n}", "title": "" }, { "docid": "d93d3d9d9e11f8c233a83a2a9389af55", "score": "0.5600426", "text": "private void doActions() {\n\t\tfor (Spy s : GameScene.allSpies) {\n\t\t\ts.doAction(Action.HIDE);\n\t\t}\n\t\tfor (Spy s : GameScene.allSpies) {\n\t\t\ts.doAction(Action.ASSASSINATE);\n\t\t}\n\t\tfor (Spy s : GameScene.allSpies) {\n\t\t\ts.doAction(Action.SABOTAGE);\n\t\t}\n\t\tfor (Spy s : GameScene.allSpies) {\n\t\t\ts.doAction(Action.GATHER_INTEL);\n\t\t}\n\t\tfor (Spy s : GameScene.allSpies) {\n\t\t\ts.doAction(Action.COUNTER_ESPIONAGE);\n\t\t}\n\t\tfor (Spy s : GameScene.allSpies) {\n\t\t\ts.doAction(Action.MOVE);\n\t\t}\n\t}", "title": "" }, { "docid": "b4e628607005d240d6138d4c2436b1e3", "score": "0.5596304", "text": "@Override\n \tpublic void startPerformingAction(AbstractAction action, Agent agent) {\n \n \t}", "title": "" }, { "docid": "c598fd8f694d0e2c6962e4831d70b999", "score": "0.5581368", "text": "public void doActionCheck() ;", "title": "" }, { "docid": "7c1cdc264ca8be3f858f374189fdbc83", "score": "0.5577756", "text": "public void act()\n {\n }", "title": "" }, { "docid": "7c1cdc264ca8be3f858f374189fdbc83", "score": "0.5577756", "text": "public void act()\n {\n }", "title": "" }, { "docid": "7c1cdc264ca8be3f858f374189fdbc83", "score": "0.5577756", "text": "public void act()\n {\n }", "title": "" }, { "docid": "6e5d2d913b9d35fe0fcf5c2e91f6c6ea", "score": "0.5574015", "text": "public void executeAction() {\n\n\t\tswitch (this.actionId) {\n\t\t\tcase 0: // Terraform and build\n\t\t\t\tSystem.out.println(\"Terraform and build\");\n\t\t\t\t//TerrainType t = currentPlayer.getFaction().homeTerrain;\n\t\t\t\tterraformAndBuild(terrainToBeModified);\n\t\t\t\tbreak;\n\t\t\tcase 1: // Upgrade shipping level\n\t\t\t\tSystem.out.println(\"Upgrade shipping\");\n\t\t\t\tupgradeShipping();\n\t\t\t\tbreak;\n\t\t\tcase 2: // Upgrade spade level\n\t\t\t\tSystem.out.println(\"Upgrade spades\");\n\t\t\t\tupgradeSpades();\n\t\t\t\tbreak;\n\t\t\tcase 3: // Upgrade Structure\n\t\t\t\tSystem.out.println(\"Upgrade structure\");\n\t\t\t\tupgradeStructure(terrainXPosition, terrainYPosition);\n\t\t\t\tsetStructureToBuild(Structure.TRADINGPOST);\n\t\t\t\tbreak;\n\t\t\tcase 4: // TODO: Send priest to cult track\n\t\t\t\tSystem.out.println(\"Send priest to cult track\");\n\t\t\t\tsendPriestToCultBoard(cultType, priestPosition);\n\t\t\t\t// sendPriestToCultBoard(cultType, priestPosition);\n\t\t\t\tbreak;\n\t\t\tcase 5: // TODO: Power Actions\n\t\t\t\tSystem.out.println(\"Power Actions\");\n\t\t\t\tRandom random = new Random();\n\t\t\t\tint randomActionId = random.nextInt(6);\n\t\t\t\tpowerAction(randomActionId);\n\n\t\t\t\tbreak;\n\t\t\tcase 6: // TODO: Special Actions\n\t\t\t\tSystem.out.println(\"SPECIAL ACTION\");\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tSystem.out.println(\"PASS\");\n\t\t\t\tpass();\n\t\t\t\tbreak;\n\t\t\tcase 8: // build structure. will be used in the setup phase where each player places\n\t\t\t\t\t// 1/2/3 dwellings.\n\t\t\t\tbuildSetupDwelling();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t// Test for each cult type\n\t\t\t\tmoveOnCultBoard(currentPlayer, Cult.AIR, 2);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t//t = TerrainType.TERRAINS_INDEXED[terrainTypeIndex];\n\t\t\t\tperformableActions[0] = canTerraformTerrain();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\tperformableActions[1] = canBuildDwelling(terrainXPosition, terrainYPosition);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\tperformableActions[2] = canUpgradeShipping();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\tperformableActions[3] = canUpgradeSpades();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\tperformableActions[4] = canUpgradeStructure(terrainXPosition, terrainYPosition);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\tperformableActions[5] = canSendPriestToCultBoard(cultType);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\tperformableActions[6] = canPerformSpeacialAction();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\tperformableActions[7] = canPerformPowerAction(0);\n\t\t\t\tbreak;\n\t\t\tcase 99: // returns the boolean array indicating if an action is possible\n\t\t\t\tshowPlayAbleActions();\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "978ab60ad68a6a2b629f2350fcb7b972", "score": "0.55734307", "text": "public abstract void act();", "title": "" }, { "docid": "978ab60ad68a6a2b629f2350fcb7b972", "score": "0.55734307", "text": "public abstract void act();", "title": "" }, { "docid": "ead3b8088721c0e1f36a0b3ef54bb293", "score": "0.5570021", "text": "void myAction(String message) {\n dispatchMessage(user, message, true);\n }", "title": "" }, { "docid": "325d8f4be871953524cd33d21d811da6", "score": "0.55618584", "text": "private void Operando() {\n\t\tif(token.getClassToken().equals(\"ID\")) {\n\t\t\tleToken();\n\t\t}else if(token.getClassToken().equals(\"ILC\")) {\n\t\t\tleToken();\n\t\t}else if(token.getClassToken().equals(\"RCL\")) {\n\t\t\tleToken();\n\t\t}else if(token.getClassToken().equals(\"TCL\")) {\n\t\t\tleToken();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "9ced9748d7fa40d07692ce73d2bb2de4", "score": "0.55573297", "text": "abstract protected void performAction(ActionEvent ae);", "title": "" }, { "docid": "91b65e9ae6c590c2f70705382a2b5803", "score": "0.55556136", "text": "private void createActions(ResourceBundle msg) {\r\n\r\n\t\topenAction = new OpenAction();\r\n\r\n\t\tcutAction = new CutAction();\r\n\r\n\t\tcopyAction = new CopyAction();\r\n\r\n\t\tpasteAction = new PasteAction();\r\n\r\n\t\tdeleteAction = new DeleteAction();\r\n\r\n\t\tundoAction = new UndoAction();\r\n\r\n\t\tredoAction = new RedoAction();\r\n\r\n\t\tsettingsAction = new SettingsAction();\r\n\r\n\t\tdumpAction = new DumpAction();\r\n\r\n\t\tdumpAsAction = new DumpAsAction();\r\n\t}", "title": "" }, { "docid": "bb49c2e0cae88e4798d9df3493772e93", "score": "0.5554813", "text": "@Override\n public void action(Jugador jugador) {\n\n }", "title": "" }, { "docid": "5dec2da5d4ea4c9d8ef7df6dfdfba1b7", "score": "0.55534214", "text": "private static void playerAction() {\n\t\t\n\t\tint choice = in.getActionChoice();\n\t\t\n\t\tString[] results = new String[] { \"no actions processed yet\" };\n\t\tswitch (Actions.values()[choice]) {\n\t\t\tcase DEFEND:\n\t\t\t\t// Use your imagination to write code to allow the player to defend.\n\t\t\t\tresults = plyr.defend();\n\t\t\t\tbreak;\n\t\t\tcase ATTACK:\n\t\t\t\t// These are arbitrary actions, and you need to change them.\n\t\t\t\tresults = plyr.attack(monsters.get(0));\n\t\t\t\tbreak;\n\t\t\tcase CAST:\n\t\t\t\tif (monsters.size() > 2)\n\t\t\t\t\tresults = plyr.castSpell(monsters.get(0), monsters.get(1), monsters.get(2));\n\t\t\t\telse if (monsters.size() > 1)\n\t\t\t\t\tresults = plyr.castSpell(monsters.get(0), monsters.get(1));\n\t\t\t\telse\n\t\t\t\t\tresults = plyr.castSpell(monsters.get(0));\n\t\t\t\tbreak;\n\t\t\tcase BAG:\n\t\t\t\tint bagChoice = in.getBagChoice();\n\t\t\t\tswitch(BagChoice.values()[bagChoice]) {\n\t\t\t\tcase STRENGTH:\n\t\t\t\t\tStrengthPotion sPotion = new StrengthPotion();\n\t\t\t\t\tplyr.setStrength(plyr.getStrength() + sPotion.getIncrease());\n\t\t\t\t\tresults = sPotion.use();\n\t\t\t\t\tbreak;\n\t\t\t\tcase WISDOM:\n\t\t\t\t\tWisdomPotion wPotion = new WisdomPotion();\n\t\t\t\t\tplyr.setWisdom(plyr.getWisdom() + wPotion.getIncrease());\n\t\t\t\t\tresults = wPotion.use();\n\t\t\t\t\tbreak;\n\t\t\t\tcase HEALTH:\n\t\t\t\t\tHealthPotion hPotion = new HealthPotion();\n\t\t\t\t\tplyr.setHitPoints(plyr.getHitPoints() + hPotion.getIncrease());\n\t\t\t\t\tresults = hPotion.use();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tout.printInfoIO(results);\n\t}", "title": "" }, { "docid": "fc75e154706a157340739245f1e2672c", "score": "0.55516446", "text": "public void process(String input)\n {\n if (input.equalsIgnoreCase(\"INVENTORY\"))\n {\n System.out.println(\"You have nothing in your inventory.\\n\");\n return;\n }\n else if (input.equalsIgnoreCase(\"LOOK\"))\n {\n System.out.println(\"You see an empty room with no doors.\\n\");\n return;\n }\n \n System.out.println(\"ACTION MANAGER ERROR- \" + input + \" not handled\\n\");\n }", "title": "" }, { "docid": "206d5f72ea89cb5a9ee4e1a87c66769f", "score": "0.5547501", "text": "@Override\r\n\tpublic void performAction(VPAction arg0) {\r\n\t\t//testAssociation();\r\n\t\t//testAttribute();\r\n\t\t//testThread();\r\n\t\t//testFileLoad();\r\n//\t\ttestGetResourceSet();\r\n\t\ttestKnowingAttributes();\r\n\t}", "title": "" }, { "docid": "f8eec3fdfb41f9bee45e778026895f12", "score": "0.554343", "text": "public abstract Move action(Move move);", "title": "" }, { "docid": "a5772c1cb013d1d72d995253bbf06b59", "score": "0.5543394", "text": "public interface Action {\n\n /**\n * Executes the action.\n * Actions may throw a runtime exception if something bad happened when the action is executed.\n */\n void execute();\n }", "title": "" }, { "docid": "7d55958dc2b24349cc15673003e7ea70", "score": "0.5535435", "text": "public void logAction(String code, ID id);", "title": "" }, { "docid": "0cc9e64ddd67e2af45e2df2b6da43a12", "score": "0.55352795", "text": "public T caseAction(Action object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8d3516949d77b17eba2cb3716dc02cc4", "score": "0.55318177", "text": "@Override\n\tpublic void step(int actionType) {\n\t}", "title": "" }, { "docid": "c3adad3b1645227eba876a6e0d65ba68", "score": "0.55311555", "text": "protected abstract boolean handleInternal(AbstractAction action, Agent agent);", "title": "" }, { "docid": "5792033a50d4481740f4546588159aa3", "score": "0.55295813", "text": "public void act() \r\n {\r\n moveStory();\r\n }", "title": "" }, { "docid": "4224971334e596b7448c1cabbc107594", "score": "0.55294275", "text": "public abstract String operation();", "title": "" }, { "docid": "5fa6bef6cff6b73ae703a8e9790780b4", "score": "0.5526703", "text": "public void action() {\n\t\t\tfinal MessageTemplate msgTemplate = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\r\n\t\t\t\t//MessageTemplate.and(\r\n\t\t\t\t\t//MessageTemplate.MatchPerformative(ACLMessage.DISCONFIRM),\r\n\t\t\t\t\t//MessageTemplate.and(\r\n\t\t\t\t\t//\t\tMessageTemplate.MatchProtocol(MyOntology.PAXOS_QUIT_COALITION),\r\n\t\t\t\t\t//\t\tMessageTemplate.and(\r\n\t\t\t\t\t//\t\t\t\tMessageTemplate.MatchLanguage(MyOntology.LANGUAGE),\r\n\t\t\t\t\t//\t\t\t\tMessageTemplate.MatchOntology(MyOntology.ONTOLOGY_NAME))\r\n\t\t\t\t\t//)\r\n\t\t\t\r\n\r\n\t\t\tfinal ACLMessage msg = this.myAgent.receive(msgTemplate);\r\n\t\t\tif (msg != null) {\t\t\r\n\t\t\t\tSystem.out.println(\"<----Message received from \"+msg.getSender()+\" ,content= \"+msg.getContent());\r\n\t\t\t\tthis.finished=true;\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Receiver - No message received\");\r\n\t\t\t}\r\n\t\t}", "title": "" } ]
260d82fe8d2ed5a5428bab05876b1688
counts the number of pieces in a rectangular region. Pieces could either be opponent's HashMap or your own.
[ { "docid": "28616b46b0ee153be708d81709e6f44c", "score": "0.73380643", "text": "private int countInBounds(HashMap<Integer, Point> pieces, Point upperLeft, Point lowerRight) {\n\t\tint num_in_bounds = 0;\n\t\tfor (int i=0; i<this.n; i++) {\n\t\t\tif (inBounds(pieces.get(i), upperLeft, lowerRight)) {num_in_bounds += 1;}\n\t\t}\n\t\treturn num_in_bounds;\n\t}", "title": "" } ]
[ { "docid": "8f3a2fb113449574e06379d2122c3aa6", "score": "0.712564", "text": "private Map<Piece, Integer> countPieces(Board board, List<Piece> pieces) {\n\t Map<Piece, Integer> count = new HashMap<Piece, Integer>();\n\t Piece piece;\n\t for(Piece tmpPiece : pieces)\n\t count.put(tmpPiece, 0);\n\t for (int i = 0; i < board.getRows(); i++) {\n for (int j = 0; j < board.getCols(); j++) {\n piece = board.getPosition(i, j);\n if (count.containsKey(piece)) {\n count.put(piece, count.get(piece) + 1);\n }\n }\n\t }\n\t \n return count;\n\t}", "title": "" }, { "docid": "4226d277fe464b59d9d2a6ca3a0a3d8b", "score": "0.6389053", "text": "int getTileCount();", "title": "" }, { "docid": "856fcb77649155d374717e66b7adbdcc", "score": "0.6379797", "text": "private int getNumTilesOnBoard() {\n int numTiles = 0;\n for (List<Boolean> column : testGame1.getBoard()) {\n for (boolean cellOccupied : column) {\n if (cellOccupied) {\n numTiles++;\n }\n }\n }\n return numTiles;\n }", "title": "" }, { "docid": "e8bf9834a8d65b578abc5f558d68c1e8", "score": "0.6369103", "text": "public static int getNumPieces()\r\n {\r\n return numPieces;\r\n }", "title": "" }, { "docid": "98256122a9504592bd789d47c21be44e", "score": "0.63510716", "text": "public int numberSquares() {\n int count = 0;\n for (int i = 0; i < arrayRectangles.length&&arrayRectangles[i]!=null; i++) {\n if(arrayRectangles[i].isSquare())\n count++;\n }return count;\n }", "title": "" }, { "docid": "654d79ccdb5464405dd49d89fe96875a", "score": "0.62972045", "text": "int getPixelCount();", "title": "" }, { "docid": "e4a5785d20c6e17c8c79219411b99efb", "score": "0.6221525", "text": "public double calcNumberOfAreas() {\r\n\t\tint[][] testMap = new int[map.length][map.length];\r\n\t\tfor (int i = 0; i < testMap.length; i++) {\r\n\t\t\tfor (int j = 0; j < testMap.length; j++) {\r\n\t\t\t\ttestMap[i][j] = map[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tdouble areaCount = 0;\r\n\r\n\t\tfor (int x = 0; x < testMap.length; x++) {\r\n\t\t\tfor (int y = 0; y < testMap.length; y++) {\r\n\t\t\t\tif (floodQueue(testMap, x, y)) {\r\n\t\t\t\t\tareaCount++;\r\n\t\t\t\t}\r\n\t\t\t\t;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn areaCount;\r\n\t}", "title": "" }, { "docid": "0e782a6e03fea4c2a5a0eb462487c989", "score": "0.61273694", "text": "@Override\n\tpublic int getNbSquares() throws IllegalStateException {\n\t\tif(isTerminated())\n\t\t\tthrow new IllegalStateException();\n\t\tint result = 0;\n\t\tfor (Dungeon<SquareT> dungeon : subDungeons.values())\n\t\t\tresult += dungeon.getNbSquares();\n\t\treturn result;\n\t}", "title": "" }, { "docid": "cf3b802f231fe14df66ff083f74620f1", "score": "0.6124701", "text": "public int countBattleships(char[][] board) {\n\n int count = 0;\n int n = board.length;\n int m = board[0].length;\n int i = 0, j=0;\n while(i<n) {\n j= 0;\n while(j < m) {\n if(board[i][j] == 'X') {\n count++;\n board = flagHorizontalOrVertical(board,i,j);\n }\n j++;\n }\n i++;\n }\n return count;\n }", "title": "" }, { "docid": "7c7624c587a1375e728bdc439ad29661", "score": "0.6083638", "text": "int getChiHuCardsCount();", "title": "" }, { "docid": "d75ac7a2476d9df0b1867c79d869ecc4", "score": "0.60570854", "text": "@Raw @Override\n\tpublic int getNbSquares() {\n int result = 0;\n if (getSubDungeonsRaw() == null)\n return 0;\n for (Dungeon<? extends S> subDungeon : getSubDungeonsRaw())\n result += subDungeon.getNbSquares();\n return result;\n\t}", "title": "" }, { "docid": "35024e2bdff918435bb76616526b69cc", "score": "0.603123", "text": "int getCoverCount();", "title": "" }, { "docid": "f71722e6776a748b8e7117fa21534e1b", "score": "0.6021239", "text": "private static int CalculatePieces() {\n\t\tint value = 0;\n\t\tfor(int y = 0; y < 9; y++) {\n\t\t\tfor(int x = 0; x < 7; x++) {\n\t\t\t\tif(board[x][y] == '-') ;\n\t\t\t\telse {\n\t\t\t\t\tswitch(board[x][y]){//for each piece add weight\n\t\t\t\t\t\tcase 'P'://for computer pieces\n\t\t\t\t\t\t\tvalue += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'R':\n\t\t\t\t\t\t\tvalue += 5;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'N':\n\t\t\t\t\t\t\tvalue += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\t\tvalue += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'K':\n\t\t\t\t\t\t\tvalue += 100;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'p'://for player pieces\n\t\t\t\t\t\t\tvalue -= 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'r':\n\t\t\t\t\t\t\tvalue -= 5;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'n':\n\t\t\t\t\t\t\tvalue -= 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\t\tvalue -= 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'k':\n\t\t\t\t\t\t\tvalue -= 100;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn value;//return final value\n\t}", "title": "" }, { "docid": "71086fd6189472a60fa6fbd69f641fe7", "score": "0.6000072", "text": "private int numSurrounded(int row, int col){\n int count = 0;\n for(int i = -1; i <= 1; i++){\n for(int j = -1; j <= 1; j++){\n if(gameBoard[row+i][col+j] != null){\n count++;\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "1f33aeb267ef0b77e6e9eeacbb9a2623", "score": "0.5996224", "text": "private int countRooms(){\n\t\tint i=0,c=0;\n\t\twhile(i<42){\n\t\t\tif(roomEntered[i]!=null)c++;\n\t\t\ti++;\n\t\t}return c;\n\t}", "title": "" }, { "docid": "af9206f10fde7c29af049570617a0b03", "score": "0.5943009", "text": "int getFloorsCount();", "title": "" }, { "docid": "dccaea6e14015e8e4d30a72e776abed0", "score": "0.5942532", "text": "private int countInnerRingsTiles(int radius) {\n int res = 0;\n for(int i = 1; i < radius; i++) {\n res += i * 6;\n }\n return res;\n }", "title": "" }, { "docid": "20423e85dcbe8409fa8962a52089220b", "score": "0.5922707", "text": "void calcNumberOfEmptyCells();", "title": "" }, { "docid": "0dbc058e950e63844b6baa7e57f547af", "score": "0.5920723", "text": "public int getNumberOfAreasControlled(Player player) {\r\n\t\tint count = 0;\r\n\t\tfor (BoardArea ba : gameBoard.values()) {\r\n\t\t\tif (ba.isControlledBy(player)) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "b48ea26de6e14e4fc4d9f39418881024", "score": "0.59139764", "text": "int getQuartilesCount();", "title": "" }, { "docid": "b48ea26de6e14e4fc4d9f39418881024", "score": "0.59139764", "text": "int getQuartilesCount();", "title": "" }, { "docid": "21881acaf54f922eb06ac9bfdf58f5c5", "score": "0.59102666", "text": "int countNeighbors(int x, int y) {\n int count = 0;\n for (int dx = -1; dx < 2; dx++) {\n for (int dy = -1; dy < 2; dy++) {\n int nX = x + dx;\n int nY = y + dy;\n nX = (nX < 0) ? LIFE_SIZE - 1 : nX;\n nY = (nY < 0) ? LIFE_SIZE - 1 : nY;\n nX = (nX > LIFE_SIZE - 1) ? 0 : nX;\n nY = (nY > LIFE_SIZE - 1) ? 0 : nY;\n count += (lifeGeneration[nX][nY]) ? 1 : 0;\n }\n }\n if (lifeGeneration[x][y]) {\n count--;\n }\n return count;\n }", "title": "" }, { "docid": "40a89948e68515ec480d04f88e11e375", "score": "0.5865302", "text": "public int count(MarupekeTile.State s) {\n int count = 0;\n for (int i = 0; i < tiles.length; i++) {\n for (int j = 0; j < tiles.length; j++) {\n if (getState(i, j) == s) {\n ++count;\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "276fa30ddce8f3400bc699a068371067", "score": "0.5865177", "text": "public int numPieces() {\n return numPieces;\n }", "title": "" }, { "docid": "72bc8cb896291d8ba073b4ed61f3a057", "score": "0.58596927", "text": "int getWinCount();", "title": "" }, { "docid": "6ed10dc7c3ef5cdce81dd6b90e4c49f3", "score": "0.58447427", "text": "private static int countBattleships(char[][] board) {\n int m = board.length;\n if (m == 0) {\n return 0;\n }\n int n = board[0].length;\n\n int count = 0;\n\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n if (board[i][j] == '.') {\n continue;\n }\n if (i > 0 && board[i-1][j] == 'X') {\n continue;\n }\n if (j > 0 && board[i][j-1] == 'X') {\n continue;\n }\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "409c07be78a10757c30dff1ed51c64e0", "score": "0.5834407", "text": "public int countEmptySpots() {\n\t\tint c = 0;\n\t\tfor (int i = 0; i < 3; ++i)\n\t\t\tfor (int j = 0; j < 3; ++j)\n\t\t\t\tif (board[i][j] == GameConstants.UNSET) c++;\n\t\treturn c;\n\t}", "title": "" }, { "docid": "f118ad95b00b467b4c6bcd1ffbd6ce83", "score": "0.58294153", "text": "private int countNeighbors(int row, int col, Cell[][] cells) {\n return 0;\n }", "title": "" }, { "docid": "e597cf53a37268bc9ec5811f955cbf2d", "score": "0.58219075", "text": "private static int countBlockHouses(String[][] mapArray) {\n int count = 0;\n\n for(int i=0; i<mapArray.length; i++) {\n for(int j=0; j<mapArray[i].length; j++) {\n if(mapArray[i][j].equals(\"H\")) {\n count++;\n }\n }\n }\n\n return count;\n }", "title": "" }, { "docid": "e27d2d35950315707e1df8a33efad7b8", "score": "0.58164865", "text": "private int countEmptyCells() {\n\t\tint countCells = 0;\n\t\tfor (int r =0; r < NROWSGRID ; r++) {\n\t\t\tfor (int c =0; c< NCOLSGRID; c++) {\n\t\t\t\tif (gameStatus[r][c] == 0) {\n\t\t\t\t\tcountCells++;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\treturn countCells;\n\t}", "title": "" }, { "docid": "3439214b7503a334444cd06e0d999683", "score": "0.5799059", "text": "private int countRGroups(StereoMolecule mol) {\n\t\tint count = 0;\n\t\tfor (int atom=0; atom<mol.getAtoms(); atom++) {\n\t\t\tif (mol.getAtomicNo(atom) == 0 || mol.getAtomicNo(atom) >= 142) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "6684558f0e8d155b2d453d9c4e724e95", "score": "0.5790245", "text": "int countAllCandidates() {\n\t\tint counter = 0;\n\t\tfor(Position position = new Position(0, 0); position != null; position = position.forward(Area.ALL))\n\t\t\tcounter += getCell(position, Debug.NO_DEPTH).getCandidates().size();\n\t\treturn counter;\n\t}", "title": "" }, { "docid": "47933be0775081b3af4be7191f118934", "score": "0.57881296", "text": "public int countPotential(char player, char opponent, int row, int col){\n Cell tmp = board[row][col];\n tmp.setSymbol(player);\n tmp.setOccupied(true);\n numOccupied++;\n\n int differential = 0;\n\n\n int i = row, j = col;\n\n // Lots of tedious code to change the appropriate tiles\n if(i-1>=0 && j-1>=0 && board[i-1][j-1].getSymbol() == opponent){\n i = i-1; j = j-1;\n while(i>0 && j>0 && board[i][j].getSymbol() == opponent) {\n i--;\n j--;\n }\n if(i>=0 && j>=0 && board[i][j].getSymbol() == player) {\n while(i!=row-1 && j!=col-1){\n ++i;++j;\n differential++;\n }\n }\n }\n\n i=row;j=col;\n if(i-1>=0 && board[i-1][j].getSymbol() == opponent){\n i = i-1;\n while(i>0 && board[i][j].getSymbol() == opponent)\n i--;\n if(i>=0 && board[i][j].getSymbol() == player) {\n while(i!=row-1)\n ++i;\n differential++;\n }\n }\n\n i=row;\n if(i-1>=0 && j+1<=7 && board[i-1][j+1].getSymbol() == opponent){\n i = i-1; j = j+1;\n while(i>0 && j<7 && board[i][j].getSymbol() == opponent){\n i--;j++;\n }\n if(i>=0 && j<=7 && board[i][j].getSymbol() == player) {\n while(i!=row-1 && j!=col+1)\n ++i;--j;\n differential++;\n }\n }\n\n i=row;j=col;\n if(j-1>=0 && board[i][j-1].getSymbol() == opponent){\n j = j-1;\n while(j>0 && board[i][j].getSymbol() == opponent)\n j--;\n if(j>=0 && board[i][j].getSymbol() == player) {\n while(j!=col-1)\n ++j;\n differential++;\n }\n }\n\n j=col;\n if(j+1<=7 && board[i][j+1].getSymbol() == opponent){\n j=j+1;\n while(j<7 && board[i][j].getSymbol() == opponent)\n j++;\n if(j<=7 && board[i][j].getSymbol() == player) {\n while(j!=col+1)\n --j;\n differential++;\n }\n }\n\n j=col;\n if(i+1<=7 && j-1>=0 && board[i+1][j-1].getSymbol() == opponent){\n i=i+1;j=j-1;\n while(i<7 && j>0 && board[i][j].getSymbol() == opponent){\n i++;\n j--;\n }\n if(i<=7 && j>=0 && board[i][j].getSymbol() == player) {\n while(i!=row+1 && j!=col-1)\n --i;++j;\n differential++;\n }\n }\n\n i=row;\n j=col;\n if(i+1 <= 7 && board[i+1][j].getSymbol() == opponent){\n i=i+1;\n while(i<7 && board[i][j].getSymbol() == opponent)\n i++;\n if(i<=7 && board[i][j].getSymbol() == player) {\n while(i!=row+1)\n --i;\n differential++;\n }\n }\n\n i=row;\n if(i+1 <= 7 && j+1 <=7 && board[i+1][j+1].getSymbol() == opponent){\n i=i+1;j=j+1;\n while(i<7 && j<7 && board[i][j].getSymbol() == opponent){\n i++;\n j++;\n }\n if(i<=7 && j<=7 && board[i][j].getSymbol() == player) {\n while (i != row + 1 && j != col + 1)\n --i;--j;\n differential++;\n }\n }\n\n return differential;\n }", "title": "" }, { "docid": "b696aece297323269126d7ee5fee49ca", "score": "0.5780088", "text": "public int getSpriteCount();", "title": "" }, { "docid": "ef52836c2d7fa7793a2274d30ad34e59", "score": "0.5778309", "text": "public int countOffscreenSquares()\n {\n int count = 0;\n for (Object shape : objects) \n {\n if (shape instanceof Square)\n {\n Square s = (Square) shape;\n int x = s.getxPosition();\n int y = s.getyPosition();\n \n if (x < 0 || y < 0 || x > 299 || y > 299)\n {\n count++;\n }\n }\n } \n return count; \n }", "title": "" }, { "docid": "212c42f4a2dc84e8f2807bfa9e8459ee", "score": "0.5775811", "text": "private int countNearCells(int y, int x) {\n int count = 0;\n if (y > 0 && x > 0 && field[y - 1][x - 1]) count++;\n if (y > 0 && field[y - 1][x]) count++;\n if (y > 0 && x + 1 < width && field[y - 1][x + 1]) count++;\n if (x > 0 && field[y][x - 1]) count++;\n if (x + 1 < width && field[y][x + 1]) count++;\n if (y + 1 < height && x > 0 && field[y + 1][x - 1]) count++;\n if (y + 1 < height && field[y + 1][x]) count++;\n if (y + 1 < height && x + 1 < width && field[y + 1][x + 1]) count++;\n return count;\n }", "title": "" }, { "docid": "244378ad631629c70842f9107c1cde55", "score": "0.5764437", "text": "int sizeOfPolygonArray();", "title": "" }, { "docid": "b9b5ccaefb66c925c7938e1e56cf6160", "score": "0.57570505", "text": "int count(Area area, Position position, int exception, int depth) {\n\t\tDebug.log(\"count(area = \" + area + \", position = \" + position + \", exception = \" + exception + \")\", depth);\n\t\tdepth++;\n\t\tint max = Position.getMax();\n\t\tint min = Position.getMin();\n\t\tint counter = 0;\n\t\tswitch(area) {\n\t\t\tcase BUCKET_HORIZONTAL:\n\t\t\t\tfor(int j = 0, x = position.base().getX(); j < min; j++, x++)\n\t\t\t\t\tcounter += cells[position.getY()][x].count(exception);\n\t\t\t\tbreak;\n\t\t\tcase BUCKET_VERTICAL:\n\t\t\t\tfor(int i = 0, y = position.base().getY(); i < min; i++, y++)\n\t\t\t\t\tcounter += cells[y][position.getX()].count(exception);\n\t\t\t\tbreak;\n\t\t\tcase DIAGONAL:\n\t\t\t\tbreak;\n\t\t\tcase HORIZONTAL:\n\t\t\t\tfor(int x = 0; x < max; x++)\n\t\t\t\t\tcounter += cells[position.getY()][x].count(exception);\n\t\t\t\tbreak;\n\t\t\tcase VERTICAL:\n\t\t\t\tfor(int y = 0; y < max; y++)\n\t\t\t\t\tcounter += cells[y][position.getX()].count(exception);\n\t\t\t\tbreak;\n\t\t\tcase BLOCK:\n\t\t\t\tfor(int i = 0, y = position.base().getY(); i < min; i++, y++)\n\t\t\t\t\tfor(int j = 0, x = position.base().getX(); j < min; j++, x++)\n\t\t\t\t\t\tcounter += cells[y][x].count(exception);\n\t\t\t\tbreak;\n\t\t\tcase ALL:\n\t\t\t\tfor(int y = 0; y < max; y++)\n\t\t\t\t\tfor(int x = 0; x < max; x++)\n\t\t\t\t\t\tcounter += cells[y][x].count(exception);\n\t\t\t\tbreak;\n\t\t}\n\t\tDebug.var(\"counter\", counter, depth);\n\t\treturn counter;\n\t}", "title": "" }, { "docid": "50316098fd24cc939e2734cb71bb41a0", "score": "0.5749241", "text": "int getGameScoreCount();", "title": "" }, { "docid": "a5327d08242dbac5667569c333e8f954", "score": "0.5738212", "text": "public int countMines() {\n int num = 0;\n\n for (Cell c : this.neighbors) {\n if (c.mine) {\n num += 1;\n }\n }\n return num;\n }", "title": "" }, { "docid": "d870d7c229a7eeea91f38a5cd387dda0", "score": "0.5721622", "text": "public int getWidthInTiles ();", "title": "" }, { "docid": "f04fa456e023f77991ba8a9284bdd9b8", "score": "0.5709265", "text": "public int gridCounter(){\n\t\tint counter = 0;\n\t\tfor(int i = 0;i<3;i++){\n\t\t\tfor(int j = 0;j<3;j++){\n\t\t\t\tif (grid[i][j] != ' '){\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\t\n\t}", "title": "" }, { "docid": "a9fcd2d57ad6ff6c3c6fdb72d10532df", "score": "0.5707749", "text": "public int getPlayerCount() {\r\n if (chairs == null) {\r\n return 0;\r\n }\r\n int count = 0;\r\n for (Chair chair : chairs) {\r\n if (!chair.isEmpty()) {\r\n count ++;\r\n }\r\n }\r\n return count;\r\n }", "title": "" }, { "docid": "566faffd7b1f4c7e4953881e20a21977", "score": "0.570484", "text": "@Override\n\tpublic int numOfBoards() {\n\t\treturn session.getMapper(BoardMapper.class).numOfBoards();\n\t}", "title": "" }, { "docid": "90ea686fbfc7ecd40f20a3d2fda2075e", "score": "0.57002187", "text": "int getHandCardsCount();", "title": "" }, { "docid": "15df535f9a8bafadfbd7949d612253d8", "score": "0.5698015", "text": "public int islandPerimeter(int[][] grid) {\n int count = 0;\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[0].length; j++) {\n if (grid[i][j] == 1) {\n count += 4;\n if (i > 0 && grid[i - 1][j] == 1) {\n count -= 2;\n }\n if (j > 0 && grid[i][j - 1] == 1) {\n count -= 2;\n }\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "6600647e26530e26dde3ac9c19bb8c2e", "score": "0.5679063", "text": "private int getTorusNeighborCount(int row, int col){\t//Counts the number of neighbors for the torus map\n \tint count = 0;\n count = getFlatNeighborCount(row,col);\n //getFlatNeighborcount does not count all of the neighbors for the corners or edges\n //This getTorus accounts for the remaining neighboring cells that getFlat does not take care of\n int limit = 49;\n \n //The if-statement below, containing a for-loop, is used to get the neighbor count for the edge cells.\n //Not including corner pieces.\n if(((row == 0 || row == 49) && (col > 0 && col < 49)) || ((col == 0 || col == 49) && (row > 0 && row < 49))){\n \t\tfor(int i = -1; i <= 1; i++){\n \t\t\tif((col==49) && row >0 && row<49){\n \t\t\t\tif(map[row+i][col-limit]){count++;}\n \t\t\t}else if(col == 0 && row > 0 && row < 49){\t\n \t\t\t\tif(map[row+i][col+limit]){count++;}\n \t\t\t}else if(row == 49 && col > 0 && col < 49){\n \t\t\t\tif(map[row-limit][col+i]){count++;}\n \t\t\t}else if(row == 0 && col > 0 && col < 49){\n \t\t\t\tif(map[row+limit][col+i]){count++;}}}}\n\n \t//Corner pieces \n if(row == 0 && col == 0){\t\t\t\t//top-left corner cell\n \t\t\tif(map[row+49][col+49]){count++;}\n \tif(map[row+1][col+49]){count++;}\n \tif(map[row][col+49]){count++;}\n \tif(map[row+49][col]){count++;}\n \tif(map[row+49][col+1]){count++;}\n }else if(row == 49 && col == 49){\t\t\t\t//bottom-right corner cell\n \t\t\tif(map[row-49][col-49]){count++;}\n \tif(map[row][col-49]){count++;}\n \tif(map[row-1][col-49]){count++;}\n \tif(map[row-49][col]){count++;}\n \tif(map[row-49][col-1]){count++;}\n }else if(row == 0 && col == 49){\t\t\t\t//top-right corner cell\n \t\t\tif(map[row+49][col-49]){count++;}\n \tif(map[row][col-49]){count++;}\n \tif(map[row+1][col-49]){count++;}\n \tif(map[row+49][col]){count++;}\n \tif(map[row+49][col-1]){count++;}\n }else if(row == 49 && col == 0){\t\t\t\t//bottom-left corner cell\n \t\t\tif(map[row-49][col+49]){count++;}\n \t\t\tif(map[row-1][col+49]){count++;}\n \tif(map[row][col+49]){count++;}\n \tif(map[row-49][col]){count++;}\n \tif(map[row-49][col+1]){count++;}\n }\n return count;\n }", "title": "" }, { "docid": "2e9468ef38f7fb936d1cb1731ece11b3", "score": "0.5676688", "text": "int getTileRowCount();", "title": "" }, { "docid": "1be248a3b8bedb2ee076da4a5710d415", "score": "0.5670997", "text": "int PositionScore(DraughtsState state){\n int[] pieces = state.getPieces();\n int whitepieceScore = 0;\n for(int i=0; i<pieces.length; i++){\n //The first and last row can never be the middle of a formation of 3\n if(i > 5 && i < 46)\n {\n //The sides of the board can never be part of a formation\n if(i%10 != 6 && i%10 != 5){\n if(pieces[i] == 1){\n //Check if i is an odd or even row\n if(((i-1)/5)%2 == 0){\n //Check if it is the middle of a formation of 3\n if((pieces[i-6] == 1 && pieces[i+5] == 1) || (pieces[i-5] == 1 && pieces[i+4] == 1)){\n whitepieceScore++;\n }\n } else{\n //Check if it is the middle of a formation of 3\n if((pieces[i-5] == 1 && pieces[i+6] == 1) || (pieces[i-4] == 1 && pieces[i+5] == 1)){\n whitepieceScore++;\n }\n }\n }\n \n if(pieces[i] == 2){\n //Check if i is an odd or even row\n if(((i-1)/5)%2 == 0){\n //Check if it is the middle of a formation of 3\n if((pieces[i-6] == 2 && pieces[i+5] == 2) || (pieces[i-5] == 2 && pieces[i+4] == 2)){\n whitepieceScore--;\n }\n } else{\n if((pieces[i-5] == 2 && pieces[i+6] == 2) || (pieces[i-4] == 2 && pieces[i+5] == 2)){\n whitepieceScore--;\n }\n }\n }\n }\n }\n }\n return whitepieceScore;\n }", "title": "" }, { "docid": "fe392a16f177c708daad44189416911b", "score": "0.56379557", "text": "private int countCars() {\n \tint totalSpots = simulatorView.getNumberOfFloors() * simulatorView.getNumberOfPlaces() * simulatorView.getNumberOfRows();\n \tint totalSpotsTaken = totalSpots - simulatorView.getNumberOfOpenSpots();\n \treturn totalSpotsTaken;\n }", "title": "" }, { "docid": "5514ff1858ba07c484c3f90e979f2b3e", "score": "0.56377715", "text": "@Override\r\n public Integer getNumberOfIntactWalls()\r\n {\r\n Integer result = 0;\r\n\r\n for (Boolean b : walls)\r\n {\r\n if (b)\r\n {\r\n result++;\r\n }\r\n }\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "b1e10e272db1e20c749df3f1401b4807", "score": "0.56274766", "text": "int getCorsCount();", "title": "" }, { "docid": "881610bcbe1581b01be79e30ee1dee45", "score": "0.56237924", "text": "public int countTiles(String color)\n {\n int count = 0; // count variable to be increased when corresponding color found.\n for(int i = 0; i < BOARD_SIZE; i++) // looping through whole boardState.\n {\n for(int j = 0; j < BOARD_SIZE; j++)\n {\n if(boardState[i][j].equalsIgnoreCase(color))\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "5878e433bdfa0e299195e29d9a4d09eb", "score": "0.5603377", "text": "int getPortraitGroupCount();", "title": "" }, { "docid": "1abcebb3206551418180d1fbeee169c0", "score": "0.5591181", "text": "public static int totalPolygons() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn remainingPolygons;\r\n\t}", "title": "" }, { "docid": "57478af1b8cc543f89ac1d73cd0b4cd7", "score": "0.5571415", "text": "int getGameinfoCount();", "title": "" }, { "docid": "e47a52b255b767602d5667c80a37eb51", "score": "0.55702204", "text": "public int numOfConnections(SList pieces) {\n\t\tint num = 0;\n\t\tif (pieces == null) {\n\t\t\treturn num;\n\t\t}\n\t\tfor (int i = 1; i < pieces.length(); i++) {\n\t\t\tObject curpiece = pieces.nth(i);\n\t\t\tnum = num + findConnectingPieces((Pair) curpiece).length();\n\t\t}\n\t\treturn num;\n\t}", "title": "" }, { "docid": "e7d55f47f425cc62c545847c9812dbbe", "score": "0.5570183", "text": "int countCounty();", "title": "" }, { "docid": "e9bc9ff200695edac8c66274511dbc18", "score": "0.5552201", "text": "public int getPlaneCount();", "title": "" }, { "docid": "6b7c6bdfd3eb5555bca2c32fc923dfa5", "score": "0.5550754", "text": "public int getMapCount() {\n\t return this.composite.length;\n\t}", "title": "" }, { "docid": "269880c92404458a6a349b4cd3e65963", "score": "0.5542971", "text": "public int countVisited()\n\t{\n\t\tint count = 0;\n\t\tfor(int i = 0; i < numRows; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < numCols; j++)\n\t\t\t{\n\t\t\t\tif (darkRoom[i][j] == '.')\n\t\t\t\t\tcount = count + 1;\n\t\t\t}\n\t\t}\n\t\treturn count; //CHANGE\n\t}", "title": "" }, { "docid": "7b38c00cd22597ff393b252f50b39803", "score": "0.5540843", "text": "int getPositionsCount();", "title": "" }, { "docid": "09763b67908bcbde8ceec57160c481a7", "score": "0.55358", "text": "private int getSurroundCount(int h, int w) {\n\t\tsynchronized(this) {\n\t\t\t// System.out.println(field[h-1][w-1] + field[h-1][w] + field[h-1][w+1] + field[h][w-1] +\n\t\t\t//\t\t\t\tfield[h][w+1] + field[h+1][w-1] + field[h+1][w] + field[h+1][w+1]);\n\t\t\treturn field[h-1][w-1] + field[h-1][w] + field[h-1][w+1] + field[h][w-1] +\n\t\t\tfield[h][w+1] + field[h+1][w-1] + field[h+1][w] + field[h+1][w+1];\n\t\t}\n\t}", "title": "" }, { "docid": "1ac1cfe75a7ab236d13e670797e53faa", "score": "0.5535431", "text": "public static int countUnocuppiedCells(World world) {\n\t\tint count = 0;\n\n\t\tif (world == null) {\n\t\t\treturn -1;\n\t\t}\n\n\t\tfor (int i = 0; i < world.getSize(); i++) {\n\t\t\tfor (int j = 0; j < world.getSize(); j++) {\n\t\t\t\tif (world.getCell(i, j) == null) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}", "title": "" }, { "docid": "4064e1f1ba1d1c9bdb428318c3fac600", "score": "0.5521987", "text": "int getChunksCount();", "title": "" }, { "docid": "4064e1f1ba1d1c9bdb428318c3fac600", "score": "0.5521987", "text": "int getChunksCount();", "title": "" }, { "docid": "4064e1f1ba1d1c9bdb428318c3fac600", "score": "0.5521987", "text": "int getChunksCount();", "title": "" }, { "docid": "47c7b059bfce419b15e82beb658d1563", "score": "0.5520137", "text": "public int countOfColor(Color toFind) {\r\n return 0;\r\n }", "title": "" }, { "docid": "4cae4d5fd018bde26661e467318f7635", "score": "0.55180836", "text": "public int size() {\n\t\treturn myPoints.size() / 6;\n\t}", "title": "" }, { "docid": "6a79c93cd8c97043edae694ea63a20da", "score": "0.54977375", "text": "int countOfColor(Color toFind);", "title": "" }, { "docid": "c4b9ca47fbdf51c6793f5888c091d4b8", "score": "0.549147", "text": "protected int count(int shape, int x, int y, int dirX, int dirY) {\n System.out.println(\"Masuk Count \"+x+\"-\"+y);\n int ct = 1;\n int xpos, ypos;\n xpos = x + dirX;\n ypos = y + dirY;\n while (xpos >= 0 && xpos < getWidth() && ypos >= 0\n && ypos < getHeight() && getPiece(xpos, ypos) == shape) {\n ct++;\n xpos += dirX;\n ypos += dirY;\n }\n\n // cek direction sebelah\n xpos = x - dirX;\n ypos = y - dirY;\n while (xpos >= 0 && xpos < getWidth() && ypos >= 0\n && ypos < getHeight() && getPiece(xpos, ypos) == shape) {\n ct++;\n xpos -= dirX;\n ypos -= dirY;\n }\n return ct;\n }", "title": "" }, { "docid": "86f76dfeea17e1fdb4fdf85829a41f57", "score": "0.5489988", "text": "public int slotCount();", "title": "" }, { "docid": "e9b8a553862ca3be994e0853fb7f342a", "score": "0.54886746", "text": "int sizeOfCResolutionArray();", "title": "" }, { "docid": "200886f2b8ef5672c3193eee1e450967", "score": "0.54864246", "text": "int countNeighbors(int row, int col){\n\n int count = 0;\n\n for (int i = row-1; i <= row+1; i++) {\n int tempi = i;\n\n //wrap around\n if(tempi == -1) {\n tempi = getRows()-1;\n }\n else if(tempi == getRows()){\n tempi = 0;\n }\n\n for (int j = col-1; j <= col+1; j++) {\n\n int tempj = j;\n\n //wrap around\n if(tempj == -1) {\n tempj = getCols()-1;\n }\n else if(tempj == getCols()){\n tempj = 0;\n }\n\n if(board[tempi][tempj].getState() == Cell.State.ALIVE || board[tempi][tempj].getState() == Cell.State.BIRTHED)\n count++;\n }\n }\n System.out.println();\n\n if (board[row][col].getState() == Cell.State.ALIVE || board[row][col].getState() == Cell.State.BIRTHED)\n count--;\n\n return count;\n }", "title": "" }, { "docid": "47998e4917a983f69b2ccf7864488bc9", "score": "0.5486179", "text": "protected int countPairs(int color){\n\tChip[] chipArray = new Chip[10]; \n int chipIndex = 0;\n\tint pair = 0;\n\tChip currChip;\n\tfor(int j =0;j<8;j++){\n\t for(int i=0;i<8;i++){\n\t\tif(board[i][j]==color){\n\t\t chipArray[chipIndex]=new Chip(color,i,j);\n\t\t chipIndex++;\n\t\t}\n\t }\n\t}\n\tfor(int h=0;h<chipIndex;h++){\n\t currChip = chipArray[h];\n\t \n\t for(int horiz = -1; horiz <= 1; horiz++ ) {\n\t\tfor(int vert = -1; vert <= 1; vert++ ) {\n\t\t int x = currChip.getX();\n\t\t int y = currChip.getY();\n\t\t x += horiz;\n\t\t y += vert; \n\t\t if((currChip.getColor()==BLACK)&&((y==0)||(y==7))){\n\t\t\tif(vert==0){continue;}\n\t\t }\n\t\t if((currChip.getColor()==WHITE)&&((x==0)||(x==7))){\n\t\t\tif(horiz==0){continue;}\n\t\t }\n\t\t if( (horiz == 0) && (vert == 0) ) { continue; }\n\t\t whileloop:\n\t\t while( (0 <= x) && (x <= 7) && (0 <= y) && (y <= 7) ) {\n\t\t\t\n\t\t\tif(board[x][y]==EMPTY){\n\t\t\t x +=horiz;\n\t\t\t y +=vert;\n\t\t\t continue;\n\t\t\t}\n\t\t\telse if(board[x][y]==color){\n\t\t\t \n\t\t\t for(int z=0;z<h;z++){\n\t\t\t\tif((chipArray[z].getX()==x)\n\t\t\t\t &&(chipArray[z].getY()==y)){\n\t\t\t\t if(chipArray[z].getVisited()){\n\t\t\t\t\tbreak whileloop;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t }\n\t\t\t if(((currChip.getX()==0)&&(x==7))\n\t\t\t || ((currChip.getX()==7)&&(x==0))\n\t\t\t || ((currChip.getY()==0)&&(y==7))\n\t\t\t || ((currChip.getY()==7)&&(y==0)))\n\t\t\t\t{break;}\n\t\t\t pair ++;\n\t\t\t break;\n\t\t\t}\n\t\t\telse{\n\t\t\t break;\n\t\t\t}\n\t\t }\n\t\t}\n\t }\n\t currChip.setVisited(true);\n\t}\n\treturn pair;\n }", "title": "" }, { "docid": "fbc969c41e9504f7ab912271be1953da", "score": "0.54812837", "text": "public abstract int getNumberOfColors();", "title": "" }, { "docid": "6a66da1fbd668cea23ff1e01dbe78d43", "score": "0.5476222", "text": "int getS2CellIdCount();", "title": "" }, { "docid": "7e759f54b786304f0b9da955f23136cb", "score": "0.5474467", "text": "@Override\r\n\tpublic int scCountBoards(String condition, String search) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "370c9ad7b894294c84019cbae97da3a2", "score": "0.5473697", "text": "private void checkRep() {\n if (CHECK_REP_ON) {\n int black = 0;\n int white = 0;\n int empty = 0;\n for (Piece[] row : entBoard) {\n for (Piece piece : row) {\n if (piece == null) {\n empty++;\n } else if (piece.getColor() == Color.BLACK) {\n black++;\n } else if (piece.getColor() == Color.WHITE) {\n white++;\n }\n }\n }\n\n assert (black == 7) : \"there should be 7 black pieces\";\n assert (white == 7) : \"there should be 7 white pieces\";\n assert (empty == 11) : \"there should be 11 empty spaces\";\n }\n }", "title": "" }, { "docid": "dbecfefa442939f7ab22923b1a1e2d8e", "score": "0.5473562", "text": "private int numTiles() {\n return numCols * numRows;\n }", "title": "" }, { "docid": "95021412713f4ff3846f9fdce2012f05", "score": "0.54675907", "text": "int getPortraitCount();", "title": "" }, { "docid": "95021412713f4ff3846f9fdce2012f05", "score": "0.54675907", "text": "int getPortraitCount();", "title": "" }, { "docid": "a38f9501d59b8fc055089043f51b5280", "score": "0.5457382", "text": "int numberOfBalls();", "title": "" }, { "docid": "a38f9501d59b8fc055089043f51b5280", "score": "0.5457382", "text": "int numberOfBalls();", "title": "" }, { "docid": "a38f9501d59b8fc055089043f51b5280", "score": "0.5457382", "text": "int numberOfBalls();", "title": "" }, { "docid": "4e9477b03a49b30c19d9d5b87366c58f", "score": "0.54566926", "text": "int getNumBoxes();", "title": "" }, { "docid": "6ce8122264ae48ff2e07239f71b43289", "score": "0.5451594", "text": "public int NumberOfBoards(){ return number_of_boards; }", "title": "" }, { "docid": "d7ddb51b0a543bb3c0585824a230d9e6", "score": "0.5451534", "text": "int getNumberOfEmptyCells();", "title": "" }, { "docid": "46b8c62249e223100e647e0bc840cbac", "score": "0.5448039", "text": "public int[][] countShipsForEachPosition(){\n\t\t\n\t\tint shipsForEachPosition[][]=new int[width][height];\n\t\t\n\t\t//set the counter of each position to 0\n\t\tfor(int i=0;i<width;i++){\n\t\t\tfor(int j=0;j<width;j++){\n\t\t\t\tshipsForEachPosition[i][j]=0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//go through all the ships\n\t\tfor(Iterator<ShipOnBattlefield> i=ships.iterator();i.hasNext();){\n\t\t\tShipOnBattlefield ship=i.next();\n\t\t\t//add 1 to the counter for each ship field\n\t\t\tfor(int j=0;j<ship.getWidth();j++){\n\t\t\t\tfor(int k=0;k<ship.getHeight();k++){\n\t\t\t\t\tshipsForEachPosition[ship.getCoordinate().getX()+j][ship.getCoordinate().getY()+k]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn shipsForEachPosition;\n\t\t\n\t}", "title": "" }, { "docid": "d31dfdd68f856c332d26f582b3a7fd4b", "score": "0.54452187", "text": "@Override\n public int checkCondition(Player window) {\n Die[][] placedDice = window.getPlacedDice();\n int col;\n int row;\n int[] counter = new int [6];\n int ret = 0;\n\n\n for(col = 0; col < placedDice[0].length ;col++) {\n for (row = 0; row < placedDice.length ; row++) {\n if(placedDice[row][col] == null)\n continue;\n\n counter[placedDice[row][col].getValue() - 1] ++;\n }\n\n if(Arrays.stream(counter).filter(count -> count > 0).toArray().length >= placedDice.length)\n ret ++;\n Arrays.fill(counter, 0);\n\n }\n return ret;\n }", "title": "" }, { "docid": "2406c3e14c1b7b1ff10ebf42bd7aec77", "score": "0.54386324", "text": "public static int numberOfBoards() {\r\n\t\treturn numberOfBoard;\r\n\t}", "title": "" }, { "docid": "05c02a1d45a3cba90c5b3c30bc0287a2", "score": "0.5437208", "text": "int getAttackingPokemonIdCount();", "title": "" }, { "docid": "6b5ba91b5bd1d7e3abe3f0f6a0f1c287", "score": "0.5433769", "text": "public int calculateNumber(int row, int col) {\n int count = 0;\n\n\n for (int j = row - 1; j <= row + 1; j++) {\n for (int i = col - 1; i <= col + 1; i++) {\n if (!((i < 0) || (i > canvasSize - 1) || (j < 0) || (j > (canvasSize - 1))) &&\n array[j][i].ifHasBomb() == true) {\n count++;\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "ce7af2e3a2bc1bd31ad6de30b95dbac8", "score": "0.54307073", "text": "int count(Position position, int depth) {\n\t\treturn getCell(position, depth).count();\n\t}", "title": "" }, { "docid": "53973e3b174686e491994879793df4ab", "score": "0.54300314", "text": "int getChiHuRightsCount();", "title": "" }, { "docid": "14a95093e1583a00386d73bcf0110432", "score": "0.5424711", "text": "public int getSize(int[][] land, boolean[][] covered, int rowIndex, int colIndex){\n int cols = land[0].length;\n int rows = land.length;\n if(rowIndex >= rows || colIndex >= cols || rowIndex < 0 || colIndex < 0){\n return 0;\n }\n\n // If the element is covered or piece of land is not a pond\n if(covered[rowIndex][colIndex] || land[rowIndex][colIndex] != 0){\n return 0;\n }\n\n // Mark the piece of land as covered and recurse\n covered[rowIndex][colIndex] = true;\n\n return 1 + getSize(land, covered, rowIndex + 1, colIndex) +\n getSize(land, covered, rowIndex, colIndex + 1) +\n getSize(land, covered, rowIndex + 1, colIndex + 1) +\n getSize(land, covered, rowIndex + 1, colIndex - 1);\n }", "title": "" }, { "docid": "ece77abdd20e7965e90dd5dd675f86ca", "score": "0.542275", "text": "int getGameDataCount();", "title": "" }, { "docid": "b1e1b97bda75bf500309c37235e186c0", "score": "0.54227316", "text": "int getGameRoundRecordsCount();", "title": "" }, { "docid": "3b307c18ae7e401a8b7e25120b043b7b", "score": "0.54194814", "text": "public int numOfPlayerDisks(disk d){\n int count = 0;\n for (int i = 1; i < this.rowSize ; i++) {\n for (int j = 1; j < this.colSize ; j++) {\n if(array[i][j] == d){\n count++;\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "9019d2814e82fdf21999bc1656b8b824", "score": "0.5417636", "text": "private int getFlatNeighborCount(int row, int col){\t\t//neighbor count for Flat grid\n int count = 0;\n /*counts the number of neighbors for each square.\n * checks for corners and edge pieces.\n */\n if(col != 49)\n \tif(map[row][col+1]){count++;}\n if(col != 0)\n \tif(map[row][col-1]){count++;}\n if(row != 49)\n\t\t\tif(map[row+1][col]){count++;}\n if(row != 0)\n \tif(map[row-1][col]){count++;}\n if(row != 0 && col != 0)\n\t\t\tif(map[row-1][col-1]){count++;}\n if(row != 49 && col != 49)\n\t\t\tif(map[row+1][col+1]){count++;}\n if(row != 0 && col != 49)\n\t\t\tif(map[row-1][col+1]){count++;}\n if(row != 49 && col != 0)\n\t\t\tif(map[row+1][col-1]){count++;}\n\n return count;\n }", "title": "" } ]
bd8965e0f971a833b6e781881d744f94
zcat Homo_sapiens.gene_info.excerpt.gz | grep ^9606 | wc l
[ { "docid": "bdbc3903ff1f54da922256de6e45dc70", "score": "0.0", "text": "@Test\n public void testNumberOfGeneIdsParsed() {\n assertThat(GENE_IDENTIFIERS_ALL_TYPES.size(), equalTo(34));\n }", "title": "" } ]
[ { "docid": "7ee5abb30fe100310c70cff0b252cf1c", "score": "0.5625934", "text": "int getMetaInformationCount();", "title": "" }, { "docid": "7ee5abb30fe100310c70cff0b252cf1c", "score": "0.5625934", "text": "int getMetaInformationCount();", "title": "" }, { "docid": "7ee5abb30fe100310c70cff0b252cf1c", "score": "0.5625934", "text": "int getMetaInformationCount();", "title": "" }, { "docid": "096943bf1c72ca91675dbbd39d2558ce", "score": "0.55844057", "text": "int getContentInfosCount();", "title": "" }, { "docid": "2c13c8d826eb0b5aa87f4de57868221b", "score": "0.53524184", "text": "public final int mo29084q() {\n return this.zzza.size();\n }", "title": "" }, { "docid": "41a3a6d61ff473ac9e212fd9ae07925a", "score": "0.5322689", "text": "@Test\n public void testSize() {\n assertEquals(olgaVisitor.getMapIRI_to_Zclass().entrySet().size(), 116);\n\n }", "title": "" }, { "docid": "970f9520ac154ae2a357507fb9bc721b", "score": "0.5241424", "text": "int getMetaCount();", "title": "" }, { "docid": "d06996e7ac6fa657dfefb591d5dd2bee", "score": "0.5227813", "text": "public short getNumberOfEntries() throws IOException {\n\t\treturn raFile.readShort( this.dirOffsetPos-6 );\n\t}", "title": "" }, { "docid": "bc6f9b42770e7bbe0c3120505d2924c6", "score": "0.5224104", "text": "int getOpenInfoCount();", "title": "" }, { "docid": "ae94ddeba101dbf9320dfbe70424d300", "score": "0.51659966", "text": "int getMetaDataCount();", "title": "" }, { "docid": "9c745fc74b2ec506c6308c07733b3347", "score": "0.51593995", "text": "int getExtAuthzMetadataCount();", "title": "" }, { "docid": "644bc9d59edfd8cfd2b89331a1797a78", "score": "0.514349", "text": "int sizeOfCompressionIdentifierArray();", "title": "" }, { "docid": "1c3558c37552a3a97f59c8f7f30b294f", "score": "0.5126457", "text": "int getMetadataCount();", "title": "" }, { "docid": "1c3558c37552a3a97f59c8f7f30b294f", "score": "0.5126457", "text": "int getMetadataCount();", "title": "" }, { "docid": "92797bba311ed3fedb9496713df65e7d", "score": "0.50906456", "text": "public long size() throws IOException {\n return uriIdx.getEntries();\n }", "title": "" }, { "docid": "71f0e95e901876a16d2cdd6a6530c7fd", "score": "0.50407857", "text": "int getSymbolInformationsCount();", "title": "" }, { "docid": "71f0e95e901876a16d2cdd6a6530c7fd", "score": "0.50407857", "text": "int getSymbolInformationsCount();", "title": "" }, { "docid": "7c276790355baaef853ab9f26a9ec6e5", "score": "0.50250095", "text": "public synchronized long getNumBookies() {\n Map<Long, ArrayList<BookieSocketAddress>> m = metadata.getEnsembles();\n Set<BookieSocketAddress> s = Sets.newHashSet();\n for (ArrayList<BookieSocketAddress> aList : m.values()) {\n s.addAll(aList);\n }\n return s.size();\n }", "title": "" }, { "docid": "03f45cef7052302c09d3e94276f62924", "score": "0.5009242", "text": "public int getMetadataLength();", "title": "" }, { "docid": "34a639c15be220e4f31c8340121cc6f6", "score": "0.49823633", "text": "int getNumUniquePokedexEntries();", "title": "" }, { "docid": "23d7fea1b0ee23f0abd8d9588958e760", "score": "0.49688575", "text": "int getDocumentSymbolsCount();", "title": "" }, { "docid": "23d7fea1b0ee23f0abd8d9588958e760", "score": "0.49688575", "text": "int getDocumentSymbolsCount();", "title": "" }, { "docid": "99a65e76b696bbc6e16ef7342dbf5b0c", "score": "0.49631855", "text": "public long countEntries() {\n long entries = 0;\n try {\n entries = Files.lines(new File(\"address-file.txt\").toPath())\n .count();\n } catch (IOException e) {\n\n }\n return entries;\n }", "title": "" }, { "docid": "2afd9fd483e646d39d7549b7b6670ae1", "score": "0.49442282", "text": "int getHeavyAtomsNumber();", "title": "" }, { "docid": "f8cedcb665c797e9c7996a95a149df08", "score": "0.49323332", "text": "public static void main(String[] args) {\n System.out.println(\"201911071122175024\".length());\n }", "title": "" }, { "docid": "730457eed31fad406426e799067cd086", "score": "0.49257478", "text": "int getEntriesCount();", "title": "" }, { "docid": "730457eed31fad406426e799067cd086", "score": "0.49257478", "text": "int getEntriesCount();", "title": "" }, { "docid": "730457eed31fad406426e799067cd086", "score": "0.49257478", "text": "int getEntriesCount();", "title": "" }, { "docid": "fe10327d11143c9c3d87bfc3f0e2054f", "score": "0.4921738", "text": "int getNumNgramsInFile(String filename) throws FileNotFoundException;", "title": "" }, { "docid": "ff37dab0e486be3a86abf4354f14b976", "score": "0.49044004", "text": "public synchronized long getNumFragments() {\n return metadata.getEnsembles().size();\n }", "title": "" }, { "docid": "42bae313c91bd7c95d276dcbd2975ade", "score": "0.4903073", "text": "int getQCSignInfosCount();", "title": "" }, { "docid": "bb65b6401ab8acacc597ac0631c258b7", "score": "0.4891362", "text": "@Override\n\tpublic int countEntries() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ba6a7f2573bc047cdb11d6c2aa24baa2", "score": "0.4857757", "text": "long hlen(String key);", "title": "" }, { "docid": "be38037f106204b405b7fcdf8d13a534", "score": "0.48562223", "text": "public static long count(ArchiveFile arhiveFile) {\n long lines = 0;\n long header = Optional.ofNullable(arhiveFile.getIgnoreHeaderLines()).orElse(0);\n for (File file : arhiveFile.getLocationFiles()) {\n try (BufferedReader reader = Files.newBufferedReader(file.toPath(), UTF_8)) {\n while (reader.readLine() != null) {\n lines++;\n }\n lines = lines - header;\n } catch (IOException ex) {\n log.error(ex.getMessage(), ex);\n }\n }\n return lines;\n }", "title": "" }, { "docid": "f96ca7662bd73edfbe768bdae1cbe572", "score": "0.48555565", "text": "int getExtensionNumberCount();", "title": "" }, { "docid": "ed17f6425dbeb0b2964e7622c320ee40", "score": "0.4847611", "text": "public int numBuckPages() {\n \t//Some code goes here\n \treturn TotNumPages;//(int) ((double)file.length()/(double)BufferPool.DEFAULT_PAGES);\n }", "title": "" }, { "docid": "88ecfcc447fc266f1500ddbb439c8cb7", "score": "0.48432758", "text": "long getOnDiskHitCount();", "title": "" }, { "docid": "15abefc4248c126df527c46e1eba8f8e", "score": "0.48382115", "text": "private void wordCount(File f) throws IOException {\n\t\tlong hashcode = Integer.toUnsignedLong(InetAddress.getLocalHost().getHostName().hashCode());\n\n\t\tBufferedReader reader = new BufferedReader(new FileReader(f));\n\t\tString str = null;\n\t\twhile ((str = reader.readLine()) != null) {\n\t\t\tStringTokenizer token = new StringTokenizer(str, \" \\t\\n\\r\\f,;.:!?\\\"'\");\n\t\t\twhile (token.hasMoreTokens()) {\n\t\t\t\tString word = token.nextToken();\n\t\t\t\tif (!word.isEmpty()) {\n\n\t\t\t\t\t// Compute the hashcode of the word\n\t\t\t\t\tlong machineTarget = Integer.toUnsignedLong(word.hashCode()) % machineCount;\n\n\t\t\t\t\t//\n\t\t\t\t\tFileWriter writer = writers.get(machineTarget);\n\n\t\t\t\t\tif (writer == null) {\n\t\t\t\t\t\tFile result = new File(\n\t\t\t\t\t\t\t\tdirectory + \"/maps/\" + machineTarget + \"_\" + hashcode);\n\t\t\t\t\t\twriter = new FileWriter(result, true);\n\t\t\t\t\t\twriters.put(machineTarget, writer);\n\t\t\t\t\t}\n\n\t\t\t\t\twriter.write(word + \" \" + 1 + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// In order to have a msg in my program, I write the line\n\t\t\tSystem.out.println(str);\n\t\t}\n\n\t\treader.close();\n\n\t}", "title": "" }, { "docid": "670056f647b2b02962096f7d0e34ab6f", "score": "0.4836731", "text": "public int getContentInfosCount() {\n return contentInfos_.size();\n }", "title": "" }, { "docid": "0fc44066f9af7b4b893340d8ed701751", "score": "0.4835226", "text": "public int size() {\r\n\treturn this.numEntries;\r\n}", "title": "" }, { "docid": "ac840c914de69e3198fdff175bfa74df", "score": "0.48329723", "text": "public static Map<String, Integer> kmersCountsExtract(StringBuilder genome, List<String> patterns){\r\n\r\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\r\n\t\tint count, k;\r\n\t\t//int den = genome.length()-k+1;\r\n\r\n\t\tif(Constant.DEBUG_MODE)\r\n\t\t\tSystem.out.println(\"Length: \"+ genome.length());\r\n\r\n\r\n\t\tfor(String pattern : patterns){\r\n\r\n\t\t\tk = pattern.length();\r\n\r\n\t\t\t/* cycle over the length of String till k-mers of length, k, can still be made */\r\n\t\t\tfor(int i = 0; i< (genome.length()-k+1); i++){\r\n\t\t\t\t/* output each k-mer of length k, from i to i+k in String*/\r\n\r\n\t\t\t\tString kmer = genome.substring(i, i+k);\r\n\t\t\t\t//System.out.println(kmer);\r\n\r\n\t\t\t\tif(pattern.contains(\"0\")){\r\n\t\t\t\t\tString spacedWord = Util.extractSpacedWord(kmer, pattern); //kmer deve essere una spaced-word (inexact match).\r\n\t\t\t\t\tkmer = spacedWord;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(map.get(kmer)==null)\r\n\t\t\t\t\tcount=1;\r\n\t\t\t\telse\r\n\t\t\t\t\tcount=map.get(kmer) + 1;\r\n\r\n\t\t\t\tmap.put(kmer, count);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t//\t\tif(Constant.DEBUG_MODE)\r\n\t\t//\t\t\tSystem.out.println(\"Counts: \"+map);\r\n\r\n\t\treturn map;\r\n\t}", "title": "" }, { "docid": "65ac1288a904069b97ae191cc668ec6f", "score": "0.48283792", "text": "public int mo506c() {\n return this.f8328a.f8321b.size();\n }", "title": "" }, { "docid": "6bd545a5fde0428bd3245257d7542d48", "score": "0.48251384", "text": "@Test\n public void testOtsikonSize(){\n HashMap<String, Integer> xmlOtsikkoIndeksit = tiedostonLukija.lueHeaderMapiksi(file, nodeName);\n assertEquals(6, xmlOtsikkoIndeksit.size());\n }", "title": "" }, { "docid": "b196195527f94bcc9586d267d475efb1", "score": "0.48081398", "text": "int getArchiveUrisCount();", "title": "" }, { "docid": "3a0044292221303753069d176d48c429", "score": "0.48066264", "text": "int getNumPhotobombSeen();", "title": "" }, { "docid": "b89126cfab7078f86d0464d1179c3552", "score": "0.4805642", "text": "int size() {\n return entryCount;\n }", "title": "" }, { "docid": "163a76dff20db287c083e60195b7e989", "score": "0.4801634", "text": "public int getNumMarkers(){\r\n Enumeration famList = this.families.elements();\r\n int numMarkers = 0;\r\n while (famList.hasMoreElements()) {\r\n Family fam = (Family) famList.nextElement();\r\n Enumeration indList = fam.getMemberList();\r\n Individual ind = new Individual();\r\n while(indList.hasMoreElements()){\r\n try{\r\n ind = fam.getMember((String)indList.nextElement());\r\n }catch(PedFileException pfe){\r\n }\r\n numMarkers = ind.getNumMarkers();\r\n if(numMarkers > 0){\r\n return numMarkers;\r\n }\r\n }\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "816d424c713934945b58217b1fd5df8c", "score": "0.47959146", "text": "@DISPID(3592) //= 0xe08. The runtime will prefer the VTID if present\n @VTID(42)\n int size();", "title": "" }, { "docid": "aeeb5dc6ae5be5540cf5e3a9890184cd", "score": "0.47946388", "text": "int getS2CAreasDetailCount();", "title": "" }, { "docid": "9e363c7bcfc4fe36c56f30ab252f4d6f", "score": "0.4793093", "text": "int getFileUrisCount();", "title": "" }, { "docid": "5982b2b4c3d9659475af49c20bb82d26", "score": "0.479105", "text": "public final byte getSizeOfContent(){\n\t\treturn (byte) (uclCode[17]&0x1f);\n\t}", "title": "" }, { "docid": "3e6c9fcfa60a7cf8b7262d76e6d8c950", "score": "0.47863585", "text": "public long countEntries ();", "title": "" }, { "docid": "cc45848510ca0aff5e5729e66f8786e7", "score": "0.47771925", "text": "int getEvidencesCount();", "title": "" }, { "docid": "68e44563a484d2e30fc7019207f17975", "score": "0.47740754", "text": "public void testProcessGenes(){\n URLResource file = new URLResource(\"https://users.cs.duke.edu/~rodger/GRch38dnapart.fa\");\n String dna = file.asString(); \n dna = dna.toUpperCase();\n \n System.out.println(\"How many times does the codon CTG appear in this strand of DNA? \" + countCTG(dna));\n \n StorageResource genes = getAllGenes(dna);\n processGenes(genes);\n }", "title": "" }, { "docid": "f8a80bf2a390ffe5ec3e3a7a2bdcf007", "score": "0.47698367", "text": "@Test\n public void checkZNFInFIs() throws IOException {\n Set<String> fis = fu.loadInteractions(FIConfiguration.getConfiguration().get(\"GENE_FI_FILE_NAME\"));\n Set<String> genes = InteractionUtilities.grepIDsFromInteractions(fis);\n Set<String> znfs = new HashSet<String>();\n for (String gene : genes) {\n if (gene.startsWith(\"ZNF\"))\n znfs.add(gene);\n }\n System.out.println(\"Total Genes: \" + genes.size());\n System.out.println(\"Total ZNFs: \" + znfs.size() + \" (\" + (double)znfs.size() / genes.size() + \")\");\n Set<String> touchedZNFFIs = new HashSet<String>();\n Set<String> allZNFFIs = new HashSet<String>();\n for (String fi : fis) {\n int index = fi.indexOf(\"\\t\");\n String gene1 = fi.substring(0, index);\n String gene2 = fi.substring(index + 1);\n if (gene1.startsWith(\"ZNF\") || gene2.startsWith(\"ZNF\"))\n touchedZNFFIs.add(fi);\n if (gene1.startsWith(\"ZNF\") && gene2.startsWith(\"ZNF\"))\n allZNFFIs.add(fi);\n }\n System.out.println(\"Total FIs: \" + fis.size());\n System.out.println(\"Total FIs having at least one ZNF: \" + touchedZNFFIs.size() + \" (\" + (double)touchedZNFFIs.size() / fis.size() + \")\");\n System.out.println(\"Total FIs having both ZNFs: \" + allZNFFIs.size() + \" (\" + (double)allZNFFIs.size() / fis.size() + \")\");\n }", "title": "" }, { "docid": "72c9bccab6dbc37b4efda9057aac6914", "score": "0.47570658", "text": "int getVersionEntryCount();", "title": "" }, { "docid": "e608ad0941c041a4d9dc4f1e560ca851", "score": "0.47546327", "text": "public int getMetaInformationCount() {\n return metaInformation_.size();\n }", "title": "" }, { "docid": "e608ad0941c041a4d9dc4f1e560ca851", "score": "0.47546327", "text": "public int getMetaInformationCount() {\n return metaInformation_.size();\n }", "title": "" }, { "docid": "e608ad0941c041a4d9dc4f1e560ca851", "score": "0.47546327", "text": "public int getMetaInformationCount() {\n return metaInformation_.size();\n }", "title": "" }, { "docid": "7b54db0be59f709ec9197341ce296daa", "score": "0.47544315", "text": "public int describeContents() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7b54db0be59f709ec9197341ce296daa", "score": "0.47544315", "text": "public int describeContents() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "948824f3d618ae292dfeca4cac4baa14", "score": "0.4749733", "text": "int getFileNamesCount();", "title": "" }, { "docid": "991f273db65732ded88dab1e9d08de30", "score": "0.4737253", "text": "public static void main(String []args){\n\t\tString abc = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\";\n\t\tSystem.out.println(abc.length());\n\t\t\n\t}", "title": "" }, { "docid": "49bd2016331ebcd40591c8fd78a14650", "score": "0.47144392", "text": "Long hlen(String key);", "title": "" }, { "docid": "96166c18020e980a0059845f24576718", "score": "0.4708973", "text": "long[] residueCounts();", "title": "" }, { "docid": "96d96a3cf1cfbbeb407c53e68444dd9e", "score": "0.47087097", "text": "int getFavoredNodesCount();", "title": "" }, { "docid": "96d96a3cf1cfbbeb407c53e68444dd9e", "score": "0.47087097", "text": "int getFavoredNodesCount();", "title": "" }, { "docid": "e0805a1eb73a34131cd1bc78bedf2a51", "score": "0.47047722", "text": "@Override\n\tpublic String getNumEntries() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "be493484913cf3d4668604c6c9bb1b50", "score": "0.46973425", "text": "int getDetectedContentLabelCount();", "title": "" }, { "docid": "a561f2240a1a607bdd4969b573345aca", "score": "0.46927688", "text": "public static int numberKnown()\n {\n return knownPolyhedra.length;\n }", "title": "" }, { "docid": "e41bd8a0f7a58049cf3e6690c2568f99", "score": "0.4688722", "text": "public long getGenomeLength() {\n\n long count = 0;\n\n for (Map.Entry<String, Long> e : this.sequences.entrySet())\n count += e.getValue();\n\n return count;\n }", "title": "" }, { "docid": "1c92ba069edb887c69b6c1c1856d5104", "score": "0.4681314", "text": "public int count(int n)\n {\n int cnt = 0;\n\n for (Iterator i = tm.binaryKeys(); i.hasNext();)\n {\n BytezByteSource bbs = (BytezByteSource) i.next();\n\n if ((cnt % n) == 0)\n {\n Bytez bz = bbs.getBytes();\n long key = bz.getLong(bbs.getOff());\n Base base = Utils.toBase(tm.get(key));\n String item = showItem(key, base);\n\n System.out.println(cnt + \" : \" + item);\n }\n\n cnt++;\n }\n\n return cnt;\n }", "title": "" }, { "docid": "b201a57af9a79fe592e4023a29f53db1", "score": "0.46807492", "text": "private String GetNumberOfRecords(String data) {\n return data.substring(18, 20);\n }", "title": "" }, { "docid": "67a7c745051adb233ad73049cb0700be", "score": "0.4674797", "text": "public int hash_eo_count() {\n\t\t\treturn 9*9*9*9 * 2*2*2*2 + 2*2*2*2;\r\n\t\t}", "title": "" }, { "docid": "603399288abdf77ddca401ab63a82f3e", "score": "0.46692082", "text": "public int GetObjectCount ()\r\n {\r\n return m_apkTopLevel.size();\r\n }", "title": "" }, { "docid": "883fa0b56e7f463005bb331078ab2310", "score": "0.4667221", "text": "private int getContentSize(EObject eObject) {\n\t\tTreeIterator<Object> allContents = EcoreUtil.getAllContents(eObject,\n\t\t\t\ttrue);\n\t\treturn count(allContents);\n\t}", "title": "" }, { "docid": "3e4e43169b6255943247bfb60160dd59", "score": "0.46569213", "text": "public int describeContents()\n {\n return 0;\n }", "title": "" }, { "docid": "645b4ab071df460c455520104367e7f7", "score": "0.46527156", "text": "static int marsExploration(String s) {\n \tint count=0;\n \tfor(int i=0; i<s.length(); i++) {\n \t\tif(i%3==1) {\n \t\t\tif(s.charAt(i)!='O') {\n \t\t\tcount++;\n \t\t\t}\n \t\t}\n \t\telse if (s.charAt(i)!='S') {\n \t\t\tcount++;\n \t\t}\n \t}\n \treturn count;\n }", "title": "" }, { "docid": "b85c94f15bd307aab58b7b4f468f2066", "score": "0.46522966", "text": "@Override\n protected int count(BargainPromotionSearcher searcher) {\n return 0;\n }", "title": "" }, { "docid": "376b26c6060db824a790f8793739b8eb", "score": "0.46499693", "text": "public final int get_nGeneClustersCnt()\n { return(gene.nGeneClustersCnt); }", "title": "" }, { "docid": "3bffbbc9ee2d374266127c96c044cd4a", "score": "0.46442193", "text": "private int FindXCount() {\n\t\tint count = 0;\n\t\tfor (int j = 0; j < Shelves.size(); j++) {\n\t\t\tfor (int j2 = 0; j2 < Shelves.get(j).length; j2++) {\n\t\t\t\tif(Shelves.get(j)[j2].contains(Name)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "1f05106e70a746ffa0ac70fd21e2df82", "score": "0.46379766", "text": "private int getLineCount(URL contentUrl) throws IOException {\n LineNumberReader in = new LineNumberReader(new InputStreamReader(contentUrl.openStream(), \"ISO-8859-1\"));\n while (in.readLine() != null) {\n }\n in.close();\n return in.getLineNumber();\n }", "title": "" }, { "docid": "c72b2923023bc2c643990797c94005c1", "score": "0.46355376", "text": "@Override\n protected int count(ResourceSearcher searcher) {\n return 0;\n }", "title": "" }, { "docid": "b1a006680bfb542bda4f6f2a5c778937", "score": "0.46341377", "text": "int getFavoredNodeCount();", "title": "" }, { "docid": "99c7113168cda79bbb0069ced5747861", "score": "0.46322653", "text": "public abstract int getInfoLength();", "title": "" }, { "docid": "5147803b87c2f3cf2c6a65663b6c1484", "score": "0.4627723", "text": "private int m26260c(C7210b c7210b) {\n int i = 0;\n for (C7210b a : this.f22215e) {\n if (a.m30955a().equals(c7210b.m30955a())) {\n i++;\n }\n }\n return i;\n }", "title": "" }, { "docid": "b36fe57c7156812df6596aa0126b04e3", "score": "0.46229577", "text": "int getObjectSize(byte[] stream, int startPosition);", "title": "" }, { "docid": "6f5565799a9cf7b2d987b881e2c5b405", "score": "0.46223623", "text": "public int size() {\r\n\t\tint s = 0;\r\n\t\tint m = 1;\r\n\t\tfor (int i = 0; i < 31; i++) {\r\n\t\t\tif ((pattern & m) != 0)\r\n\t\t\t\ts++;\r\n\t\t\tm = (m << 1);\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "title": "" }, { "docid": "c2a28d8cc01b1d59817862075da6edcc", "score": "0.46216825", "text": "int readableByteCount();", "title": "" }, { "docid": "ab1eb40aee084ba5fe39ff460b0ffb48", "score": "0.4620171", "text": "int getJarFileUrisCount();", "title": "" }, { "docid": "1f9e176764ba02cecb772f5b907ace3d", "score": "0.46181107", "text": "public int size() {\n/* 183 */ expungeStaleEntries();\n/* 184 */ return this.reverseMap.size();\n/* */ }", "title": "" }, { "docid": "f6124a8abd383d2a051f9518dd6957f8", "score": "0.46163774", "text": "private static int getLinesNumber(URL url) throws IOException{\n\t\tURLConnection urlConn = url.openConnection();\n\t\tInputStreamReader inStream = new InputStreamReader(urlConn.getInputStream());\n\t\tBufferedReader buffCountLines = new BufferedReader(inStream);\n\t\tint lines = 0;\n\n\t\twhile (buffCountLines.readLine() != null) lines++;\n\t\tbuffCountLines.close();\n\t\tinStream.close();\n\t\treturn lines;\n\t}", "title": "" }, { "docid": "d0f031f3426855581ba0ee7ffab76dd6", "score": "0.4607543", "text": "static int getNumDataCodewords(int ver, Ecc ecl) {\n\t\tif (ver < MIN_VERSION || ver > MAX_VERSION)\n\t\t\tthrow new IllegalArgumentException(\"Version number out of range\");\n\t\treturn QrTemplate.getNumRawDataModules(ver) / 8\n\t\t\t- ECC_CODEWORDS_PER_BLOCK[ecl.ordinal()][ver]\n\t\t\t* NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal()][ver];\n\t}", "title": "" }, { "docid": "68931fc08e4ed8ebe50bc805ac27ede4", "score": "0.46062902", "text": "int getFeaturesCount();", "title": "" }, { "docid": "68931fc08e4ed8ebe50bc805ac27ede4", "score": "0.46062902", "text": "int getFeaturesCount();", "title": "" }, { "docid": "c14722979de31651395113d70339f222", "score": "0.46060175", "text": "public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "d31990c9f7ac24fa73af013bfae5bfd7", "score": "0.46047315", "text": "public boolean hasNumhits() {\n return result.hasNumhits();\n }", "title": "" }, { "docid": "91e302443aee165b3bad37978e31effa", "score": "0.45998195", "text": "private void countOrganisms() {\n\t\tint white = 0, black = 0, herbivores = 0;\n\n\t\tfor(int i=0;i < Params.surface_x; i++) {\n\t\t\tfor (int j=0;j < Params.surface_y; j++) {\n\t\t\t\tif (earth[i][j].getDaisy() != null) {\n\t\t\t\t\tif(earth[i][j].getDaisy() instanceof WhiteDaisy) {\n\t\t\t\t\t\twhite++;\n\t\t\t\t\t} else if (earth[i][j].getDaisy() instanceof BlackDaisy){\n\t\t\t\t\t\tblack++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (earth[i][j].getHerbivore() != null) {\n\t\t\t\t\therbivores++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.numWhites = white;\n\t\tthis.numBlacks = black;\n\t\tthis.numHerbivores = herbivores;\n\t}", "title": "" }, { "docid": "293a9518770ecd8e6ab41cee315d5161", "score": "0.45992807", "text": "int getEpgIdCount();", "title": "" }, { "docid": "9241b4307ab5f860860214463a5789df", "score": "0.45948714", "text": "int encodingLength() throws IOException;", "title": "" }, { "docid": "719f7d94cd06146e70af686c54ebc842", "score": "0.45909187", "text": "public int size() {\n/* 891 */ return this.count;\n/* */ }", "title": "" } ]
1bf89447b80ec86ff401a389c9f91f7d
/ access modifiers changed from: protected
[ { "docid": "e34da0b143462a27e87c9f8120ff0204", "score": "0.0", "text": "public AppCompatCheckBox g(Context context, AttributeSet attributeSet) {\n return new AppCompatCheckBox(context, attributeSet);\n }", "title": "" } ]
[ { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.76045984", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "35e5940d13f06d1f0d6a21cf2739c70a", "score": "0.7085799", "text": "public function() {}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.6770537", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.67502356", "text": "@Override\r\n\tpublic void pular() {\n\r\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.6670554", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "07779d53803dc6875c03bdee2e1afeb5", "score": "0.664029", "text": "@Override\n public void ordenar() {\n }", "title": "" }, { "docid": "85b25c664df01fd0b02e103c9bbc8372", "score": "0.6629921", "text": "@Override\r\n\tpublic void arreter() {\n\r\n\t}", "title": "" }, { "docid": "2698e2df29a24b9998ee11e61625c8a0", "score": "0.65893877", "text": "private void method() {\n\t\t\t}", "title": "" }, { "docid": "96842cc30bd89c4179fe444c6051dca6", "score": "0.658008", "text": "protected void protectedMethods() {\n }", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6541364", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "ca9fd3596c915ed7aa5476efdc6c819a", "score": "0.65300727", "text": "protected Comestible() {\n\n\t}", "title": "" }, { "docid": "6f21d040d8048da8dd5255d18bf39bb4", "score": "0.651724", "text": "private void method_5396() {\r\n super();\r\n }", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.65160066", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "33c6baca4cfdf58a9cc5753b012f0f9a", "score": "0.65144265", "text": "private Helpers() { }", "title": "" }, { "docid": "b40e2a1aeba3cc2c62bef9400eca0b4d", "score": "0.65121514", "text": "protected Poolable()\n\t{}", "title": "" }, { "docid": "658e2157a962e8e3911961071abbf52d", "score": "0.6497166", "text": "protected void func_70088_a() {}", "title": "" }, { "docid": "8efca113e51c9b46e2ef52301dd40d5f", "score": "0.6486425", "text": "private Extra() {\n\t\t}", "title": "" }, { "docid": "1b431b6b993b6f83bedbe589b6247808", "score": "0.64628863", "text": "public abstract void mo79654d();", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.64499515", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "ef8c13365895705ddbaa9b51389c2443", "score": "0.64343864", "text": "protected void tell_them(){}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.64106005", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.63784254", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "8c9bee953d6868c3de9a487d6803b3e0", "score": "0.63497996", "text": "public abstract void mo79653c();", "title": "" }, { "docid": "aab41dd817435df39f8eea21affc6068", "score": "0.6344927", "text": "protected abstract void mo1288N();", "title": "" }, { "docid": "b97e1efee35d53ca15bf9bf5766e1dd0", "score": "0.63434434", "text": "protected abstract void verabschieden();", "title": "" }, { "docid": "35d0df4750a47e2a9a386bdcb14627de", "score": "0.63186467", "text": "public abstract void mo18577vX();", "title": "" }, { "docid": "51a6edf5a26697121e3b91b6ebbb70c9", "score": "0.63094014", "text": "protected void m() {\n }", "title": "" }, { "docid": "d6d75432f50fcf22c3834bdfb660cd26", "score": "0.63087696", "text": "@Override\n public void use(){\n \n }", "title": "" }, { "docid": "eb65a57bcae1971078950998abb7090f", "score": "0.6305801", "text": "@Override\n\tpublic void potenciar() {\n\t\t\n\t}", "title": "" }, { "docid": "76d972a46ed58cb23a6e979623a43262", "score": "0.6302583", "text": "public abstract void mo18517a();", "title": "" }, { "docid": "3e9c4de332bfb94422f785054fa63ada", "score": "0.6298244", "text": "@Override\r\n\tpublic void limpiar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b9936bc3db0ac97ae50d7643a27379b4", "score": "0.6292518", "text": "@Override\n\tpublic void intercourse() {\n\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.6277923", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "a56ce606ea5cc945279ea9725eed5272", "score": "0.6274672", "text": "@Override\n\tpublic void alearga() {\n\t\t\n\t}", "title": "" }, { "docid": "f82ec92db72e32d9b9a983d17b3248b8", "score": "0.62615216", "text": "public abstract void mo18576vW();", "title": "" }, { "docid": "4077955e82cce22d988577ca0a7978fc", "score": "0.6261488", "text": "@Override\n\tpublic void dormir() {\n\n\t}", "title": "" }, { "docid": "8d2080edd6605bcfb742d32fd1a0091e", "score": "0.62488204", "text": "@Override\n\tpublic void ilerle() {\n\n\t}", "title": "" }, { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.6248152", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "9f6e8d85aee157d478b1d171d149997d", "score": "0.62374216", "text": "public abstract void mo79652b();", "title": "" }, { "docid": "a14a18e4f85143e994f26e4bc77919e8", "score": "0.62339514", "text": "public abstract void mo34046b();", "title": "" }, { "docid": "52796605f7f7baa7158a293c5b2650aa", "score": "0.62329394", "text": "private void method() {\n\t\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.62233984", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "bfe4200735037a3ac37321f5f0cfa5d4", "score": "0.6202727", "text": "private Internal() { }", "title": "" }, { "docid": "e82f9e09376d83cabdb31d106cda3aca", "score": "0.62006366", "text": "public abstract Object mo37958c() throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException;", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.61970854", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "1de1d91c192888f0e3a70817cbf900e2", "score": "0.6181255", "text": "protected static void prueba() {\n\t\t\n\t}", "title": "" }, { "docid": "3ff434b8e8abe48a701b6ab6cb90e4dd", "score": "0.6180367", "text": "@Override\r\n\tpublic void steer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "190219b6cc31464c88cd05f84b39c3e9", "score": "0.6162424", "text": "@Override\n\tprotected void functionStateAbstraction() {\n\t\t\n\t}", "title": "" }, { "docid": "58c0d1fc479ed15a669ebf6f871533b3", "score": "0.61567146", "text": "@Override\r\n\tpublic void foo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e4f52262e67021ff2dd83bea7678ddf1", "score": "0.61525905", "text": "private void behaviour4() {}", "title": "" }, { "docid": "fa729e301b181004ac22fa6a16b19c1b", "score": "0.61483294", "text": "@Override\n public void init()\n {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6134208", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5697bde38a38a77f3a0bd238fb737c11", "score": "0.6114827", "text": "@Override\n public int getDochody() {\n return 0;\n }", "title": "" }, { "docid": "b901583faeb614d4d67271470c31d36c", "score": "0.6111075", "text": "@Override\n\tpublic void sare() {\n\t\t\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6095635", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c70961d65c82275882616b4d4f3a88a", "score": "0.6093769", "text": "final void getdata() { //If parent class has final method then the same method cannot be overridden in child class\n\t \n }", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.6091655", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.60910654", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6955e0e67019fa50d710233f4cd75bfd", "score": "0.6089771", "text": "public abstract void mo19318c();", "title": "" }, { "docid": "2aee513697daff4bfe2636e5d0fa9a30", "score": "0.60834044", "text": "@Override\n\tpublic void bewegeNachUnten() {\n\n\t}", "title": "" }, { "docid": "86873ab379d889d031cbc486bf7ee4a4", "score": "0.60692626", "text": "private void cierrecontable(){\n }", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.6068062", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "c184d8106112b7dc3b1c5a4bd2127eda", "score": "0.6062844", "text": "private Court() {\n\t\t}", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.6061747", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "23d32e184a88bab31671010c45922a93", "score": "0.6057464", "text": "private void inic() {}", "title": "" }, { "docid": "26982b7f087a78f958931bf6c9dc7f74", "score": "0.60559493", "text": "@Override\r\n protected void init()\r\n {\n super.init();\r\n }", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.605477", "text": "protected void init() {}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.60505354", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "96c3b16740b678a7612815d60f5026cc", "score": "0.60503215", "text": "protected FixedSignatureMember() {\n\t}", "title": "" }, { "docid": "5727c6d33ba6b9298776053648827a19", "score": "0.60368913", "text": "@Override\r\n\tpublic void method() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0654ef4bad3dc5ff910d547558d79121", "score": "0.60344774", "text": "void method_8819() {\r\n super();\r\n }", "title": "" }, { "docid": "e291aff76c05742fcc8d54c2278e079f", "score": "0.6033175", "text": "@Override\r\n \tprotected void checkSubclass() {\n \t}", "title": "" }, { "docid": "129bb9f00b30eb8e7835be086a67366b", "score": "0.60221094", "text": "public abstract SP mo18866a();", "title": "" }, { "docid": "d41cb6abff0c58a9880e093e98385b38", "score": "0.60180235", "text": "@Override\r\n\tprotected void doSomething() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6015616", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.600457", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5ec258f2523e8507da50b82fc976d92b", "score": "0.600122", "text": "@Override\n public void foo() {\n \n }", "title": "" }, { "docid": "111aa0339b6ed9d0feea5400697834fe", "score": "0.59891045", "text": "public static Object process() {\n throw new NotImplementedException();\n }", "title": "" }, { "docid": "1283662453dd2aabe5dd94937e3e22f5", "score": "0.59882677", "text": "private void utworzAkcje() {\n }", "title": "" }, { "docid": "f23bbf0b82da9bab896dbaad688f2f05", "score": "0.59866065", "text": "private ObjectHandler () {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.5981274", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.5981274", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.5981274", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.5981274", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "d87000313f7b5075ec45a2b0ee7df323", "score": "0.5978784", "text": "@Override\r\n\tprotected void location() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.5976459", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "6750be75bde4378f891ef232ce154af6", "score": "0.59760064", "text": "@Override\r\n\tprotected void doAnything() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4d51b1484718884d3713c31bebcec679", "score": "0.59689516", "text": "@Override\n\tpublic void foo() {\n\t\t\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.59672034", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.59672034", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.59672034", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.59672034", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.59672034", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.59672034", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.59672034", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.59672034", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.59672034", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "1fc5b997f79276ab82159fb50dd0519e", "score": "0.5959281", "text": "public abstract void mo1285H();", "title": "" }, { "docid": "5dcc398190022b7261a47a2b8bd8ce26", "score": "0.59544045", "text": "@Override\n public void act() {\n }", "title": "" }, { "docid": "dfeaab0caeb6e05782c6e6a823ebdc2d", "score": "0.5954079", "text": "@Override\r\n\tpublic void abcd() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dc4ad5d6a5fcdc294379036f367a401b", "score": "0.59466153", "text": "@Override\n public void frenar() {\n\n }", "title": "" } ]
9e886041d037b65a1594230d0ab3f895
/ Function to equip/unequip an item
[ { "docid": "470c3570b31ee0edafa2107a2b01612b", "score": "0.6659385", "text": "public boolean equipOrUnequip(String res) {\n\t\tif(res.equals(\"W\")) {\n\t\t\tif(getInventory().getWeaponList().size() == 0) {\n\t\t\t\tSystem.out.println(ConsoleColors.GREEN + \"There is no weapons in your inventory\" + ConsoleColors.RESET);\n\t\t\t\tSystem.out.println();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tSystem.out.println(\"Would you like to equip/unequip a weapon?\");\n\t\t} else {\n\t\t\tif(getInventory().getWeaponList().size() == 0) {\n\t\t\t\tSystem.out.println(ConsoleColors.GREEN + \"There is no armor in your inventory\" + ConsoleColors.RESET);\n\t\t\t\tSystem.out.println();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tSystem.out.println(\"Would you like to equip/unequip an armor?\");\n\t\t}\n\t\t\t\n\t\tSystem.out.println(\"0 - Equip\");\n\t\tSystem.out.println(\"1 - Unequip\");\n\t\tSystem.out.println(\"2 - Back\");\n\t\tboolean isValid = false;\n\t\twhile(!isValid) {\n\t\t\tint i = io.parseInt();\n\t\t\tswitch(i) {\n\t\t\tcase 0:\n\t\t\t\tif(res.equals(\"W\")) {\n\t\t\t\t\tio.printWeaponList(getInventory().getWeaponList());\n\t\t\t\t\tint idx = io.parseChoice(getInventory().getWeaponList(), 1);\n\t\t\t\t\tgetInventory().getWeaponList().get(idx).equip(this);\n\t\t\t\t\tisValid = true;\n\t\t\t\t} else {\n\t\t\t\t\tio.printArmorList(getInventory().getArmorList());\n\t\t\t\t\tint idx = io.parseChoice(getInventory().getArmorList(),1);\n\t\t\t\t\tgetInventory().getArmorList().get(idx).equip(this);\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tif(res.equals(\"W\")) {\n\t\t\t\t\tio.printWeaponList(getInventory().getWeaponList());\n\t\t\t\t\tint idx = io.parseChoice(getInventory().getWeaponList(),1) -1;\n\t\t\t\t\tgetInventory().getWeaponList().get(idx).unequip(this);\n\t\t\t\t\tisValid = true;\n\t\t\t\t} else {\n\t\t\t\t\tio.printArmorList(getInventory().getArmorList());\n\t\t\t\t\tint idx = io.parseChoice(getInventory().getArmorList(),1) -1;\n\t\t\t\t\tgetInventory().getArmorList().get(idx).unequip(this);\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tuseItem();\n\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tio.printErrorParse();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" } ]
[ { "docid": "a1a227261dc13b39edc5fd9908cab849", "score": "0.8860708", "text": "void equip(EquipableItem item);", "title": "" }, { "docid": "83360a24b6541b7f080b3e81c5c4e925", "score": "0.88466585", "text": "void unequipItem(Item item){\n }", "title": "" }, { "docid": "bbd70ad92c0a703d1307efc3c64e4c64", "score": "0.87127763", "text": "void equipItem(IEquipableItem item);", "title": "" }, { "docid": "0fdba557a492edfb237a1f3a9a92618f", "score": "0.82324165", "text": "private void equip()\n\t{\n\t\tZuulObject item = searchInventory(object);\n\t\t\n\t\tif(item == null)\n\t\t\tSystem.out.println(\"You don't have one of those\");\n\t\telse\n\t\t{\n\t\t\tif(item instanceof Weapon)\n\t\t\t{\n\t\t\t\tif(equipped != null)\n\t\t\t\t\tinventory.add(equipped);\n\t\t\t\tequipped = item;\n\t\t\t\tinventory.remove(item);\n\t\t\t\tSystem.out.println(\"You equipped a \" + equipped);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"You can't equip that\");\n\t\t\t\tinventory.add(item);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2db223375bc06b69a90418627c02faa1", "score": "0.8172588", "text": "protected abstract void unequip();", "title": "" }, { "docid": "a7c181603af761730db3a66e9639ec7a", "score": "0.7999158", "text": "protected abstract void equip();", "title": "" }, { "docid": "0ada2ac45058d8a391e1c15be660687f", "score": "0.78033847", "text": "public void equipItem(Item item){\r\n\t\tif(item instanceof Weapon){ // The item to equip is a weapon\r\n\t\t\tif(haveWeapon()) // The player has a weapon in his inventory\r\n\t\t\t\tthis.removeAttack(this.weaponEquip.getAttack()); // The attack given by the weapon already equipped is removed\r\n\t\t\tthis.weaponEquip = (Weapon) item; // The Item type of the item to equip is turned into Weapon type because weaponEquip has this type\r\n\t\t\tthis.addAttack(weaponEquip.getAttack()); // The value of the equipped weapon is given at the player's attack\r\n\t\t}else if(item instanceof Shield){ // The item to equip is a shield\r\n\t\t\tif(haveShield()) // The player has a shield in his inventory\r\n\t\t\t\tthis.removeDefense(shieldEquip.getDefense()); // The defense given by the shield already equipped is removed\r\n\t\t\tthis.shieldEquip = (Shield) item; // The Item type of the item to equip is turned into Shield type because shieldEquip has this type\r\n\t\t\tthis.addDefense(shieldEquip.getDefense()); // The value of the equipped shield is given at the player's defense\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4aa2129170b5194f92eb369c42f412ef", "score": "0.76991785", "text": "public void equipItem(Item theItem)\n {\n if (theItem instanceof ItemEquipable) {\n ItemEquipable item = ((ItemEquipable)theItem);\n dropItem(item.getItemName());\n \n if ((item instanceof ItemHandHeld) && \n !(item instanceof ItemHandHeldRanged)) {\n equipItemHandSlot((ItemHandHeld)item);\n return;\n }\n else if (item.getItemSlot().equals(RING_SLOT)) {\n equipItemRingSlot((ItemAccessories)item);\n }\n else {\n Item oldItem = equipment.unEquipItem(item.getItemSlot());\n equipment.equipItem(item);\n \n if (oldItem == null) {\n return;\n }\n else {\n addItem(oldItem);\n }\n }\n }\n \n else {\n System.out.println(CANT_EQUIP_THAT_ITEM + theItem.getItemName());\n }\n }", "title": "" }, { "docid": "5c538395824d78950b700b46ef21eaef", "score": "0.7627136", "text": "void equipItem(Item item){\n\n hitPoints += item.getHitPoints();\n mana += item.getMana();\n strength += item.getStrength();\n dexterity += item.getDexterity();\n intelligence += item.getIntelligence();\n }", "title": "" }, { "docid": "0b58a071e19898b817dcef68580abee4", "score": "0.7499409", "text": "void useEquippedItemOn(IUnit targetUnit);", "title": "" }, { "docid": "a00648a7919bded83b3a9dd59e82bba3", "score": "0.7492303", "text": "void equipAxe(Axe axe);", "title": "" }, { "docid": "e72e0b5db098ab116060a27902b2cdfb", "score": "0.7466873", "text": "private void equipAttack(Attack item) {\n\t\tif (item.isTwoHanded()) {\n\t\t\tattackEquipment[1] = (Attack) unequip(attackEquipment[1]); //desequipa a segunda arma\n\t\t\tdefenseEquipment[1] = (Defense) unequip(defenseEquipment[1]); //desequipa o escudo\n\t\t\tunequip(attackEquipment[0]);\n\t\t\tattackEquipment[0] = item; //equipa a arma de duas maos\n\n\t\t} else if (attackEquipment[0] == null || attackEquipment[0].isTwoHanded()) {\n\t\t\tunequip(attackEquipment[0]);\n\t\t\tattackEquipment[0] = item;\n\n\t\t} else if (attackEquipment[1] == null) {\n\t\t\tdefenseEquipment[1] = (Defense) unequip(defenseEquipment[1]); //desequipa possivel escudo\n\t\t\tattackEquipment[1] = item;\n\t\t\t\n\t\t} else if (attackEquipment[0] != null && attackEquipment[1] != null) {\n\t\t\t\n\t\t\tif (item.getBonusAttack() > attackEquipment[0].getBonusAttack()) { //se duas armas equipadas, substitui a mais fraca\n\t\t\t\tunequip(attackEquipment[0]);\n\t\t\t\tattackEquipment[0] = item;\n\t\t\t} else {\n\t\t\t\tunequip(attackEquipment[1]);\n\t\t\t\tattackEquipment[1] = item;\n\t\t\t}\n\t\t\n\t\t}\n\n\t\trefreshStatus();\n\t}", "title": "" }, { "docid": "1b0f3b3bbbce0cd3a393b72f174264e0", "score": "0.7418956", "text": "void removeFromInventory(IEquipableItem item);", "title": "" }, { "docid": "b84d1e4ab459d8a62bac41a17cdc98cf", "score": "0.73237675", "text": "public void equip(){\n\t\n\t\t//move current shield to player's inventory\n\t\tif (GameState.instance().getCurrentPlayer().getShield()!= null) {\n\t\t\tGameState.instance().getCurrentPlayer().addToInventory(GameState.instance().getCurrentPlayer().getShield());\n\t\t}\t\n\n\n\t\t//equip new shield\n\t\tGameState.instance().getCurrentPlayer().setShield(this);\n\n\t}", "title": "" }, { "docid": "a03c36b2e343ff6549ec24812555b163", "score": "0.7272543", "text": "private void equipItemHandSlot(ItemHandHeld item)\n {\n if (!item.reqTwoHands() && (equipment.checkHandSlots() < 2)) {\n equipment.equipItem(item);\n }\n \n // \"param item\" is not 2 handed and in the equipment there is \n // 2 items in handSlots or a 2handed item. \n else if (!item.reqTwoHands() && ((equipment.checkHandSlots() == 2) \n || (equipment.checkHandSlots() == 3))) {\n /*removes an item from equipment handSlot \n * and adds it to the inventory */\n addItem(equipment.unEquipItem(item.getItemSlot()));\n //Adds the item to the equipment handSlot.\n equipment.equipItem(item);\n }\n \n // the param item requires 2 hands. \n else {\n // no items in handSlots\n if (equipment.checkHandSlots() == 0) equipment.equipItem(item);\n \n // only one item equiped in handSlot, and its either 1h and 2handed.\n else if ((equipment.checkHandSlots() == 1) || \n (equipment.checkHandSlots() == 3)) {\n addItem(equipment.unEquipItem(((ItemHandHeld)item)\n .getItemSlot()));\n equipment.equipItem(item);\n }\n \n // there are 2 1handed items in the handSlots, \n // so we remove both before adding 2handed.\n else {\n addItem(equipment.unEquipItem(((ItemHandHeld)item)\n .getItemSlot()));\n addItem(equipment.unEquipItem(((ItemHandHeld)item)\n .getItemSlot()));\n equipment.equipItem(item);\n }\n } \n }", "title": "" }, { "docid": "5c064ff37d120c3e841f15b3c8956006", "score": "0.72716606", "text": "public void equipped(Character player) {\n\t\tSystem.out.println(\"Dequip an item here\");\n\t\tSystem.out.println(\"Your equipped items are:\");\n\t\tint tvar = 0;\n\t\tfor(int i = 0;i<player.equippedItems.size();i++){\n\t\t\tSystem.out.printf(\"%1$d.%2$s\\n\", i+1, player.equippedItems.get(i).name);\n\t\t\ttvar = i;\n\t\t}\n\t\tSystem.out.printf(\"%1$d.Back\\n\", tvar+2);\n\t\tint choice = Util.getInputasInt();\n\t\tif(choice==tvar+2) {\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.printf(\"Are you sure you want to dequip the %1$s?(y/n)\\n\", player.equippedItems.get(choice-1).name);\n\t\tif(Util.getInput().toLowerCase().equals(\"y\")) {\n\t\t\tplayer.inventory.add(player.equippedItems.get(choice-1));\n\t\t\tplayer.equippedItems.remove(player.equippedItems.get(choice-1));\n\t\t}else {\n\t\t\tequipped(player);\n\t\t}\n\t}", "title": "" }, { "docid": "99fe32ac700d339bfa71a2e866cb261a", "score": "0.72424746", "text": "void giveItemAwayTo(IUnit targetUnit, IEquipableItem item);", "title": "" }, { "docid": "afa248c2df0cd169deb26d124a7d0a20", "score": "0.71491754", "text": "void equipWeapon(IPlayerCharacter playerCharacter);", "title": "" }, { "docid": "2a0982e810bbf7f4fb9d3f76799f5678", "score": "0.7130162", "text": "void getEquip(String weapon, String armor);", "title": "" }, { "docid": "73a02ad1b7206300f0db3334b5052327", "score": "0.711729", "text": "boolean isEquipped(Item item);", "title": "" }, { "docid": "5efa2de1870b8d0c56e30b41e237f166", "score": "0.710282", "text": "void equipSword(Sword sword);", "title": "" }, { "docid": "389a929b25a0084fa1ef849a764af866", "score": "0.7089044", "text": "@Test\n public void testEquipItemEnoughToReequipDuringCombat() {\n ItemType item = TestUtils.createEquipableItemType();\n\n // Add the item in the inventory :\n world.model.player.inventory.addItem(item, 1);\n\n // Change isInCombat to \"true\"\n world.model.uiSelections.isInCombat = true;\n\n // Change player attributes\n Player player = world.model.player;\n player.ap.current = 4; // enough to reequip in combat\n player.reequipCost = 2;\n\n // Verification : the item is in the inventory :\n assertEquals(1, world.model.player.inventory.getItemQuantity(item.id));\n\n // Try to equip the player with the item :\n itemcontroller.equipItem(item, Inventory.WearSlot.body);\n\n // Verification : the player wears the item :\n assertTrue(world.model.player.inventory.isWearing(item.id));\n\n // Verification : now the item isn't the inventory :\n assertEquals(0, world.model.player.inventory.getItemQuantity(item.id));\n\n }", "title": "" }, { "docid": "e244851132545614ec2d2834c58d981d", "score": "0.6999457", "text": "void equip(Player p) {\n\t\tArrayList<Equipable> eq = p.getEquipped();\n\t\teq.add(this);\n\t\tp.setEquipped(eq);\n\t}", "title": "" }, { "docid": "e74dae3577001823d02a556085efe778", "score": "0.6987027", "text": "void equipBow(Bow bow);", "title": "" }, { "docid": "db6e892ce7283a484824dcdc3043ba18", "score": "0.6967059", "text": "public Item equip(Item newItem) {\n\t\t\n\t\tItem oldItem = null;\n\t\t\n\t\tfinal ItemType itemType = newItem.getItemType();\n\t\t\n\t\tfinal Set<ItemType> availableItemTypes = getAvailableItemTypes();\n\t\t\n\t\tif (availableItemTypes.contains(itemType)) {\n\t\t\t\n\t\t\t// Equip the new item\n\t\t\toldItem = equippedItems.put(itemType, newItem);\n\t\t\t\n\t\t\tfireEquippedEvent(oldItem, newItem);\n\t\t} \n\t\t\n\t\t//printEquipment();\n\t\t\n\t\treturn oldItem;\n\t}", "title": "" }, { "docid": "c6fdbf2269ca4c98cf930cfdf5851d87", "score": "0.6935079", "text": "void unequip(Player p) {\n\t\tArrayList<Equipable> eq = p.getEquipped();\n\t\teq.remove(this);\n\t\tp.setEquipped(eq);\n\t}", "title": "" }, { "docid": "285b5bb7fa321cdeb8fbab921dac2ee6", "score": "0.6934868", "text": "@Test\n public void testEquipItemNonEquipableItem() {\n ItemType item = TestUtils.createNonEquipableOrUsableItemType();\n\n // Add the item in the inventory :\n this.world.model.player.inventory.addItem(item, 1);\n\n // Verification : the item is in the inventory :\n assertEquals(1, this.world.model.player.inventory.getItemQuantity(item.id));\n\n // Try to equip the player with the item :\n this.itemcontroller.equipItem(item, Inventory.WearSlot.body);\n\n // Verification : the player doesn't wear the item :\n assertFalse(this.world.model.player.inventory.isWearing(item.id));\n }", "title": "" }, { "docid": "040d6bc66cb8a7b30644a909a75a22fc", "score": "0.6921813", "text": "private void equipDefense(Defense item) {\n\t\tif (item instanceof Shield && (attackEquipment[0] == null || !attackEquipment[0].isTwoHanded())) { //escudo nao equipa se estiver com arma de 2 maos\n\t\t\tattackEquipment[1] = (Attack) unequip(attackEquipment[1]);\n\t\t\tdefenseEquipment[1] = item;\n\n\t\t} else if (item instanceof Armor) {\n\t\t\tdefenseEquipment[0] = item;\n\t\t}\n\n\t\trefreshStatus();\n\t}", "title": "" }, { "docid": "806512787eb0a8b255aab9c956c7ba91", "score": "0.6919387", "text": "@Test\n void equippedWeaponTest() {\n zidane.equip(bow);\n assertEquals(bow, zidane.getEquippedWeapon());\n\n zidane.equip(knife);\n assertEquals(knife, zidane.getEquippedWeapon());\n\n zidane.equip(sword);\n assertEquals(sword, zidane.getEquippedWeapon());\n\n zidane.equip(axe);\n assertNotEquals(axe, zidane.getEquippedWeapon());\n\n zidane.equip(staff);\n assertNotEquals(staff, zidane.getEquippedWeapon());\n }", "title": "" }, { "docid": "dd39ef7875fc691e634462b89e2f3749", "score": "0.6873241", "text": "@Override\n public void onInventoryClick(InventoryClickEvent event) {\n ItemStack item = event.getCursor();\n \n // Skip the checks if the cursor has no REAL Item in hand.\n if (item.getType() == Material.AIR) {\n return;\n }\n \n // Grab the Player involved in the Event.\n Player player = event.getPlayer();\n // Grab the Players HeroClass.\n HeroClass clazz = plugin.getHeroManager().getHero(player).getHeroClass();\n \n // Check if the Slot is an Armor Slot.\n if (event.getSlotType() == InventorySlotType.ARMOR) {\n // Perform Armor Check.\n String itemString = item.toString();\n if (!(clazz.getAllowedArmor().contains(itemString))) {\n Messaging.send(player, \"You cannot equip that armor - $1\", itemString);\n event.setCancelled(true);\n return;\n }\n }\n \n // Check if the Slot is a Weapon Slot.\n if (event.getSlotType() == InventorySlotType.QUICKBAR) {\n // Perform Weapon Check.\n String itemString = item.toString();\n // If it doesn't contain a '_' and it isn't a Bow then it definitely isn't a Weapon.\n if (!(itemString.contains(\"_\")) && !(itemString.equalsIgnoreCase(\"BOW\"))) {\n return;\n }\n // Perform a check to see if what we have is a Weapon.\n if (!(itemString.equalsIgnoreCase(\"BOW\"))) {\n try {\n // Get the value of the item.\n HeroClass.WeaponItems.valueOf(itemString.substring(itemString.indexOf(\"_\") + 1, itemString.length()));\n } catch (IllegalArgumentException e1) {\n // If it isn't a Weapon then we exit out here.\n return;\n }\n }\n // Check if the Players HeroClass allows this WEAPON to be equipped.\n if (!(clazz.getAllowedWeapons().contains(itemString))) {\n Messaging.send(player, \"You cannot equip that item - $1\", itemString);\n event.setCancelled(true);\n return;\n }\n }\n }", "title": "" }, { "docid": "a0692e268d834c76024d139a4dc97ded", "score": "0.6860842", "text": "void addItem(IEquipableItem item);", "title": "" }, { "docid": "750626ec6a293d2d0c3b11fb679ed275", "score": "0.68591714", "text": "void equipSpear(Spear spear);", "title": "" }, { "docid": "a30a32d7f371180e59944578ab164b3c", "score": "0.6853806", "text": "public void attackWith(RpgItem item) {\r\n\t\tif(item.type == RpgItemType.Single_Use_Weapon) {\r\n\t\t\tinv.removeItem(item);\r\n\t\t\tequippedItem = null;\r\n\t\t} else if(item.type == RpgItemType.Spell) {\r\n\t\t\tmana -= item.manaConsumption;\r\n\t\t\tif(mana < 0) {\r\n\t\t\t\tmana = 0;\r\n\t\t\t\tSystem.out.print(\"Mana was consumed past 0...?\\n\");\r\n\t\t\t}\r\n\t\t\tif(item.effect != null) {\r\n\t\t\t\teffect = item.effect;\r\n\t\t\t\teffectTurns = item.effectTurns;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e2afa6ab701b154bb2bd9e1de6300dc4", "score": "0.6853378", "text": "public boolean unequip(Item item) {\n\t\tboolean unequipped = equippedItems.replace(item.getItemType(), item, null);\n\t\t\n\t\tif (unequipped) {\n\t\t\tfireUnequippedEvent(item);\n\t\t}\n\t\t\n\t\treturn unequipped;\n\t}", "title": "" }, { "docid": "33dc56d8451de163c70777a8be1ff6a3", "score": "0.68201", "text": "void equipmentDamaged(final Item theItem, final int amount);", "title": "" }, { "docid": "4f985eb242e8d60d05ffa5590409418d", "score": "0.6752462", "text": "private void drop()\n\t{\n\t\tZuulObject item = searchInventory(object);\n\t\t\n\t\tif(item == null)\n\t\t{\n\t\t\tif(equipped.getName().equalsIgnoreCase(object))\n\t\t\t{\n\t\t\t\tcurrentRoom.addItem(item);\n\t\t\t\tinventory.remove(item);\n\t\t\t\tSystem.out.println(\"You dropped \" + item);\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.println(\"You don't have one of those\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcurrentRoom.addItem(item);\n\t\t\tinventory.remove(item);\n\t\t\tSystem.out.println(\"You dropped \" + item);\n\t\t}\n\t}", "title": "" }, { "docid": "9c70f757a21a4f744b905d3e61bf78e9", "score": "0.67459905", "text": "public boolean equipItem(Item toBeEquipped){\n\t\tString typeToBe,typeCurrently;\n\t\tboolean equipped = false;\n\t\t//if the given item is on inventory\n\t\tif(inventory.getItemList().contains(toBeEquipped)){\n\t\t\ttypeToBe = toBeEquipped.getType();\n\t\t\t//checking if player has equipment with given type. If so we'll remove the old item and add the new item\n\t\t\t//from inventory\n\t\t\tfor(int i = 0; i < equipments.size()&& !equipped; i++){\n\t\t\t\tItem eq = equipments.get(i);\n\t\t\t\ttypeCurrently = eq.getType();\n\t\t\t\tif(typeCurrently.equalsIgnoreCase(typeToBe)){\n\t\t\t\t\tequipments.remove(eq);\n\t\t\t\t\tequipments.add(toBeEquipped);\n\t\t\t\t\tequipped = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Player has no equipment with the given type\n\t\t\tif(!equipped){\n\t\t\t\tequipments.add(toBeEquipped);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\t//System.out.println(\"Item\" + toBeEquipped.name()+\" is not on your inventory\")\n\t\t\treturn false;\n\t\t}\n\t\n\t\t\t\n\t}", "title": "" }, { "docid": "999f13e0375fb6c1822939f6797e7b48", "score": "0.6686553", "text": "@Test\n public void testEquipItemInCombatTooBigReequipCost() {\n ItemType item = TestUtils.createEquipableItemType();\n\n // Add the item in the inventory :\n world.model.player.inventory.addItem(item, 1);\n\n // Change isInCombat to \"true\"\n world.model.uiSelections.isInCombat = true;\n\n // Change player attributes\n Player player = world.model.player;\n player.ap.current = 2; // not enough to reequip in combat\n player.reequipCost = 4;\n\n // Verification : the item is in the inventory :\n assertEquals(1, world.model.player.inventory.getItemQuantity(item.id));\n\n // Try to equip the player with the item :\n itemcontroller.equipItem(item, Inventory.WearSlot.body);\n\n // Verification : the player doesn't wear the item :\n assertFalse(world.model.player.inventory.isWearing(item.id));\n\n }", "title": "" }, { "docid": "a53c8e75752d5c0c3b2d05877905f2fe", "score": "0.6658859", "text": "public void die(){\n if(equippedWeapon != null) currentRoom.addItem(equippedWeapon);\n if(equippedShield != null) currentRoom.addItem(equippedShield);\n for (Item item: inventory) {\n currentRoom.addItem(item);\n }\n }", "title": "" }, { "docid": "3e39ef059c39dd08893381ba46179233", "score": "0.6639428", "text": "public void setEquippedItem(int i) {\n selectedUnit.equipItem(selectedUnit.getItems().get(i));\n }", "title": "" }, { "docid": "f23670e4e1570747db55a10774bd17ee", "score": "0.6619901", "text": "public void pickUp(Item item){\r\n\t\tinventory.add(item);\t\t\r\n\t}", "title": "" }, { "docid": "fb0fe9331b6ae50b3dd19e2a17f7db9c", "score": "0.6614464", "text": "private Equipment unequip(Equipment equipment) {\n\t\tif (equipment != null) {\n\t\t\tinventory[inventoryLoad++] = equipment;\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "745ccc01ff68bc43ba2f4f69b9a37e40", "score": "0.66127294", "text": "private void fireUnequippedEvent(Item oldItem) {\n\t\tfor (EquipmentManagerListener l : equipmentManagerListeners) {\n\t\t\tl.unequipped(oldItem);\n\t\t}\n\t}", "title": "" }, { "docid": "e6a1493c5a295051f260318ed1cd52f5", "score": "0.6608108", "text": "public void removeEquipedItems()\n {\n this.equipment = new Equipment();\n }", "title": "" }, { "docid": "bd7bbc6ee9d9966cae5c47c55f52b076", "score": "0.6578156", "text": "public void add_item(Weapon item) {\n inventory.add(item); \n }", "title": "" }, { "docid": "04fbb27465b7284f9ad7704046effd63", "score": "0.6577874", "text": "protected void onUnequip(final int slot, final L2ItemInstance old)\n\t{\n\t\told.setLocation(getBaseLocation(), findSlot(0));\n\t\t// old.setChargedSpiritshot(ItemInstance.CHARGED_NONE);\n\t\t// old.setChargedSoulshot(ItemInstance.CHARGED_NONE);\n\t\tsendModifyItem(old);\n\n\t\t_wearedMask &= ~old.getItem().getItemMask();\n\n\t\t_listeners.onUnequip(slot, old);\n\n\t\told.shadowNotify(false);\n\t}", "title": "" }, { "docid": "fdb035d4d413b9cf6a4422b231c33a0e", "score": "0.6568399", "text": "private void equipItemRingSlot(ItemAccessories item)\n {\n if (equipment.checkRingSlots() == 2) {\n addItem(equipment.unEquipItem(item.getItemSlot()));\n equipment.equipItem(item);\n }\n else {\n equipment.equipItem(item);\n }\n }", "title": "" }, { "docid": "a403ca32d38e248397719c6b30287303", "score": "0.65434647", "text": "@Test\n public void testEquipItemTwoHandWeeaponAlreadyWearAShield() {\n ItemType twohand = TestUtils.createEquipableTwoHandWeaponItemType();\n // Create a shield :\n ItemType shield = TestUtils.createEquipableShieldItemType();\n\n // Add the shield in the inventory :\n world.model.player.inventory.addItem(shield, 1);\n // Add the weapon in the inventory :\n world.model.player.inventory.addItem(twohand, 1);\n\n // Equip the player with the shield\n itemcontroller.equipItem(shield, Inventory.WearSlot.shield);\n\n // Verification : the player wears the shield\n assertEquals(shield, world.model.player.inventory.getItemTypeInWearSlot(Inventory.WearSlot.shield));\n assertNull(world.model.player.inventory.getItemTypeInWearSlot(Inventory.WearSlot.weapon));\n\n // Equip the player with the two hand weapon\n itemcontroller.equipItem(twohand, Inventory.WearSlot.weapon);\n\n // Verification : the player wears the weapon\n assertNull(world.model.player.inventory.getItemTypeInWearSlot(Inventory.WearSlot.shield));\n assertEquals(twohand, world.model.player.inventory.getItemTypeInWearSlot(Inventory.WearSlot.weapon));\n\n }", "title": "" }, { "docid": "6fd4b36c7fb2ca9b5825e30febdd2719", "score": "0.6536965", "text": "public boolean canEquip()\r\n\t{\r\n\t\treturn !(type == ItemSlot.UNEQUIPPABLE);\r\n\t}", "title": "" }, { "docid": "81fedfce04b2767d8a5e05e9c7305361", "score": "0.65341765", "text": "public Equippable(String iname, String itier, String idesc, String itoolTip, int islotType, int irof, int iminDmg, int imaxDmg, double iprojSpeed, double iprojLifetime, int inumProj, int ifame, int ihp, int imp, int iatk, int idef, int ispd, int idex, int ivit, int iwis, int ist, double iarc, double iamp, double ifreq, boolean imultihit, boolean iarmorPierce, boolean iparametric, boolean ipassesCover, boolean iboomerang, BufferedImage isprite, String isetName, boolean isoulbound, int irow, int icolumn, String ifn, boolean iwavy, String inameCode, int ibagType, int imanaCost, double icooldown, String iconditionEnemy)\n\t{\n\t\thp = ihp;\n\t\tmp = imp;\n\t\tatk = iatk;\n\t\tdef = idef;\n\t\tspd = ispd;\n\t\tdex = idex;\n\t\tvit = ivit;\n\t\twis = iwis;\n\t\tfame = ifame;\n\t\tbaseDamage = iminDmg;\n\t\tmaxDamage = imaxDmg;\n\t\trof = irof;\n\t\tshots = inumProj;\n\t\tarc = iarc;\n\t\tst = ist;\n\t\tname = iname;\n\t\tdescription = idesc;\n\t\ttier = itier;\n\t\tslotType = islotType;\n\t\t// TODO is this proper calculation of range?\n\t\tprojectileSpeed = iprojSpeed;\n\t\tprojectileLifetime = iprojLifetime;\n\t\trange = (iprojSpeed * iprojLifetime)/10000.0;\n\t\tamplitude = iamp;\n\t\tfrequency = ifreq;\n\t\tmultiHit = imultihit;\n\t\tignoresDefense = iarmorPierce;\n\t\tparametric = iparametric;\n\t\tboomerang = iboomerang;\n\t\tpassesCover = ipassesCover;\n\t\tsprite = isprite;\n\t\ttooltip = itoolTip;\n\t\tsetName = isetName;\n\t\tsoulbound = isoulbound;\n\t\trow = irow;\n\t\tcolumn = icolumn;\n\t\tfileName = ifn;\n\t\twavy = iwavy;\n\t\tnameCode = inameCode;\n\t\tbagType = ibagType;\n\t\tmanaCost = imanaCost;\n\t\tcooldown = icooldown;\n\t\tconditionEnemy = iconditionEnemy;\n\t}", "title": "" }, { "docid": "12412c2a4c844de261b7e260151291da", "score": "0.65303516", "text": "public void dropEquipment(Equipment e) {\n equipments.remove(e);\n setChanged();\n notifyObservers(CHEST_CHANGE);\n tryQuit();\n }", "title": "" }, { "docid": "5104be9e7083f62f3e0277bd59c35caf", "score": "0.6510467", "text": "@Override\n public void equipTo(IUnit unit) {\n if(this.getUser()==null) {\n unit.equipSpiritMagicBook(this);\n }\n }", "title": "" }, { "docid": "605bac0dade522a08432e3381daf91bf", "score": "0.647975", "text": "@EventHandler\n public void onItemPickup(PlayerPickupItemEvent event){\n \tif(Plugina.playerMap.get(event.getPlayer()).isUnablePickup()){\n \t\tevent.setCancelled(true);\n \t\treturn;\n \t}\n \tMaterial itype=event.getPlayer().getInventory().getItemInHand().getType();\n \tif(itype==Material.DIAMOND_SWORD||itype==Material.GOLD_SWORD||itype==Material.IRON_SWORD||itype==Material.STONE_SWORD||itype==Material.DIAMOND_SWORD){\n \t\t//if it's a sword then check to see if it's been added to the hotbar and if it has then add it to the queue and maybe call an update function to update it's durability\n \t\t//i'm just gonna call update anyway as long as it's a sword\n \tPlayer p=(Player)event.getPlayer();\n \tPlugina.playerMap.get(p).updateInventory(p);\n \t}\n \tSystem.out.println();\n }", "title": "" }, { "docid": "fe1e88193d486af62484e1afe77a3505", "score": "0.6452896", "text": "public void onItemTick (LivingEntity user, int level, ItemStack item, EquipmentSlotType slot) {\n\n }", "title": "" }, { "docid": "f75856d2ffc08f3d5fed15453895b7d1", "score": "0.64357334", "text": "@Test\n @Override\n public void equipBowTest() {\n assertEquals(new NullItem(), archer.getEquippedItem());\n archer.equipItem(bow);\n assertEquals(bow, archer.getEquippedItem());\n }", "title": "" }, { "docid": "15dd1cfce9002334be1380c677466c25", "score": "0.6420246", "text": "private boolean isEquipable(Attack item) {\n\t\tWeaponsTypes itemClass = item.getWeaponClass();\n\t\tGameTypeObjects characterId = getId();\n\t\treturn WeaponsTypes.isEquipable(characterId, itemClass);\n\t}", "title": "" }, { "docid": "568ee02762fe82da8c2aa82e7a265cb1", "score": "0.64196944", "text": "public ZEquipSlot tryEquip(ZEquipment e) {\n if (e.isEquippable(this)) {\n if (body == null && canEquipBody(e)) {\n body = e;\n e.slot = ZEquipSlot.BODY;\n cachedSkills = null;\n return ZEquipSlot.BODY;\n }\n switch (e.getSlotType()) {\n case HAND:\n if (leftHand == null) {\n leftHand = e;\n cachedSkills = null;\n return e.slot = ZEquipSlot.LEFT_HAND;\n }\n if (rightHand == null) {\n rightHand = e;\n cachedSkills = null;\n return e.slot = ZEquipSlot.RIGHT_HAND;\n }\n break;\n case BODY:\n if (body == null) {\n body = e;\n cachedSkills = null;\n return e.slot = ZEquipSlot.BODY;\n }\n break;\n }\n }\n if (backpack.size() < MAX_BACKPACK_SIZE) {\n backpack.add(e);\n return e.slot = ZEquipSlot.BACKPACK;\n }\n return null;\n }", "title": "" }, { "docid": "173a20269c9f05794e806d0033c21796", "score": "0.64071465", "text": "@Test\n public void testEquipWeapon() throws ItemNotFoundException, InventoryFullException {\n Player player = new Player();\n player.resetPlayer();\n player.setAttackDamage(10);\n try {\n player.lootItem(CompleteItems.FINAL_SWORD);\n player.equipItem(CompleteItems.FINAL_SWORD);\n assertTrue(player.getAttackDamage() == 110);\n } catch (InventoryFullException e) {\n e.getMessage();\n } catch (ItemNotFoundException e) {\n e.getMessage();\n }\n }", "title": "" }, { "docid": "e625d2900c09a2a63cfbb907760d606b", "score": "0.6405316", "text": "public boolean unequip(ItemType type) {\n\t\treturn equippedItems.replace(type, null) != null;\n\t}", "title": "" }, { "docid": "988a373f71be2159649ce1bc44dac48b", "score": "0.6400557", "text": "@Test\n public void testDropItemInInventoryWithBiggerQuantity() {\n ItemType item = TestUtils.createNonEquipableOrUsableItemType();\n\n // Add two items in the inventory :\n this.world.model.player.inventory.addItem(item, 2);\n\n // Verification : 2 items in the inventory :\n assertEquals(2, this.world.model.player.inventory.getItemQuantity(item.id));\n\n // Try to remove 4 items :\n this.itemcontroller.dropItem(item, 4);\n\n // Verification : already 2 items in the inventory :\n assertEquals(2, this.world.model.player.inventory.getItemQuantity(item.id));\n\n // Verification : no items in the map at current position :\n assertNull(this.map.getBagAt(this.world.model.player.position));\n }", "title": "" }, { "docid": "65bd1abfec5a6d52c0271039a8b85bb2", "score": "0.63917", "text": "@Test\n public void testEquipItemShieldAlreadyWearAShield() {\n ItemType twohand = TestUtils.createEquipableTwoHandWeaponItemType();\n // Create a shield :\n ItemType shield = TestUtils.createEquipableShieldItemType();\n\n // Add the shield in the inventory :\n world.model.player.inventory.addItem(shield, 1);\n // Add the weapon in the inventory :\n world.model.player.inventory.addItem(twohand, 1);\n\n // Equip the player with the two hand weapon\n itemcontroller.equipItem(twohand, Inventory.WearSlot.weapon);\n\n // Verification : the player wears the weapon\n assertEquals(twohand, world.model.player.inventory.getItemTypeInWearSlot(Inventory.WearSlot.weapon));\n assertNull(world.model.player.inventory.getItemTypeInWearSlot(Inventory.WearSlot.shield));\n\n // Equip the player with the shield\n itemcontroller.equipItem(shield, Inventory.WearSlot.shield);\n\n // Verification : the player wears the shield\n assertNull(world.model.player.inventory.getItemTypeInWearSlot(Inventory.WearSlot.weapon));\n assertEquals(shield, world.model.player.inventory.getItemTypeInWearSlot(Inventory.WearSlot.shield));\n\n }", "title": "" }, { "docid": "d32df2b5999111598f6eede2a4c34bb8", "score": "0.6379043", "text": "public boolean useItem() {\n\t\tif(inventory.isEmpty()) {\n\t\t\tSystem.out.println(\"Inventory is empty. Nothing to do or see here\");\n\t\t\treturn false;\n\t\t}\n\t\tString res = io.parseItemChoice();\n\t\tboolean ret = false;\n\t\tswitch(res) {\n\t\tcase \"W\":\n\t\tcase \"A\":\n\t\t\tret = equipOrUnequip(res);\n\t\t\tbreak;\n\t\tcase \"P\":\n\t\t\tret = usePotion();\n\t\t\tbreak;\n\t\tcase \"B\":\n\t\t\tret = false;\n\t\t\tbreak;\n\t\t}\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "8a2e851c0adab7b2772a8ccbf6136147", "score": "0.6371029", "text": "@Test\n public void testDropItemInInventoryWithCorrectQuantity() {\n ItemType item = TestUtils.createNonEquipableOrUsableItemType();\n\n // Add two items in the inventory :\n this.world.model.player.inventory.addItem(item, 2);\n\n // Verification : 2 items in the inventory :\n assertEquals(2, this.world.model.player.inventory.getItemQuantity(item.id));\n\n // Try to remove one item :\n this.itemcontroller.dropItem(item, 1);\n\n // Verification : there is only one item in the inventory :\n assertEquals(1, this.world.model.player.inventory.getItemQuantity(item.id));\n\n // Verification : an item is in the map at current position :\n assertEquals(1, this.map.getBagAt(this.world.model.player.position).items.getItemQuantity(item.id));\n }", "title": "" }, { "docid": "a08cfbd81a3e9c98218734b3ff2711c4", "score": "0.6344761", "text": "@Test\n public void testUnEquipWeapon() throws InventoryFullException, ItemNotFoundException {\n Player player = new Player();\n player.resetPlayer();\n player.setAttackDamage(10);\n try {\n player.lootItem(CompleteItems.FINAL_SWORD);\n player.equipItem(CompleteItems.FINAL_SWORD);\n player.unEquipWeapon(player.getSwordEquipped());\n assertTrue(player.getAttackDamage() == 10);\n } catch (InventoryFullException e) {\n e.getMessage();\n } catch (ItemNotFoundException e) {\n e.getMessage();\n }\n }", "title": "" }, { "docid": "edf17b83b95698331f028df78e4acf4b", "score": "0.63385725", "text": "private void useItem(Command command)\n {\n if(!command.hasSecondWord())\n {\n System.out.println(\"Use what?\");\n return;\n }\n\n String itemString = command.getSecondWord();\n\n if(command.hasSecondWord() && player.hasItem(itemString))\n {\n if(itemString.equals(\"Drink\"))\n {\n player.removeItemFromInv(player.getItem(itemString));\n player.setEnergy(50);\n }\n if(itemString.equals(\"Sack\"))\n {\n player.removeItemFromInv(player.getItem(itemString));\n player.setMaxWeight(30);\n }\n if(itemString.equals(\"Keycard\"))\n {\n System.out.println(\"Key Room unlocked!\");\n keyRoom.setLock(false);\n }\n if(itemString.equals(\"Key\"))\n {\n System.out.println(\"Safe Room unlocked!\");\n safeRoom.setLock(false);\n }\n }\n else\n {\n System.out.println(\"You don't have this item...\");\n }\n }", "title": "" }, { "docid": "a0b36b015d9edd8292806f62ad6377c7", "score": "0.63334346", "text": "void equipMagicBook(IMagicBook magicBook);", "title": "" }, { "docid": "7f3302d72b4ff3e24d564929a77872fd", "score": "0.63226765", "text": "boolean isInInventory(IEquipableItem item);", "title": "" }, { "docid": "75b2b76095c11e42d4770963719c96ec", "score": "0.631495", "text": "public void updateInventory();", "title": "" }, { "docid": "b5f7e2e2a969dd4c36bb90ca9975fc1e", "score": "0.6306896", "text": "public void addWeapon();", "title": "" }, { "docid": "a114d8ca878e3541750de9cc6a3f994b", "score": "0.63052493", "text": "public boolean enchantItem(EntityPlayer playerIn, int id) {\n/* 120 */ return false;\n/* */ }", "title": "" }, { "docid": "a803e553ce85b514c1cd4a6a35586669", "score": "0.6296753", "text": "public void HoldItem(ItemStack var1)\n {this.ItemInMouth = new ItemStack(var1.getItem(), 1, var1.getItemDamage());}", "title": "" }, { "docid": "a63f6c6c0ee168c2c0ae13e7b04fb4c1", "score": "0.6290329", "text": "private void inventory () {\n player.checkInventory(); \n }", "title": "" }, { "docid": "fec0cc75a9ff673e64225fbe1d6760f9", "score": "0.6286468", "text": "@RequestMapping(\"/unequip_item\")\n public Map<String, Object> unEquipItem(@RequestParam(value = \"characterId\") Long characterId,\n @RequestParam(value = \"itemId\") Long itemId) {\n LinkedHashMap<String, Object> map = new LinkedHashMap<>();\n Optional<Character> optionalCharacter = characterRepository.findById(characterId);\n if (!optionalCharacter.isPresent()) {\n log.warn(\"Character with cahracterId \" + characterId + \" not found\");\n map.put(\"status\", \"failed\");\n map.put(\"message\", \"No such character with characterId\");\n return map;\n }\n Character character = optionalCharacter.get();\n log.info(\"Character found\");\n Optional<Items> optionalItems = itemsRepository.findById(itemId);\n if (!optionalItems.isPresent()) {\n log.warn(\"Item with itemId \" + itemId + \" not found\");\n map.put(\"status\", \"failed\");\n map.put(\"message\", \"No such item with itemId\");\n return map;\n }\n log.info(\"Item found\");\n Items items = optionalItems.get();\n Optional<CharacterItem> optionalCharacterItem =\n characterItemRepository.findCharacterItemByItemsIdAndCharacterId(itemId, characterId);\n if (!optionalCharacterItem.isPresent()) {\n log.warn(\"Character doesn't have this item\");\n map.put(\"status\", \"failed\");\n map.put(\"message\", \"character doesn't have this item\");\n return map;\n }\n CharacterItem characterItem = optionalCharacterItem.get();\n if (!characterItem.getEquipped()) {\n log.warn(\"Item is already unequipped\");\n map.put(\"status\", \"failed\");\n map.put(\"message\", \"item already unequipped\");\n return map;\n }\n characterItem.setEquipped(false);\n log.info(\"Item unequipped\");\n characterItemRepository.save(characterItem);\n map.put(\"status\", \"success\");\n return map;\n }", "title": "" }, { "docid": "3cd70b113231c9a9d2d0d8ac9fc5dca9", "score": "0.6285254", "text": "@Override\n\tpublic void sellItem() {\n\t\t\n\t}", "title": "" }, { "docid": "a047fd023ce6d062daa26c2fe01a2e15", "score": "0.6283445", "text": "public Equipment takeOutItem(int itemid) {\r\n\t\tfor (int i = 0; i < equipmentstorage.length; i ++) {\r\n\t\t\tif (equipmentstorage[i].getID() == itemid) {\r\n\t\t\t\tEquipment e = equipmentstorage[i];\r\n\t\t\t\tequipmentstorage[i] = null;\r\n\t\t\t\tstoragespace ++;\r\n\t\t\t\treturn e;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d2235bdc582a6749dfb987673f22cf45", "score": "0.6283002", "text": "public void itemInteractions(){\n\t\tfor(Entity e:level.getItems()){\n\t\t\tif(e instanceof Weapon){\n\t\t\t\tWeapon w = (Weapon) e;\n\t\t\t\tif(!w.isHasPlayer() && w.colidesWith(levelState.getPlayer())){\n\t\t\t\t\tw.interact(levelState.getPlayer());\n\t\t\t\t\tremove(w);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(e instanceof Item){\n\t\t\t\tItem i = (Item) e;\n\t\t\t\tif(i.colidesWith(levelState.getPlayer())){\n\t\t\t\t\tif(i instanceof Potion) {\n\t\t\t\t\t\ti.activate(levelState.getPlayer());\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlevelState.getPlayer().addItem(i);\n\t\t\t\t\t}\n\t\t\t\t\tremove(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "00cc277e7699323b250c0fcda16516a0", "score": "0.62679946", "text": "void swing(Player player, CustomItem item, ItemStack stack);", "title": "" }, { "docid": "8f0c7da25ae4f4dcc5bc0dc352e70bb1", "score": "0.62642866", "text": "public boolean useItem(Object item)\n { \n boolean success = false;\n if ( item instanceof Food && player.hasItem((Food) item) )\n //Player east food to increase stamina\n {\n Food food = (Food) item;\n // player gets energy boost from food\n player.increaseStamina(food.getEnergy());\n // player has consumed the food: remove from inventory\n player.drop(food);\n // use successful: everybody has to know that\n notifyGameEventListeners();\n itemUsage++;\n }\n else if (item instanceof Tool)\n {\n Tool tool = (Tool) item;\n if (tool.isTrap()&& !tool.isBroken())\n {\n success = trapPredator(); \n }\n else if(tool.isScrewdriver())// Use screwdriver (to fix trap)\n {\n if(player.hasTrap())\n {\n Tool trap = player.getTrap();\n trap.fix();\n }\n }\n }\n updateGameState();\n return success;\n }", "title": "" }, { "docid": "83aa37433883da26a02f0e34e94e92b7", "score": "0.6259005", "text": "public void desequipWeapon(){\r\n\t\tif(haveWeapon()){ // The player has a weapon\r\n\t\t\tthis.removeAttack(this.weaponEquip.getAttack()); // The attack given by the weapon to unequipped is removed\r\n\t\t\tthis.weaponEquip = null; // There is not equipped weapon anymore\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5fd3149dead4e8b275275c21ab7e838d", "score": "0.6257443", "text": "public boolean consume(RpgItem item) {\r\n\t\tif(!inv.hasItem(item)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tinv.removeItem(item);\r\n\t\tequippedItem = null;\r\n\t\thealth+=item.power;\r\n\t\tif(health > maxHealth)\r\n\t\t\thealth = maxHealth;\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "3d0a9a6e45c2ce1214cfdc27c68cacbc", "score": "0.6220944", "text": "public void unplace(Item spawnedItem);", "title": "" }, { "docid": "8a680a21253b821c8279083d9532ec9c", "score": "0.62165064", "text": "public void inventory(Character player, Enemy enemy) {\n\t\tboolean used = false;\n\t\twhile(used != true) {\n\t\t\tSystem.out.println(\"What item would you like to use: \");\n\t\t\tint lastNum = 0;\n\t\t\tfor(int i = 0;i<player.inventory.size();i++) {\n\t\t\t\tSystem.out.printf(\"%1$d. %2$s\\n\", i+1, player.inventory.get(i).name);\n\t\t\t\tlastNum = i;\n\t\t\t}\n\t\t\tSystem.out.printf(\"%d. Back\\n\", lastNum+2);\n\t\t\tint menchoice=0;\t\n\t\t\tmenchoice = Util.getInputasInt(lastNum+2);\n\t\t\tif(lastNum + 2==menchoice) {\n\t\t\tused = true;\n\t\t\t}else{\n\t\t\t\tused = player.inventory.get(menchoice-1).use(player, enemy);\n\t\t\t\tused = true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fa9b31fcfa32808315dfe706fd3435e9", "score": "0.6215918", "text": "public void equiper()\n\t{\n\t\tthis.equipements.add(\"Mitraillette à plasma\");\n\t\tthis.equipements.add(\"Peau\");\n\t\tSystem.out.println(\"Equipement d'un commandant extraterrestre (Mitraillette à plasma, Peau).\");\n\t}", "title": "" }, { "docid": "89dc15f68354c79c90c01bf4a75e8df7", "score": "0.62052673", "text": "public void addItemIntoInventory(Item i) {\n\t\tinventory.addItem(i);\n\t\tSystem.out.println(getName() + \"'s Inventory\");\n\t\tinventory.printInventory(); \n\t\tif(i instanceof isEquipable) {\n\t\t\tSystem.out.println(\"Would you like to equip \" + i.getName() + \"? (Y/N)\");\n\t\t\tboolean res = io.parseYesNo();\n\t\t\tif(res) {\n\t\t\t\t((isEquipable) i).equip(this);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e647f8c795701f5cd6f738934f80336a", "score": "0.61944795", "text": "public void pickItem(Item i1){\n for(int i = 0; i < inventory.length; i++){\n if(inventory[i].getItemName().equals(\"None\")){\n inventory[i] = i1;\n break;\n }\n }\n }", "title": "" }, { "docid": "81b3edb4395f2f0f9cc458493c1bbd8c", "score": "0.61785275", "text": "public void addToInventory(CanCarry item) {\n\t\tif (inventoryLoad < INVENTORY_MAX_AMOUNT) {\n\t\t\tif (item instanceof Attack && isEquipable((Attack) item) && isBestWeapon((Attack) item)) {\n\t\t\t\tequipAttack((Attack) item);\n\t\t\t} else if (item instanceof Defense && isEquipable((Defense) item) && isBestArmor((Defense) item)) {\n\t\t\t\tequipDefense((Defense) item);\n\t\t\t} else if (this instanceof SpellCaster && item instanceof Spell) {\n\t\t\t\tSpellCaster person = (SpellCaster) this;\n\t\t\t\tperson.addSpell((Spell) item);\n\t\t\t} else {\n\t\t\t\tinventory[inventoryLoad++] = item;\n\t\t\t}\n\n\t\t} else {\n\t\t\tthrow new FullInventoryException(\"Inventario cheio!\");\n\t\t}\n\t}", "title": "" }, { "docid": "000f18de583c9d771960bc022ddd4339", "score": "0.6167834", "text": "public void dropItem(){\n Item item = player.getCurrentRoom().getItem();\n \n if(player.getItems().isEmpty()){\n System.out.println(\"O jogador \" + player.getName() + \" não está carregando nenhum item.\");\n } else if(!item.isIsWithPlayer()){\n System.out.println(\"O jogador \" + player.getName() + \" não está carregando esse item.\");\n } else {\n player.getItems().remove(item);\n System.out.println(\"O jogador \" + player.getName() + \" não está mais carregando \" + item.getDescription());\n }\n }", "title": "" }, { "docid": "72645b9ddef3aff2af7e41a2b8b84613", "score": "0.6163132", "text": "@Test\n public void testUnEquipArmor() throws InventoryFullException, ItemNotFoundException {\n Player player = new Player();\n player.resetPlayer();\n player.setMaxHealth(100);\n try {\n player.lootItem(CompleteItems.FINAL_BODY_ARMOR);\n player.equipItem(CompleteItems.FINAL_BODY_ARMOR);\n player.unEquipArmor(player.getArmorEquipped());\n assertTrue(player.getMaxHealth() == 100);\n } catch (InventoryFullException e) {\n e.getMessage();\n } catch (ItemNotFoundException e) {\n e.getMessage();\n }\n }", "title": "" }, { "docid": "79895b40e9852e25e3f7a89b9011f566", "score": "0.6127302", "text": "@Override\n\tpublic void pickedUp(AbstractPlayer p) {\n\t\tfor (AbstractWeapon w: p.getInventory()) {\n\t\t\tif(w.getClass().equals(this.getClass())){\n\t\t\t\tw.setAmmo(getMaxAmmo());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t//adds the weapon to the players inventory.\n\n\t\tp.getInventory().add(this);\n\t\tPlayer player = (Player)p;\n\t\tplayer.setCurWeapon(player.getInventory().indexOf(this));\n\n\t}", "title": "" }, { "docid": "90a349bdeecbfe0f8400297479874f91", "score": "0.6126235", "text": "@Override\n public boolean equipOn(Player player) {\n return player != null && player.equip(this);\n }", "title": "" }, { "docid": "8dd682687459375565fb721bbf505ddd", "score": "0.6123587", "text": "public void remove_item(int i) {\n inventory.remove(i); \n }", "title": "" }, { "docid": "e01ea0846f5e1453dd0c85cb429826cd", "score": "0.61220586", "text": "@Test\n public void testUseItemNotusableItem() {\n\n // Create an item\n ItemType item = TestUtils.createNonEquipableOrUsableItemType();\n\n // Add the item in the inventory :\n this.world.model.player.inventory.addItem(item, 1);\n\n // verify if the item is in the player's inventory\n assertNotNull(this.world.model.player.inventory.findItem(item.id));\n\n // use the item\n this.itemcontroller.useItem(item);\n\n // verify that the item was not removed from the player's inventory\n assertNotNull(this.world.model.player.inventory.findItem(item.id));\n }", "title": "" }, { "docid": "0c9dafffb5a36ff06adad60ed9dd36a3", "score": "0.61213213", "text": "public abstract void onUseInAir(Player player, ItemStack itemStack, Player.Hand hand);", "title": "" }, { "docid": "c404261109adf34ade40f5932b1dc72c", "score": "0.61207163", "text": "private void dropItem(Command command)\n {\n if(!command.hasSecondWord()) {\n System.out.println(\"Laat wat vallen?\");\n return;\n } \n else\n {\n String item = command.getSecondWord();\n Item newItem = null;\n int index = 0;\n int weight = 0;\n\n for (int i = 0; i < this.inventory.size(); i++)\n {\n if (((Item)this.inventory.get(i)).getDescription().equals(item)) \n {\n newItem = (Item)this.inventory.get(i);\n index = i;\n weight = ((Item)this.inventory.get(i)).getWeight();\n }\n }\n\n if (newItem == null) {\n System.out.println(\"Dat voorwerp zit niet in je inventaris!\");\n }\n else {\n inventory.remove(index);\n currentRoom.setItem(new Item(item, weight, true));\n System.out.println(item + \" laten vallen.\");\n }\n }\n }", "title": "" }, { "docid": "43b91e37d2acf50a38180a8b586c21ef", "score": "0.6120649", "text": "public void useItem(Item item, ItemDeployCommand deployer) throws SquareOccupiedException{\n\n deployer.deploy(item);\n\n removeItem(item);\n\n actionPerformed();\n }", "title": "" }, { "docid": "31fbf43bd7b39151c9a454681d4e56de", "score": "0.61202425", "text": "@Test\n public void testUseItemUsableItem() {\n\n // Create an item\n ItemType item = TestUtils.createUsableItemType();\n\n // Add the item in the player inventory\n this.world.model.player.inventory.addItem(item, 1);\n\n // verify if the item is in the player's inventory\n assertNotNull(this.world.model.player.inventory.findItem(item.id));\n\n // use the item\n this.itemcontroller.useItem(item);\n\n // verify that the item was removed from the player's inventory\n assertNull(this.world.model.player.inventory.findItem(item.id));\n }", "title": "" }, { "docid": "af30afd16b6374e21ec712c73a6cd2c3", "score": "0.61193526", "text": "@Test\n\tpublic void checkSwapping() {\n\t\tTestHelper.load();\n\t\tInventory inv = new Inventory();\n\n\t\tassertTrue(inv.getItemID(activeArray, 0).equals(\"Gun1\"));\n\t\tassertTrue(inv.getItemID(activeArray, 1).equals(\"Melee1\"));\n\t\tassertTrue(inv.getItemID(passiveArray, 0).equals(\"helmet\"));\n\t\tassertTrue(inv.getItemID(passiveArray, 1).equals(\"chestplate\"));\n\t\tinv.placeItem(generalArray, 0, \"potion1\", 1);\n\t\tinv.placeItem(generalArray, 1, \"potion1\", 1);\n\t\t// ensuring rapid swapping maintains integrity\n\t\tinv.swapItem(activeArray, 0, generalArray, 0, true);\n\t\tinv.swapItem(generalArray, 0, activeArray, 0, true);\n\n\t\tinv.swapItem(activeArray, 0, activeArray, 1, true);\n\t\tassertTrue(inv.getItemID(activeArray, 1).equals(\"Gun1\"));\n\t\tassertTrue(inv.getItemID(activeArray, 0).equals(\"Melee1\"));\n\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 1);\n\t\tassertTrue(inv.getItemQuantity(generalArray, 1) == 1);\n\t\tassertTrue(inv.addItem(2, \"potion1\"));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 3);\n\t\tassertTrue(inv.getItemQuantity(generalArray, 1) == 1);\n\t\tassertTrue(inv.getItemID(generalArray, 0).equals(\"potion1\"));\n\t\tassertTrue(inv.getItemID(generalArray, 1).equals(\"potion1\"));\n\n\t\t// Should not stack\n\t\tassertTrue(inv.swapItem(generalArray, 0, generalArray, 1, false));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 1);\n\t\tassertTrue(inv.getItemQuantity(generalArray, 1) == 3);\n\t\tassertTrue(inv.getItemID(generalArray, 0).equals(\"potion1\"));\n\t\tassertTrue(inv.getItemID(generalArray, 1).equals(\"potion1\"));\n\t\t// Swap it back\n\t\tassertTrue(inv.swapItem(generalArray, 0, generalArray, 1, false));\n\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 3);\n\t\tassertTrue(inv.getItemQuantity(generalArray, 1) == 1);\n\t\tassertTrue(inv.getItemID(generalArray, 0).equals(\"potion1\"));\n\t\tassertTrue(inv.getItemID(generalArray, 1).equals(\"potion1\"));\n\n\t\t// swapping 2 of the same item (i.e. will stack)\n\t\tassertTrue(inv.swapItem(generalArray, 0, generalArray, 1, true));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 0);\n\t\tassertTrue(inv.getItemQuantity(generalArray, 1) == 4);\n\t\tassertTrue(inv.getItemID(generalArray, 0).equals(\"emptyslot\"));\n\t\tassertTrue(inv.getItemID(generalArray, 1).equals(\"potion1\"));\n\n\t\t// Swapping 2 different items (i.e. will not stack)\n\t\tassertTrue(inv.placeItem(generalArray, 0, \"potion1\", 1));\n\t\tassertTrue(inv.placeItem(generalArray, 1, \"potion2\", 1));\n\t\tassertTrue(inv.getItemID(generalArray, 0).equals(\"potion1\"));\n\t\tassertTrue(inv.getItemID(generalArray, 1).equals(\"potion2\"));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 1);\n\t\tassertTrue(inv.getItemQuantity(generalArray, 1) == 1);\n\t\tassertTrue(inv.swapItem(generalArray, 0, generalArray, 1, true));\n\t\tassertTrue(inv.getItemID(generalArray, 0).equals(\"potion2\"));\n\t\tassertTrue(inv.getItemID(generalArray, 1).equals(\"potion1\"));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 1);\n\t\tassertTrue(inv.getItemQuantity(generalArray, 1) == 1);\n\n\t\t// Swap the same item (i.e. should not delete)\n\t\tassertTrue(inv.placeItem(generalArray, 0, \"potion2\", 1));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 1);\n\t\tassertTrue(inv.swapItem(generalArray, 0, generalArray, 1, true));\n\t\tassertTrue(inv.placeItem(generalArray, 0, \"potion2\", 1));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 1);\n\n\t\t//Swap between arrays\n\t\tassertTrue(inv.swapItem(generalArray, 0, activeArray, 1, false));\n\t\tassertTrue(inv.swapItem(generalArray, 0, activeArray, 1, false));\n\t\tassertTrue(inv.swapItem(generalArray, 0, activeArray, 1, true));\n\t\tassertTrue(inv.getItemID(generalArray, 0).equals(\"Gun1\"));\n\t\tassertTrue(inv.getItemID(activeArray, 1).equals(\"potion2\"));\n\n\t\t// Try to stack 2 stacks that will result in a stack bigger than max stack\n\t\tassertTrue(inv.placeItem(generalArray, 0, \"potion\", 14));\n\t\tassertTrue(inv.placeItem(generalArray, 1, \"potion\", 10));\n\t\tassertTrue(inv.getItemID(generalArray, 0).equals(\"potion\"));\n\t\tassertTrue(inv.getItemID(generalArray, 1).equals(\"potion\"));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 14);\n\t\tassertTrue(inv.getItemQuantity(generalArray, 1) == 10);\n\t\tassertTrue(inv.swapItem(generalArray, 0, generalArray, 1, true));\n\t\tassertTrue(inv.getItemID(generalArray, 0).equals(\"potion\"));\n\t\tassertTrue(inv.getItemID(generalArray, 1).equals(\"potion\"));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 10);\n\t\tassertTrue(inv.getItemQuantity(generalArray, 1) == 14);\n\n\t\t// Swap an item with itself\n\t\tassertTrue(inv.swapItem(generalArray, 0, generalArray, 0, true));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 10);\n\t\tassertTrue(inv.swapItem(generalArray, 0, generalArray, 0, false));\n\t\tassertTrue(inv.getItemQuantity(generalArray, 0) == 10);\n\n\t\t// Testing out of bounds\n\t\tassertTrue(!inv.swapItem(activeArray, -9, generalArray, 1, true));\n\t\tassertTrue(!inv.swapItem(activeArray, 12, generalArray, 1, true));\n\t\tassertTrue(!inv.swapItem(activeArray, 1, generalArray, -30, true));\n\t\tassertTrue(!inv.swapItem(activeArray, 1, generalArray, 30, true));\n\t}", "title": "" }, { "docid": "6c7ae06f5d482b8a69f2329075f0d884", "score": "0.6108868", "text": "@Override\n public void onUnequip(IToolStackView tool, int level, EquipmentChangeContext context) {\n EquipmentSlot slot = context.getChangedSlot();\n if (toolValid(tool, slot, context)) {\n context.getTinkerData().ifPresent(data -> {\n SlotInCharge slotInCharge = data.get(SLOT_IN_CHARGE);\n if (slotInCharge != null) {\n slotInCharge.removeSlot(slot);\n }\n });\n }\n }", "title": "" }, { "docid": "921c6a9f02aec18530f06e7ba7a95957", "score": "0.6097141", "text": "private void fireEquippedEvent(Item oldItem, Item newItem) {\n\t\tfor (EquipmentManagerListener l : equipmentManagerListeners) {\n\t\t\tl.equipped(oldItem, newItem);\n\t\t}\n\t}", "title": "" }, { "docid": "d38b5a0fcbf3abc01fb5fc9cd43980c9", "score": "0.60679406", "text": "private boolean isEquipable(Defense item) {\n\t\tArmorClasses itemClass = item.getArmorClass();\n\t\tGameTypeObjects characterId = getId();\n\t\treturn ArmorClasses.isEquipable(characterId, itemClass);\n\t}", "title": "" } ]
49e4a9cdaa67a4ad4cb6a694a8b60a76
Returns the value of the 'Is Derived Union' attribute. If the meaning of the 'Is Derived Union' attribute isn't clear, there really should be more of a description here...
[ { "docid": "3e42a0efa1a8a0168031dcf61fbe754c", "score": "0.83863443", "text": "boolean isIsDerivedUnion();", "title": "" } ]
[ { "docid": "9aa9af39062031e8fd29daf7faa4e109", "score": "0.7291648", "text": "int getIsUnion();", "title": "" }, { "docid": "7da73fe912c99ed25516afef957d93eb", "score": "0.6638804", "text": "public boolean isDerived() {\r\n\t\treturn this.derived;\r\n\t}", "title": "" }, { "docid": "aeaed592f5388aa92483debef775cb82", "score": "0.6621358", "text": "boolean isIsDerived();", "title": "" }, { "docid": "01aa6728b73ad5f69a36961ca4913957", "score": "0.6431774", "text": "public boolean isUnion();", "title": "" }, { "docid": "01aa6728b73ad5f69a36961ca4913957", "score": "0.6431774", "text": "public boolean isUnion();", "title": "" }, { "docid": "42eb7b49e3b4d401c63c5969fd85911e", "score": "0.6335748", "text": "public XSUnionType getUnionType();", "title": "" }, { "docid": "f0233301899859f3a97fddb628eb0891", "score": "0.61240566", "text": "public MaskUnion getUnionType() {\n return unionType;\n }", "title": "" }, { "docid": "0e4595885d373800d55e1af73499205f", "score": "0.57936203", "text": "public abstract boolean isDerived(int t,int c);", "title": "" }, { "docid": "0bd361e36ba2d87196e4a7289f50e3c9", "score": "0.57712936", "text": "public boolean isSetUnionid() {\n return this.unionid != null;\n }", "title": "" }, { "docid": "c70aff910fde5a96aff2b5d5556b3d53", "score": "0.56856996", "text": "public boolean isSetUnionField2() {\n return this.unionField2 != null;\n }", "title": "" }, { "docid": "ccc8c033e7467b031be2c8871ee4b546", "score": "0.55588055", "text": "public boolean isSetUnionField1() {\n return this.unionField1 != null;\n }", "title": "" }, { "docid": "a42c6edfcafd7aea85947d648cfd7419", "score": "0.5547482", "text": "public NodeUnion<? extends TypeNode> getUnionForType();", "title": "" }, { "docid": "0ce63a20f05da3dc2998c441ddda380e", "score": "0.55379456", "text": "public boolean supportsUnionAll() {\n \t\treturn false;\n \t}", "title": "" }, { "docid": "64952f12162b1cba6ccaa7b4adfd144b", "score": "0.55292094", "text": "public Boolean getIsEnumType(){\n DmcTypeBooleanSV attr = (DmcTypeBooleanSV) get(MetaDMSAG.__isEnumType);\n if (attr == null)\n return(false);\n\n return(attr.getSV());\n }", "title": "" }, { "docid": "66f9c4d574d179c33d609b6649cadcea", "score": "0.5473808", "text": "Optional<DerivedProduct> getAsDerived() {\n\t\treturn Optional.empty();\n\t}", "title": "" }, { "docid": "8840d436cf4708397021271155320651", "score": "0.54645777", "text": "public Integer getHasLabourUnion()\n/* */ {\n/* 906 */ return this.hasLabourUnion;\n/* */ }", "title": "" }, { "docid": "6393b348500ccb0358f36d7d102ebbbf", "score": "0.54527384", "text": "@Override public byte isBitShape(Type t) {\n if( t._type==Type.TSTR || t._type==Type.TOOP || t._type==Type.TSCALAR || t._type==Type.TXSCALAR) return 0;\n if( t instanceof TypeUnion && this.isa(t) ) return 0;\n return 99;\n }", "title": "" }, { "docid": "709102e64651b92bc3838ab19e13c09c", "score": "0.54062474", "text": "public NodeUnion<? extends UnparameterizedTypeNode> getUnionForType();", "title": "" }, { "docid": "4f841adc1d7bbd173ac6a56c4ab79dde", "score": "0.5370604", "text": "public boolean isSetUnionField3() {\n return this.unionField3 != null;\n }", "title": "" }, { "docid": "8d8051a3262a9323a34ef3a263a5b7d5", "score": "0.53144526", "text": "@Test\n public void testUnionType() {\n Rule rule = Grammar.UnionType;\n\n valid(rule, UIDENTIFIER);\n valid(rule, UIDENTIFIER, UNION_OP, UIDENTIFIER);\n }", "title": "" }, { "docid": "801a7bebffc4c00eac32ba260d79b596", "score": "0.53136605", "text": "boolean isReturnTypeDerived();", "title": "" }, { "docid": "08de89a9d4ea6c0cf8468dc2b637d36f", "score": "0.5304765", "text": "public Boolean getNumericOrBoolean(){\n DmcTypeBooleanSV attr = (DmcTypeBooleanSV) get(MetaDMSAG.__numericOrBoolean);\n if (attr == null)\n return(false);\n\n return(attr.getSV());\n }", "title": "" }, { "docid": "d0c0f95cd6f5602c84283762f0c75ff9", "score": "0.5284593", "text": "private java.util.HashSet<String> getRedefinedDerivedAttributeTypes()\n\t{\n\t\tjava.util.HashSet<String> redefinedDerivedAttributes = new java.util.HashSet<String>();\n\t\treturn redefinedDerivedAttributes;\t}", "title": "" }, { "docid": "d0c0f95cd6f5602c84283762f0c75ff9", "score": "0.5284593", "text": "private java.util.HashSet<String> getRedefinedDerivedAttributeTypes()\n\t{\n\t\tjava.util.HashSet<String> redefinedDerivedAttributes = new java.util.HashSet<String>();\n\t\treturn redefinedDerivedAttributes;\t}", "title": "" }, { "docid": "3db2bbcc607786a984cc0af85309b4ac", "score": "0.527733", "text": "public boolean isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod) {\n/* 330 */ if (this.type != null && \n/* 331 */ this.type instanceof XSSimpleTypeDecl) {\n/* 332 */ return ((XSSimpleTypeDecl)this.type).isDOMDerivedFrom(typeNamespaceArg, typeNameArg, derivationMethod);\n/* */ }\n/* */ \n/* */ \n/* 336 */ return false;\n/* */ }", "title": "" }, { "docid": "bc0195ff18c46a601b446a422908410e", "score": "0.52424365", "text": "boolean hasDataType();", "title": "" }, { "docid": "7c451b02a7902b160e6098574b286b51", "score": "0.5234015", "text": "public boolean hasSDataType() {\n return fieldSetFlags()[6];\n }", "title": "" }, { "docid": "8caa51b0c01f27b945902a330ada9358", "score": "0.52211803", "text": "public boolean isBase()\n {\n return false;\n }", "title": "" }, { "docid": "076c1122eef5e0d04e3bd9a15302e818", "score": "0.5178206", "text": "public Act getUnionAct()\n {\n return _union;\n }", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.51624215", "text": "boolean hasBase();", "title": "" }, { "docid": "8ef0058ae5bbb8fd2a984eda33cecbc7", "score": "0.5160661", "text": "boolean hasBase();", "title": "" }, { "docid": "093a298e7c7b51c09b2114b2bc23908d", "score": "0.51284117", "text": "@Basic\n @Column(name = \"BASE\")\n public boolean isBase() {\n return base;\n }", "title": "" }, { "docid": "b70a2be74e7e36f04307b107fc9fed83", "score": "0.5116134", "text": "public boolean isSetDatatype() {\n return this.datatype != null;\n }", "title": "" }, { "docid": "1ded2634e552e251f8ac463b5fcb3c65", "score": "0.51125175", "text": "boolean isInheritable();", "title": "" }, { "docid": "28cd16315f154b085138e07b1185c64a", "score": "0.50920707", "text": "public boolean hasIDataDubun() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "d0e04d80db2d007dcb5214fc09945131", "score": "0.50915676", "text": "public boolean hasIDataDubun() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "b364c961bb3c450a7d9ef72b5cf8420e", "score": "0.50858855", "text": "boolean isInherited();", "title": "" }, { "docid": "3dcb06840beedbd0757fa3755511c251", "score": "0.5085293", "text": "public boolean hasIDataDubun() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "f49c0b29883a3f56f0c6459f4b745a91", "score": "0.50851715", "text": "public boolean hasIDataDubun() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "9e5c20c0b9e435463874784bcf1f09b8", "score": "0.50789124", "text": "public void visitDerivedDatatype(DerivedDatatype datatype);", "title": "" }, { "docid": "bb27ee7ad4dfeccf3b6f744c59d9e5e4", "score": "0.50665355", "text": "@Override\n public void visitDerivedDatatype(DerivedDatatype datatype) {\n }", "title": "" }, { "docid": "762eae5dca3856f29e17dc69ef01c5f5", "score": "0.50412613", "text": "public boolean isSetDataType() {\n return this.dataType != null;\n }", "title": "" }, { "docid": "455eab2caa687d7efd1efb5fadd0a95e", "score": "0.5022282", "text": "io.dstore.values.BooleanValueOrBuilder getIncludeInheritedOrBuilder();", "title": "" }, { "docid": "1ad682cd663d64a9e52489efbcdada42", "score": "0.5004581", "text": "public boolean isSoftlyInherited() {\n return inherit.equals(identValue);\n }", "title": "" }, { "docid": "f6df4ba03b66d1a6f174b18beb033029", "score": "0.49790785", "text": "public boolean hasUrunTurAdi() {\n return fieldSetFlags()[7];\n }", "title": "" }, { "docid": "5339174ef594a7d7d696a0acf7b5464b", "score": "0.49742025", "text": "public int getNumberOfDerivedFields() {\n return DERIVED_SUFFIX.length;\n }", "title": "" }, { "docid": "24a5ca636d81e0543b53bab0871544d6", "score": "0.4946146", "text": "public boolean hasBase() {\n return baseBuilder_ != null || base_ != null;\n }", "title": "" }, { "docid": "22634884710e39feae8266f1aeec08ab", "score": "0.49457985", "text": "public Boolean getIsExtendedRefType(){\n DmcTypeBooleanSV attr = (DmcTypeBooleanSV) get(MetaDMSAG.__isExtendedRefType);\n if (attr == null)\n return(false);\n\n return(attr.getSV());\n }", "title": "" }, { "docid": "823bb656293dc1aa908f1f61a32f3374", "score": "0.4936027", "text": "io.dstore.values.BooleanValue getIncludeInherited();", "title": "" }, { "docid": "14503696d94ad0de4436c87eff4935c7", "score": "0.48986378", "text": "public boolean hasSupportedDataObjects() {\n return fieldSetFlags()[6];\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.48820323", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.48820323", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.48820323", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.48818728", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.4881062", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.4881062", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.4881062", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.4881062", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.4881062", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.4881062", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.4881062", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.4881062", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "1af6097980e2ea75db4448d2620a7f1e", "score": "0.4880877", "text": "public boolean hasBase() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "0ad6070572cbc67cdeead209b84979ad", "score": "0.4855011", "text": "public boolean hasDataType(){\n return dataType != null;\n }", "title": "" }, { "docid": "c8ede5fada1ca5c6d9e6b50c603eb4ee", "score": "0.48501787", "text": "UnorderedTupleTypeLiteral getDerivedType();", "title": "" }, { "docid": "f9bb7e3a4de972b9b4f35122a78dab3c", "score": "0.4848314", "text": "public abstract ElemTypeEnum getDataType();", "title": "" }, { "docid": "037c38d9b8b5fe8e86446c6ee1a418dd", "score": "0.48277223", "text": "@Override\n\t\tpublic Graph getUnionGraph() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "df5a9316352f8d3155a093e802aa71e0", "score": "0.4824662", "text": "public boolean hasHUMEDAD() {\n return fieldSetFlags()[8];\n }", "title": "" }, { "docid": "10a26debdab5df7f48713fe26918211b", "score": "0.48145205", "text": "boolean hasIDataDubun();", "title": "" }, { "docid": "10a26debdab5df7f48713fe26918211b", "score": "0.48139864", "text": "boolean hasIDataDubun();", "title": "" }, { "docid": "505b5f342eda554ca9ab1a69bab160c6", "score": "0.48009542", "text": "protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) {\n WhiteSameNameCQ baseQuery = (WhiteSameNameCQ)baseQueryAsSuper;\n WhiteSameNameCQ unionQuery = (WhiteSameNameCQ)unionQueryAsSuper;\n if (baseQuery.hasConditionQueryNextSchemaProduct()) {\n unionQuery.queryNextSchemaProduct().reflectRelationOnUnionQuery(baseQuery.queryNextSchemaProduct(), unionQuery.queryNextSchemaProduct());\n }\n }", "title": "" }, { "docid": "d6a8c27806cbd4be25f2c352e4b0b78d", "score": "0.47982857", "text": "public boolean hasBase() {\n return base_ != null;\n }", "title": "" }, { "docid": "052880f80a22e040faee43238fc2df8b", "score": "0.478725", "text": "public boolean hasUrunAdi() {\n return fieldSetFlags()[5];\n }", "title": "" }, { "docid": "d753e49e2501facfba6ae530636e7444", "score": "0.4783709", "text": "@Override\n public boolean removeDerivedValues() {\n return false;\n }", "title": "" }, { "docid": "47dd156d1526603c869033204aa9ef39", "score": "0.47757506", "text": "public boolean isDiscriminatedParentTypeDefinition() {\n return isDiscriminatedParentTypeDefinition(thisType);\n }", "title": "" }, { "docid": "8f57ff77b2174f48759574dacc688b87", "score": "0.47708288", "text": "public SchemaType getBaseType() {\n return AnySimpleType.getInstance();\n }", "title": "" }, { "docid": "110429b798401164676810eb201958b4", "score": "0.47552866", "text": "public boolean hasType() {\n return fieldSetFlags()[2];\n }", "title": "" }, { "docid": "9678f0884630a66edfc81f4ab920ec92", "score": "0.47547784", "text": "public boolean isBinaryDelimiterParser() \n\t{\n\t\tinitDelimiterParserElement();\n\t\treturn realParserElement.isBinaryDelimiterParser();\n\t}", "title": "" }, { "docid": "b49c33957611b09d9aca6017367b5590", "score": "0.47499686", "text": "public boolean hasDISTANCIA() {\n return fieldSetFlags()[6];\n }", "title": "" }, { "docid": "781190acd15661a2b907cc345314cc65", "score": "0.4745919", "text": "public SchemaType getKnownBaseType() throws IllegalStateException {\n return AnySimpleType.getInstance();\n }", "title": "" } ]
196e2384896519ebd0c76983d3cd6c53
Fetch long value of node
[ { "docid": "0a702e186c0af612758fc27e4247d86c", "score": "0.7065427", "text": "public long getLong() {\n return JSType.toLong(value);\n }", "title": "" } ]
[ { "docid": "05fe0a26a055d404c953ed139911304b", "score": "0.76897067", "text": "long getLongValue();", "title": "" }, { "docid": "eda922277fdf799f46b99645a560e97d", "score": "0.76325715", "text": "long readLong(String path, Object node) throws XMLException;", "title": "" }, { "docid": "1dd1a7941ed7c8f5c2d661818ea65631", "score": "0.7550773", "text": "long getValue();", "title": "" }, { "docid": "1dd1a7941ed7c8f5c2d661818ea65631", "score": "0.7550773", "text": "long getValue();", "title": "" }, { "docid": "1dd1a7941ed7c8f5c2d661818ea65631", "score": "0.7550773", "text": "long getValue();", "title": "" }, { "docid": "9ddee7e30f7c9043d3e2199e1ef9d645", "score": "0.7355925", "text": "public long longValue(){\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "24b461b553652bfa29708b47c0295bec", "score": "0.73105365", "text": "long getLongField();", "title": "" }, { "docid": "3e20c31cec701f6840747027b7e17a0a", "score": "0.72140515", "text": "long readLong();", "title": "" }, { "docid": "3ffdcf22e01fa2adaca0c6121da300cf", "score": "0.7211901", "text": "int getValLong();", "title": "" }, { "docid": "5947eaea88c9edb2102b8b0d56758417", "score": "0.7197665", "text": "long getLong();", "title": "" }, { "docid": "5947eaea88c9edb2102b8b0d56758417", "score": "0.7197665", "text": "long getLong();", "title": "" }, { "docid": "219c41c779bc00e33b9022c7506ba839", "score": "0.7148008", "text": "long getInt64Val();", "title": "" }, { "docid": "824da9966370a1b4873b5183eac0950c", "score": "0.7122395", "text": "public long longValue() {\n\treturn (long)value;\n }", "title": "" }, { "docid": "078f2e27ceac271b9ad404f4f04ef1c8", "score": "0.7083551", "text": "long getInt64Value();", "title": "" }, { "docid": "f8ccc39eef4c5454c054cc5c70f0e758", "score": "0.70727444", "text": "public long extract_longlong(){\n //debug.log (\"extract_longlong\");\n checkExtractBadOperation(TCKind._tk_longlong);\n return value;\n }", "title": "" }, { "docid": "b1ad7f3623601951f4a6d2bccaa1f8c9", "score": "0.7036259", "text": "@External\r\n\t@ClientFunc\r\n\tpublic MetaVarNumber ReadLong();", "title": "" }, { "docid": "09e3d4b6f4970b991ae50f2c4832b201", "score": "0.7036218", "text": "public long longValue() {\n\treturn value.longValue();\n }", "title": "" }, { "docid": "e05e52a7d0f74a7fa2eedc5dc1d0d361", "score": "0.700727", "text": "Long get() throws Exception;", "title": "" }, { "docid": "b34361f989ff3f65f6d85415e32bedbd", "score": "0.69319904", "text": "Long getLongObj();", "title": "" }, { "docid": "598328f18875ce7b3105adec6b70e38f", "score": "0.6922731", "text": "long fetchLongField(int fieldNumber);", "title": "" }, { "docid": "c4029336c5f1954143ee3eb7f5fe4740", "score": "0.6850027", "text": "public long getValue() {\n return value;\n }", "title": "" }, { "docid": "c4029336c5f1954143ee3eb7f5fe4740", "score": "0.6850027", "text": "public long getValue() {\n return value;\n }", "title": "" }, { "docid": "e99e0777764a72560d1df825c9ad8dc7", "score": "0.6840345", "text": "public long get_long(){\n return local_long;\n }", "title": "" }, { "docid": "9c14955f61544b0b6a747f822e0c77e4", "score": "0.68385273", "text": "public long getValueLong(String key);", "title": "" }, { "docid": "bc7bc2b6a757a657447e4cf215d65f01", "score": "0.6834384", "text": "public long get_long() {\r\n return local_long;\r\n }", "title": "" }, { "docid": "0fb50e141b6bce5d8bd21c293f0d55e4", "score": "0.6832159", "text": "static long getLong() {\n return getNumber().longValue();\n }", "title": "" }, { "docid": "0fb097724d836faecad495f178785a3c", "score": "0.6805362", "text": "public long getValue() {\n return value_;\n }", "title": "" }, { "docid": "fef82a7504466738d0e05349d3fc21aa", "score": "0.68025166", "text": "public long getValue() {\n return value_;\n }", "title": "" }, { "docid": "d14df7019d24d45f3a7d09f3570a3342", "score": "0.67899525", "text": "public long getValue() {\n return value_;\n }", "title": "" }, { "docid": "b067bf2da52a50447892c3c8c5fda56e", "score": "0.6788099", "text": "public long getLong() {\n return getLong(8);\n }", "title": "" }, { "docid": "841ea4a4359f2101877c2d35ecbf192f", "score": "0.67813927", "text": "public Long getLong() {\n return getLong(null);\n }", "title": "" }, { "docid": "8f32a4a11e45a80b0887f9870846c042", "score": "0.6768925", "text": "public long longValue() {\r\n return moduloValue().longValue();\r\n }", "title": "" }, { "docid": "1d05c1e9fefb0be718a012640d6ad443", "score": "0.67510444", "text": "public long getValue() {\n return value_;\n }", "title": "" }, { "docid": "617fc3737c37fc37a2d6c1cad29b78bd", "score": "0.6713828", "text": "public long get() {\n // In the future we could use an opaque read.\n return value;\n }", "title": "" }, { "docid": "50291be04b8baf3e79569f2db14c4b64", "score": "0.6708635", "text": "long getLong(String key) throws ClassCastException;", "title": "" }, { "docid": "b41d464875a2984fd5856049b0df9c27", "score": "0.66967297", "text": "public int getValLong() {\n return valLong_;\n }", "title": "" }, { "docid": "2c0b8ab2068839ec4c936d98d6bd8692", "score": "0.6690881", "text": "@Override\n public long longValue() {\n return value.longValue();\n }", "title": "" }, { "docid": "de7ae93bfef46841e4f097f8e770e462", "score": "0.66885746", "text": "public java.lang.Long getLongValue() {\n return longValue;\n }", "title": "" }, { "docid": "6a5de2c60ed38899df8fa1fa3b1d53aa", "score": "0.66851205", "text": "long getLong(long address);", "title": "" }, { "docid": "7082586d33287fd209732ed351bbf262", "score": "0.6681578", "text": "public long value() {\n return this.value;\n }", "title": "" }, { "docid": "10b6284ce07b92ec5bc59efa3551e09b", "score": "0.6603549", "text": "public Long getValueAsLong(){\n\t\tif (storedValue == null) return null;\n\t\telse return storedValue.longValue();\n\t}", "title": "" }, { "docid": "35c28ca8379678ee1935840bc5af9ab2", "score": "0.65976685", "text": "long getValUint64();", "title": "" }, { "docid": "e17df03ecbb92c4b3cdae1dbcf3f8e9e", "score": "0.65922225", "text": "public long getLongValueOf(long addr) {\n return MemoryBuffer.wrap(memIntf.getLayout(), memIntf.getMemorySegment(addr, 8)).getLong();\n }", "title": "" }, { "docid": "235790c9d2036fb44e0e6d8cc6c2feb6", "score": "0.6573727", "text": "@Override\n public long getValue() {\n return value;\n }", "title": "" }, { "docid": "235790c9d2036fb44e0e6d8cc6c2feb6", "score": "0.6573727", "text": "@Override\n public long getValue() {\n return value;\n }", "title": "" }, { "docid": "235790c9d2036fb44e0e6d8cc6c2feb6", "score": "0.6573727", "text": "@Override\n public long getValue() {\n return value;\n }", "title": "" }, { "docid": "72fa3e101c4e233bd1446e54706f9f6e", "score": "0.6572756", "text": "public java.lang.Long getLongValue() {\n return longValue;\n }", "title": "" }, { "docid": "d45180401bba3fee84f68a53d741d6b1", "score": "0.65669656", "text": "long getLongVar2();", "title": "" }, { "docid": "232324bb7656c79b15542417945609d0", "score": "0.6560524", "text": "public long getLong(CompoundKey<Long> key) {\n Object value = map.get(key);\n if (value instanceof Number) {\n return ((Number) value).longValue();\n }\n return 0;\n }", "title": "" }, { "docid": "7944d9671f97df7bca2ca8832465e959", "score": "0.6547254", "text": "Long getLongProperty(String key);", "title": "" }, { "docid": "5b9941fee053c1be8f9db0d9e66ea3c0", "score": "0.6539482", "text": "long getSomeValue();", "title": "" }, { "docid": "5b9941fee053c1be8f9db0d9e66ea3c0", "score": "0.6539482", "text": "long getSomeValue();", "title": "" }, { "docid": "da0029cf26f228084c754b349e725643", "score": "0.6511335", "text": "public int getValLong() {\n return valLong_;\n }", "title": "" }, { "docid": "f44ecb733132afc27a915a05c6b26dcc", "score": "0.65098476", "text": "long getLong()\n throws SerializerException;", "title": "" }, { "docid": "2e2bd2fa4dfe95d0eed4e2c90ad7ebd2", "score": "0.65032", "text": "public Long getAsLong(final String key);", "title": "" }, { "docid": "e8146fc4de6dcfaab50f98d2fcc22651", "score": "0.6491514", "text": "public long get() {\n return value;\n }", "title": "" }, { "docid": "2f5a30b94acead399562e833ee89f927", "score": "0.64800066", "text": "long getLongVar3();", "title": "" }, { "docid": "be91ce97c85b1dd73be4f2573894df4c", "score": "0.6466063", "text": "public long peekLong() {\r\n return ((Long) peek()).longValue();\r\n }", "title": "" }, { "docid": "9aebb399974029aa5654e2d54bc01063", "score": "0.6448092", "text": "public static long getLong(ObjectNode parent, String name, long defVal) {\n if (parent.has(name))\n return parent.get(name).asLong(defVal);\n return defVal;\n }", "title": "" }, { "docid": "9153a5539d73028f23d48598c7644683", "score": "0.64293873", "text": "@Override\r\n\tpublic long longValue() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "da10886f191520c5a0d3375f30c05b77", "score": "0.6425962", "text": "public long longValue() {\n return gid;\n }", "title": "" }, { "docid": "eb9df9b2fc4bb76d0f97e8ac200e3630", "score": "0.6411749", "text": "public long getLong() {\n\t// TODO: Unit test this method\n\treturn this.id;\n }", "title": "" }, { "docid": "82388bd06b3434c4232f82ed60d57fa6", "score": "0.6408701", "text": "public Long getLong(String fieldName) throws Exception;", "title": "" }, { "docid": "cb3a48c41b6e52663015a338a4268c74", "score": "0.63980186", "text": "long getLongVar1();", "title": "" }, { "docid": "3996ad18dc8cdd4e9a437db5fcb28ed7", "score": "0.6389896", "text": "final long readLongLong() {\n/* 370 */ byte[] b = this.byteBuffer;\n/* */ \n/* 372 */ return (b[this.position++] & 0xFF) | (b[this.position++] & 0xFF) << 8L | (b[this.position++] & 0xFF) << 16L | (b[this.position++] & 0xFF) << 24L | (b[this.position++] & 0xFF) << 32L | (b[this.position++] & 0xFF) << 40L | (b[this.position++] & 0xFF) << 48L | (b[this.position++] & 0xFF) << 56L;\n/* */ }", "title": "" }, { "docid": "0ce11e7c8d88fbe4d97c791dd6059671", "score": "0.638703", "text": "Long getLong(int index);", "title": "" }, { "docid": "f8489c3599750e2ca931c6eb2f6df627", "score": "0.6360971", "text": "long getLongVar5();", "title": "" }, { "docid": "db3302e26de87b4bbdde38a3b1595f95", "score": "0.6352509", "text": "@Override\n\tpublic long longValue() {\n\t\treturn Math.round(x);\n\t}", "title": "" }, { "docid": "a1cbde7bc0994a97eb3de2df24f653e1", "score": "0.63067925", "text": "@java.lang.Override\n public long getLongField() {\n return longField_;\n }", "title": "" }, { "docid": "0b05840f63ff3426e555a7dc403315f7", "score": "0.6299543", "text": "public long getLong(E e1) {\n return getSigned(e1, 64, \"long\");\n }", "title": "" }, { "docid": "57bb1ccafe1fca705d2f255045b6a98b", "score": "0.62863374", "text": "long getLongVar4();", "title": "" }, { "docid": "b41ddb7463e785044a8f60d9674882e1", "score": "0.62849104", "text": "@java.lang.Override\n public long getLongField() {\n return longField_;\n }", "title": "" }, { "docid": "8977715024b639b7f77b51881a97bdfd", "score": "0.6282349", "text": "public long readLong() throws IOException {\n \n return buffer.readLong();\n }", "title": "" }, { "docid": "ab94ebc1e4337d2128b1d98705e1b96a", "score": "0.62748545", "text": "long getEvenMoreValue();", "title": "" }, { "docid": "ab94ebc1e4337d2128b1d98705e1b96a", "score": "0.62748545", "text": "long getEvenMoreValue();", "title": "" }, { "docid": "84928ccbf3476cbb8b4a24e232dfa117", "score": "0.6269653", "text": "public long getLong(String key) {\n\t\treturn cfg.getLong(prefix + key);\n\t}", "title": "" }, { "docid": "ffd8f06dbbe8012ce67cda2642003c21", "score": "0.626851", "text": "long getLongTest();", "title": "" }, { "docid": "ffd8f06dbbe8012ce67cda2642003c21", "score": "0.626851", "text": "long getLongTest();", "title": "" }, { "docid": "7e5ef864bdfaa7f8f45622e6f36141c2", "score": "0.62599134", "text": "long getIntValue();", "title": "" }, { "docid": "433833dc7a9c6cc5bea8a4e5f8b0caaf", "score": "0.6255576", "text": "public long getLongValue() {\n if (constantOperandValueCase_ == 6) {\n return (java.lang.Long) constantOperandValue_;\n }\n return 0L;\n }", "title": "" }, { "docid": "3ca0528bab80988589a5a9a9884b4dd0", "score": "0.625239", "text": "@Override\r\n\t\t\tpublic long longValue() {\n\t\t\t\treturn 0;\r\n\t\t\t}", "title": "" }, { "docid": "ff96800faed0dbdda042d3e727ca3986", "score": "0.6233883", "text": "public org.apache.axis2.databinding.types.UnsignedLong getUnsignedLong(){\n return localUnsignedLong;\n }", "title": "" }, { "docid": "8adeb8ce590dcb2dffdf0a51e9ecf7aa", "score": "0.62332433", "text": "public abstract JAIAbstractValue integer2Long() throws JAIAbstractValueException;", "title": "" }, { "docid": "c24a4b4fbdadc09a5dc94973eeb3cca5", "score": "0.6220795", "text": "public long getInt64ValueOf(long addr) {\n return MemoryBuffer.wrap(\n memIntf.getLayout(),\n memIntf.getMemorySegment(addr, DataType.INT64.getSize())).getInt64();\n }", "title": "" }, { "docid": "5da8307e56685f7c660ab2a260bfd383", "score": "0.6215335", "text": "public long readLong() throws IOException {\n return readLong(input);\n }", "title": "" }, { "docid": "1bab216b3045f0ac520b5c4285e05de3", "score": "0.6212821", "text": "private ParsedWrapper<Long> readLong() throws IOException {\n\tParsedWrapper<Long> pl = new ParsedWrapper<>();\n\tpl.setStartPos(positionTracker.getPos());\n\tpl.setContent(in.readLong());\n\tpl.setEndPos(positionTracker.getPos());\n\treturn pl;\n }", "title": "" }, { "docid": "3b32d3f7fbfd2bd07d15d8bcf6ed75ea", "score": "0.6204971", "text": "public long getInt64Val() {\n if (valCase_ == 4) {\n return (java.lang.Long) val_;\n }\n return 0L;\n }", "title": "" }, { "docid": "dc0fc8f75de6587ea7a4afa1b9cfc554", "score": "0.618708", "text": "public Long getIdAsLong();", "title": "" }, { "docid": "1e1ed2233871aac00ee42ca4a6292cbf", "score": "0.6179015", "text": "public long getLong(COSName key)\n {\n return getLong(key, -1L);\n }", "title": "" }, { "docid": "448ad95d2a1a03b9dc17a41960b21a2c", "score": "0.6146229", "text": "@java.lang.Override\n public long getLongValue() {\n if (constantOperandValueCase_ == 6) {\n return (java.lang.Long) constantOperandValue_;\n }\n return 0L;\n }", "title": "" }, { "docid": "3b56ea42bc0e733e4b053f4875286d12", "score": "0.6143381", "text": "@Override\n\tpublic Long getLong() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "33bd2ddee3050f13cf7092936af6d062", "score": "0.61390257", "text": "public long getSomeValue() {\n return someValue_;\n }", "title": "" }, { "docid": "33bd2ddee3050f13cf7092936af6d062", "score": "0.61390257", "text": "public long getSomeValue() {\n return someValue_;\n }", "title": "" }, { "docid": "bfbf22cb32e04d91355e498eaf8c1d12", "score": "0.61361885", "text": "public Long getBigInt()\n {\n return (Long) value;\n }", "title": "" }, { "docid": "ea8820d20b17cd89e15487b5fc5af53e", "score": "0.61211383", "text": "final long readLong() {\n/* 352 */ byte[] b = this.byteBuffer;\n/* */ \n/* 354 */ return b[this.position++] & 0xFFL | (b[this.position++] & 0xFFL) << 8L | (b[this.position++] & 0xFF) << 16L | (b[this.position++] & 0xFF) << 24L;\n/* */ }", "title": "" }, { "docid": "5b9046378ccddc5aef352d35481e98c3", "score": "0.6119043", "text": "public Long getLongProperty()\n {\n return longProperty;\n }", "title": "" }, { "docid": "28273bc87d2773810a8113906e3a6c31", "score": "0.61118186", "text": "protected long readLong() throws IOException\n {\n skipSpaces();\n long retval = 0;\n\n StringBuilder longBuffer = readStringNumber();\n\n try\n {\n retval = Long.parseLong( longBuffer.toString() );\n }\n catch( NumberFormatException e )\n {\n source.rewind(longBuffer.toString().getBytes(StandardCharsets.ISO_8859_1).length);\n throw new IOException( \"Error: Expected a long type at offset \"\n + source.getPosition() + \", instead got '\" + longBuffer + \"'\", e);\n }\n return retval;\n }", "title": "" }, { "docid": "2ce4151a2e36894b242e52ab787d5fb4", "score": "0.61051273", "text": "@java.lang.Override\n public long getInt64Val() {\n if (valCase_ == 4) {\n return (java.lang.Long) val_;\n }\n return 0L;\n }", "title": "" }, { "docid": "1427c991ec848dd9ef3bc8155e9c9f49", "score": "0.6081569", "text": "public long getSomeValue() {\n return someValue_;\n }", "title": "" }, { "docid": "acb6ccefee1a8a45e471e2993c3583cc", "score": "0.6074713", "text": "public long parseLong() {\r\n return Long.parseLong(trim(formatValue()));\r\n }", "title": "" } ]
4dbdbfac27775059ef5e9a80f7551478
Open a popup from the diagram view
[ { "docid": "cee8c575153e4802ea02513fde5abf9d", "score": "0.6208916", "text": "public void openPopup(GraphObject graphObject, PopupTypes type) {\n\t\tif(!popupMap.keySet().contains(graphObject.getStId())) {\n\t\t\tIDGPopup popup = new IDGPopup(graphObject, type, getZIndex());\n\t\t\tpopupMap.put(graphObject.getStId(), popup);\n\t\t\tpopup.show();\n\t\t}\n\t\telse \n\t\t\tpopupMap.get(graphObject.getStId()).addType(type);\n\t\t\n\t}", "title": "" } ]
[ { "docid": "a146880e808d7b31e076005f1ff22fe4", "score": "0.7091094", "text": "void showPopup(GodModel GodModel);", "title": "" }, { "docid": "ac1447dc2e1b1cc44282e01467b2d6c8", "score": "0.6808881", "text": "public void open() {\n\t\topen(createInitialDrawingView());\n\t}", "title": "" }, { "docid": "c61bdf17dfb6fed8c4950cccb41cdbf9", "score": "0.65737754", "text": "@Override\n\tpublic void openView() {\n\n\t}", "title": "" }, { "docid": "565dc43ef92cbee7d9a71fe4adbbf0d5", "score": "0.6540585", "text": "public void showPopup() {\r\n setPopupVisible(true);\r\n }", "title": "" }, { "docid": "96c3a54603b6114d3d7b6783817d52fe", "score": "0.65216565", "text": "public IView openView() throws SpecmateException;", "title": "" }, { "docid": "e5d01315de89b6bc06101d53e1535ced", "score": "0.633528", "text": "private void showPopUpWindow()\n {\n popUpStage.showAndWait(); \n }", "title": "" }, { "docid": "6dd986715227f5748e124eae8be53344", "score": "0.63351417", "text": "public void showView();", "title": "" }, { "docid": "1ecde1fa341d491693e8d7c2be8b7bc9", "score": "0.6303279", "text": "public void showPopup (){\r\n\t\tsetPopupVisible(true);\r\n\t}", "title": "" }, { "docid": "39df7e6bb55500167e0497a584cf3275", "score": "0.6269939", "text": "public void visualize()\r\n {\r\n dialog.setSize(Integer.parseInt(dialogNode.getAttributeValue(\"width\")),\r\n Integer.parseInt(dialogNode.getAttributeValue(\"height\")));\r\n dialog.setLocation(Integer.parseInt(dialogNode.getAttributeValue(\"x\")),\r\n Integer.parseInt(dialogNode.getAttributeValue(\"y\")));\r\n if(Boolean.valueOf(dialogNode.getAttributeValue(\"visible\")).booleanValue())\r\n dialog.showOpenDialog(window.getPeer());\r\n\r\n }", "title": "" }, { "docid": "c533e0cc2e42818dfd2afc2e4b6e9db0", "score": "0.6258921", "text": "@SuppressWarnings({\"boxing\", \"static-method\" })\r\n public void openDialog() {\r\n\r\n final Map<String, Object> options = new HashMap<>();\r\n\r\n options.put(\"modal\", true);\r\n options.put(\"resizable\", false);\r\n options.put(\"contentHeight\", 470);\r\n options.put(\"contentWidth\", 600);\r\n\r\n RequestContext.getCurrentInstance().openDialog(\"/dialog/SelectClient\", options, null);\r\n\r\n }", "title": "" }, { "docid": "e46704c01d251f2da895338bbc05f1aa", "score": "0.6250881", "text": "private void showDialog(List<DataElement> elements)\n {\n Window owner = myToolbox.getUIRegistry().getMainFrameProvider().get();\n JFXDialog dialog = new JFXDialog(owner, \"Feature Info\", false);\n dialog.setFxNode(new BaseballPanel(myToolbox, elements));\n dialog.setSize(new Dimension(800, 600));\n dialog.setResizable(true);\n dialog.setLocationRelativeTo(owner);\n dialog.setModalityType(ModalityType.MODELESS);\n dialog.setVisible(true);\n }", "title": "" }, { "docid": "886694d9e3e61db29dec20b274ed93de", "score": "0.6212407", "text": "public void showPopup() {\n Node node = tableColumn.getGraphic().getParent().getParent();\n\n if (node.getScene() == null || node.getScene().getWindow() == null) {\n throw new IllegalStateException(\"Can not show popup. The node must be attached to a scene/window.\"); //$NON-NLS-1$\n }\n \n if (isShowing()) {\n return;\n }\n\n Window parent = node.getScene().getWindow();\n this.show(\n parent,\n parent.getX() + node.localToScene(0, 0).getX() +\n node.getScene().getX(),\n parent.getY() + node.localToScene(0, 0).getY() +\n node.getScene().getY() + node.getLayoutBounds().getHeight());\n\n }", "title": "" }, { "docid": "25ba27a51a1970a4e5ade32502c41f37", "score": "0.6205755", "text": "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tdialogContainer.show();\n\t\t\t}", "title": "" }, { "docid": "beb10127df279f92b404bac86d74b2d5", "score": "0.6182124", "text": "@FXML public void openCompanyExpense()\n\t{\n\t\tMain.openWindow(\"CompanyExpense\", new CompanyExpense(employee));\n\t}", "title": "" }, { "docid": "416823a2acf96f7bde51d5a24299b063", "score": "0.6149938", "text": "@UiHandler(\"openHelp\")//,\"openAbout\",\"openPrivacy\",\"openContactUs\")\r\n void doOpenPopup(ClickEvent e) {\r\n\t final DecoratedPopupPanel simplePopup = new DecoratedPopupPanel(true);\r\n\t simplePopup.ensureDebugId(\"cwBasicPopup-simplePopup\");\r\n\t simplePopup.setWidth(\"150px\");\r\n\t simplePopup.setWidget( new HTML(\"<html>Help yourself by reading something everyday.</html>\"));\r\n\t int left = (Window.getClientWidth() / 2);\r\n int top = (Window.getClientHeight() / 2);\r\n simplePopup.setPopupPosition(left, top);\r\n\t simplePopup.show();\r\n}", "title": "" }, { "docid": "68d4fe693a5f52bcc16c7e83c6ada9f7", "score": "0.60801286", "text": "public void openPopUp(View view) {\n PopupMenu popup = new PopupMenu(this, view);\n popup.setOnMenuItemClickListener(this);\n MenuInflater inflater = popup.getMenuInflater();\n inflater.inflate(R.menu.popup_menu, popup.getMenu());\n popup.show();\n }", "title": "" }, { "docid": "8a51c9582ad5ce129f5ea04b4f7d0ccd", "score": "0.6068669", "text": "void showPopup( MouseEvent event );", "title": "" }, { "docid": "c615e3bcd5e58483c17fd6ac4f0aea1a", "score": "0.6030331", "text": "@Command\n public void openModalQuestions() {\n\n Map args = new HashMap();\n Window win = (Window) Executions.createComponents(\n \"/treeInOutput.zul\", null, args);\n win.doModal();\n\n }", "title": "" }, { "docid": "8c7d990befdf74a9d5a9096b5da25e5d", "score": "0.6018813", "text": "@FXML\n\tprivate void showNewTagPopup(ActionEvent e) throws Exception {\n\t\tsceneManager.openScene(\"New_Tag_Popup.fxml\", this);\n\t}", "title": "" }, { "docid": "279f321c58403538b54772babf3b1829", "score": "0.6001093", "text": "@Override\n public void mouseClicked ( MouseEvent e )\n {\n // Return if pressed Button is not the left mouse button\n if ( e.getButton () != MouseEvent.BUTTON3 )\n {\n MachinePanel.this.popup = null;\n return;\n }\n \n // Open a new popup menu\n DefaultGraphCell object = ( DefaultGraphCell ) MachinePanel.this.graph\n .getFirstCellForLocation ( e.getPoint ().getX (), e.getPoint ()\n .getY () );\n if ( object == null )\n MachinePanel.this.popup = createPopupMenu ();\n else if ( object instanceof DefaultTransitionView )\n MachinePanel.this.popup = createTransitionPopupMenu ( ( DefaultTransitionView ) object );\n else\n MachinePanel.this.popup = createStatePopupMenu ( ( DefaultStateView ) object );\n \n if ( MachinePanel.this.popup != null )\n MachinePanel.this.popup.show ( ( Component ) e.getSource (), e\n .getX (), e.getY () );\n }", "title": "" }, { "docid": "38ffa3edde764a7c8ba0e104d0ac4e8c", "score": "0.5989149", "text": "public void openPopup(PopupData data)\r\n \t{\r\n \t\tScreen.blockToUser(\"crux-PopupScreenBlocker\");\r\n \t\t\r\n \t\ttry\r\n \t\t{\r\n \t\t\tCustomDialogBox dialogBox = new CustomDialogBox(false, true, true);\r\n \t\t\tdialogBox.setStyleName(data.getStyleName());\r\n \t\t\tdialogBox.setAnimationEnabled(data.isAnimationEnabled());\r\n \t\t\tdialogBox.setWidth(data.getWidth());\r\n \t\t\tdialogBox.setHeight(data.getHeight());\r\n \t\t\t\r\n \t\t\tFrame frame = new Frame(Screen.appendDebugParameters(data.getUrl()));\r\n \t\t\tframe.setStyleName(\"frame\");\r\n \t\t\tframe.setHeight(\"100%\");\r\n \t\t\tframe.setWidth(\"100%\");\r\n \t\t\t\t\t\t\r\n \t\t\tfinal Element frameElement = frame.getElement();\r\n \t\t\tframeElement.setPropertyString(\"frameBorder\", \"no\");\r\n \t\t\tframeElement.setPropertyInt(\"border\", 0);\r\n \t\t\tframeElement.setPropertyInt(\"marginWidth\", 0);\r\n \t\t\tframeElement.setPropertyInt(\"marginHeight\", 0);\r\n \t\t\tframeElement.setPropertyInt(\"vspace\", 0);\r\n \t\t\tframeElement.setPropertyInt(\"hspace\", 0);\r\n \t\t\t\r\n \t\t\t((TargetDocument) crossDoc).setTargetWindow(getOpener());\r\n \t\t\t\r\n \t\t\tPopupLoadListener listener = new PopupLoadListener(frameElement, crossDoc);\r\n \t\t\t\r\n \t\t\tif (data.isCloseable())\r\n \t\t\t{\r\n \t\t\t\tfinal FocusPanel focusPanel = new FocusPanel();\r\n \t\t\t\tfocusPanel.setStyleName(\"closeButton\");\r\n \t\t\t\tfocusPanel.addStyleDependentName(\"disabled\");\r\n \t\t\t\t\r\n \t\t\t\tfocusPanel.addClickHandler(new ClickHandler()\r\n \t\t\t\t{\r\n \t\t\t\t\tpublic void onClick(ClickEvent event)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tif (canClose(frameElement))\r\n \t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t((TargetDocument) crossDoc).setTargetWindow(getOpener());\r\n \t\t\t\t\t\t\tcrossDoc.onClose();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t});\r\n \t\t\t\t\r\n \t\t\t\tlistener.setCloseBtn(focusPanel);\r\n \t\t\t\t\r\n \t\t\t\tframeElement.setAttribute(\"canClose\", \"false\");\r\n \r\n \t\t\t\tLabel label = new Label(\" \");\r\n \t\t\t\tlabel.getElement().getStyle().setProperty(\"fontSize\", \"0px\");\r\n \t\t\t\tlabel.getElement().getStyle().setProperty(\"fontFamily\", \"monospace\");\r\n \t\t\t\tfocusPanel.add(label);\r\n \r\n \t\t\t\tdialogBox.setTopRightWidget(focusPanel);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t\r\n \t\t\tFrameUtils.registerStateCallback(frameElement, listener);\r\n \t\t\tcrossDoc.prepareToOpen();\r\n \r\n \t\t\tdialogBox.setText(data.getTitle());\r\n \t\t\tdialogBox.setWidget(frame);\r\n \t\t\tdialogBox.center();\r\n \r\n \t\t\tdialogBoxes.add(dialogBox);\r\n \t\t\t\r\n \t\t\tdialogBox.show();\r\n \t\t\t\r\n \t\t\tpushPopupWindowOnStack(FrameUtils.getFrameWindow((IFrameElement) frameElement));\r\n \t\t}\r\n \t\tcatch (Exception e)\r\n \t\t{\r\n \t\t\tCrux.getErrorHandler().handleError(e);\r\n \t\t\tScreen.unblockToUser();\r\n \t\t}\t\t\r\n \t}", "title": "" }, { "docid": "1cd8a19ec4d3c65e5070cc728fe3596c", "score": "0.5988087", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowPopupWindow();\n\t\t\t}", "title": "" }, { "docid": "49b2cebd113bb6f8922a8ac9db48a7ea", "score": "0.5987271", "text": "@FXML \n\tprivate void showNewPhotoPopup(ActionEvent e) throws Exception {\n\t\tsceneManager.openScene(\"New_Photo_Popup.fxml\", this);\n\t}", "title": "" }, { "docid": "8ad7b1f1bd3e0e4c03cac80badc79677", "score": "0.5973323", "text": "public void doPopUp(){\n\n }", "title": "" }, { "docid": "5709e636ed56dc8c6b7e97f9b457e8ca", "score": "0.5970244", "text": "@Override\r\n public void onClick(View view) {\n createPopupDialog();\r\n }", "title": "" }, { "docid": "9fdffe668b159af099e7826ad00fd195", "score": "0.59652054", "text": "public void show();", "title": "" }, { "docid": "9fdffe668b159af099e7826ad00fd195", "score": "0.59652054", "text": "public void show();", "title": "" }, { "docid": "a01d2b42731ef999d9eba7f2f7d3a528", "score": "0.59643394", "text": "public void viewDetail(ActionEvent e) throws IOException {\n Parent root = FXMLLoader.load(getClass().getResource(\"SalesPerMonthInDetailWindow.fxml\"));\n Scene scene = new Scene(root);\n myPrimaryStage.setScene(scene);\n myPrimaryStage.show();\n }", "title": "" }, { "docid": "476e16d97f22920c5c4198cc6116eb67", "score": "0.595038", "text": "public void callPopup()\n {\n //set the content view\n testDialog.setContentView(R.layout.popup_moreinfo_race);\n\n //find the text view in the popup\n textViewPassAttributes = (TextView) testDialog.findViewById(R.id.txtvwMoreInfoRace);\n\n //find and add the close button\n buttonClosePopup = (Button) testDialog.findViewById(R.id.btnClose);\n buttonClosePopup.setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View v)\n {\n testDialog.dismiss();\n }\n });\n\n testDialog.show();\n }", "title": "" }, { "docid": "9cc6631a265ed45ade078eafbdc43838", "score": "0.59438264", "text": "public void showPopupWindow(final View view) {\n LayoutInflater inflater = (LayoutInflater) view.getContext().getSystemService(view.getContext().LAYOUT_INFLATER_SERVICE);\n View popupView = inflater.inflate(R.layout.activity_recharge_dialog, null);\n\n //Specify the length and width through constants\n int width = LinearLayout.LayoutParams.MATCH_PARENT;\n int height = LinearLayout.LayoutParams.MATCH_PARENT;\n\n //Make Inactive Items Outside Of PopupWindow\n boolean focusable = true;\n\n //Create a window with our parameters\n final PopupWindow popupWindow = new PopupWindow(popupView, width, height, focusable);\n\n //Set the location of the window on the screen\n popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);\n\n //Initialize the elements of our window, install the handler\n\n //Handler for clicking on the inactive zone of the window\n\n Button cancel_bt = popupView.findViewById(R.id.cancel_recharge_bt);\n cancel_bt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n popupWindow.dismiss();\n }\n });\n\n }", "title": "" }, { "docid": "573a7e62885433dacb13a4e5a1e50132", "score": "0.5943372", "text": "@Override\n public void onClick(View v) {\n showPopUp();\n }", "title": "" }, { "docid": "85663586ddc12499def5c42515d56e74", "score": "0.5938196", "text": "public void showPopup(String fxml){\n Platform.runLater(() -> {\n Stage popupStage = new Stage();\n FXMLLoader popupLoader = loadFXML(fxml);\n try {\n Parent root = popupLoader.load();\n PopupController popupController = popupLoader.getController();\n popupController.setGui(gui);\n popupController.setOnClose(popupStage);\n popupStage.setScene(new Scene(root));\n popupStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }", "title": "" }, { "docid": "ebecef5e1e7a2e2522648065b237ad94", "score": "0.59295136", "text": "void onPopupClicked();", "title": "" }, { "docid": "5454f425d00afb6864017d573d1a6145", "score": "0.5907407", "text": "private void openPerspective() {\n\t\tif (PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getPerspective().getId().compareTo(MedeaPerspective.ID_PERSPECTIVE) != 0) {\n\t\t\tIPerspectiveDescriptor persp = PlatformUI.getWorkbench().getPerspectiveRegistry().findPerspectiveWithId(MedeaPerspective.ID_PERSPECTIVE);\n\t\t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().setPerspective(persp);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "202c43dc6892e33d0662d8d56fff478d", "score": "0.5890202", "text": "public void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "36b95b3cb12871dbcbc6fcb26d3bcf07", "score": "0.588731", "text": "public void newView() {\n\t\tif (view() == null) {\n\t\t\treturn;\n\t\t}\n\t\tDrawApplication window = createApplication();\n\t\twindow.open(view());\n\t\tif (view().drawing().getTitle() != null ) {\n\t\t\twindow.setDrawingTitle(view().drawing().getTitle() + \" (View)\");\n\t\t}\n\t\telse {\n\t\t\twindow.setDrawingTitle(getDefaultDrawingTitle() + \" (View)\");\n\t\t}\n\t}", "title": "" }, { "docid": "64a3895fb30b6faed6bb42840e639a0f", "score": "0.588239", "text": "public void openView(String view, String viewName) throws IOException {\n URL url = new File(relativePath + \"resources/\" + view).toURL();\n Parent root1 = FXMLLoader.load(url);\n Stage stage = new Stage();\n stage.initModality(Modality.WINDOW_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(viewName);\n stage.setScene(new Scene(root1));\n stage.show();\n }", "title": "" }, { "docid": "6998728b2440d2c8c5158359e0790fbe", "score": "0.58413774", "text": "void showPopup()\n\t{\n\t\tif (m_popup == null)\n\t\t{\n\t\t\tfinal PopupFactory fac = new PopupFactory();\n\t\t\tfinal Point xy = getLocationOnScreen();\n\t\t\tm_datePanel.setVisible(true);\n\t\t\tm_popup = fac.getPopup(this, m_datePanel, (int) xy.getX(), (int) (xy.getY() + getHeight()));\n\t\t\tm_popup.show();\n\t\t}\n\t}", "title": "" }, { "docid": "f7828cbee3a4a075594c1cd9580f589e", "score": "0.5829411", "text": "public void callPopup(View view) {\n Intent intent = new Intent(this, NewUserActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "a06732b78201a9fa86d1fe606d8bcc99", "score": "0.580941", "text": "public void openDetailsPage() {\r\n\t\tif(tableView_Tv.getSelectionModel().getSelectedItem() != null)\r\n\t\t{\r\n\t\t\tthis.getPrincipalUiCtrl().getDetailsPageCtrl().loadData(tableView_Tv.getSelectionModel().getSelectedItem().getIdInfoSupp());\r\n\t\t\tthis.getPrincipalUiCtrl().detailsPageToFront();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "b832062c7a6e8d3266142dbcad154d46", "score": "0.5791275", "text": "public void onOpenButtonClicked();", "title": "" }, { "docid": "9f3ae2d55d7fb51e7db4987ebafc07f8", "score": "0.57901627", "text": "public void openEditQuarterPlan(ViewGroup container, View view) {\n // inflate the layout of the popup window\n View popupView = getLayoutInflater().inflate(R.layout.popup_window, container, false);\n\n // create the popup window\n int width = FrameLayout.LayoutParams.MATCH_PARENT;\n int height = FrameLayout.LayoutParams.WRAP_CONTENT;\n\n final PopupWindow popupWindow = new PopupWindow(popupView, width, height, true);\n\n // show the popup window\n popupWindow.showAtLocation(view, Gravity.CENTER, 0, 600);\n\n // Set up drop down spinner for quarter\n Spinner quarterSpinner = popupView.findViewById(R.id.spinner_quarter);\n // Create an ArrayAdapter using the string array and a spinner layout\n ArrayAdapter<CharSequence> quarterAdapter = ArrayAdapter.createFromResource(getContext(),\n R.array.quarter_spinner_options, R.layout.spinner_item);\n // Specify the layout to use when the list of choices appears\n quarterAdapter.setDropDownViewResource(R.layout.spinner_item);\n // Apply the adapter to the spinner\n quarterSpinner.setAdapter(quarterAdapter);\n\n // Set up drop down spinner for courses\n Spinner courseSpinner = popupView.findViewById(R.id.spinner_courses);\n // Create an array with all course names\n RequirementsViewModel req_model = new RequirementsViewModel();\n ArrayList<String> myCourses = new ArrayList<>();\n for (Course course: req_model.getAllCourses()) {\n String name = course.getDept() + \" \" + course.getCode();\n myCourses.add(name);\n }\n ArrayAdapter<String> courseAdapter =\n new ArrayAdapter<String>(getActivity(),R.layout.spinner_item, myCourses);\n courseAdapter.setDropDownViewResource(R.layout.spinner_item);\n courseSpinner.setAdapter(courseAdapter);\n\n EditText yearPlannedEditText = popupView.findViewById(R.id.planned_year_text);\n CheckBox completion = popupView.findViewById(R.id.completion_checkBox);\n\n // Set button for popup\n this.whenPlanned(popupView, popupWindow, courseSpinner, quarterSpinner, yearPlannedEditText, completion);\n }", "title": "" }, { "docid": "02bdd071d5a16cfd98659106e39c0341", "score": "0.5772874", "text": "public void faceBookPopupWindow() {\n clickable(_facebookPopup);\n }", "title": "" }, { "docid": "046db0ac980e98207309f3ee79435aaf", "score": "0.57635695", "text": "public int \nOpenLLD( View ViewToWindow )\n{\n\n return( 0 );\n// END\n}", "title": "" }, { "docid": "6ebe16a0b708c8d3aa2a60e39544b439", "score": "0.5746114", "text": "@Override\r\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tMaterialDialog md=new MaterialDialog();\r\n\t\t\t\tmd.add(new sevex());\r\n\t\t\t\tRootPanel.get().add(md);\r\n\t\t\t\tmd.open();\r\n\t\t\t}", "title": "" }, { "docid": "80bfbe5caa10f48add89814f8aaf17cc", "score": "0.57448775", "text": "public void show() {\n\t\t\n\t}", "title": "" }, { "docid": "ff8b9d119793d7f3ec88e8f1eaa8549d", "score": "0.57260036", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowPopup(v);\n\t\t\t}", "title": "" }, { "docid": "ff8b9d119793d7f3ec88e8f1eaa8549d", "score": "0.57260036", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowPopup(v);\n\t\t\t}", "title": "" }, { "docid": "51bdd1aa6cd622b5685ade56bc2db7a6", "score": "0.5720139", "text": "@Override\n\tpublic void openMembershipForm() {\n\t\tStage membershipForm = new Stage();\n\t\tCommonService comSrv = new CommonServiceImpl();\n\t\tcomSrv.showWindows(membershipForm, \"../membership.fxml\", \"회원가입창\");\n\t\t\n\t}", "title": "" }, { "docid": "094aa2565b2f4d80138ed6618a8e406f", "score": "0.57198155", "text": "public void openPopup(String uniprot, String geneName, PopupTypes type) {\n\t\tif(!popupMap.keySet().contains(uniprot)) {\n\t\t\tIDGPopup popup = new IDGPopup(uniprot, geneName, type, getZIndex());\n\t\t\tpopupMap.put(uniprot, popup);\n\t\t\tpopup.show();\n\t\t}\n\t\telse \n\t\t\tpopupMap.get(uniprot).addType(type);\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5702964", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5702964", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5702964", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5702964", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5702964", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5702964", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bce969ff1441964a320c02ae4d67f45e", "score": "0.57021284", "text": "public void showPopupWindow(){\n LayoutInflater inflater = (LayoutInflater) getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE);\n View customView = inflater.inflate(R.layout.popup, null);\n\n popupWindow = new PopupWindow(customView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n\n /*Button popupButton1 = (Button) customView.findViewById(R.id.popupButton1);\n Button popupButton2 = (Button) customView.findViewById(R.id.popupButton2);\n Button popupButton3 = (Button) customView.findViewById(R.id.popupButton3);*/\n TextView popupText = (TextView) customView.findViewById(R.id.popupText);\n\n popupText.setText(\"Empyt Starting Point or Destination!\");\n// popupButton.setText(\"PK\");\n// popupButton1.setOnClickListener(new View.OnClickListener(){\n// @Override\n// public void onClick(View v){\n// popupWindow.dismiss();\n// }\n// });\n// popupButton2.setOnClickListener(new View.OnClickListener(){\n// @Override\n// public void onClick(View v){\n// popupWindow.dismiss();\n// }\n// });\n// popupButton3.setOnClickListener(new View.OnClickListener(){\n// @Override\n// public void onClick(View v){\n// popupWindow.dismiss();\n// }\n// });\n popupWindow.showAtLocation(positionOfPopup, Gravity.CENTER, 0, 0);\n }", "title": "" }, { "docid": "bce969ff1441964a320c02ae4d67f45e", "score": "0.57021284", "text": "public void showPopupWindow(){\n LayoutInflater inflater = (LayoutInflater) getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE);\n View customView = inflater.inflate(R.layout.popup, null);\n\n popupWindow = new PopupWindow(customView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n\n /*Button popupButton1 = (Button) customView.findViewById(R.id.popupButton1);\n Button popupButton2 = (Button) customView.findViewById(R.id.popupButton2);\n Button popupButton3 = (Button) customView.findViewById(R.id.popupButton3);*/\n TextView popupText = (TextView) customView.findViewById(R.id.popupText);\n\n popupText.setText(\"Empyt Starting Point or Destination!\");\n// popupButton.setText(\"PK\");\n// popupButton1.setOnClickListener(new View.OnClickListener(){\n// @Override\n// public void onClick(View v){\n// popupWindow.dismiss();\n// }\n// });\n// popupButton2.setOnClickListener(new View.OnClickListener(){\n// @Override\n// public void onClick(View v){\n// popupWindow.dismiss();\n// }\n// });\n// popupButton3.setOnClickListener(new View.OnClickListener(){\n// @Override\n// public void onClick(View v){\n// popupWindow.dismiss();\n// }\n// });\n popupWindow.showAtLocation(positionOfPopup, Gravity.CENTER, 0, 0);\n }", "title": "" }, { "docid": "dbfa51cf78f977d6c503ce930e919b05", "score": "0.56959283", "text": "@FXML\r\n\tvoid openAnaliticDataPane(ActionEvent event) {\r\n\t\tswitchPanes(analiticDataPane);\r\n\t}", "title": "" }, { "docid": "c21035b2191463cf0f191bc790ec8970", "score": "0.5695501", "text": "@FXML\r\n\tvoid open_dialog_btn_clicked(MouseEvent event) {\r\n\t\tif (report_table.getSelectionModel().getSelectedItem() != null) {\r\n\t\t\tDialog<String> dia = new Dialog<>();\r\n\t\t\tStage stage = (Stage) dia.getDialogPane().getScene().getWindow();\r\n\t\t\tDialogPane dialogPane = dia.getDialogPane();\r\n\t\t\tdialogPane.getStylesheets().add(getClass().getResource(\"/client/boundry/dialog.css\").toExternalForm());\r\n\t\t\tdialogPane.getStyleClass().add(\"dialog\");\r\n\t\t\tdia.setTitle(\"Reports\");\r\n\t\t\tdia.setHeaderText(\"Station Manager Report\");\r\n\t\t\tdia.setGraphic(new ImageView(this.getClass().getResource(\"/icons8-business-report-48.png\").toString()));\r\n\t\t\t// Add a custom icon.\r\n\t\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"/icons8-business-report-24.png\").toString()));\r\n\t\t\tdia.getDialogPane().getButtonTypes().addAll(ButtonType.OK);\r\n\t\t\tdia.setContentText(report_table.getSelectionModel().getSelectedItem().getComment());\r\n\t\t\tdia.show();\r\n\t\t} else {\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.initOwner(MainClientGUI.primaryStage);\r\n\t\t\talert.setTitle(\"Choose Report \");\r\n\t\t\talert.setHeaderText(null);\r\n\t\t\talert.setContentText(\"YOU NEED TO CHOOSE A REPORT!\");\r\n\t\t\talert.show();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cf63b35db11273048057d0802f3b6f63", "score": "0.5695365", "text": "private void showPopup(DefaultMutableTreeNode[] treeNodes, MouseEvent e) {\n //Check if its a popup trigger\n if (treeNodes != null && e.isPopupTrigger()) {\n popupMenu.clearViolations();\n //Only for violation nodes, popups are supported\n for (DefaultMutableTreeNode treeNode : treeNodes) {\n if (treeNode instanceof PMDViolationNode) {\n popupMenu.addViolation(((PMDViolationNode)treeNode).getPmdViolation());\n }\n }\n //Display popup\n popupMenu.getMenu().show(resultTree, e.getX(), e.getY());\n }\n }", "title": "" }, { "docid": "949642b6042c4ab993eb35ea795a3a5d", "score": "0.56944543", "text": "@FXML\r\n\tvoid openReportGenerationPane(ActionEvent event) {\r\n\t\tswitchPanes(reportsPane);\r\n\t}", "title": "" }, { "docid": "9cef93c9990be16e62a28faf96c7c939", "score": "0.56924164", "text": "@Override\r\n\tpublic void show()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "db11128cd32bc627738d80fab52bf32f", "score": "0.56919634", "text": "public void openChart() {\n\t\t// Check if referees are existent\n\t\tif (refList.size() > 0) {\n\t\t\t// Open chart frame\n\t\t\tchart = new ChartFrame(refList);\n\t\t\tchart.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n\t\t\tchart.setVisible(true);\n\t\t} else\n\t\t\t// Otherwise show error message\n\t\t\tJOptionPane.showMessageDialog(null, \"There are no \"\n\t\t\t\t\t+ \"referees listed.\");\n\t}", "title": "" }, { "docid": "63d17c0c5b474dfcdbcd14acc2264d38", "score": "0.5688233", "text": "public void openInfo(View view) {\n\n }", "title": "" }, { "docid": "b23a88bdf9524286fd4f5a476e2a401d", "score": "0.56880355", "text": "public void showView() {\r\n\t\tsetVisible(true);\r\n\t}", "title": "" }, { "docid": "a5bdb621f5109e3b0c2fb011e440be80", "score": "0.5685152", "text": "@Override\n public void onClick(View view) {\n popup_request();\n }", "title": "" }, { "docid": "618a50698b55b74fec250e0675a90619", "score": "0.56839186", "text": "private void openWindow() throws IOException {\n Parent root;\n root = FXMLLoader.load(getClass().getResource(\"frontend/Finish.fxml\"));\n\n Main.primaryStage.setScene(new Scene(root));\n Main.primaryStage.setTitle(\"DRPCIV Wannabe\");\n Main.primaryStage.show();\n }", "title": "" }, { "docid": "f8fb247541a0cf03277881d687abaeb9", "score": "0.5675867", "text": "@Override\r\n\tprotected void onOpen(String title) {\n\t\tif (hasNoOrEmptyModel()) {\r\n\t\t\tlogger.warn(\"No available data - re-execute node?\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tList<String> rows= getAlignmentRowIDs();\r\n\t\t\r\n\t\t// just display the only available alignment (no point asking the user which one)...\r\n\t\tif (hasExactlyOneAlignment()) {\r\n\t\t\tshowAlignment(getAlignment(rows.get(0)));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// else...\r\n\t\tfinal JFrame jf = new JFrame(\"Select row to display alignment from: \");\r\n\t\tjf.setLayout(new BorderLayout());\r\n\t\tfinal JList<String> my_list = new JList<String>(rows.toArray(new String[0]));\r\n\t\tfinal JButton b_start = new JButton(\"Open alignment in JalView...\");\r\n\t\t\r\n\t\tfinal JTextField tf = new JTextField(getJalViewRootFolder().getAbsolutePath(), 40);\r\n\r\n\t\tb_start.setEnabled(false);\r\n\t\tb_start.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tAlignmentValue av = getAlignment(my_list.getSelectedValue());\r\n\t\t\t\tshowAlignment(av);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\tmy_list.addListSelectionListener(new ListSelectionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void valueChanged(ListSelectionEvent ev) {\r\n\t\t\t\tString sel_row = (String) my_list.getSelectedValue();\r\n\t\t\t\tb_start.setEnabled(sel_row != null);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tif (rows.size() == 1) {\r\n\t\t\tmy_list.setSelectedIndex(0);\r\n\t\t}\r\n\t\t\r\n\t\tjf.add(new JScrollPane(my_list), BorderLayout.CENTER);\r\n\t\tJPanel south = new JPanel();\r\n\t\tsouth.setLayout(new BoxLayout(south, BoxLayout.Y_AXIS));\r\n\t\tJPanel jalview_panel = new JPanel();\r\n\t\tjalview_panel.setLayout(new BoxLayout(jalview_panel, BoxLayout.X_AXIS));\r\n\t\tjalview_panel.add(new JLabel(\"JalView folder:\"));\r\n\t\tjalview_panel.add(tf);\r\n\t\t\r\n\t\tJButton b_browse = new JButton(\"Browse...\");\r\n\t\tb_browse.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tFile f = new File(tf.getText());\r\n\t\t\t\tJFileChooser jfc = null;\r\n\t\t\t\tif (f.exists() && f.isDirectory()) {\r\n\t\t\t\t\tjfc = new JFileChooser(f);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tjfc = new JFileChooser();\r\n\t\t\t\t}\r\n\t\t\t\tjfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\t\t\t\tif (jfc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\t\tFile chosen = jfc.getSelectedFile();\r\n\t\t\t\t\tif (chosen.exists() && chosen.isDirectory()) {\r\n\t\t\t\t\t\ttf.setText(chosen.getAbsolutePath());\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});\r\n\t\tjalview_panel.add(b_browse);\r\n\t\tsouth.add(jalview_panel);\r\n\t\tsouth.add(b_start);\r\n\t\t\r\n\t\tjf.add(south, BorderLayout.SOUTH);\r\n\t\tjf.pack();\r\n\t\tjf.setAlwaysOnTop(true);\r\n\t\tjf.setVisible(true);\r\n\t}", "title": "" }, { "docid": "9bff17d6c6a42cae9a64df1dfab7c2d7", "score": "0.56752443", "text": "public void openDialog() {\n final EventDialog newEvent = new EventDialog();\n newEvent.show(getSupportFragmentManager(), \"create event\");\n }", "title": "" }, { "docid": "c538cb635e7f7ea7d0ec24892dc6e7cd", "score": "0.56744325", "text": "void openHelloWindow();", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.56711084", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.56711084", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.56711084", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.56711084", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "88b3d00bf2d77c730b6e22869ab32af3", "score": "0.56698304", "text": "public void viewOnline(ActionEvent evt) {\n\t\t String url = \"https://www.airbnb.co.uk/rooms/\"+propertyId;\n\t\t try {\n\t\t\t Desktop.getDesktop().browse(new URL(url).toURI());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t \n\t }", "title": "" }, { "docid": "a95b86093158ee6950671e68b0bb66e4", "score": "0.56575984", "text": "@Override\n public void mousePressed(MouseEvent e) {\n if (e.isPopupTrigger()) {\n popup.show(e.getComponent(),\n e.getX(), e.getY());\n } \n }", "title": "" }, { "docid": "2465235d19863a539fa2feafdabcd9c0", "score": "0.5642984", "text": "public void show() {\n _dialog.show();\n }", "title": "" }, { "docid": "b7df2e529c86850c5e30558072f8c9a0", "score": "0.5638446", "text": "@FXML\r\n\tpublic void btManagementAction() throws IOException{\r\n\t\tpt.iade.contact.Main.openforkWindow();\r\n\t\t/*Parent part = FXMLLoader.load(getClass().getResource(\"../view/ForkMenagementWindow.fxml\"));\r\n\t Stage stage = new Stage();\r\n\t Scene scene = new Scene(part);\r\n\t stage.setScene(scene);\r\n\t stage.show();*/\r\n\t}", "title": "" }, { "docid": "6f508263adcd32909db52a8045f1cf84", "score": "0.5636597", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.show();\n\t\t\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.56345254", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "91a239ff4846f9fb896075f1488cde7e", "score": "0.56309867", "text": "@OnClick({2131296376})\n public void openModal() {\n this.signUpPresenter.showCountriesDialog();\n }", "title": "" }, { "docid": "ef346355b961272d846dc640d8a760fe", "score": "0.5629463", "text": "public void openEdif(View view){\n Intent intent = new Intent(this, VistaGeneralEdificios.class);\n startActivity(intent);\n }", "title": "" } ]